feat(userspace): add demo ring-3 programs
This commit is contained in:
1 parent
b15dfc048a
commit
d4bc2a209f
4 files changed
+135
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#include "ulib.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
print("hello: greetings from ring 3, pid=");
|
||||
printDec(userGetpid());
|
||||
print("\n");
|
||||
|
||||
userYield();
|
||||
|
||||
print("hello: resumed after yield, exiting cleanly\n");
|
||||
return 7;
|
||||
}
|
||||
Reference in new issue
Block a user