syscalls: implement basic execve syscall, no argc, argv, envp support yet
This commit is contained in:
@@ -3,4 +3,10 @@
|
||||
#include "../include/vfs.h"
|
||||
#include "../include/lib9660.h"
|
||||
|
||||
#define DivRoundUp(number, divisor) ((number + divisor - 1) / divisor)
|
||||
|
||||
#define USER_STACK_TOP 0xBFFFFFF0 // Top of user space memory
|
||||
#define USER_STACK_SIZE 0x4000 // 16KB stack (4 pages)
|
||||
#define USER_STACK_BOTTOM (USER_STACK_TOP - USER_STACK_SIZE)
|
||||
|
||||
void exec_from_file(const char* filename, const char* dirname);
|
||||
Reference in New Issue
Block a user