xen-head.S 1.1 KB

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