Makefile: add module support
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
7cc7da0f54
commit
9fed595abc
7 changed files with 50 additions and 17 deletions
|
|
@ -21,14 +21,6 @@ size_t strlen(const char *c)
|
|||
|
||||
void _start()
|
||||
{
|
||||
int fd = open("/dev/ttyS0", 0);
|
||||
if (fd < 0)
|
||||
goto loop;
|
||||
|
||||
char msg[] = "Hello, userspace!\n";
|
||||
write(fd, msg, strlen(msg));
|
||||
|
||||
loop:
|
||||
while (1)
|
||||
continue;
|
||||
;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue