diff --git a/services/gam/src/main.rs b/services/gam/src/main.rs index 5e39bc8ee..da821ef8c 100644 --- a/services/gam/src/main.rs +++ b/services/gam/src/main.rs @@ -224,7 +224,8 @@ fn xmain() -> ! { if debugc{info!("GAM: chatlayout made st {:?} co {:?} pr {:?} in {:?}", chatlayout.status, chatlayout.content, chatlayout.predictive, chatlayout.input);} // make a thread to manage the status bar -- this needs to start after the IMEF is initialized // the status bar is a trusted element managed by the OS, and we are chosing to domicile this in the GAM process for now - xous::create_thread_simple(status_thread, chatlayout.status.gid()).expect("GAM: couldn't create status thread"); + let gid = chatlayout.status.gid(); + xous::create_thread_4(status_thread, gid[0] as _, gid[1] as _, gid[2] as _, gid[3] as _).expect("GAM: couldn't create status thread"); let mut powerdown_requested = false; let mut last_time: u64 = ticktimer_server::elapsed_ms(ticktimer_conn).unwrap(); diff --git a/services/gam/src/status.rs b/services/gam/src/status.rs index d3ad58935..7cfbb2b9b 100644 --- a/services/gam/src/status.rs +++ b/services/gam/src/status.rs @@ -7,7 +7,8 @@ use core::convert::TryFrom; use blitstr_ref as blitstr; -pub fn status_thread(canvas_gid: [u32; 4]) { +pub fn status_thread(canvas_gid_0: usize, canvas_gid_1: usize, canvas_gid_2: usize, canvas_gid_3: usize) { + let canvas_gid = [canvas_gid_0 as u32, canvas_gid_1 as u32, canvas_gid_2 as u32, canvas_gid_3 as u32]; let debug1 = false; let status_gid: Gid = Gid::new(canvas_gid); if debug1{info!("GAM|status: my canvas {:?}", status_gid)}; @@ -114,4 +115,4 @@ pub fn status_thread(canvas_gid: [u32; 4]) { } } -} \ No newline at end of file +}