summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2011-11-22 02:27:59 +0000
committergrehan <grehan@FreeBSD.org>2011-11-22 02:27:59 +0000
commitf68bada80b9371e881d04b43a8ab412fa54cd5fa (patch)
tree97b668c8ce00f69d94b0237dac765c76f460638b /sys/amd64/include
parentcdc4639328546d2b0ad5a90dd2d4e4534e874c26 (diff)
parent08ecf874bb3cc09a324985ab9315883462c59ae8 (diff)
downloadFreeBSD-src-f68bada80b9371e881d04b43a8ab412fa54cd5fa.zip
FreeBSD-src-f68bada80b9371e881d04b43a8ab412fa54cd5fa.tar.gz
IFC @ r227804
Pull in the virtio drivers from head.
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/_stdint.h4
-rw-r--r--sys/amd64/include/segments.h2
-rw-r--r--sys/amd64/include/signal.h14
-rw-r--r--sys/amd64/include/trap.h4
-rw-r--r--sys/amd64/include/ucontext.h11
5 files changed, 16 insertions, 19 deletions
diff --git a/sys/amd64/include/_stdint.h b/sys/amd64/include/_stdint.h
index ee4e592..d755bb3 100644
--- a/sys/amd64/include/_stdint.h
+++ b/sys/amd64/include/_stdint.h
@@ -150,8 +150,8 @@
#define PTRDIFF_MAX INT64_MAX
/* Limits of sig_atomic_t. */
-#define SIG_ATOMIC_MIN INT32_MIN
-#define SIG_ATOMIC_MAX INT32_MAX
+#define SIG_ATOMIC_MIN LONG_MIN
+#define SIG_ATOMIC_MAX LONG_MAX
/* Limit of size_t. */
#define SIZE_MAX UINT64_MAX
diff --git a/sys/amd64/include/segments.h b/sys/amd64/include/segments.h
index 22dc95a..2796511 100644
--- a/sys/amd64/include/segments.h
+++ b/sys/amd64/include/segments.h
@@ -214,7 +214,7 @@ struct region_descriptor {
#define IDT_XF 19 /* #XF: SIMD Floating-Point Exception */
#define IDT_IO_INTS NRSVIDT /* Base of IDT entries for I/O interrupts. */
#define IDT_SYSCALL 0x80 /* System Call Interrupt Vector */
-#define IDT_DTRACE_RET 0x92 /* DTrace pid provider Interrupt Vector */
+#define IDT_DTRACE_RET 0x20 /* DTrace pid provider Interrupt Vector */
/*
* Entries in the Global Descriptor Table (GDT)
diff --git a/sys/amd64/include/signal.h b/sys/amd64/include/signal.h
index 228e2d9..0374339 100644
--- a/sys/amd64/include/signal.h
+++ b/sys/amd64/include/signal.h
@@ -47,18 +47,14 @@ typedef long sig_atomic_t;
#include <machine/trap.h> /* codes for SIGILL, SIGFPE */
/*
- * Only the kernel should need these old type definitions.
- */
-/*
* Information pushed on stack when a signal is delivered.
* This is used by the kernel to restore state following
* execution of the signal handler. It is also made available
* to the handler to allow it to restore state properly if
* a non-standard exit is performed.
- */
-/*
- * The sequence of the fields/registers in struct sigcontext should match
- * those in mcontext_t.
+ *
+ * The sequence of the fields/registers after sc_mask in struct
+ * sigcontext must match those in mcontext_t and struct trapframe.
*/
struct sigcontext {
struct __sigset sc_mask; /* signal mask to restore */
@@ -93,8 +89,8 @@ struct sigcontext {
long sc_ss;
long sc_len; /* sizeof(mcontext_t) */
/*
- * XXX - See <machine/ucontext.h> and <machine/fpu.h> for
- * the following fields.
+ * See <machine/ucontext.h> and <machine/fpu.h> for the following
+ * fields.
*/
long sc_fpformat;
long sc_ownedfp;
diff --git a/sys/amd64/include/trap.h b/sys/amd64/include/trap.h
index d8e36b5..a395d62 100644
--- a/sys/amd64/include/trap.h
+++ b/sys/amd64/include/trap.h
@@ -62,8 +62,8 @@
#define T_MCHK 28 /* machine check trap */
#define T_XMMFLT 29 /* SIMD floating-point exception */
#define T_RESERVED 30 /* reserved (unknown) */
-#define T_DTRACE_RET 31 /* DTrace pid return */
-#define T_DTRACE_PROBE 32 /* DTrace fasttrap probe */
+#define T_DTRACE_RET 32 /* DTrace pid return */
+#define T_DTRACE_PROBE 33 /* DTrace fasttrap probe */
/* XXX most of the following codes aren't used, but could be. */
diff --git a/sys/amd64/include/ucontext.h b/sys/amd64/include/ucontext.h
index c5bbd65..75b7bd2 100644
--- a/sys/amd64/include/ucontext.h
+++ b/sys/amd64/include/ucontext.h
@@ -41,12 +41,13 @@
typedef struct __mcontext {
/*
- * The first 24 fields must match the definition of
- * sigcontext. So that we can support sigcontext
- * and ucontext_t at the same time.
+ * The definition of mcontext_t must match the layout of
+ * struct sigcontext after the sc_mask member. This is so
+ * that we can support sigcontext and ucontext_t at the same
+ * time.
*/
- __register_t mc_onstack; /* XXX - sigcontext compat. */
- __register_t mc_rdi; /* machine state (struct trapframe) */
+ __register_t mc_onstack; /* XXX - sigcontext compat. */
+ __register_t mc_rdi; /* machine state (struct trapframe) */
__register_t mc_rsi;
__register_t mc_rdx;
__register_t mc_rcx;
OpenPOWER on IntegriCloud