Add sys_hello and testbin/hellotest
`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`
This commit is contained in:
11
userland/testbin/hellotest/Makefile
Normal file
11
userland/testbin/hellotest/Makefile
Normal file
@@ -0,0 +1,11 @@
|
||||
# Makefile for hello
|
||||
|
||||
TOP=../../..
|
||||
.include "$(TOP)/mk/os161.config.mk"
|
||||
|
||||
PROG=hellotest
|
||||
SRCS=hello.c
|
||||
BINDIR=/testbin
|
||||
|
||||
.include "$(TOP)/mk/os161.prog.mk"
|
||||
|
||||
8
userland/testbin/hellotest/hello.c
Normal file
8
userland/testbin/hellotest/hello.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <unistd.h>
|
||||
|
||||
extern int hello(void);
|
||||
|
||||
int main() {
|
||||
hello();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user