diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2017-04-14 00:15:49 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2017-04-14 00:15:49 -0500 |
| commit | bf17ee7422d4ebf55b6eeafea6f6a74cabe2441a (patch) | |
| tree | 73719191571a38ee942fc0002481521e3e3e7ebb /src | |
| parent | 398a5ebc5c7ad10e3278aea7ff61da2644c04748 (diff) | |
pass P0 to init, derive GreaterThanOrEqual for U0
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -364,12 +364,14 @@ macro_rules! tasks { }) => { fn main() { $crate::critical(|cmax| { - init(cmax); + let p0 = unsafe { ::core::ptr::read(0x0 as *const P0) }; + init(p0, cmax); set_priorities(); enable_tasks(); }); - idle(unsafe { ::core::ptr::read(0x0 as *const P0) }); + let p0 = unsafe { ::core::ptr::read(0x0 as *const P0) }; + idle(p0); fn set_priorities() { // NOTE(safe) this function runs in an interrupt free context |
