From 56ace11bb10c5d52c087b968bb98c1e2c52f2fcc Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 23 Sep 2022 18:03:20 +0200 Subject: [PATCH] Copy "hello.size" bytes from hello instead of 512, who knows what there is in there... --- kernel/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/main.cpp b/kernel/src/main.cpp index 9328d449..21dcd53d 100644 --- a/kernel/src/main.cpp +++ b/kernel/src/main.cpp @@ -134,7 +134,7 @@ extern "C" void _start() InitRD::File hello = InitRD::open("sys/Hello.bin"); kernelVMM.map(0x7000, (uint64_t)kernelPMM.request_page(), MAP_USER); - memcpy((void*)0x7000, hello.addr, 512); + memcpy((void*)0x7000, hello.addr, hello.size); Scheduler::add_user_task((void*)0x7000);