summaryrefslogtreecommitdiff
path: root/x86.h
diff options
context:
space:
mode:
authorrsc <rsc>2006-07-17 01:36:39 +0000
committerrsc <rsc>2006-07-17 01:36:39 +0000
commitee9c7f3bfc45563e4caebcb7995e75bf39a8e0f3 (patch)
tree0509dd8855210b0fcfca73c4181122b48d81bfdb /x86.h
parentf15a3ae2633a9f3c76be7ce76b2ab85e2229e502 (diff)
downloadxv6-labs-ee9c7f3bfc45563e4caebcb7995e75bf39a8e0f3.tar.gz
xv6-labs-ee9c7f3bfc45563e4caebcb7995e75bf39a8e0f3.tar.bz2
xv6-labs-ee9c7f3bfc45563e4caebcb7995e75bf39a8e0f3.zip
goodbye PushRegs
Diffstat (limited to 'x86.h')
-rw-r--r--x86.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/x86.h b/x86.h
index a25d875..267c2da 100644
--- a/x86.h
+++ b/x86.h
@@ -339,7 +339,7 @@ sti(void)
__asm__ volatile("sti");
}
-struct PushRegs {
+struct Trapframe {
/* registers as pushed by pusha */
uint32_t edi;
uint32_t esi;
@@ -349,10 +349,7 @@ struct PushRegs {
uint32_t edx;
uint32_t ecx;
uint32_t eax;
-};
-
-struct Trapframe {
- struct PushRegs regs;
+ /* rest of trap frame */
uint16_t es;
uint16_t padding1;
uint16_t ds;