xen-head.S 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Xen-specific pieces of head.S, intended to be included in the right
  2. place in head.S */
  3. #ifdef CONFIG_XEN
  4. #include <linux/elfnote.h>
  5. #include <linux/init.h>
  6. #include <asm/boot.h>
  7. #include <xen/interface/elfnote.h>
  8. __INIT
  9. ENTRY(startup_xen)
  10. movl %esi,xen_start_info
  11. cld
  12. movl $(init_thread_union+THREAD_SIZE),%esp
  13. jmp xen_start_kernel
  14. __FINIT
  15. .pushsection .bss.page_aligned
  16. .align PAGE_SIZE_asm
  17. ENTRY(hypercall_page)
  18. .skip 0x1000
  19. .popsection
  20. ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS, .asciz "linux")
  21. ELFNOTE(Xen, XEN_ELFNOTE_GUEST_VERSION, .asciz "2.6")
  22. ELFNOTE(Xen, XEN_ELFNOTE_XEN_VERSION, .asciz "xen-3.0")
  23. ELFNOTE(Xen, XEN_ELFNOTE_VIRT_BASE, .long __PAGE_OFFSET)
  24. ELFNOTE(Xen, XEN_ELFNOTE_ENTRY, .long startup_xen)
  25. ELFNOTE(Xen, XEN_ELFNOTE_HYPERCALL_PAGE, .long hypercall_page)
  26. ELFNOTE(Xen, XEN_ELFNOTE_FEATURES, .asciz "!writable_page_tables|pae_pgdir_above_4gb")
  27. #ifdef CONFIG_X86_PAE
  28. ELFNOTE(Xen, XEN_ELFNOTE_PAE_MODE, .asciz "yes")
  29. #else
  30. ELFNOTE(Xen, XEN_ELFNOTE_PAE_MODE, .asciz "no")
  31. #endif
  32. ELFNOTE(Xen, XEN_ELFNOTE_LOADER, .asciz "generic")
  33. #endif /*CONFIG_XEN */