Merge basic system calls with stack set-up infrastructure #27

Merged
td1223 merged 31 commits from user-programs into user-programs-stdout 2024-11-06 22:21:28 +00:00
2 changed files with 26 additions and 122 deletions
Showing only changes of commit c0f85a6bcc - Show all commits

View File

@@ -14,6 +14,7 @@ typedef uintptr_t syscall_function (uintptr_t, uintptr_t, uintptr_t);
/* System Call Functions */ /* System Call Functions */
static void halt (void); static void halt (void);
static void exit (int status);
void void
syscall_init (void) syscall_init (void)
@@ -33,3 +34,9 @@ halt (void)
{ {
shutdown_power_off (); shutdown_power_off ();
} }
static void
exit (int status)
{
//TODO
}