From fb00bbac2bd0fab9b8fa026e4f4f9a12e13e10d4 Mon Sep 17 00:00:00 2001 From: boreddevnl Date: Fri, 17 Apr 2026 14:13:44 +0200 Subject: [PATCH] RM: Old userspace/syscall test assembly files --- src/arch/test_syscall.asm | 19 ------------------- src/arch/user_test.asm | 25 ------------------------- 2 files changed, 44 deletions(-) delete mode 100644 src/arch/test_syscall.asm delete mode 100644 src/arch/user_test.asm diff --git a/src/arch/test_syscall.asm b/src/arch/test_syscall.asm deleted file mode 100644 index dde4d86..0000000 --- a/src/arch/test_syscall.asm +++ /dev/null @@ -1,19 +0,0 @@ -; Copyright (c) 2023-2026 Chris (boreddevnl) -; This software is released under the GNU General Public License v3.0. See LICENSE file for details. -; This header needs to maintain in any file it is present in, as per the GPL license terms. -global test_syscall -section .text - -test_syscall: - ; syscall number in RDI - mov rdi, 1 - ; string pointer in RSI - lea rsi, [rel test_msg] - - ; The SYSCALL instruction - syscall - - ret - -section .rodata -test_msg: db "Hello from Syscall!", 10, 0 diff --git a/src/arch/user_test.asm b/src/arch/user_test.asm deleted file mode 100644 index 1c51f02..0000000 --- a/src/arch/user_test.asm +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (c) 2023-2026 Chris (boreddevnl) -; This software is released under the GNU General Public License v3.0. See LICENSE file for details. -; This header needs to maintain in any file it is present in, as per the GPL license terms. -global user_test_function - -section .text -user_test_function: - ; Syscall convention -.loop: - ; Invoke SYS_WRITE (Syscall #1) - mov rdi, 1 ; arg1: fd = 1 (stdout) - lea rsi, [rel msg] ; arg2: buffer (RIP-relative) - mov rdx, 15 ; arg3: length - mov eax, 1 ; syscall_num = 1 (SYS_WRITE) - syscall - - ; Some delay loop - mov rcx, 100000000 -.delay: - dec rcx - jnz .delay - - jmp .loop - -msg: db "Hello syscall!", 10