Displaying 2 results from an estimated 2 matches for "go_to_protected_mod".
Did you mean:
go_to_protected_mode
2017 Feb 09
4
Linking Linux kernel with LLD
...ddress) or valid but the thing it thinks it is pointing to wasn't loaded (missing PT_LOAD etc.).
boot_params.hdr.code32_start field is valid :) It is 0x100000, like expected (btw thanks for those links on info how kernel boots, they were pretty useful). I checked it is valid using trace:
void go_to_protected_mode(void)
{
if (boot_params.hdr.code32_start == 0x100000)
puts("go_to_protected_mode 1\n");
else
puts("go_to_protected_mode 2\n");
while (1) {};
I had to use infinite loop here, because QEMU does not crash for me, but do domething what looks like reboot and clears all my trace...
2017 Feb 08
3
Linking Linux kernel with LLD
>I have just checked it, the startup.elf and realmode.elf are fine. Only few changes are required for mainline kernel and one >commit has to be reverted from lld and a few patches have to be applied.
>
>The only step when I have used BFD is linking vmlinux. I have manually set LD variable in vmlinux_link() function. The vmlinux >produced by lld doesn't work yet. I will compare