Use native syscalls instead of interrupt-based ones, move syscall from

driver to arch, and add x86_64 specific native syscalls.
This commit is contained in:
csd4ni3l
2026-04-19 22:43:20 +02:00
parent f4c2657b94
commit e1c2373691
10 changed files with 174 additions and 73 deletions
+3 -3
View File
@@ -2,8 +2,9 @@ use core::ptr::null;
use x86_64::structures::paging::OffsetPageTable;
use crate::driver::{
elf::{
use crate::{
arch::syscall::{malloc, memset},
driver::elf::{
header::{
ET_DYN, ET_EXEC, ET_REL, Elf64Ehdr, Elf64Rel, Elf64Shdr, SHF_ALLOC, SHT_NOBITS, SHT_REL,
},
@@ -12,7 +13,6 @@ use crate::driver::{
section::elf_sheader,
validation::validate_elf,
},
syscall::{malloc, memset},
};
pub fn load_file(mapper: &mut OffsetPageTable, elf_bytes: &[u8]) -> (*const u8, u64) {