aboutsummaryrefslogtreecommitdiff
path: root/include/uskel.s
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-08-15 11:19:56 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2023-08-15 11:19:56 +0200
commit2e1dfe4b2943fa4339081b8bb1ce03ed9470169d (patch)
tree9de676545f81fd74675b813186400cd1b5fddfde /include/uskel.s
parent27a869869a20047bc1798a16bf87b3b4970c5f2d (diff)
downloaduskel-2e1dfe4b2943fa4339081b8bb1ce03ed9470169d.tar.gz
uskel-2e1dfe4b2943fa4339081b8bb1ce03ed9470169d.tar.bz2
unify stuffs
Diffstat (limited to 'include/uskel.s')
-rw-r--r--include/uskel.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uskel.s b/include/uskel.s
index 136b382..34ee63a 100644
--- a/include/uskel.s
+++ b/include/uskel.s
@@ -20,10 +20,10 @@ _memory_state:
_uskel_alloc_basic_mem:
mov $0x100000, %r15 # desired size
- mov $0x9, %rax # mmap
+ mov $9, %rax # mmap
mov $0, %rdi # addr = NULL
mov %r15, %rsi # len = %rcx
- mov $0x3, %rdx # prot = PROT_READ 0x1 | PROT_WRITE 0x2
+ mov $0b11, %rdx # prot = PROT_READ 0b1 | PROT_WRITE 0b10
mov $0x22, %r10 # flags = MAP_PRIVATE 0x2 | MAP_ANONYMOUS 0x20
mov $-1, %r8 # fd = -1
mov $0, %r9 # off = 0