mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
specify the irq return address for irqs
This commit is contained in:
parent
474e8f0822
commit
500a641848
1 changed files with 2 additions and 1 deletions
|
|
@ -579,6 +579,7 @@ impl SystemServices {
|
||||||
pc: *const usize,
|
pc: *const usize,
|
||||||
irq_no: usize,
|
irq_no: usize,
|
||||||
arg: *mut usize,
|
arg: *mut usize,
|
||||||
|
ret_addr: usize,
|
||||||
) -> Result<(), xous_kernel::Error> {
|
) -> Result<(), xous_kernel::Error> {
|
||||||
// Get the current process (which was just interrupted) and mark it as
|
// Get the current process (which was just interrupted) and mark it as
|
||||||
// "ready to run". If this function is called when the current process
|
// "ready to run". If this function is called when the current process
|
||||||
|
|
@ -665,7 +666,7 @@ impl SystemServices {
|
||||||
pid.get() == 1,
|
pid.get() == 1,
|
||||||
pc as usize,
|
pc as usize,
|
||||||
sp,
|
sp,
|
||||||
arch::process::RETURN_FROM_ISR,
|
ret_addr,
|
||||||
&[irq_no, arg as usize],
|
&[irq_no, arg as usize],
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue