Changeset c05290e in mainline
- Timestamp:
- 2006-03-17T01:31:55Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 11a4fbf
- Parents:
- 11eae82
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
init/init.c
r11eae82 rc05290e 33 33 #include <stdlib.h> 34 34 #include <ns.h> 35 35 #include <thread.h> 36 37 extern void utest(void *arg); 38 void utest(void *arg) 39 { 40 // printf("Uspace thread created.\n"); 41 for (;;) 42 ; 43 } 36 44 37 45 static void test_printf(void) … … 177 185 int main(int argc, char *argv[]) 178 186 { 187 int tid; 188 char *stack; 179 189 version_print(); 180 190 … … 184 194 // test_advanced_ipc(); 185 195 test_connection_ipc(); 196 197 stack = (char *) malloc(getpagesize()); 198 if (!stack) { 199 printf("Malloc failed.\n"); 200 } else { 201 if ((tid = thread_create(utest, NULL, stack, "utest") != -1)) { 202 printf("Created thread tid=%d\n", tid); 203 } 204 } 205 186 206 return 0; 187 207 } -
libc/Makefile
r11eae82 rc05290e 44 44 generic/mmap.c \ 45 45 generic/string.c \ 46 generic/thread.c \ 46 47 generic/io/io.c \ 47 48 generic/io/print.c \ -
libc/generic/libc.c
r11eae82 rc05290e 29 29 #include <libc.h> 30 30 #include <unistd.h> 31 #include <thread.h> 31 32 32 33 void _exit(int status) { 33 __SYSCALL0(SYS_CTL);34 thread_exit(status); 34 35 } 35 36
Note:
See TracChangeset
for help on using the changeset viewer.