entry.S 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  1. /*
  2. * arch/alpha/kernel/entry.S
  3. *
  4. * Kernel entry-points.
  5. */
  6. #include <asm/asm-offsets.h>
  7. #include <asm/thread_info.h>
  8. #include <asm/pal.h>
  9. #include <asm/errno.h>
  10. #include <asm/unistd.h>
  11. .text
  12. .set noat
  13. /* Stack offsets. */
  14. #define SP_OFF 184
  15. #define SWITCH_STACK_SIZE 320
  16. /*
  17. * This defines the normal kernel pt-regs layout.
  18. *
  19. * regs 9-15 preserved by C code
  20. * regs 16-18 saved by PAL-code
  21. * regs 29-30 saved and set up by PAL-code
  22. * JRP - Save regs 16-18 in a special area of the stack, so that
  23. * the palcode-provided values are available to the signal handler.
  24. */
  25. #define SAVE_ALL \
  26. subq $sp, SP_OFF, $sp; \
  27. stq $0, 0($sp); \
  28. stq $1, 8($sp); \
  29. stq $2, 16($sp); \
  30. stq $3, 24($sp); \
  31. stq $4, 32($sp); \
  32. stq $28, 144($sp); \
  33. lda $2, alpha_mv; \
  34. stq $5, 40($sp); \
  35. stq $6, 48($sp); \
  36. stq $7, 56($sp); \
  37. stq $8, 64($sp); \
  38. stq $19, 72($sp); \
  39. stq $20, 80($sp); \
  40. stq $21, 88($sp); \
  41. ldq $2, HAE_CACHE($2); \
  42. stq $22, 96($sp); \
  43. stq $23, 104($sp); \
  44. stq $24, 112($sp); \
  45. stq $25, 120($sp); \
  46. stq $26, 128($sp); \
  47. stq $27, 136($sp); \
  48. stq $2, 152($sp); \
  49. stq $16, 160($sp); \
  50. stq $17, 168($sp); \
  51. stq $18, 176($sp)
  52. #define RESTORE_ALL \
  53. lda $19, alpha_mv; \
  54. ldq $0, 0($sp); \
  55. ldq $1, 8($sp); \
  56. ldq $2, 16($sp); \
  57. ldq $3, 24($sp); \
  58. ldq $21, 152($sp); \
  59. ldq $20, HAE_CACHE($19); \
  60. ldq $4, 32($sp); \
  61. ldq $5, 40($sp); \
  62. ldq $6, 48($sp); \
  63. ldq $7, 56($sp); \
  64. subq $20, $21, $20; \
  65. ldq $8, 64($sp); \
  66. beq $20, 99f; \
  67. ldq $20, HAE_REG($19); \
  68. stq $21, HAE_CACHE($19); \
  69. stq $21, 0($20); \
  70. 99:; \
  71. ldq $19, 72($sp); \
  72. ldq $20, 80($sp); \
  73. ldq $21, 88($sp); \
  74. ldq $22, 96($sp); \
  75. ldq $23, 104($sp); \
  76. ldq $24, 112($sp); \
  77. ldq $25, 120($sp); \
  78. ldq $26, 128($sp); \
  79. ldq $27, 136($sp); \
  80. ldq $28, 144($sp); \
  81. addq $sp, SP_OFF, $sp
  82. /*
  83. * Non-syscall kernel entry points.
  84. */
  85. .align 4
  86. .globl entInt
  87. .ent entInt
  88. entInt:
  89. SAVE_ALL
  90. lda $8, 0x3fff
  91. lda $26, ret_from_sys_call
  92. bic $sp, $8, $8
  93. mov $sp, $19
  94. jsr $31, do_entInt
  95. .end entInt
  96. .align 4
  97. .globl entArith
  98. .ent entArith
  99. entArith:
  100. SAVE_ALL
  101. lda $8, 0x3fff
  102. lda $26, ret_from_sys_call
  103. bic $sp, $8, $8
  104. mov $sp, $18
  105. jsr $31, do_entArith
  106. .end entArith
  107. .align 4
  108. .globl entMM
  109. .ent entMM
  110. entMM:
  111. SAVE_ALL
  112. /* save $9 - $15 so the inline exception code can manipulate them. */
  113. subq $sp, 56, $sp
  114. stq $9, 0($sp)
  115. stq $10, 8($sp)
  116. stq $11, 16($sp)
  117. stq $12, 24($sp)
  118. stq $13, 32($sp)
  119. stq $14, 40($sp)
  120. stq $15, 48($sp)
  121. addq $sp, 56, $19
  122. /* handle the fault */
  123. lda $8, 0x3fff
  124. bic $sp, $8, $8
  125. jsr $26, do_page_fault
  126. /* reload the registers after the exception code played. */
  127. ldq $9, 0($sp)
  128. ldq $10, 8($sp)
  129. ldq $11, 16($sp)
  130. ldq $12, 24($sp)
  131. ldq $13, 32($sp)
  132. ldq $14, 40($sp)
  133. ldq $15, 48($sp)
  134. addq $sp, 56, $sp
  135. /* finish up the syscall as normal. */
  136. br ret_from_sys_call
  137. .end entMM
  138. .align 4
  139. .globl entIF
  140. .ent entIF
  141. entIF:
  142. SAVE_ALL
  143. lda $8, 0x3fff
  144. lda $26, ret_from_sys_call
  145. bic $sp, $8, $8
  146. mov $sp, $17
  147. jsr $31, do_entIF
  148. .end entIF
  149. .align 4
  150. .globl entUna
  151. .ent entUna
  152. entUna:
  153. lda $sp, -256($sp)
  154. stq $0, 0($sp)
  155. ldq $0, 256($sp) /* get PS */
  156. stq $1, 8($sp)
  157. stq $2, 16($sp)
  158. stq $3, 24($sp)
  159. and $0, 8, $0 /* user mode? */
  160. stq $4, 32($sp)
  161. bne $0, entUnaUser /* yup -> do user-level unaligned fault */
  162. stq $5, 40($sp)
  163. stq $6, 48($sp)
  164. stq $7, 56($sp)
  165. stq $8, 64($sp)
  166. stq $9, 72($sp)
  167. stq $10, 80($sp)
  168. stq $11, 88($sp)
  169. stq $12, 96($sp)
  170. stq $13, 104($sp)
  171. stq $14, 112($sp)
  172. stq $15, 120($sp)
  173. /* 16-18 PAL-saved */
  174. stq $19, 152($sp)
  175. stq $20, 160($sp)
  176. stq $21, 168($sp)
  177. stq $22, 176($sp)
  178. stq $23, 184($sp)
  179. stq $24, 192($sp)
  180. stq $25, 200($sp)
  181. stq $26, 208($sp)
  182. stq $27, 216($sp)
  183. stq $28, 224($sp)
  184. mov $sp, $19
  185. stq $gp, 232($sp)
  186. lda $8, 0x3fff
  187. stq $31, 248($sp)
  188. bic $sp, $8, $8
  189. jsr $26, do_entUna
  190. ldq $0, 0($sp)
  191. ldq $1, 8($sp)
  192. ldq $2, 16($sp)
  193. ldq $3, 24($sp)
  194. ldq $4, 32($sp)
  195. ldq $5, 40($sp)
  196. ldq $6, 48($sp)
  197. ldq $7, 56($sp)
  198. ldq $8, 64($sp)
  199. ldq $9, 72($sp)
  200. ldq $10, 80($sp)
  201. ldq $11, 88($sp)
  202. ldq $12, 96($sp)
  203. ldq $13, 104($sp)
  204. ldq $14, 112($sp)
  205. ldq $15, 120($sp)
  206. /* 16-18 PAL-saved */
  207. ldq $19, 152($sp)
  208. ldq $20, 160($sp)
  209. ldq $21, 168($sp)
  210. ldq $22, 176($sp)
  211. ldq $23, 184($sp)
  212. ldq $24, 192($sp)
  213. ldq $25, 200($sp)
  214. ldq $26, 208($sp)
  215. ldq $27, 216($sp)
  216. ldq $28, 224($sp)
  217. ldq $gp, 232($sp)
  218. lda $sp, 256($sp)
  219. call_pal PAL_rti
  220. .end entUna
  221. .align 4
  222. .ent entUnaUser
  223. entUnaUser:
  224. ldq $0, 0($sp) /* restore original $0 */
  225. lda $sp, 256($sp) /* pop entUna's stack frame */
  226. SAVE_ALL /* setup normal kernel stack */
  227. lda $sp, -56($sp)
  228. stq $9, 0($sp)
  229. stq $10, 8($sp)
  230. stq $11, 16($sp)
  231. stq $12, 24($sp)
  232. stq $13, 32($sp)
  233. stq $14, 40($sp)
  234. stq $15, 48($sp)
  235. lda $8, 0x3fff
  236. addq $sp, 56, $19
  237. bic $sp, $8, $8
  238. jsr $26, do_entUnaUser
  239. ldq $9, 0($sp)
  240. ldq $10, 8($sp)
  241. ldq $11, 16($sp)
  242. ldq $12, 24($sp)
  243. ldq $13, 32($sp)
  244. ldq $14, 40($sp)
  245. ldq $15, 48($sp)
  246. lda $sp, 56($sp)
  247. br ret_from_sys_call
  248. .end entUnaUser
  249. .align 4
  250. .globl entDbg
  251. .ent entDbg
  252. entDbg:
  253. SAVE_ALL
  254. lda $8, 0x3fff
  255. lda $26, ret_from_sys_call
  256. bic $sp, $8, $8
  257. mov $sp, $16
  258. jsr $31, do_entDbg
  259. .end entDbg
  260. /*
  261. * The system call entry point is special. Most importantly, it looks
  262. * like a function call to userspace as far as clobbered registers. We
  263. * do preserve the argument registers (for syscall restarts) and $26
  264. * (for leaf syscall functions).
  265. *
  266. * So much for theory. We don't take advantage of this yet.
  267. *
  268. * Note that a0-a2 are not saved by PALcode as with the other entry points.
  269. */
  270. .align 4
  271. .globl entSys
  272. .globl ret_from_sys_call
  273. .ent entSys
  274. entSys:
  275. SAVE_ALL
  276. lda $8, 0x3fff
  277. bic $sp, $8, $8
  278. lda $4, NR_SYSCALLS($31)
  279. stq $16, SP_OFF+24($sp)
  280. lda $5, sys_call_table
  281. lda $27, sys_ni_syscall
  282. cmpult $0, $4, $4
  283. ldl $3, TI_FLAGS($8)
  284. stq $17, SP_OFF+32($sp)
  285. s8addq $0, $5, $5
  286. stq $18, SP_OFF+40($sp)
  287. blbs $3, strace
  288. beq $4, 1f
  289. ldq $27, 0($5)
  290. 1: jsr $26, ($27), alpha_ni_syscall
  291. ldgp $gp, 0($26)
  292. blt $0, $syscall_error /* the call failed */
  293. stq $0, 0($sp)
  294. stq $31, 72($sp) /* a3=0 => no error */
  295. .align 4
  296. ret_from_sys_call:
  297. cmovne $26, 0, $18 /* $18 = 0 => non-restartable */
  298. ldq $0, SP_OFF($sp)
  299. and $0, 8, $0
  300. beq $0, ret_to_kernel
  301. ret_to_user:
  302. /* Make sure need_resched and sigpending don't change between
  303. sampling and the rti. */
  304. lda $16, 7
  305. call_pal PAL_swpipl
  306. ldl $17, TI_FLAGS($8)
  307. and $17, _TIF_WORK_MASK, $2
  308. bne $2, work_pending
  309. restore_all:
  310. RESTORE_ALL
  311. call_pal PAL_rti
  312. ret_to_kernel:
  313. lda $16, 7
  314. call_pal PAL_swpipl
  315. br restore_all
  316. .align 3
  317. $syscall_error:
  318. /*
  319. * Some system calls (e.g., ptrace) can return arbitrary
  320. * values which might normally be mistaken as error numbers.
  321. * Those functions must zero $0 (v0) directly in the stack
  322. * frame to indicate that a negative return value wasn't an
  323. * error number..
  324. */
  325. ldq $18, 0($sp) /* old syscall nr (zero if success) */
  326. beq $18, $ret_success
  327. ldq $19, 72($sp) /* .. and this a3 */
  328. subq $31, $0, $0 /* with error in v0 */
  329. addq $31, 1, $1 /* set a3 for errno return */
  330. stq $0, 0($sp)
  331. mov $31, $26 /* tell "ret_from_sys_call" we can restart */
  332. stq $1, 72($sp) /* a3 for return */
  333. br ret_from_sys_call
  334. $ret_success:
  335. stq $0, 0($sp)
  336. stq $31, 72($sp) /* a3=0 => no error */
  337. br ret_from_sys_call
  338. .end entSys
  339. /*
  340. * Do all cleanup when returning from all interrupts and system calls.
  341. *
  342. * Arguments:
  343. * $8: current.
  344. * $17: TI_FLAGS.
  345. * $18: The old syscall number, or zero if this is not a return
  346. * from a syscall that errored and is possibly restartable.
  347. * $19: The old a3 value
  348. */
  349. .align 4
  350. .ent work_pending
  351. work_pending:
  352. and $17, _TIF_NOTIFY_RESUME | _TIF_SIGPENDING, $2
  353. bne $2, $work_notifysig
  354. $work_resched:
  355. /*
  356. * We can get here only if we returned from syscall without SIGPENDING
  357. * or got through work_notifysig already. Either case means no syscall
  358. * restarts for us, so let $18 and $19 burn.
  359. */
  360. jsr $26, schedule
  361. mov 0, $18
  362. br ret_to_user
  363. $work_notifysig:
  364. mov $sp, $16
  365. bsr $1, do_switch_stack
  366. jsr $26, do_work_pending
  367. bsr $1, undo_switch_stack
  368. br restore_all
  369. .end work_pending
  370. /*
  371. * PTRACE syscall handler
  372. */
  373. .align 4
  374. .ent strace
  375. strace:
  376. /* set up signal stack, call syscall_trace */
  377. bsr $1, do_switch_stack
  378. jsr $26, syscall_trace_enter /* returns the syscall number */
  379. bsr $1, undo_switch_stack
  380. /* get the arguments back.. */
  381. ldq $16, SP_OFF+24($sp)
  382. ldq $17, SP_OFF+32($sp)
  383. ldq $18, SP_OFF+40($sp)
  384. ldq $19, 72($sp)
  385. ldq $20, 80($sp)
  386. ldq $21, 88($sp)
  387. /* get the system call pointer.. */
  388. lda $1, NR_SYSCALLS($31)
  389. lda $2, sys_call_table
  390. lda $27, alpha_ni_syscall
  391. cmpult $0, $1, $1
  392. s8addq $0, $2, $2
  393. beq $1, 1f
  394. ldq $27, 0($2)
  395. 1: jsr $26, ($27), sys_gettimeofday
  396. ret_from_straced:
  397. ldgp $gp, 0($26)
  398. /* check return.. */
  399. blt $0, $strace_error /* the call failed */
  400. stq $31, 72($sp) /* a3=0 => no error */
  401. $strace_success:
  402. stq $0, 0($sp) /* save return value */
  403. bsr $1, do_switch_stack
  404. jsr $26, syscall_trace_leave
  405. bsr $1, undo_switch_stack
  406. br $31, ret_from_sys_call
  407. .align 3
  408. $strace_error:
  409. ldq $18, 0($sp) /* old syscall nr (zero if success) */
  410. beq $18, $strace_success
  411. ldq $19, 72($sp) /* .. and this a3 */
  412. subq $31, $0, $0 /* with error in v0 */
  413. addq $31, 1, $1 /* set a3 for errno return */
  414. stq $0, 0($sp)
  415. stq $1, 72($sp) /* a3 for return */
  416. bsr $1, do_switch_stack
  417. mov $18, $9 /* save old syscall number */
  418. mov $19, $10 /* save old a3 */
  419. jsr $26, syscall_trace_leave
  420. mov $9, $18
  421. mov $10, $19
  422. bsr $1, undo_switch_stack
  423. mov $31, $26 /* tell "ret_from_sys_call" we can restart */
  424. br ret_from_sys_call
  425. .end strace
  426. /*
  427. * Save and restore the switch stack -- aka the balance of the user context.
  428. */
  429. .align 4
  430. .ent do_switch_stack
  431. do_switch_stack:
  432. lda $sp, -SWITCH_STACK_SIZE($sp)
  433. stq $9, 0($sp)
  434. stq $10, 8($sp)
  435. stq $11, 16($sp)
  436. stq $12, 24($sp)
  437. stq $13, 32($sp)
  438. stq $14, 40($sp)
  439. stq $15, 48($sp)
  440. stq $26, 56($sp)
  441. stt $f0, 64($sp)
  442. stt $f1, 72($sp)
  443. stt $f2, 80($sp)
  444. stt $f3, 88($sp)
  445. stt $f4, 96($sp)
  446. stt $f5, 104($sp)
  447. stt $f6, 112($sp)
  448. stt $f7, 120($sp)
  449. stt $f8, 128($sp)
  450. stt $f9, 136($sp)
  451. stt $f10, 144($sp)
  452. stt $f11, 152($sp)
  453. stt $f12, 160($sp)
  454. stt $f13, 168($sp)
  455. stt $f14, 176($sp)
  456. stt $f15, 184($sp)
  457. stt $f16, 192($sp)
  458. stt $f17, 200($sp)
  459. stt $f18, 208($sp)
  460. stt $f19, 216($sp)
  461. stt $f20, 224($sp)
  462. stt $f21, 232($sp)
  463. stt $f22, 240($sp)
  464. stt $f23, 248($sp)
  465. stt $f24, 256($sp)
  466. stt $f25, 264($sp)
  467. stt $f26, 272($sp)
  468. stt $f27, 280($sp)
  469. mf_fpcr $f0 # get fpcr
  470. stt $f28, 288($sp)
  471. stt $f29, 296($sp)
  472. stt $f30, 304($sp)
  473. stt $f0, 312($sp) # save fpcr in slot of $f31
  474. ldt $f0, 64($sp) # dont let "do_switch_stack" change fp state.
  475. ret $31, ($1), 1
  476. .end do_switch_stack
  477. .align 4
  478. .ent undo_switch_stack
  479. undo_switch_stack:
  480. ldq $9, 0($sp)
  481. ldq $10, 8($sp)
  482. ldq $11, 16($sp)
  483. ldq $12, 24($sp)
  484. ldq $13, 32($sp)
  485. ldq $14, 40($sp)
  486. ldq $15, 48($sp)
  487. ldq $26, 56($sp)
  488. ldt $f30, 312($sp) # get saved fpcr
  489. ldt $f0, 64($sp)
  490. ldt $f1, 72($sp)
  491. ldt $f2, 80($sp)
  492. ldt $f3, 88($sp)
  493. mt_fpcr $f30 # install saved fpcr
  494. ldt $f4, 96($sp)
  495. ldt $f5, 104($sp)
  496. ldt $f6, 112($sp)
  497. ldt $f7, 120($sp)
  498. ldt $f8, 128($sp)
  499. ldt $f9, 136($sp)
  500. ldt $f10, 144($sp)
  501. ldt $f11, 152($sp)
  502. ldt $f12, 160($sp)
  503. ldt $f13, 168($sp)
  504. ldt $f14, 176($sp)
  505. ldt $f15, 184($sp)
  506. ldt $f16, 192($sp)
  507. ldt $f17, 200($sp)
  508. ldt $f18, 208($sp)
  509. ldt $f19, 216($sp)
  510. ldt $f20, 224($sp)
  511. ldt $f21, 232($sp)
  512. ldt $f22, 240($sp)
  513. ldt $f23, 248($sp)
  514. ldt $f24, 256($sp)
  515. ldt $f25, 264($sp)
  516. ldt $f26, 272($sp)
  517. ldt $f27, 280($sp)
  518. ldt $f28, 288($sp)
  519. ldt $f29, 296($sp)
  520. ldt $f30, 304($sp)
  521. lda $sp, SWITCH_STACK_SIZE($sp)
  522. ret $31, ($1), 1
  523. .end undo_switch_stack
  524. /*
  525. * The meat of the context switch code.
  526. */
  527. .align 4
  528. .globl alpha_switch_to
  529. .ent alpha_switch_to
  530. alpha_switch_to:
  531. .prologue 0
  532. bsr $1, do_switch_stack
  533. call_pal PAL_swpctx
  534. lda $8, 0x3fff
  535. bsr $1, undo_switch_stack
  536. bic $sp, $8, $8
  537. mov $17, $0
  538. ret
  539. .end alpha_switch_to
  540. /*
  541. * New processes begin life here.
  542. */
  543. .globl ret_from_fork
  544. .align 4
  545. .ent ret_from_fork
  546. ret_from_fork:
  547. lda $26, ret_from_sys_call
  548. mov $17, $16
  549. jmp $31, schedule_tail
  550. .end ret_from_fork
  551. /*
  552. * ... and new kernel threads - here
  553. */
  554. .align 4
  555. .globl ret_from_kernel_thread
  556. .ent ret_from_kernel_thread
  557. ret_from_kernel_thread:
  558. mov $17, $16
  559. jsr $26, schedule_tail
  560. mov $9, $27
  561. mov $10, $16
  562. jsr $26, ($9)
  563. mov $31, $19 /* to disable syscall restarts */
  564. br $31, ret_to_user
  565. .end ret_from_kernel_thread
  566. /*
  567. * Special system calls. Most of these are special in that they either
  568. * have to play switch_stack games or in some way use the pt_regs struct.
  569. */
  570. .macro fork_like name
  571. .align 4
  572. .globl alpha_\name
  573. .ent alpha_\name
  574. alpha_\name:
  575. .prologue 0
  576. bsr $1, do_switch_stack
  577. jsr $26, sys_\name
  578. ldq $26, 56($sp)
  579. lda $sp, SWITCH_STACK_SIZE($sp)
  580. ret
  581. .end alpha_\name
  582. .endm
  583. fork_like fork
  584. fork_like vfork
  585. fork_like clone
  586. .align 4
  587. .globl sys_sigreturn
  588. .ent sys_sigreturn
  589. sys_sigreturn:
  590. .prologue 0
  591. lda $9, ret_from_straced
  592. cmpult $26, $9, $9
  593. lda $sp, -SWITCH_STACK_SIZE($sp)
  594. jsr $26, do_sigreturn
  595. bne $9, 1f
  596. jsr $26, syscall_trace_leave
  597. 1: br $1, undo_switch_stack
  598. br ret_from_sys_call
  599. .end sys_sigreturn
  600. .align 4
  601. .globl sys_rt_sigreturn
  602. .ent sys_rt_sigreturn
  603. sys_rt_sigreturn:
  604. .prologue 0
  605. lda $9, ret_from_straced
  606. cmpult $26, $9, $9
  607. lda $sp, -SWITCH_STACK_SIZE($sp)
  608. jsr $26, do_rt_sigreturn
  609. bne $9, 1f
  610. jsr $26, syscall_trace_leave
  611. 1: br $1, undo_switch_stack
  612. br ret_from_sys_call
  613. .end sys_rt_sigreturn
  614. .align 4
  615. .globl alpha_ni_syscall
  616. .ent alpha_ni_syscall
  617. alpha_ni_syscall:
  618. .prologue 0
  619. /* Special because it also implements overflow handling via
  620. syscall number 0. And if you recall, zero is a special
  621. trigger for "not an error". Store large non-zero there. */
  622. lda $0, -ENOSYS
  623. unop
  624. stq $0, 0($sp)
  625. ret
  626. .end alpha_ni_syscall