Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiyuanSue committed Dec 6, 2024
1 parent 62f79cb commit 36c835f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions kernel/src/syscall/invocation/decode/arch/aarch64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ fn decode_frame_invocation(
call: bool,
buffer: &seL4_IPCBuffer,
) -> exception_t {
// sel4_common::println!("decode frame invocation {}",label as usize);
match label {
MessageLabel::ARMPageMap => decode_frame_map(length, frame_slot, buffer),
MessageLabel::ARMPageUnmap => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub fn decode_cnode_invocation(
capability: &cap_cnode_cap,
buffer: &seL4_IPCBuffer,
) -> exception_t {
// sel4_common::println!("decode cnode invocation {}",invLabel as usize);
if invLabel < MessageLabel::CNodeRevoke || invLabel as usize > CNODE_LAST_INVOCATION {
debug!("CNodeCap: Illegal Operation attempted.");
unsafe {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn decode_sched_context_invocation(
capability: &cap_sched_context_cap,
buffer: &seL4_IPCBuffer,
) -> exception_t {
println!("go into decode sched context invocation");
// println!("go into decode sched context invocation");
let sc = convert_to_mut_type_ref::<sched_context_t>(capability.get_capSCPtr() as usize);
match inv_label {
MessageLabel::SchedContextConsumed => {
Expand Down
2 changes: 1 addition & 1 deletion kernel/src/syscall/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ pub fn handleSyscall(_syscall: usize) -> exception_t {
// if hart_id() == 0 {
// debug!("handle syscall: {}", syscall);
// }
// sel4_common::println!("handle syscall");
// sel4_common::println!("handle syscall {}",syscall);
updateTimestamp();
if likely(checkBudgetRestart()) {
match syscall {
Expand Down
1 change: 1 addition & 0 deletions sel4_cspace/src/cte.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ impl cte_t {
ret.capability = capability.clone();
}
}
#[cfg(not(feature="KERNEL_MCS"))]
cap_tag::cap_reply_cap => {
ret.capability = cap_null_cap::new().unsplay();
}
Expand Down

0 comments on commit 36c835f

Please sign in to comment.