linux kernel x86 arch how to boot to init
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux kernel x86 arch how to boot to init相关的知识,希望对你有一定的参考价值。
arch/x86/boot/header.S --> _start --> calll main
arch/x86/boot/main.c --> main -- > go_to_protected_mode
arch/x86/boot/pm.c --> go_to_protected_mode --> protected_mode_jump
arch/x86/boot/pmjump.S --> GLOBAL(protected_mode_jump) --> jmpl *%eax
arch/x86/boot/compressed/head_64.S --> ENTRY(startup_32) --> ENTRY(startup_64) --> jmp *%rax
arch/x86/kernel/head_64.S --> startup_64 --> ENTRY(secondary_startup_64) --> lretq (%rax)
arch/x86/kernel/head64.c --> x86_64_start_kernel --> start_kernel
init/main.c --> start_kernel --> rest_init
以上是关于linux kernel x86 arch how to boot to init的主要内容,如果未能解决你的问题,请参考以下文章
嵌入式 Linux开发Kernel移植——kernel内核配置和编译