xous: hosted: set the thread ID to 1 at startup

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-08-16 12:23:33 +08:00
parent d126108412
commit c15cd45d64

View file

@ -66,7 +66,7 @@ macro_rules! maybe_main {
fn main() {
#[cfg(not(target_os = "xous"))]
xous::arch::ensure_connection().unwrap();
xous::arch::set_thread_id(1);
unsafe { xous_entry() };
}
};