diff syscalls.c @ 23:2bce4dbf52b8

Use CR/LF to printfs (should probably do the conversion in _write)
author Daniel O'Connor <darius@dons.net.au>
date Sat, 17 Nov 2012 12:15:17 +1030
parents 74e9b3baac1e
children 435c6330896c
line wrap: on
line diff
--- a/syscalls.c	Sat Nov 17 12:14:38 2012 +1030
+++ b/syscalls.c	Sat Nov 17 12:15:17 2012 +1030
@@ -28,7 +28,8 @@
 
 void
 _exit(int status) {
-    printf("_exit called with parameter %d\n", status);
+    printf("_exit called with parameter %d\r\n", status);
+    __disable_irq();
     while(1)
 	;
 }
@@ -62,7 +63,7 @@
     prev_heap_end = heap_end;
 
     if (heap_end + incr > get_stack_top()) {
-	printf("Heap and stack collision\n");
+	printf("Heap and stack collision\r\n");
 	abort();
     }