diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-01-28 01:39:41 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-01-28 01:39:41 +0000 |
commit | eb2015b73fc7e8f74be0338c16e873a01653fe03 (patch) | |
tree | a0a1beaa9bc6601b949ea8937d79f939833b3cd3 /sys/arch/amd64/include/exec.h | |
parent | fc744b6d0908de21ef8f71c7e15dd3b113e9aad8 (diff) |
an amd64 arch support.
hacked by art@ from netbsd sources and then later debugged
by me into the shape where it can host itself.
no bootloader yet as needs redoing from the
recent advanced i386 sources (anyone? ;)
Diffstat (limited to 'sys/arch/amd64/include/exec.h')
-rw-r--r-- | sys/arch/amd64/include/exec.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/arch/amd64/include/exec.h b/sys/arch/amd64/include/exec.h new file mode 100644 index 00000000000..45290aafa7d --- /dev/null +++ b/sys/arch/amd64/include/exec.h @@ -0,0 +1,22 @@ +/* $OpenBSD: exec.h,v 1.1 2004/01/28 01:39:39 mickey Exp $ */ +/* + * Written by Artur Grabowski <art@openbsd.org> Public Domain + */ + +#ifndef _AMD64_EXEC_H_ +#define _AMD64_EXEC_H_ + +#define __LDPGSZ 4096 + +#define NATIVE_EXEC_ELF + +#define ARCH_ELFSIZE 64 + +#define ELF_TARG_CLASS ELFCLASS64 +#define ELF_TARG_DATA ELFDATA2LSB +#define ELF_TARG_MACH EM_X86_64 + +#define _NLIST_DO_ELF +#define _KERN_DO_ELF64 + +#endif |