arch/x86_64 (forgot to commit previously)

This commit is contained in:
Clifford T. Matthews 2009-07-02 15:38:28 -06:00
parent cb045f30ea
commit 38e0110d09
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#include "rsys/common.h"
#include "rsys/arch.h"
boolean_t
arch_init (void)
{
return TRUE;
}

View File

@ -0,0 +1,14 @@
#if !defined (__arch_x86_64_h__)
#define __arch_x86_64_h__
#define LITTLEENDIAN
#define SYN68K
/* TODO: only do these if the compiler supports it, check to see if we can
get a better swap16 w/o using builtin_bswap32 */
#define swap16(v) ((uint16_t) (__builtin_bswap32 ((int32_t) (v)) >> 16))
#define swap32(v)((uint32_t) __builtin_bswap32 ((int32_t)(v)))
#endif /* !defined (__arch_x86_64_h__) */