mca_drv_asm.S 921 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * File: mca_drv_asm.S
  3. * Purpose: Assembly portion of Generic MCA handling
  4. *
  5. * Copyright (C) 2004 FUJITSU LIMITED
  6. * Copyright (C) Hidetoshi Seto (seto.hidetoshi@jp.fujitsu.com)
  7. */
  8. #include <linux/config.h>
  9. #include <linux/threads.h>
  10. #include <asm/asmmacro.h>
  11. #include <asm/processor.h>
  12. GLOBAL_ENTRY(mca_handler_bhhook)
  13. invala // clear RSE ?
  14. ;; //
  15. cover //
  16. ;; //
  17. clrrrb //
  18. ;;
  19. alloc r16=ar.pfs,0,2,1,0 // make a new frame
  20. ;;
  21. mov r13=IA64_KR(CURRENT) // current task pointer
  22. ;;
  23. adds r12=IA64_TASK_THREAD_KSP_OFFSET,r13
  24. ;;
  25. ld8 r12=[r12] // stack pointer
  26. ;;
  27. mov loc0=r16
  28. movl loc1=mca_handler_bh // recovery C function
  29. ;;
  30. mov out0=r8 // poisoned address
  31. mov b6=loc1
  32. ;;
  33. mov loc1=rp
  34. ;;
  35. br.call.sptk.many rp=b6 // not return ...
  36. ;;
  37. mov ar.pfs=loc0
  38. mov rp=loc1
  39. ;;
  40. mov r8=r0
  41. br.ret.sptk.many rp
  42. ;;
  43. END(mca_handler_bhhook)