mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
loader: fix kernel text section ownership
The text section of the kernel should be owned by the kernel itself. Due to a typo, only the last page of the text section was being marked as owned by the text section. This marks the remainder of the section as being owned by the kernel. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
b6a774742c
commit
71dd57f5e0
1 changed files with 1 additions and 1 deletions
|
|
@ -468,7 +468,7 @@ impl ProgramDescription {
|
|||
self.text_offset as usize + offset,
|
||||
flag_defaults | FLG_X,
|
||||
);
|
||||
allocator.change_owner(pid as XousPid, load_offset + offset);
|
||||
allocator.change_owner(pid as XousPid, load_offset + offset + rounded_data_bss);
|
||||
}
|
||||
|
||||
// Map the process data section into RAM.
|
||||
|
|
|
|||
Loading…
Reference in a new issue