aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2010-04-07 02:24:41 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2010-04-07 02:24:41 +0000
commit4ccf64eb2bb126b295631f77a22b60a34abd8f79 (patch)
tree9cb5c82283f9840994363d827ab9f1affbd07fb4 /sys/amd64/include
parent6836afc4c683a5bfa6c625f8adf455b7107eddae (diff)
Notes
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/elf.h1
-rw-r--r--sys/amd64/include/reg.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/amd64/include/elf.h b/sys/amd64/include/elf.h
index 88f439805ba1..678f5d3ba0f4 100644
--- a/sys/amd64/include/elf.h
+++ b/sys/amd64/include/elf.h
@@ -42,6 +42,7 @@
#include <sys/elf_generic.h>
#define ELF_ARCH EM_X86_64
+#define ELF_ARCH32 EM_386
#define ELF_MACHINE_OK(x) ((x) == EM_X86_64)
diff --git a/sys/amd64/include/reg.h b/sys/amd64/include/reg.h
index 89211a32651b..4a839181882e 100644
--- a/sys/amd64/include/reg.h
+++ b/sys/amd64/include/reg.h
@@ -37,6 +37,10 @@
#ifndef _MACHINE_REG_H_
#define _MACHINE_REG_H_
+#if defined(_KERNEL) && !defined(_STANDALONE)
+#include "opt_compat.h"
+#endif
+
/*
* Register set accessible via /proc/$pid/regs and PT_{SET,GET}REGS.
*/
@@ -116,6 +120,11 @@ struct dbreg {
#define DBREG_DRX(d,x) ((d)->dr[(x)]) /* reference dr0 - dr15 by
register number */
+#ifdef COMPAT_FREEBSD32
+#include <machine/fpu.h>
+#include <compat/ia32/ia32_reg.h>
+#endif
+
#ifdef _KERNEL
/*
* XXX these interfaces are MI, so they should be declared in a MI place.