From b26098268eb443f1ed3dc50d902b2beee40c8342 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 16 Jul 2022 19:35:05 +0200 Subject: amd64: seemingly working syscalls (SYSCALL/SYSRET) --- src/user/app/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/user/app') 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); -- cgit v1.2.3