mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 08:18:30 +00:00
Make mappings unlimited on NT
This change might also fix fork() in certain cases on NT.
This commit is contained in:
parent
ab64c746cc
commit
34b68f1945
31 changed files with 356 additions and 127 deletions
|
@ -357,10 +357,10 @@ _init_systemfive_stack: # determinism ftw!
|
|||
shr $16,%r11 # for the stack range
|
||||
shr $16,%r9
|
||||
movb $1,(%rcx) # _mmi.i
|
||||
mov %r11d,8(%rcx) # _mmi.p[0].x
|
||||
mov %r9d,12(%rcx) # _mmi.p[0].y
|
||||
mov %edx,20(%rcx) # _mmi.p[0].prot
|
||||
mov %r10d,24(%rcx) # _mmi.p[0].flags
|
||||
mov %r11d,24(%rcx) # _mmi.s[0].x
|
||||
mov %r9d,28(%rcx) # _mmi.s[0].y
|
||||
mov %edx,36(%rcx) # _mmi.s[0].prot
|
||||
mov %r10d,40(%rcx) # _mmi.s[0].flags
|
||||
3: pop %r9 # restore stack size
|
||||
pop %rsi
|
||||
pop %rdi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue