Configure the number of pages in the board
This permits to have portable apps.
This commit is contained in:
committed by
Julien Cretin
parent
c1f2551d0d
commit
2d5fdd1034
@@ -66,7 +66,8 @@ static mut PROCESSES: [Option<&'static dyn kernel::procs::ProcessType>; NUM_PROC
|
||||
|
||||
static mut STORAGE_LOCATIONS: [kernel::StorageLocation; 1] = [kernel::StorageLocation {
|
||||
address: 0xC0000,
|
||||
size: 0x40000,
|
||||
size: 0x14000, // NUM_PAGES = 20
|
||||
unallocated_size: 0x40000, // MPU limitation
|
||||
storage_type: kernel::StorageType::STORE,
|
||||
}];
|
||||
|
||||
|
||||
@@ -60,7 +60,8 @@ static mut PROCESSES: [Option<&'static dyn kernel::procs::ProcessType>; NUM_PROC
|
||||
|
||||
static mut STORAGE_LOCATIONS: [kernel::StorageLocation; 1] = [kernel::StorageLocation {
|
||||
address: 0xC0000,
|
||||
size: 0x40000,
|
||||
size: 0x14000, // NUM_PAGES = 20
|
||||
unallocated_size: 0x40000, // MPU limitation
|
||||
storage_type: kernel::StorageType::STORE,
|
||||
}];
|
||||
|
||||
|
||||
@@ -130,7 +130,8 @@ static mut PROCESSES: [Option<&'static dyn kernel::procs::ProcessType>; NUM_PROC
|
||||
|
||||
static mut STORAGE_LOCATIONS: [kernel::StorageLocation; 1] = [kernel::StorageLocation {
|
||||
address: 0xC0000,
|
||||
size: 0x40000,
|
||||
size: 0x14000, // NUM_PAGES = 20
|
||||
unallocated_size: 0x40000, // MPU limitation
|
||||
storage_type: kernel::StorageType::STORE,
|
||||
}];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user