mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
Kernel: Implement very simple kernel module loading
It's now possible to load a .o file into the kernel via a syscall. The kernel will perform all the necessary ELF relocations, and then call the "module_init" symbol in the loaded module.
This commit is contained in:
parent
c10a5ac4ad
commit
6b150c794a
11 changed files with 198 additions and 3 deletions
|
@ -220,6 +220,8 @@ public:
|
|||
int sys$realpath(const char* pathname, char*, size_t);
|
||||
ssize_t sys$getrandom(void*, size_t, unsigned int);
|
||||
int sys$setkeymap(char* map, char* shift_map, char* alt_map);
|
||||
int sys$module_load(const char* path, size_t path_length);
|
||||
int sys$module_unload(const char* name, size_t name_length);
|
||||
|
||||
static void initialize();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue