xen-head.S 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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 <asm/boot.h>
  6. #include <xen/interface/elfnote.h>
  7. ENTRY(startup_xen)
  8. movl %esi,xen_start_info
  9. cld
  10. movl $(init_thread_union+THREAD_SIZE),%esp
  11. jmp xen_start_kernel
  12. .pushsection ".bss.page_aligned"
  13. .align PAGE_SIZE_asm
  14. ENTRY(hypercall_page)
  15. .skip 0x1000
  16. .popsection
  17. ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS, .asciz "linux")
  18. ELFNOTE(Xen, XEN_ELFNOTE_GUEST_VERSION, .asciz "2.6")
  19. ELFNOTE(Xen, XEN_ELFNOTE_XEN_VERSION, .asciz "xen-3.0")
  20. ELFNOTE(Xen, XEN_ELFNOTE_VIRT_BASE, .long __PAGE_OFFSET)
  21. ELFNOTE(Xen, XEN_ELFNOTE_ENTRY, .long startup_xen)
  22. ELFNOTE(Xen, XEN_ELFNOTE_HYPERCALL_PAGE, .long hypercall_page)
  23. ELFNOTE(Xen, XEN_ELFNOTE_FEATURES, .asciz "!writable_page_tables|pae_pgdir_above_4gb")
  24. #ifdef CONFIG_X86_PAE
  25. ELFNOTE(Xen, XEN_ELFNOTE_PAE_MODE, .asciz "yes")
  26. #else
  27. ELFNOTE(Xen, XEN_ELFNOTE_PAE_MODE, .asciz "no")
  28. #endif
  29. ELFNOTE(Xen, XEN_ELFNOTE_LOADER, .asciz "generic")
  30. #endif /*CONFIG_XEN */