diff options
author | dzwdz | 2022-07-16 19:35:05 +0200 |
---|---|---|
committer | dzwdz | 2022-07-16 19:35:05 +0200 |
commit | b26098268eb443f1ed3dc50d902b2beee40c8342 (patch) | |
tree | 1b7bf720cde8e68fe1f446a414f38f4f63175227 /src/user/app/main.c | |
parent | ce80ee8d40b0a2b48bfbbceac9a0baee189c5e1b (diff) |
amd64: seemingly working syscalls (SYSCALL/SYSRET)
Diffstat (limited to 'src/user/app/main.c')
-rw-r--r-- | src/user/app/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/user/app/main.c b/src/user/app/main.c index ff47d4e..92aa56c 100644 --- a/src/user/app/main.c +++ b/src/user/app/main.c @@ -16,6 +16,7 @@ void read_file(const char *path, size_t len); __attribute__((section(".text.startup"))) int main(void) { + _syscall(1, 2, 3, 4, 5); // allocate bss _syscall_memflag(&_bss_start, &_bss_end - &_bss_start, MEMFLAG_PRESENT); |