Changeset c05290e in mainline for init/init.c
- 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
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.