Copy "hello.size" bytes from hello instead of 512, who knows what there is in there...

This commit is contained in:
apio 2022-09-23 18:03:20 +02:00
parent 7b8d30aacd
commit 56ace11bb1

View File

@ -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);