blob: dca519fdef98dfbefbe5d977af5fb4f7f5f67fb1 [file] [log] [blame]
Dean Nelsonbc63d382008-07-29 22:34:04 -07001/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved.
7 */
8
9/*
10 * Cross Partition (XP) uv-based functions.
11 *
12 * Architecture specific implementation of common functions.
13 *
14 */
15
16#include "xp.h"
17
Dean Nelson908787d2008-07-29 22:34:05 -070018static enum xp_retval
19xp_remote_memcpy_uv(void *vdst, const void *psrc, size_t len)
20{
21 /* >>> this function needs fleshing out */
22 return xpUnsupported;
23}
24
Dean Nelsonbc63d382008-07-29 22:34:04 -070025enum xp_retval
26xp_init_uv(void)
27{
28 BUG_ON(!is_uv());
29
30 xp_max_npartitions = XP_MAX_NPARTITIONS_UV;
Dean Nelson908787d2008-07-29 22:34:05 -070031
32 xp_remote_memcpy = xp_remote_memcpy_uv;
33
34 return xpSuccess;
Dean Nelsonbc63d382008-07-29 22:34:04 -070035}
36
37void
38xp_exit_uv(void)
39{
40 BUG_ON(!is_uv());
41}