diff src/std.c @ 54:39fcefab46ed

Modified the init_fs function to take advantage of dynamic memory init_fs (renamed) now takes advantage of dynamic memory and allocates space for exactly as many direntries as it needs to keep track of TODO redo caching to Jeff's far superior idea
author Jonathan Pevarnek <pevarnj@gmail.com>
date Sat, 09 Apr 2011 21:55:59 -0400
parents cced4d365c5e
children 25be3895c62a
line wrap: on
line diff
--- a/src/std.c	Sat Apr 09 11:18:57 2011 -0400
+++ b/src/std.c	Sat Apr 09 21:55:59 2011 -0400
@@ -1,5 +1,12 @@
 #include <std.h>
 
+void init_all(u64 __memsize)
+{
+	init_io_int();
+	init_console();
+	malloc_init(__memsize - HEAP_START);
+}
+
 double abs(double num)
 {
 	if(num < 0) return num*-1;