xen-head.S 1.0 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 <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 .text
  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. ELFNOTE(Xen, XEN_ELFNOTE_PAE_MODE, .asciz "yes")
  28. ELFNOTE(Xen, XEN_ELFNOTE_LOADER, .asciz "generic")
  29. #endif /*CONFIG_XEN */