Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/aarch64/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub struct TrapFrame {
pub spsr: u64,

/// make sure the size is 16 bytes aligned
pub __pad: [u8; 8],
pub __pad: u64,
}

impl fmt::Debug for TrapFrame {
Expand Down
8 changes: 4 additions & 4 deletions src/aarch64/trap.S
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ exception_vector_base:

mrs x8, sp_el0
mrs x9, tpidr_el0
ldp x10, x11, [x1, 33 * 8]
stp x8, x9, [x1, 33 * 8]
ldp x10, x11, [x1, {trapframe_size}]
stp x8, x9, [x1, {trapframe_size}]
mov sp, x10
msr tpidr_el0, x11

Expand All @@ -124,8 +124,8 @@ enter_user:

mov x10, sp
mrs x11, tpidr_el0
ldp x8, x9, [x0, 33 * 8]
stp x10, x11, [x0, 33 * 8]
ldp x8, x9, [x0, {trapframe_size}]
stp x10, x11, [x0,{trapframe_size}]
msr sp_el0, x8
msr tpidr_el0, x9

Expand Down
2 changes: 1 addition & 1 deletion src/aarch64/uspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl UserContext {
+ SPSR_EL1::I::Unmasked
+ SPSR_EL1::F::Masked)
.value,
__pad: [0; 8],
__pad: 0,
},
sp: ustack_top.as_usize() as _,
tpidr: 0,
Expand Down