diff --git a/syscall.asm b/syscall.asm index d5dde30..e58a2e3 100644 --- a/syscall.asm +++ b/syscall.asm @@ -181,7 +181,7 @@ sys_mmap_mem: mov rdx, MMAP_PROT_READ | MMAP_PROT_WRITE ;Protection Flags mov r10, MMAP_MAP_PRIVATE | MMAP_MAP_ANON ;Flags xor r8, r8 - dec r8 ;-1 fd becasue of MMAP_MAP_ANON + dec r8 ;-1 fd because of MMAP_MAP_ANON xor r9, r9 ;Offset mov rax, SYS_MMAP syscall @@ -195,7 +195,7 @@ sys_mmap_stack: mov rdx, MMAP_PROT_READ | MMAP_PROT_WRITE ;Protection Flags mov r10, MMAP_MAP_PRIVATE | MMAP_MAP_ANON | MMAP_MAP_GROWSDOWN ;Flags xor r8, r8 - dec r8 ;-1 fd becasue of MMAP_MAP_ANON + dec r8 ;-1 fd because of MMAP_MAP_ANON xor r9, r9 ;Offset mov rax, SYS_MMAP syscall