mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
macros: call xous::init() at init-time
This allows for hooking things like the panic handler. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
ef33cc577f
commit
ca32e4f9c1
1 changed files with 2 additions and 0 deletions
|
|
@ -94,8 +94,10 @@ pub fn xous_main(args: TokenStream, input: TokenStream) -> TokenStream {
|
||||||
#[export_name = "xous_entry"]
|
#[export_name = "xous_entry"]
|
||||||
#(#attrs)*
|
#(#attrs)*
|
||||||
pub #unsafety fn #hash() -> ! {
|
pub #unsafety fn #hash() -> ! {
|
||||||
|
xous::init();
|
||||||
#(#stmts)*
|
#(#stmts)*
|
||||||
}
|
}
|
||||||
|
|
||||||
xous::maybe_main!();
|
xous::maybe_main!();
|
||||||
);
|
);
|
||||||
r.into()
|
r.into()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue