2008-07-30 05:34:04 +00:00
|
|
|
/*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Cross Partition (XP) uv-based functions.
|
|
|
|
*
|
|
|
|
* Architecture specific implementation of common functions.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "xp.h"
|
|
|
|
|
2008-07-30 05:34:05 +00:00
|
|
|
static enum xp_retval
|
|
|
|
xp_remote_memcpy_uv(void *vdst, const void *psrc, size_t len)
|
|
|
|
{
|
2008-07-30 05:34:14 +00:00
|
|
|
/* !!! this function needs fleshing out */
|
2008-07-30 05:34:05 +00:00
|
|
|
return xpUnsupported;
|
|
|
|
}
|
|
|
|
|
2008-07-30 05:34:04 +00:00
|
|
|
enum xp_retval
|
|
|
|
xp_init_uv(void)
|
|
|
|
{
|
|
|
|
BUG_ON(!is_uv());
|
|
|
|
|
|
|
|
xp_max_npartitions = XP_MAX_NPARTITIONS_UV;
|
2008-07-30 05:34:05 +00:00
|
|
|
|
|
|
|
xp_remote_memcpy = xp_remote_memcpy_uv;
|
|
|
|
|
|
|
|
return xpSuccess;
|
2008-07-30 05:34:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
xp_exit_uv(void)
|
|
|
|
{
|
|
|
|
BUG_ON(!is_uv());
|
|
|
|
}
|