mirror of
https://github.com/ctm/executor.git
synced 2024-11-30 05:51:22 +00:00
arch/x86_64 (forgot to commit previously)
This commit is contained in:
parent
cb045f30ea
commit
38e0110d09
8
src/config/arch/x86_64/x86_64.c
Normal file
8
src/config/arch/x86_64/x86_64.c
Normal file
@ -0,0 +1,8 @@
|
||||
#include "rsys/common.h"
|
||||
#include "rsys/arch.h"
|
||||
|
||||
boolean_t
|
||||
arch_init (void)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
14
src/config/arch/x86_64/x86_64.h
Normal file
14
src/config/arch/x86_64/x86_64.h
Normal 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__) */
|
Loading…
Reference in New Issue
Block a user