Keep track of AP count, allocate bigger AP stack, stack trace function
This commit is contained in:
parent
26c86f8242
commit
0d995bfb5c
6 changed files with 57 additions and 37 deletions
|
@ -70,7 +70,7 @@
|
|||
#![feature(question_mark)]
|
||||
#![no_std]
|
||||
|
||||
use arch::interrupt::{enable_interrupts, halt};
|
||||
use arch::interrupt;
|
||||
|
||||
/// Architecture specific items (test)
|
||||
#[cfg(test)]
|
||||
|
@ -107,17 +107,8 @@ pub mod tests;
|
|||
|
||||
#[no_mangle]
|
||||
pub extern fn kmain() {
|
||||
println!("TEST");
|
||||
|
||||
println!("{:?}", syscall::open(b"debug:", 0));
|
||||
println!("{:?}", syscall::open(b"debug:", 0));
|
||||
println!("{:?}", syscall::open(b"debug:", 0));
|
||||
|
||||
loop {
|
||||
unsafe {
|
||||
enable_interrupts();
|
||||
halt();
|
||||
}
|
||||
println!("{:?}", syscall::write(1, b"HALT\n"));
|
||||
unsafe { interrupt::enable_and_halt(); }
|
||||
print!("HALT\n");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue