From cdb60eed0f32c3fd83364c9affa67f921415cd22 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 30 Sep 2025 21:52:45 +0800 Subject: [PATCH] update the static table definition --- libs/bao1x-api/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/bao1x-api/src/lib.rs b/libs/bao1x-api/src/lib.rs index a9b96d444..66cc5eb4e 100644 --- a/libs/bao1x-api/src/lib.rs +++ b/libs/bao1x-api/src/lib.rs @@ -83,9 +83,10 @@ pub struct StaticsInRom { pub data_size_bytes: u32, // poke table of values to stick in the data segment. This is needed in particular // to initialize `static` variables, such as Atomics and Mutexes, required by the - // loader environment. Presented as (address, data) tuples, up to 30 of them. + // loader environment. Presented as (address, data) tuples, up to 40 of them. // Only entries from [0..valid_pokes] are processed. - pub poke_table: [(u32, u32); 30], + // The addresses and data are packed as u8's to avoid padding of the record. + pub poke_table: [([u8; 2], [u8; 4]); 40], } impl StaticsInRom {