start.s 269 B

12345678910111213141516171819202122232425
  1. .global _start
  2. .global header
  3. .type _start, @function
  4. .extern main
  5. .extern __kernel_size
  6. .section .kern_head
  7. header:
  8. .ascii "nyan"
  9. .long __kernel_size
  10. .section .text
  11. .type _start, @function
  12. _start:
  13. movl $0x7c00, %esp
  14. movl %esp, %ebp
  15. call main
  16. cli
  17. hlt