添加per cpu变量支持 (#327)

This commit is contained in:
LoGin
2023-08-13 16:28:24 +08:00
committed by GitHub
parent 42c97fa7f4
commit c3dad0011d
5 changed files with 97 additions and 5 deletions

View File

@ -78,7 +78,7 @@ impl Syscall {
if new_addr == address_space.brk {
return Ok(address_space.brk);
}
unsafe {
address_space
.set_brk(VirtAddr::new(page_align_up(new_addr.data())))