summaryrefslogtreecommitdiff
path: root/x86.h
diff options
context:
space:
mode:
Diffstat (limited to 'x86.h')
-rw-r--r--x86.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/x86.h b/x86.h
index bb79d3e..ab7882a 100644
--- a/x86.h
+++ b/x86.h
@@ -1,3 +1,6 @@
+// Special assembly routines to access x86-specific
+// hardware instructions.
+
static __inline uchar
inb(int port)
{
@@ -124,6 +127,7 @@ sti(void)
__asm__ volatile("sti");
}
+// Layout of the trap frame on the stack upon entry to trap.
struct trapframe {
// registers as pushed by pusha
uint edi;