entry.S 624 B

12345678910111213141516
  1. /* Canonical kernel entry: the first instruction of the kernel for every boot
  2. * path (vesa_stage.S jumps here; the kexec paths use this symbol as the
  3. * transfer entry, see the dev/net-dev targets).
  4. *
  5. * It exists so a kernel reload cannot inherit a stale stack: the jumping
  6. * kernel's trampoline (kexec_tramp.S) copies the new image over this one
  7. * while running on its own private stack, then jumps here. Re-pointing ESP
  8. * before any stack use makes the reload independent of where either build
  9. * put its stacks. */
  10. .code32
  11. .text
  12. .globl kernel_entry
  13. kernel_entry:
  14. movl $__boot_stack_top, %esp
  15. jmp kernel_main