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);
|
||||
@@ -19,4 +19,6 @@ size_t vfs_read_file_length(l9660_file *file, uint8_t* buffer, size_t length);
|
||||
|
||||
void test_iso9660();
|
||||
|
||||
int vsf_read_file_by_path(const char* path, uint8_t** buffer, l9660_dir* dir);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user