patch-base_runtime_include_asm-base_h 746 B

12345678910111213141516171819202122232425
  1. $OpenBSD: patch-base_runtime_include_asm-base_h,v 1.1 2013/12/08 22:24:01 jasper Exp $
  2. Add support for OpenBSD/powerpc.
  3. --- base/runtime/include/asm-base.h.orig Sun Dec 8 20:52:21 2013
  4. +++ base/runtime/include/asm-base.h Sun Dec 8 21:13:52 2013
  5. @@ -126,6 +126,17 @@
  6. # define DOUBLE(V) .double V
  7. # define LABEL(ID) ID:
  8. # define __SC__ @
  9. +
  10. +# elif (defined(OPSYS_OPENBSD) && defined(TARGET_PPC))
  11. +# define CFUNSYM(ID) CSYM(ID)
  12. +# define CGLOBAL(ID) .globl CSYM(ID)
  13. +# define TEXT .text
  14. +# define DATA .data
  15. +# define RO_DATA .data
  16. +# define ALIGN4 .align 2
  17. +# define ALIGN8 .align 3
  18. +# define DOUBLE(V) .double V
  19. +# define LABEL(ID) ID:
  20. # endif
  21. # define CENTRY(ID) \