annotate cos/hello/liblcfos.c @ 126:bbf4c9b138d4

Changes to elf reading
author Windel Bouwman
date Sun, 13 Jan 2013 12:14:27 +0100
parents a1c9c2158e99
children
rev   line source
38
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
1
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
2 /* Defines all system calls */
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
3
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
4 #include "liblcfos.h"
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
5
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
6 /* Exit program system call */
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
7 void exit()
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
8 {
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
9 //syscall(EXIT);
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
10 }
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
11
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
12 /* Print string to screen */
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
13 void print_string(char *str)
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
14 {
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
15 // TODO:
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
16 // syscall(WRITESTR, str);
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
17 if (str[0] == 0)
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
18 {
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
19 return;
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
20 }
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
21 }
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
22
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
23