1
0
Fork 0

Merge pull request #4415 from wwylele/tls-state

Kernel: correct MemoryState for TLS
This commit is contained in:
Ben 2018-11-11 17:53:18 +01:00 committed by GitHub
commit f43524fff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -353,10 +353,9 @@ ResultVal<SharedPtr<Thread>> KernelSystem::CreateThread(std::string name, VAddr
auto& vm_manager = owner_process.vm_manager; auto& vm_manager = owner_process.vm_manager;
// Map the page to the current process' address space. // Map the page to the current process' address space.
// TODO(Subv): Find the correct MemoryState for this region.
vm_manager.MapBackingMemory(Memory::TLS_AREA_VADDR + available_page * Memory::PAGE_SIZE, vm_manager.MapBackingMemory(Memory::TLS_AREA_VADDR + available_page * Memory::PAGE_SIZE,
Memory::fcram.data() + *offset, Memory::PAGE_SIZE, Memory::fcram.data() + *offset, Memory::PAGE_SIZE,
MemoryState::Private); MemoryState::Locked);
} }
// Mark the slot as used // Mark the slot as used