diff options
author | rsc <rsc> | 2006-07-16 15:41:47 +0000 |
---|---|---|
committer | rsc <rsc> | 2006-07-16 15:41:47 +0000 |
commit | ef2bd07ae4cb2e27d62cfdcb7e71d82948fb80ed (patch) | |
tree | 3c5f126bb04d4c6c26dcb8295959fad224dfbf5d /x86.h | |
parent | 6b765c480f8c810fc495a32baa696bbeb75adc09 (diff) | |
download | xv6-labs-ef2bd07ae4cb2e27d62cfdcb7e71d82948fb80ed.tar.gz xv6-labs-ef2bd07ae4cb2e27d62cfdcb7e71d82948fb80ed.tar.bz2 xv6-labs-ef2bd07ae4cb2e27d62cfdcb7e71d82948fb80ed.zip |
standardize on not using foo_ prefix in struct foo
Diffstat (limited to 'x86.h')
-rw-r--r-- | x86.h | 44 |
1 files changed, 22 insertions, 22 deletions
@@ -320,33 +320,33 @@ sti(void) struct PushRegs { /* registers as pushed by pusha */ - uint32_t reg_edi; - uint32_t reg_esi; - uint32_t reg_ebp; - uint32_t reg_oesp; /* Useless */ - uint32_t reg_ebx; - uint32_t reg_edx; - uint32_t reg_ecx; - uint32_t reg_eax; + uint32_t edi; + uint32_t esi; + uint32_t ebp; + uint32_t oesp; /* Useless */ + uint32_t ebx; + uint32_t edx; + uint32_t ecx; + uint32_t eax; }; struct Trapframe { - struct PushRegs tf_regs; - uint16_t tf_es; - uint16_t tf_padding1; - uint16_t tf_ds; - uint16_t tf_padding2; - uint32_t tf_trapno; + struct PushRegs regs; + uint16_t es; + uint16_t padding1; + uint16_t ds; + uint16_t padding2; + uint32_t trapno; /* below here defined by x86 hardware */ - uint32_t tf_err; - uintptr_t tf_eip; - uint16_t tf_cs; - uint16_t tf_padding3; - uint32_t tf_eflags; + uint32_t err; + uintptr_t eip; + uint16_t cs; + uint16_t padding3; + uint32_t eflags; /* below here only when crossing rings, such as from user to kernel */ - uintptr_t tf_esp; - uint16_t tf_ss; - uint16_t tf_padding4; + uintptr_t esp; + uint16_t ss; + uint16_t padding4; }; #define MAX_IRQS 16 // Number of IRQs |