mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 10:23:01 -06:00
kernel/process: Make MapSegment lambda reference parameter const
The segment itself isn't actually modified.
This commit is contained in:
parent
1b6bd9d6df
commit
8f454a5c68
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ void Process::FreeTLSSlot(VAddr tls_address) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Process::LoadModule(CodeSet module_, VAddr base_addr) {
|
void Process::LoadModule(CodeSet module_, VAddr base_addr) {
|
||||||
const auto MapSegment = [&](CodeSet::Segment& segment, VMAPermission permissions,
|
const auto MapSegment = [&](const CodeSet::Segment& segment, VMAPermission permissions,
|
||||||
MemoryState memory_state) {
|
MemoryState memory_state) {
|
||||||
const auto vma = vm_manager
|
const auto vma = vm_manager
|
||||||
.MapMemoryBlock(segment.addr + base_addr, module_.memory,
|
.MapMemoryBlock(segment.addr + base_addr, module_.memory,
|
||||||
|
|
Loading…
Reference in a new issue