patch-src_spsparc64_d 586 B

12345678910111213141516171819202122232425
  1. $OpenBSD: patch-src_spsparc64_d,v 1.1 2010/09/23 13:42:22 joshe Exp $
  2. Using %g1 to pass values across function calls is a bit iffy so make
  3. sure that trying to call _get_g1() results in a linker error.
  4. --- src/spsparc64.d.orig Mon Mar 24 11:23:28 2008
  5. +++ src/spsparc64.d Sun Sep 19 15:03:08 2010
  6. @@ -11,16 +11,8 @@
  7. .global getSP
  8. .global _getSP
  9. - .global _get_g1
  10. - .global __get_g1
  11. # extern void* getSP (void);
  12. getSP:
  13. _getSP: retl
  14. _ mov %sp,%o0
  15. -
  16. -# extern uint32 _get_g1 (void);
  17. -_get_g1:
  18. -__get_g1: retl
  19. - _ srl %g1,0,%o0
  20. -