multiboot
E. Almqvist 3 years ago
parent 9074026332
commit d41dea837b
  1. 3
      kernel/kernel.c
  2. 2
      kernel/memory.c

@ -25,6 +25,9 @@ void init() {
println("0x1000", DEFAULT_COLOR);
*/
char* malloctest = pm_malloc(2); // allocate two blocks
char* intbuf = "xxxx";
int num = 1234;

@ -113,7 +113,7 @@ pointer pm_malloc(uint block_count) {
lower = find_free(block_count);
if( lower < 0 )
println("malloc: OUT OF MEMORY", URGENT_COLOR);
println("malloc: OUT OF MEMORY :(", URGENT_COLOR);
// do some out-of-memory interupt
return 0x0;

Loading…
Cancel
Save