Sync with upstream Tock to remove the latest patch.

This commit is contained in:
Guillaume Endignoux
2020-03-05 11:24:07 +01:00
parent e52a671810
commit bf9e3620ec
3 changed files with 2 additions and 48 deletions

View File

@@ -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,