diff options
Diffstat (limited to 'libs')
-rw-r--r-- | libs/libc/alloc.c | 8 | ||||
-rw-r--r-- | libs/libc/inc/sys.h | 2 | ||||
-rw-r--r-- | libs/libc/print.c | 2 | ||||
-rw-r--r-- | libs/libc/sys.c | 5 |
4 files changed, 7 insertions, 10 deletions
diff --git a/libs/libc/alloc.c b/libs/libc/alloc.c index 2f8e0ba..4913479 100644 --- a/libs/libc/alloc.c +++ b/libs/libc/alloc.c @@ -403,7 +403,9 @@ void *malloc_debug(u32 size, const char *file, int line, const char *func, const (void)line; (void)func; (void)inp; - /* FUNC(PREFIX "MALLOC\t%s:%d: %s: 0x%x %dB (%s)\n", file, line, func, ret, size, inp); */ + /* #ifdef KERNEL */ + /* FUNC(PREFIX "MALLOC\t%s:%d: %s: 0x%x %dB (%s)\n", file, line, func, ret, size, inp); */ + /* #endif */ return ret; } @@ -415,5 +417,7 @@ void free_debug(void *ptr, const char *file, int line, const char *func, const c (void)line; (void)func; (void)inp; - /* FUNC(PREFIX "FREE\t%s:%d: %s: 0x%x (%s)\n", file, line, func, ptr, inp); */ + /* #ifdef KERNEL */ + /* FUNC(PREFIX "FREE\t%s:%d: %s: 0x%x (%s)\n", file, line, func, ptr, inp); */ + /* #endif */ } diff --git a/libs/libc/inc/sys.h b/libs/libc/inc/sys.h index 58d7969..a9ebf2e 100644 --- a/libs/libc/inc/sys.h +++ b/libs/libc/inc/sys.h @@ -15,7 +15,6 @@ #define SYS_BOOT_SHUTDOWN 0xdead enum sys { - SYS_LOOP, // To infinity and beyond (debug)! SYS_ALLOC, // Allocate memory SYS_SHACCESS, // Access shared memory SYS_FREE, // Free memory @@ -64,7 +63,6 @@ struct stat { * Syscall wrappers */ -void loop(void); void exit(s32 status) NORETURN; res read(const char *path, void *buf, u32 offset, u32 count) NONNULL; res write(const char *path, const void *buf, u32 offset, u32 count) NONNULL; diff --git a/libs/libc/print.c b/libs/libc/print.c index dcaa8cb..425eb01 100644 --- a/libs/libc/print.c +++ b/libs/libc/print.c @@ -251,7 +251,7 @@ NORETURN void panic(const char *format, ...) #ifdef KERNEL print("--- DON'T PANIC! ---\n"); print(buf); - print_trace(5); + print_trace(10); while (1) __asm__ volatile("cli\nhlt"); #else diff --git a/libs/libc/sys.c b/libs/libc/sys.c index 139f523..70dcc97 100644 --- a/libs/libc/sys.c +++ b/libs/libc/sys.c @@ -100,11 +100,6 @@ res shaccess(u32 id, u32 *addr, u32 *size) return sys3(SYS_SHACCESS, (int)id, (int)addr, (int)size); } -void loop(void) -{ - sys0(SYS_LOOP); -} - res read(const char *path, void *buf, u32 offset, u32 count) { return sys4(SYS_READ, (int)path, (int)buf, (int)offset, (int)count); |