`sys_hello` is a new syscall that just prints some text in the terminal. `testbin/hellotest` is a userland binary that just calls `sys_hello`
8 lines
124 B
C
8 lines
124 B
C
#include <types.h>
|
|
#include <lib.h>
|
|
#include <syscall.h>
|
|
int sys_hello(void) {
|
|
kprintf("Hello CSE4001!\n");
|
|
return 0;
|
|
}
|