diff --git a/Makefile b/Makefile index a703d221..050f0403 100644 --- a/Makefile +++ b/Makefile @@ -79,7 +79,7 @@ toaruos-initrd: initrd/boot/kernel initrd/boot/stage2 initrd/bs.bmp ${BINARIES} @${ECHO} -n "\033[32m initrd Generating initial RAM disk\033[0m" @# Get rid of the old one @-rm -f toaruos-initrd - @${GENEXT} -d initrd -q -b 1024 toaruos-initrd + @${GENEXT} -d initrd -q -b 4096 toaruos-initrd @${ECHO} "\r\033[32;1m initrd Generated initial RAM disk image\033[0m" @${ECHO} "\033[34;1m -- HDD image is ready!\033[0m" diff --git a/kernel/core/elf.c b/kernel/core/elf.c index c09da157..6df0145f 100644 --- a/kernel/core/elf.c +++ b/kernel/core/elf.c @@ -107,6 +107,7 @@ exec( current_task->heap = heap; /* heap end */ current_task->heap_a = heap + (0x1000 - heap % 0x1000); current_task->stack = 0x100F0000; + current_task->next_fd = 3; /* Go go go */ enter_user_jmp(entry, argc, argv_, 0x100EFFFF);