提交 f90b85bc 创建 作者: Silas Boyd-Wickizer's avatar Silas Boyd-Wickizer

Rejigger trapframe slightly.

上级 013a2bac
...@@ -56,11 +56,11 @@ trapcommon: ...@@ -56,11 +56,11 @@ trapcommon:
.globl trapret .globl trapret
.align 8 .align 8
trapret: trapret:
addq $0xe, %rsp // padding
popw %ax popw %ax
movw %ax, %ds movw %ax, %ds
movw %ax, %es movw %ax, %es
// XXX(sbw) we should do something with fs, gs, gs.base // XXX(sbw) we should do something with fs, gs, gs.base
addq $0xe, %rsp // padding
popq %r15 popq %r15
popq %r14 popq %r14
......
...@@ -149,8 +149,8 @@ rcr2(void) ...@@ -149,8 +149,8 @@ rcr2(void)
// Layout of the trap frame built on the stack by the // Layout of the trap frame built on the stack by the
// hardware and by trapasm.S, and passed to trap(). // hardware and by trapasm.S, and passed to trap().
struct trapframe { struct trapframe {
u16 ds;
u16 padding3[7]; u16 padding3[7];
u16 ds;
// amd64 ABI callee saved registers // amd64 ABI callee saved registers
u64 r15; u64 r15;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论