Copy "hello.size" bytes from hello instead of 512, who knows what there is in there...
This commit is contained in:
parent
7b8d30aacd
commit
56ace11bb1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user