littlekernel / lk

LK embedded kernel
MIT License
3.17k stars 621 forks source link

[arch][arm] improve arm chainload #305

Closed cleverca22 closed 3 years ago

cleverca22 commented 3 years ago

arch_mmu_map was failing hard, because the identity mapping does not fall within the vmm_get_kernel_aspace

this creates a new aspace covering the loader, so it can identity map

linux is also unable to use the FPU if lazy FPU context switching had turned it off prior to the chainload, arm_fpu_set_enable() is used to turn it back on

travisg commented 3 years ago

LGTM, can you add a bit more in the comment section of the CL describing what you did?

Basically the FPU disabling and the aspace thing?