]> git.ameliathe1st.gay Git - voyage-au-centre-des-fichiers.git/commitdiff
Removed println syscall
authorAmelia Coutard <eliottulio.coutard@gmail.com>
Sat, 5 Aug 2023 23:22:01 +0000 (01:22 +0200)
committerAmelia Coutard <eliottulio.coutard@gmail.com>
Sat, 5 Aug 2023 23:22:01 +0000 (01:22 +0200)
kernel/src/ring3.S
kernel/src/ring3.cpp
kernel/src/ring3.hpp
test_module/src/test.S

index 5551cff649ca06c6cff1aacc2b22a32c58c6f1a8..3019544b0eb2246fe77a350bc44869a0b5d268e7 100644 (file)
@@ -92,10 +92,10 @@ incorrect_syscall:
 .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:
index ddba192c17fd74f19813c1ed200c4c29855f33d9..286a5bf70802d9507f478df353c6ac4fcfb52e71 100644 (file)
@@ -44,11 +44,6 @@ extern "C" void os::syscall_print(char v) {
        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) {
index 78b6cb84cfa5237ce258a519e732c19cb3453aad..66fa2870f8a9ab0b632add96ad447d4346d5c70a 100644 (file)
@@ -45,7 +45,6 @@ extern "C" void load_tss();
 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();
 
index 968868ea7ba5f1d5dd58061b45d54dd766b22f56..be3f7b9cb661c02ad4bdacf146b6c1480f716a9b 100644 (file)
@@ -21,6 +21,6 @@ print:
 
 .globl check_mem
 check_mem:
-       mov $2, %rax
+       mov $1, %rax
        syscall
        ret