archparam-ppc.h 892 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __UM_ARCHPARAM_PPC_H
  2. #define __UM_ARCHPARAM_PPC_H
  3. /********* Bits for asm-um/elf.h ************/
  4. #define ELF_PLATFORM (0)
  5. #define ELF_ET_DYN_BASE (0x08000000)
  6. /* the following stolen from asm-ppc/elf.h */
  7. #define ELF_NGREG 48 /* includes nip, msr, lr, etc. */
  8. #define ELF_NFPREG 33 /* includes fpscr */
  9. /* General registers */
  10. typedef unsigned long elf_greg_t;
  11. typedef elf_greg_t elf_gregset_t[ELF_NGREG];
  12. /* Floating point registers */
  13. typedef double elf_fpreg_t;
  14. typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
  15. #define ELF_DATA ELFDATA2MSB
  16. #define ELF_ARCH EM_PPC
  17. /********* Bits for asm-um/hw_irq.h **********/
  18. struct hw_interrupt_type;
  19. /********* Bits for asm-um/hardirq.h **********/
  20. #define irq_enter(cpu, irq) hardirq_enter(cpu)
  21. #define irq_exit(cpu, irq) hardirq_exit(cpu)
  22. /********* Bits for asm-um/string.h **********/
  23. #define __HAVE_ARCH_STRRCHR
  24. #endif