From ef6e45658a4ffb3dfc5a0353cc5a6aaca7f46081 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 4 Jan 2022 11:37:06 +0800 Subject: [PATCH] add comment to remind about alignment requirements of regions --- xous-rs/src/definitions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xous-rs/src/definitions.rs b/xous-rs/src/definitions.rs index e56f108f8..18937f691 100644 --- a/xous-rs/src/definitions.rs +++ b/xous-rs/src/definitions.rs @@ -29,7 +29,7 @@ pub const LOADER_TOTAL_LEN: u32 = LOADER_CODE_LEN + LOADER_FONT_LEN; // code + f pub const KERNEL_LOC: u32 = 0x0098_0000; // kernel start pub const KERNEL_LEN: u32 = 0x0068_0000; // max kernel length -pub const EC_REGION_LOC: u32 = 0x07F8_0000; // EC update staging area +pub const EC_REGION_LOC: u32 = 0x07F8_0000; // EC update staging area. Must be aligned to a 64k-address. pub const EC_WF200_PKG_LOC: u32 = 0x07F8_0000; pub const EC_WF200_PKG_LEN: u32 = 0x0004_E000; pub const EC_FW_PKG_LOC: u32 = 0x07FC_E000; @@ -37,7 +37,7 @@ pub const EC_FW_PKG_LEN: u32 = 0x0003_2000; pub const EC_REGION_LEN: u32 = 0x0008_0000; pub const PDDB_LOC: u32 = 0x0100_0000; // PDDB start -pub const PDDB_LEN: u32 = EC_REGION_LOC - PDDB_LOC; +pub const PDDB_LEN: u32 = EC_REGION_LOC - PDDB_LOC; // must be 64k-aligned (bulk erase block size) for proper function. #[cfg(all(any(windows, unix), not(feature = "processes-as-threads")))] use core::sync::atomic::AtomicU64;