Dean Nelson | bc63d38 | 2008-07-29 22:34:04 -0700 | [diff] [blame] | 1 | /* |
| 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 Nelson | 908787d | 2008-07-29 22:34:05 -0700 | [diff] [blame^] | 18 | static enum xp_retval |
| 19 | xp_remote_memcpy_uv(void *vdst, const void *psrc, size_t len) |
| 20 | { |
| 21 | /* >>> this function needs fleshing out */ |
| 22 | return xpUnsupported; |
| 23 | } |
| 24 | |
Dean Nelson | bc63d38 | 2008-07-29 22:34:04 -0700 | [diff] [blame] | 25 | enum xp_retval |
| 26 | xp_init_uv(void) |
| 27 | { |
| 28 | BUG_ON(!is_uv()); |
| 29 | |
| 30 | xp_max_npartitions = XP_MAX_NPARTITIONS_UV; |
Dean Nelson | 908787d | 2008-07-29 22:34:05 -0700 | [diff] [blame^] | 31 | |
| 32 | xp_remote_memcpy = xp_remote_memcpy_uv; |
| 33 | |
| 34 | return xpSuccess; |
Dean Nelson | bc63d38 | 2008-07-29 22:34:04 -0700 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | void |
| 38 | xp_exit_uv(void) |
| 39 | { |
| 40 | BUG_ON(!is_uv()); |
| 41 | } |