_spl.S 317 B

123456789101112131415161718
  1. /* these are intended to be called from library functions ONLY.
  2. * at some point, we can make it all more efficient, but for now,
  3. * let's make it correct.
  4. */
  5. /* int _splhi() */
  6. .globl _splhi
  7. _splhi:
  8. li a0, 0
  9. csrrc a0, 0x100, a0
  10. ret
  11. /* int _spllo() */
  12. .globl _spllo
  13. _spllo:
  14. li a0, 0
  15. csrrs a0, 0x100, a0
  16. ret