summaryrefslogtreecommitdiff
path: root/x86.h
diff options
context:
space:
mode:
Diffstat (limited to 'x86.h')
-rw-r--r--x86.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/x86.h b/x86.h
index a0d61ab..bb79d3e 100644
--- a/x86.h
+++ b/x86.h
@@ -125,28 +125,31 @@ sti(void)
}
struct trapframe {
- /* registers as pushed by pusha */
+ // registers as pushed by pusha
uint edi;
uint esi;
uint ebp;
- uint oesp; /* Useless */
+ uint oesp; // useless & ignored
uint ebx;
uint edx;
uint ecx;
uint eax;
- /* rest of trap frame */
+
+ // rest of trap frame
ushort es;
ushort padding1;
ushort ds;
ushort padding2;
uint trapno;
- /* below here defined by x86 hardware */
+
+ // below here defined by x86 hardware
uint err;
uint eip;
ushort cs;
ushort padding3;
uint eflags;
- /* below here only when crossing rings, such as from user to kernel */
+
+ // below here only when crossing rings, such as from user to kernel
uint esp;
ushort ss;
ushort padding4;