mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +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"]
|
||||
#(#attrs)*
|
||||
pub #unsafety fn #hash() -> ! {
|
||||
xous::init();
|
||||
#(#stmts)*
|
||||
}
|
||||
|
||||
xous::maybe_main!();
|
||||
);
|
||||
r.into()
|
||||
|
|
|
|||
Loading…
Reference in a new issue