summaryrefslogtreecommitdiff
path: root/x86.h
diff options
context:
space:
mode:
authorrsc <rsc>2006-09-07 14:12:30 +0000
committerrsc <rsc>2006-09-07 14:12:30 +0000
commit31085bb4166c18b3dee059160d64b4edd7c5e2f4 (patch)
treed3b166a2c39f77e06e7104659b537521282f9260 /x86.h
parent7e019461c8bf0afbe73f959ca3394cce832501fd (diff)
downloadxv6-labs-31085bb4166c18b3dee059160d64b4edd7c5e2f4.tar.gz
xv6-labs-31085bb4166c18b3dee059160d64b4edd7c5e2f4.tar.bz2
xv6-labs-31085bb4166c18b3dee059160d64b4edd7c5e2f4.zip
more comments
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;