mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
log: use claim_interrupt wrapper
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
9508201db9
commit
672896a1a3
1 changed files with 3 additions and 6 deletions
|
|
@ -37,13 +37,10 @@ fn main() {
|
||||||
|
|
||||||
println!("Process: map success!");
|
println!("Process: map success!");
|
||||||
debug::DEFAULT.enable_rx();
|
debug::DEFAULT.enable_rx();
|
||||||
|
|
||||||
println!("Allocating IRQ...");
|
println!("Allocating IRQ...");
|
||||||
xous::rsyscall(xous::SysCall::ClaimInterrupt(
|
xous::syscall::claim_interrupt(4, handle_irq, 0 as *mut usize)
|
||||||
4,
|
.expect("couldn't claim interrupt");
|
||||||
handle_irq as *mut usize,
|
|
||||||
0 as *mut usize,
|
|
||||||
))
|
|
||||||
.expect("couldn't claim interrupt");
|
|
||||||
|
|
||||||
println!("Allocating a ton of space on the stack...");
|
println!("Allocating a ton of space on the stack...");
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue