Fix trapframe size.

master
Yuhao Zhou 6 years ago
parent a2e98d73fd
commit fbc421ee4c

@ -22,8 +22,8 @@ switch_context:
sw s7, 9*4(sp)
sw s8, 10*4(sp)
sw gp, 11*4(sp)
sw ra, 12*4(sp)
sw sp, 13*4(sp)
// sw ra, 12*4(sp)
// sw sp, 13*4(sp)
la s0, _root_page_table_ptr
lw AT, 0(s0)
@ -45,8 +45,6 @@ switch_context:
lw s7, 9*4(sp)
lw s8, 10*4(sp)
lw gp, 11*4(sp)
lw ra, 12*4(sp)
lw sp, 13*4(sp)
addi sp, sp, (4*14)
sw zero, 0(a1)

@ -4,6 +4,8 @@ use mips::registers::cp0;
#[derive(Clone)]
#[repr(C)]
pub struct TrapFrame {
/// unused 16 bytes
pub unused: [usize; 4],
/// CP0 status register
pub status: cp0::status::Status,
/// CP0 cause register

Loading…
Cancel
Save