Sync with upstream Tock to remove the latest patch.
This commit is contained in:
@@ -295,7 +295,7 @@ index ece4a443..9a1afc84 100644
|
||||
}
|
||||
+
|
||||
+ pub fn in_writeable_flash_region(&self, ptr: usize, len: usize) -> bool {
|
||||
+ self.kernel.process_map_or(false, self.idx, |process| {
|
||||
+ self.kernel.process_map_or(false, *self, |process| {
|
||||
+ let ptr = match ptr.checked_sub(process.flash_start() as usize) {
|
||||
+ None => return false,
|
||||
+ Some(ptr) => ptr,
|
||||
|
||||
Reference in New Issue
Block a user