.section .rodata
syscalls_call_table:
.quad syscall_print
- .quad syscall_println
.quad syscall_print_low_mmap
-.set syscall_n, 3
-process_struct_table: .quad 0xFFFFC00000000000
+syscalls_call_table_end:
+.set syscall_n, (syscalls_call_table_end - syscalls_call_table) >> 3 # Because / 8 *doesn't work* !
+.globl syscall_n
.section .data
save_regs_tmp:
os::printc(v);
}
-extern "C" void os::syscall_println(char v) {
- os::printc(v);
- os::printc('\n');
-}
-
extern "C" void os::syscall_print_low_mmap() {
os::paging::on_all_pages(*get_process(current_pid).PML4T,
[](os::paging::page* vaddr, os::phys_ptr<os::paging::page> paddr, std::size_t page_size_in_bytes) {
extern "C" void syscall_64bit_handler();
extern "C" void syscall_print(char c);
-extern "C" void syscall_println(char c);
extern "C" void syscall_print_low_mmap();
extern "C" void syscall_rax_error_handler();
.globl check_mem
check_mem:
- mov $2, %rax
+ mov $1, %rax
syscall
ret