summaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-01-20 17:59:40 -0500
committerBenji Dial <benji@benjidial.net>2024-01-20 17:59:40 -0500
commit7199e74aa22e592a3b77bdd81f735edca5470596 (patch)
tree66e935372acc5d6e013f764965f2a9d81814f809 /stdlib
parent53135e2592c21cb9b2609bf95242aaf1f19233da (diff)
downloadhilbert-os-7199e74aa22e592a3b77bdd81f735edca5470596.tar.gz
update
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/entry.cpp14
-rw-r--r--stdlib/syscall.asm30
2 files changed, 0 insertions, 44 deletions
diff --git a/stdlib/entry.cpp b/stdlib/entry.cpp
deleted file mode 100644
index 5557c8a..0000000
--- a/stdlib/entry.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-int main(int argc, char **argv);
-
-extern "C" [[noreturn]] void _entry() {
- //TODO: get command line via system call and populate argc and argv.
- int argc = 0;
- char **argv = 0;
-
- int result = main(argc, argv);
-
- //TODO: exit via system call and return result.
- (void)result;
- while (1)
- ;
-}
diff --git a/stdlib/syscall.asm b/stdlib/syscall.asm
deleted file mode 100644
index 922ca1b..0000000
--- a/stdlib/syscall.asm
+++ /dev/null
@@ -1,30 +0,0 @@
-bits 64
-
-global encode_color
-global get_framebuffer
-global draw_framebuffer
-
-section .text
-
-encode_color:
- mov rax, 0
- syscall
- ret
-
-get_framebuffer:
- push rcx
- push rdx
- push rsi
- push rdi
- mov rax, 1
- syscall
- pop rcx
- mov qword [rcx], rax
- pop rcx
- mov dword [rcx], edi
- shr rdi, 32
- pop rcx
- mov dword [rcx], edi
- pop rcx
- mov dword [rcx], esi
- ret