entry.S 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207
  1. /*
  2. * File: arch/blackfin/mach-common/entry.S
  3. * Based on:
  4. * Author: Linus Torvalds
  5. *
  6. * Created: ?
  7. * Description: contains the system-call and fault low-level handling routines.
  8. * This also contains the timer-interrupt handler, as well as all
  9. * interrupts and faults that can result in a task-switch.
  10. *
  11. * Modified:
  12. * Copyright 2004-2006 Analog Devices Inc.
  13. *
  14. * Bugs: Enter bugs at http://blackfin.uclinux.org/
  15. *
  16. * This program is free software; you can redistribute it and/or modify
  17. * it under the terms of the GNU General Public License as published by
  18. * the Free Software Foundation; either version 2 of the License, or
  19. * (at your option) any later version.
  20. *
  21. * This program is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. * GNU General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU General Public License
  27. * along with this program; if not, see the file COPYING, or write
  28. * to the Free Software Foundation, Inc.,
  29. * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  30. */
  31. /*
  32. * 25-Dec-2004 - LG Soft India
  33. * 1. Fix in return_from_int, to make sure any pending
  34. * system call in ILAT for this process to get
  35. * executed, otherwise in case context switch happens,
  36. * system call of first process (i.e in ILAT) will be
  37. * carried forward to the switched process.
  38. * 2. Removed Constant references for the following
  39. * a. IPEND
  40. * b. EXCAUSE mask
  41. * c. PAGE Mask
  42. */
  43. /*
  44. * NOTE: This code handles signal-recognition, which happens every time
  45. * after a timer-interrupt and after each system call.
  46. */
  47. #include <linux/linkage.h>
  48. #include <asm/blackfin.h>
  49. #include <asm/unistd.h>
  50. #include <asm/errno.h>
  51. #include <asm/thread_info.h> /* TIF_NEED_RESCHED */
  52. #include <asm/asm-offsets.h>
  53. #include <asm/mach-common/context.S>
  54. #ifdef CONFIG_DEBUG_BFIN_NO_KERN_HWTRACE
  55. /*
  56. * TODO: this should be proper save/restore, but for now
  57. * we'll just cheat and use 0x1/0x13
  58. */
  59. # define DEBUG_START_HWTRACE \
  60. P5.l = LO(TBUFCTL); \
  61. P5.h = HI(TBUFCTL); \
  62. R7 = 0x13; \
  63. [P5] = R7;
  64. # define DEBUG_STOP_HWTRACE \
  65. P5.l = LO(TBUFCTL); \
  66. P5.h = HI(TBUFCTL); \
  67. R7 = 0x01; \
  68. [P5] = R7;
  69. #else
  70. # define DEBUG_START_HWTRACE
  71. # define DEBUG_STOP_HWTRACE
  72. #endif
  73. #ifdef CONFIG_EXCPT_IRQ_SYSC_L1
  74. .section .l1.text
  75. #else
  76. .text
  77. #endif
  78. /* Slightly simplified and streamlined entry point for CPLB misses.
  79. * This one does not lower the level to IRQ5, and thus can be used to
  80. * patch up CPLB misses on the kernel stack.
  81. */
  82. ENTRY(_ex_dcplb)
  83. #if defined(ANOMALY_05000261)
  84. /*
  85. * Work around an anomaly: if we see a new DCPLB fault, return
  86. * without doing anything. Then, if we get the same fault again,
  87. * handle it.
  88. */
  89. p5.l = _last_cplb_fault_retx;
  90. p5.h = _last_cplb_fault_retx;
  91. r7 = [p5];
  92. r6 = retx;
  93. [p5] = r6;
  94. cc = r6 == r7;
  95. if !cc jump _return_from_exception;
  96. /* fall through */
  97. #endif
  98. ENTRY(_ex_icplb)
  99. (R7:6,P5:4) = [sp++];
  100. ASTAT = [sp++];
  101. SAVE_ALL_SYS
  102. call __cplb_hdr;
  103. DEBUG_START_HWTRACE
  104. RESTORE_ALL_SYS
  105. SP = RETN;
  106. rtx;
  107. ENTRY(_ex_spinlock)
  108. /* Transform this into a syscall - twiddle the syscall vector. */
  109. p5.l = lo(EVT15);
  110. p5.h = hi(EVT15);
  111. r7.l = _spinlock_bh;
  112. r7.h = _spinlock_bh;
  113. [p5] = r7;
  114. csync;
  115. /* Fall through. */
  116. ENTRY(_ex_syscall)
  117. DEBUG_START_HWTRACE
  118. (R7:6,P5:4) = [sp++];
  119. ASTAT = [sp++];
  120. raise 15; /* invoked by TRAP #0, for sys call */
  121. sp = retn;
  122. rtx
  123. ENTRY(_spinlock_bh)
  124. SAVE_ALL_SYS
  125. /* To end up here, vector 15 was changed - so we have to change it
  126. * back.
  127. */
  128. p0.l = lo(EVT15);
  129. p0.h = hi(EVT15);
  130. p1.l = _evt_system_call;
  131. p1.h = _evt_system_call;
  132. [p0] = p1;
  133. csync;
  134. r0 = [sp + PT_R0];
  135. sp += -12;
  136. call _sys_bfin_spinlock;
  137. sp += 12;
  138. [SP + PT_R0] = R0;
  139. RESTORE_ALL_SYS
  140. rti;
  141. ENTRY(_ex_soft_bp)
  142. r7 = retx;
  143. r7 += -2;
  144. retx = r7;
  145. jump.s _ex_trap_c;
  146. ENTRY(_ex_single_step)
  147. r7 = retx;
  148. r6 = reti;
  149. cc = r7 == r6;
  150. if cc jump _return_from_exception
  151. r7 = syscfg;
  152. bitclr (r7, 0);
  153. syscfg = R7;
  154. p5.l = lo(IPEND);
  155. p5.h = hi(IPEND);
  156. r6 = [p5];
  157. cc = bittst(r6, 5);
  158. if !cc jump _ex_trap_c;
  159. p4.l = lo(EVT5);
  160. p4.h = hi(EVT5);
  161. r6.h = _exception_to_level5;
  162. r6.l = _exception_to_level5;
  163. r7 = [p4];
  164. cc = r6 == r7;
  165. if !cc jump _ex_trap_c;
  166. _return_from_exception:
  167. DEBUG_START_HWTRACE
  168. (R7:6,P5:4) = [sp++];
  169. ASTAT = [sp++];
  170. sp = retn;
  171. rtx;
  172. ENTRY(_handle_bad_cplb)
  173. /* To get here, we just tried and failed to change a CPLB
  174. * so, handle things in trap_c (C code), by lowering to
  175. * IRQ5, just like we normally do. Since this is not a
  176. * "normal" return path, we have a do alot of stuff to
  177. * the stack to get ready so, we can fall through - we
  178. * need to make a CPLB exception look like a normal exception
  179. */
  180. DEBUG_START_HWTRACE
  181. RESTORE_ALL_SYS
  182. [--sp] = ASTAT;
  183. [--sp] = (R7:6, P5:4);
  184. ENTRY(_ex_trap_c)
  185. /* Call C code (trap_c) to handle the exception, which most
  186. * likely involves sending a signal to the current process.
  187. * To avoid double faults, lower our priority to IRQ5 first.
  188. */
  189. P5.h = _exception_to_level5;
  190. P5.l = _exception_to_level5;
  191. p4.l = lo(EVT5);
  192. p4.h = hi(EVT5);
  193. [p4] = p5;
  194. csync;
  195. /* Disable all interrupts, but make sure level 5 is enabled so
  196. * we can switch to that level. Save the old mask. */
  197. cli r6;
  198. p4.l = _excpt_saved_imask;
  199. p4.h = _excpt_saved_imask;
  200. [p4] = r6;
  201. r6 = 0x3f;
  202. sti r6;
  203. /* Save the excause into a circular buffer, in case the instruction
  204. * which caused this excecptions causes others.
  205. */
  206. P5.l = _in_ptr_excause;
  207. P5.h = _in_ptr_excause;
  208. R7 = [P5];
  209. R7 += 4;
  210. R6 = 0xF;
  211. R7 = R7 & R6;
  212. [P5] = R7;
  213. R6.l = _excause_circ_buf;
  214. R6.h = _excause_circ_buf;
  215. R7 = R7 + R6;
  216. p5 = R7;
  217. R6 = SEQSTAT;
  218. [P5] = R6;
  219. DEBUG_START_HWTRACE
  220. (R7:6,P5:4) = [sp++];
  221. ASTAT = [sp++];
  222. SP = RETN;
  223. raise 5;
  224. rtx;
  225. ENTRY(_exception_to_level5)
  226. SAVE_ALL_SYS
  227. /* Restore interrupt mask. We haven't pushed RETI, so this
  228. * doesn't enable interrupts until we return from this handler. */
  229. p4.l = _excpt_saved_imask;
  230. p4.h = _excpt_saved_imask;
  231. r6 = [p4];
  232. sti r6;
  233. /* Restore the hardware error vector. */
  234. P5.h = _evt_ivhw;
  235. P5.l = _evt_ivhw;
  236. p4.l = lo(EVT5);
  237. p4.h = hi(EVT5);
  238. [p4] = p5;
  239. csync;
  240. p2.l = lo(IPEND);
  241. p2.h = hi(IPEND);
  242. csync;
  243. r0 = [p2]; /* Read current IPEND */
  244. [sp + PT_IPEND] = r0; /* Store IPEND */
  245. /* Pop the excause from the circular buffer and push it on the stack
  246. * (in the right place - if you change the location of SEQSTAT, you
  247. * must change this offset.
  248. */
  249. .L_excep_to_5_again:
  250. P5.l = _out_ptr_excause;
  251. P5.h = _out_ptr_excause;
  252. R7 = [P5];
  253. R7 += 4;
  254. R6 = 0xF;
  255. R7 = R7 & R6;
  256. [P5] = R7;
  257. R6.l = _excause_circ_buf;
  258. R6.h = _excause_circ_buf;
  259. R7 = R7 + R6;
  260. P5 = R7;
  261. R1 = [P5];
  262. [SP + 8] = r1;
  263. r0 = sp; /* stack frame pt_regs pointer argument ==> r0 */
  264. SP += -12;
  265. call _trap_c;
  266. SP += 12;
  267. /* See if anything else is in the exception buffer
  268. * if there is, process it
  269. */
  270. P5.l = _out_ptr_excause;
  271. P5.h = _out_ptr_excause;
  272. P4.l = _in_ptr_excause;
  273. P4.h = _in_ptr_excause;
  274. R6 = [P5];
  275. R7 = [P4];
  276. CC = R6 == R7;
  277. if ! CC JUMP .L_excep_to_5_again
  278. call _ret_from_exception;
  279. RESTORE_ALL_SYS
  280. rti;
  281. ENTRY(_trap) /* Exception: 4th entry into system event table(supervisor mode)*/
  282. /* Since the kernel stack can be anywhere, it's not guaranteed to be
  283. * covered by a CPLB. Switch to an exception stack; use RETN as a
  284. * scratch register (for want of a better option).
  285. */
  286. retn = sp;
  287. sp.l = _exception_stack_top;
  288. sp.h = _exception_stack_top;
  289. /* Try to deal with syscalls quickly. */
  290. [--sp] = ASTAT;
  291. [--sp] = (R7:6, P5:4);
  292. DEBUG_STOP_HWTRACE
  293. r7 = SEQSTAT; /* reason code is in bit 5:0 */
  294. r6.l = lo(SEQSTAT_EXCAUSE);
  295. r6.h = hi(SEQSTAT_EXCAUSE);
  296. r7 = r7 & r6;
  297. p5.h = _extable;
  298. p5.l = _extable;
  299. p4 = r7;
  300. p5 = p5 + (p4 << 2);
  301. p4 = [p5];
  302. jump (p4);
  303. .Lbadsys:
  304. r7 = -ENOSYS; /* signextending enough */
  305. [sp + PT_R0] = r7; /* return value from system call */
  306. jump .Lsyscall_really_exit;
  307. ENTRY(_kernel_execve)
  308. link SIZEOF_PTREGS;
  309. p0 = sp;
  310. r3 = SIZEOF_PTREGS / 4;
  311. r4 = 0(x);
  312. 0:
  313. [p0++] = r4;
  314. r3 += -1;
  315. cc = r3 == 0;
  316. if !cc jump 0b (bp);
  317. p0 = sp;
  318. sp += -16;
  319. [sp + 12] = p0;
  320. call _do_execve;
  321. SP += 16;
  322. cc = r0 == 0;
  323. if ! cc jump 1f;
  324. /* Success. Copy our temporary pt_regs to the top of the kernel
  325. * stack and do a normal exception return.
  326. */
  327. r1 = sp;
  328. r0 = (-KERNEL_STACK_SIZE) (x);
  329. r1 = r1 & r0;
  330. p2 = r1;
  331. p3 = [p2];
  332. r0 = KERNEL_STACK_SIZE - 4 (z);
  333. p1 = r0;
  334. p1 = p1 + p2;
  335. p0 = fp;
  336. r4 = [p0--];
  337. r3 = SIZEOF_PTREGS / 4;
  338. 0:
  339. r4 = [p0--];
  340. [p1--] = r4;
  341. r3 += -1;
  342. cc = r3 == 0;
  343. if ! cc jump 0b (bp);
  344. r0 = (KERNEL_STACK_SIZE - SIZEOF_PTREGS) (z);
  345. p1 = r0;
  346. p1 = p1 + p2;
  347. sp = p1;
  348. r0 = syscfg;
  349. [SP + PT_SYSCFG] = r0;
  350. [p3 + (TASK_THREAD + THREAD_KSP)] = sp;
  351. RESTORE_CONTEXT;
  352. rti;
  353. 1:
  354. unlink;
  355. rts;
  356. ENTRY(_system_call)
  357. /* Store IPEND */
  358. p2.l = lo(IPEND);
  359. p2.h = hi(IPEND);
  360. csync;
  361. r0 = [p2];
  362. [sp + PT_IPEND] = r0;
  363. /* Store RETS for now */
  364. r0 = rets;
  365. [sp + PT_RESERVED] = r0;
  366. /* Set the stack for the current process */
  367. r7 = sp;
  368. r6.l = lo(ALIGN_PAGE_MASK);
  369. r6.h = hi(ALIGN_PAGE_MASK);
  370. r7 = r7 & r6; /* thread_info */
  371. p2 = r7;
  372. p2 = [p2];
  373. [p2+(TASK_THREAD+THREAD_KSP)] = sp;
  374. /* Check the System Call */
  375. r7 = __NR_syscall;
  376. /* System call number is passed in P0 */
  377. r6 = p0;
  378. cc = r6 < r7;
  379. if ! cc jump .Lbadsys;
  380. /* are we tracing syscalls?*/
  381. r7 = sp;
  382. r6.l = lo(ALIGN_PAGE_MASK);
  383. r6.h = hi(ALIGN_PAGE_MASK);
  384. r7 = r7 & r6;
  385. p2 = r7;
  386. r7 = [p2+TI_FLAGS];
  387. CC = BITTST(r7,TIF_SYSCALL_TRACE);
  388. if CC JUMP _sys_trace;
  389. /* Execute the appropriate system call */
  390. p4 = p0;
  391. p5.l = _sys_call_table;
  392. p5.h = _sys_call_table;
  393. p5 = p5 + (p4 << 2);
  394. r0 = [sp + PT_R0];
  395. r1 = [sp + PT_R1];
  396. r2 = [sp + PT_R2];
  397. p5 = [p5];
  398. [--sp] = r5;
  399. [--sp] = r4;
  400. [--sp] = r3;
  401. SP += -12;
  402. call (p5);
  403. SP += 24;
  404. [sp + PT_R0] = r0;
  405. .Lresume_userspace:
  406. r7 = sp;
  407. r4.l = lo(ALIGN_PAGE_MASK);
  408. r4.h = hi(ALIGN_PAGE_MASK);
  409. r7 = r7 & r4; /* thread_info->flags */
  410. p5 = r7;
  411. .Lresume_userspace_1:
  412. /* Disable interrupts. */
  413. [--sp] = reti;
  414. reti = [sp++];
  415. r7 = [p5 + TI_FLAGS];
  416. r4.l = lo(_TIF_WORK_MASK);
  417. r4.h = hi(_TIF_WORK_MASK);
  418. r7 = r7 & r4;
  419. .Lsyscall_resched:
  420. cc = BITTST(r7, TIF_NEED_RESCHED);
  421. if !cc jump .Lsyscall_sigpending;
  422. /* Reenable interrupts. */
  423. [--sp] = reti;
  424. r0 = [sp++];
  425. SP += -12;
  426. call _schedule;
  427. SP += 12;
  428. jump .Lresume_userspace_1;
  429. .Lsyscall_sigpending:
  430. cc = BITTST(r7, TIF_RESTORE_SIGMASK);
  431. if cc jump .Lsyscall_do_signals;
  432. cc = BITTST(r7, TIF_SIGPENDING);
  433. if !cc jump .Lsyscall_really_exit;
  434. .Lsyscall_do_signals:
  435. /* Reenable interrupts. */
  436. [--sp] = reti;
  437. r0 = [sp++];
  438. r0 = sp;
  439. SP += -12;
  440. call _do_signal;
  441. SP += 12;
  442. .Lsyscall_really_exit:
  443. r5 = [sp + PT_RESERVED];
  444. rets = r5;
  445. rts;
  446. _sys_trace:
  447. call _syscall_trace;
  448. /* Execute the appropriate system call */
  449. p4 = [SP + PT_P0];
  450. p5.l = _sys_call_table;
  451. p5.h = _sys_call_table;
  452. p5 = p5 + (p4 << 2);
  453. r0 = [sp + PT_R0];
  454. r1 = [sp + PT_R1];
  455. r2 = [sp + PT_R2];
  456. r3 = [sp + PT_R3];
  457. r4 = [sp + PT_R4];
  458. r5 = [sp + PT_R5];
  459. p5 = [p5];
  460. [--sp] = r5;
  461. [--sp] = r4;
  462. [--sp] = r3;
  463. SP += -12;
  464. call (p5);
  465. SP += 24;
  466. [sp + PT_R0] = r0;
  467. call _syscall_trace;
  468. jump .Lresume_userspace;
  469. ENTRY(_resume)
  470. /*
  471. * Beware - when entering resume, prev (the current task) is
  472. * in r0, next (the new task) is in r1.
  473. */
  474. p0 = r0;
  475. p1 = r1;
  476. [--sp] = rets;
  477. [--sp] = fp;
  478. [--sp] = (r7:4, p5:3);
  479. /* save usp */
  480. p2 = usp;
  481. [p0+(TASK_THREAD+THREAD_USP)] = p2;
  482. /* save current kernel stack pointer */
  483. [p0+(TASK_THREAD+THREAD_KSP)] = sp;
  484. /* save program counter */
  485. r1.l = _new_old_task;
  486. r1.h = _new_old_task;
  487. [p0+(TASK_THREAD+THREAD_PC)] = r1;
  488. /* restore the kernel stack pointer */
  489. sp = [p1+(TASK_THREAD+THREAD_KSP)];
  490. /* restore user stack pointer */
  491. p0 = [p1+(TASK_THREAD+THREAD_USP)];
  492. usp = p0;
  493. /* restore pc */
  494. p0 = [p1+(TASK_THREAD+THREAD_PC)];
  495. jump (p0);
  496. /*
  497. * Following code actually lands up in a new (old) task.
  498. */
  499. _new_old_task:
  500. (r7:4, p5:3) = [sp++];
  501. fp = [sp++];
  502. rets = [sp++];
  503. /*
  504. * When we come out of resume, r0 carries "old" task, becuase we are
  505. * in "new" task.
  506. */
  507. rts;
  508. ENTRY(_ret_from_exception)
  509. p2.l = lo(IPEND);
  510. p2.h = hi(IPEND);
  511. csync;
  512. r0 = [p2];
  513. [sp + PT_IPEND] = r0;
  514. 1:
  515. r1 = 0x37(Z);
  516. r2 = ~r1;
  517. r2.h = 0;
  518. r0 = r2 & r0;
  519. cc = r0 == 0;
  520. if !cc jump 4f; /* if not return to user mode, get out */
  521. /* Make sure any pending system call or deferred exception
  522. * return in ILAT for this process to get executed, otherwise
  523. * in case context switch happens, system call of
  524. * first process (i.e in ILAT) will be carried
  525. * forward to the switched process
  526. */
  527. p2.l = lo(ILAT);
  528. p2.h = hi(ILAT);
  529. r0 = [p2];
  530. r1 = (EVT_IVG14 | EVT_IVG15) (z);
  531. r0 = r0 & r1;
  532. cc = r0 == 0;
  533. if !cc jump 5f;
  534. /* Set the stack for the current process */
  535. r7 = sp;
  536. r4.l = lo(ALIGN_PAGE_MASK);
  537. r4.h = hi(ALIGN_PAGE_MASK);
  538. r7 = r7 & r4; /* thread_info->flags */
  539. p5 = r7;
  540. r7 = [p5 + TI_FLAGS];
  541. r4.l = lo(_TIF_WORK_MASK);
  542. r4.h = hi(_TIF_WORK_MASK);
  543. r7 = r7 & r4;
  544. cc = r7 == 0;
  545. if cc jump 4f;
  546. p0.l = lo(EVT15);
  547. p0.h = hi(EVT15);
  548. p1.l = _schedule_and_signal;
  549. p1.h = _schedule_and_signal;
  550. [p0] = p1;
  551. csync;
  552. raise 15; /* raise evt14 to do signal or reschedule */
  553. 4:
  554. r0 = syscfg;
  555. bitclr(r0, 0);
  556. syscfg = r0;
  557. 5:
  558. rts;
  559. ENTRY(_return_from_int)
  560. /* If someone else already raised IRQ 15, do nothing. */
  561. csync;
  562. p2.l = lo(ILAT);
  563. p2.h = hi(ILAT);
  564. r0 = [p2];
  565. cc = bittst (r0, EVT_IVG15_P);
  566. if cc jump 2f;
  567. /* if not return to user mode, get out */
  568. p2.l = lo(IPEND);
  569. p2.h = hi(IPEND);
  570. r0 = [p2];
  571. r1 = 0x17(Z);
  572. r2 = ~r1;
  573. r2.h = 0;
  574. r0 = r2 & r0;
  575. r1 = 1;
  576. r1 = r0 - r1;
  577. r2 = r0 & r1;
  578. cc = r2 == 0;
  579. if !cc jump 2f;
  580. /* Lower the interrupt level to 15. */
  581. p0.l = lo(EVT15);
  582. p0.h = hi(EVT15);
  583. p1.l = _schedule_and_signal_from_int;
  584. p1.h = _schedule_and_signal_from_int;
  585. [p0] = p1;
  586. csync;
  587. #if defined(ANOMALY_05000281)
  588. r0.l = lo(CONFIG_BOOT_LOAD);
  589. r0.h = hi(CONFIG_BOOT_LOAD);
  590. reti = r0;
  591. #endif
  592. r0 = 0x801f (z);
  593. STI r0;
  594. raise 15; /* raise evt15 to do signal or reschedule */
  595. rti;
  596. 2:
  597. rts;
  598. ENTRY(_lower_to_irq14)
  599. #if defined(ANOMALY_05000281)
  600. r0.l = lo(CONFIG_BOOT_LOAD);
  601. r0.h = hi(CONFIG_BOOT_LOAD);
  602. reti = r0;
  603. #endif
  604. r0 = 0x401f;
  605. sti r0;
  606. raise 14;
  607. rti;
  608. ENTRY(_evt14_softirq)
  609. #ifdef CONFIG_DEBUG_HWERR
  610. r0 = 0x3f;
  611. sti r0;
  612. #else
  613. cli r0;
  614. #endif
  615. [--sp] = RETI;
  616. SP += 4;
  617. rts;
  618. _schedule_and_signal_from_int:
  619. /* To end up here, vector 15 was changed - so we have to change it
  620. * back.
  621. */
  622. p0.l = lo(EVT15);
  623. p0.h = hi(EVT15);
  624. p1.l = _evt_system_call;
  625. p1.h = _evt_system_call;
  626. [p0] = p1;
  627. csync;
  628. p1 = rets;
  629. [sp + PT_RESERVED] = p1;
  630. p0.l = _irq_flags;
  631. p0.h = _irq_flags;
  632. r0 = [p0];
  633. sti r0;
  634. jump.s .Lresume_userspace;
  635. _schedule_and_signal:
  636. SAVE_CONTEXT_SYSCALL
  637. /* To end up here, vector 15 was changed - so we have to change it
  638. * back.
  639. */
  640. p0.l = lo(EVT15);
  641. p0.h = hi(EVT15);
  642. p1.l = _evt_system_call;
  643. p1.h = _evt_system_call;
  644. [p0] = p1;
  645. csync;
  646. p0.l = 1f;
  647. p0.h = 1f;
  648. [sp + PT_RESERVED] = P0;
  649. call .Lresume_userspace;
  650. 1:
  651. RESTORE_CONTEXT
  652. rti;
  653. /* Make sure when we start, that the circular buffer is initialized properly
  654. * R0 and P0 are call clobbered, so we can use them here.
  655. */
  656. ENTRY(_init_exception_buff)
  657. r0 = 0;
  658. p0.h = _in_ptr_excause;
  659. p0.l = _in_ptr_excause;
  660. [p0] = r0;
  661. p0.h = _out_ptr_excause;
  662. p0.l = _out_ptr_excause;
  663. [p0] = r0;
  664. rts;
  665. /*
  666. * Put these in the kernel data section - that should always be covered by
  667. * a CPLB. This is needed to ensure we don't get double fault conditions
  668. */
  669. #ifdef CONFIG_SYSCALL_TAB_L1
  670. .section .l1.data
  671. #else
  672. .data
  673. #endif
  674. ALIGN
  675. _extable:
  676. /* entry for each EXCAUSE[5:0]
  677. * This table bmust be in sync with the table in ./kernel/traps.c
  678. * EXCPT instruction can provide 4 bits of EXCAUSE, allowing 16 to be user defined
  679. */
  680. .long _ex_syscall; /* 0x00 - User Defined - Linux Syscall */
  681. .long _ex_soft_bp /* 0x01 - User Defined - Software breakpoint */
  682. .long _ex_trap_c /* 0x02 - User Defined */
  683. .long _ex_trap_c /* 0x03 - User Defined - Atomic test and set service */
  684. .long _ex_spinlock /* 0x04 - User Defined */
  685. .long _ex_trap_c /* 0x05 - User Defined */
  686. .long _ex_trap_c /* 0x06 - User Defined */
  687. .long _ex_trap_c /* 0x07 - User Defined */
  688. .long _ex_trap_c /* 0x08 - User Defined */
  689. .long _ex_trap_c /* 0x09 - User Defined */
  690. .long _ex_trap_c /* 0x0A - User Defined */
  691. .long _ex_trap_c /* 0x0B - User Defined */
  692. .long _ex_trap_c /* 0x0C - User Defined */
  693. .long _ex_trap_c /* 0x0D - User Defined */
  694. .long _ex_trap_c /* 0x0E - User Defined */
  695. .long _ex_trap_c /* 0x0F - User Defined */
  696. .long _ex_single_step /* 0x10 - HW Single step */
  697. .long _ex_trap_c /* 0x11 - Trace Buffer Full */
  698. .long _ex_trap_c /* 0x12 - Reserved */
  699. .long _ex_trap_c /* 0x13 - Reserved */
  700. .long _ex_trap_c /* 0x14 - Reserved */
  701. .long _ex_trap_c /* 0x15 - Reserved */
  702. .long _ex_trap_c /* 0x16 - Reserved */
  703. .long _ex_trap_c /* 0x17 - Reserved */
  704. .long _ex_trap_c /* 0x18 - Reserved */
  705. .long _ex_trap_c /* 0x19 - Reserved */
  706. .long _ex_trap_c /* 0x1A - Reserved */
  707. .long _ex_trap_c /* 0x1B - Reserved */
  708. .long _ex_trap_c /* 0x1C - Reserved */
  709. .long _ex_trap_c /* 0x1D - Reserved */
  710. .long _ex_trap_c /* 0x1E - Reserved */
  711. .long _ex_trap_c /* 0x1F - Reserved */
  712. .long _ex_trap_c /* 0x20 - Reserved */
  713. .long _ex_trap_c /* 0x21 - Undefined Instruction */
  714. .long _ex_trap_c /* 0x22 - Illegal Instruction Combination */
  715. .long _ex_dcplb /* 0x23 - Data CPLB Protection Violation */
  716. .long _ex_trap_c /* 0x24 - Data access misaligned */
  717. .long _ex_trap_c /* 0x25 - Unrecoverable Event */
  718. .long _ex_dcplb /* 0x26 - Data CPLB Miss */
  719. .long _ex_trap_c /* 0x27 - Data CPLB Multiple Hits - Linux Trap Zero */
  720. .long _ex_trap_c /* 0x28 - Emulation Watchpoint */
  721. .long _ex_trap_c /* 0x29 - Instruction fetch access error (535 only) */
  722. .long _ex_trap_c /* 0x2A - Instruction fetch misaligned */
  723. .long _ex_icplb /* 0x2B - Instruction CPLB protection Violation */
  724. .long _ex_icplb /* 0x2C - Instruction CPLB miss */
  725. .long _ex_trap_c /* 0x2D - Instruction CPLB Multiple Hits */
  726. .long _ex_trap_c /* 0x2E - Illegal use of Supervisor Resource */
  727. .long _ex_trap_c /* 0x2E - Illegal use of Supervisor Resource */
  728. .long _ex_trap_c /* 0x2F - Reserved */
  729. .long _ex_trap_c /* 0x30 - Reserved */
  730. .long _ex_trap_c /* 0x31 - Reserved */
  731. .long _ex_trap_c /* 0x32 - Reserved */
  732. .long _ex_trap_c /* 0x33 - Reserved */
  733. .long _ex_trap_c /* 0x34 - Reserved */
  734. .long _ex_trap_c /* 0x35 - Reserved */
  735. .long _ex_trap_c /* 0x36 - Reserved */
  736. .long _ex_trap_c /* 0x37 - Reserved */
  737. .long _ex_trap_c /* 0x38 - Reserved */
  738. .long _ex_trap_c /* 0x39 - Reserved */
  739. .long _ex_trap_c /* 0x3A - Reserved */
  740. .long _ex_trap_c /* 0x3B - Reserved */
  741. .long _ex_trap_c /* 0x3C - Reserved */
  742. .long _ex_trap_c /* 0x3D - Reserved */
  743. .long _ex_trap_c /* 0x3E - Reserved */
  744. .long _ex_trap_c /* 0x3F - Reserved */
  745. ALIGN
  746. ENTRY(_sys_call_table)
  747. .long _sys_ni_syscall /* 0 - old "setup()" system call*/
  748. .long _sys_exit
  749. .long _sys_fork
  750. .long _sys_read
  751. .long _sys_write
  752. .long _sys_open /* 5 */
  753. .long _sys_close
  754. .long _sys_ni_syscall /* old waitpid */
  755. .long _sys_creat
  756. .long _sys_link
  757. .long _sys_unlink /* 10 */
  758. .long _sys_execve
  759. .long _sys_chdir
  760. .long _sys_time
  761. .long _sys_mknod
  762. .long _sys_chmod /* 15 */
  763. .long _sys_chown /* chown16 */
  764. .long _sys_ni_syscall /* old break syscall holder */
  765. .long _sys_ni_syscall /* old stat */
  766. .long _sys_lseek
  767. .long _sys_getpid /* 20 */
  768. .long _sys_mount
  769. .long _sys_ni_syscall /* old umount */
  770. .long _sys_setuid
  771. .long _sys_getuid
  772. .long _sys_stime /* 25 */
  773. .long _sys_ptrace
  774. .long _sys_alarm
  775. .long _sys_ni_syscall /* old fstat */
  776. .long _sys_pause
  777. .long _sys_ni_syscall /* old utime */ /* 30 */
  778. .long _sys_ni_syscall /* old stty syscall holder */
  779. .long _sys_ni_syscall /* old gtty syscall holder */
  780. .long _sys_access
  781. .long _sys_nice
  782. .long _sys_ni_syscall /* 35 */ /* old ftime syscall holder */
  783. .long _sys_sync
  784. .long _sys_kill
  785. .long _sys_rename
  786. .long _sys_mkdir
  787. .long _sys_rmdir /* 40 */
  788. .long _sys_dup
  789. .long _sys_pipe
  790. .long _sys_times
  791. .long _sys_ni_syscall /* old prof syscall holder */
  792. .long _sys_brk /* 45 */
  793. .long _sys_setgid
  794. .long _sys_getgid
  795. .long _sys_ni_syscall /* old sys_signal */
  796. .long _sys_geteuid /* geteuid16 */
  797. .long _sys_getegid /* getegid16 */ /* 50 */
  798. .long _sys_acct
  799. .long _sys_umount /* recycled never used phys() */
  800. .long _sys_ni_syscall /* old lock syscall holder */
  801. .long _sys_ioctl
  802. .long _sys_fcntl /* 55 */
  803. .long _sys_ni_syscall /* old mpx syscall holder */
  804. .long _sys_setpgid
  805. .long _sys_ni_syscall /* old ulimit syscall holder */
  806. .long _sys_ni_syscall /* old old uname */
  807. .long _sys_umask /* 60 */
  808. .long _sys_chroot
  809. .long _sys_ustat
  810. .long _sys_dup2
  811. .long _sys_getppid
  812. .long _sys_getpgrp /* 65 */
  813. .long _sys_setsid
  814. .long _sys_ni_syscall /* old sys_sigaction */
  815. .long _sys_sgetmask
  816. .long _sys_ssetmask
  817. .long _sys_setreuid /* setreuid16 */ /* 70 */
  818. .long _sys_setregid /* setregid16 */
  819. .long _sys_ni_syscall /* old sys_sigsuspend */
  820. .long _sys_ni_syscall /* old sys_sigpending */
  821. .long _sys_sethostname
  822. .long _sys_setrlimit /* 75 */
  823. .long _sys_ni_syscall /* old getrlimit */
  824. .long _sys_getrusage
  825. .long _sys_gettimeofday
  826. .long _sys_settimeofday
  827. .long _sys_getgroups /* getgroups16 */ /* 80 */
  828. .long _sys_setgroups /* setgroups16 */
  829. .long _sys_ni_syscall /* old_select */
  830. .long _sys_symlink
  831. .long _sys_ni_syscall /* old lstat */
  832. .long _sys_readlink /* 85 */
  833. .long _sys_uselib
  834. .long _sys_ni_syscall /* sys_swapon */
  835. .long _sys_reboot
  836. .long _sys_ni_syscall /* old_readdir */
  837. .long _sys_ni_syscall /* sys_mmap */ /* 90 */
  838. .long _sys_munmap
  839. .long _sys_truncate
  840. .long _sys_ftruncate
  841. .long _sys_fchmod
  842. .long _sys_fchown /* fchown16 */ /* 95 */
  843. .long _sys_getpriority
  844. .long _sys_setpriority
  845. .long _sys_ni_syscall /* old profil syscall holder */
  846. .long _sys_statfs
  847. .long _sys_fstatfs /* 100 */
  848. .long _sys_ni_syscall
  849. .long _sys_ni_syscall /* old sys_socketcall */
  850. .long _sys_syslog
  851. .long _sys_setitimer
  852. .long _sys_getitimer /* 105 */
  853. .long _sys_newstat
  854. .long _sys_newlstat
  855. .long _sys_newfstat
  856. .long _sys_ni_syscall /* old uname */
  857. .long _sys_ni_syscall /* iopl for i386 */ /* 110 */
  858. .long _sys_vhangup
  859. .long _sys_ni_syscall /* obsolete idle() syscall */
  860. .long _sys_ni_syscall /* vm86old for i386 */
  861. .long _sys_wait4
  862. .long _sys_ni_syscall /* 115 */ /* sys_swapoff */
  863. .long _sys_sysinfo
  864. .long _sys_ni_syscall /* old sys_ipc */
  865. .long _sys_fsync
  866. .long _sys_ni_syscall /* old sys_sigreturn */
  867. .long _sys_clone /* 120 */
  868. .long _sys_setdomainname
  869. .long _sys_newuname
  870. .long _sys_ni_syscall /* old sys_modify_ldt */
  871. .long _sys_adjtimex
  872. .long _sys_ni_syscall /* 125 */ /* sys_mprotect */
  873. .long _sys_ni_syscall /* old sys_sigprocmask */
  874. .long _sys_ni_syscall /* old "creat_module" */
  875. .long _sys_init_module
  876. .long _sys_delete_module
  877. .long _sys_ni_syscall /* 130: old "get_kernel_syms" */
  878. .long _sys_quotactl
  879. .long _sys_getpgid
  880. .long _sys_fchdir
  881. .long _sys_bdflush
  882. .long _sys_ni_syscall /* 135 */ /* sys_sysfs */
  883. .long _sys_personality
  884. .long _sys_ni_syscall /* for afs_syscall */
  885. .long _sys_setfsuid /* setfsuid16 */
  886. .long _sys_setfsgid /* setfsgid16 */
  887. .long _sys_llseek /* 140 */
  888. .long _sys_getdents
  889. .long _sys_ni_syscall /* sys_select */
  890. .long _sys_flock
  891. .long _sys_ni_syscall /* sys_msync */
  892. .long _sys_readv /* 145 */
  893. .long _sys_writev
  894. .long _sys_getsid
  895. .long _sys_fdatasync
  896. .long _sys_sysctl
  897. .long _sys_ni_syscall /* 150 */ /* sys_mlock */
  898. .long _sys_ni_syscall /* sys_munlock */
  899. .long _sys_ni_syscall /* sys_mlockall */
  900. .long _sys_ni_syscall /* sys_munlockall */
  901. .long _sys_sched_setparam
  902. .long _sys_sched_getparam /* 155 */
  903. .long _sys_sched_setscheduler
  904. .long _sys_sched_getscheduler
  905. .long _sys_sched_yield
  906. .long _sys_sched_get_priority_max
  907. .long _sys_sched_get_priority_min /* 160 */
  908. .long _sys_sched_rr_get_interval
  909. .long _sys_nanosleep
  910. .long _sys_ni_syscall /* sys_mremap */
  911. .long _sys_setresuid /* setresuid16 */
  912. .long _sys_getresuid /* getresuid16 */ /* 165 */
  913. .long _sys_ni_syscall /* for vm86 */
  914. .long _sys_ni_syscall /* old "query_module" */
  915. .long _sys_ni_syscall /* sys_poll */
  916. .long _sys_ni_syscall /* sys_nfsservctl */
  917. .long _sys_setresgid /* setresgid16 */ /* 170 */
  918. .long _sys_getresgid /* getresgid16 */
  919. .long _sys_prctl
  920. .long _sys_rt_sigreturn
  921. .long _sys_rt_sigaction
  922. .long _sys_rt_sigprocmask /* 175 */
  923. .long _sys_rt_sigpending
  924. .long _sys_rt_sigtimedwait
  925. .long _sys_rt_sigqueueinfo
  926. .long _sys_rt_sigsuspend
  927. .long _sys_pread64 /* 180 */
  928. .long _sys_pwrite64
  929. .long _sys_lchown /* lchown16 */
  930. .long _sys_getcwd
  931. .long _sys_capget
  932. .long _sys_capset /* 185 */
  933. .long _sys_sigaltstack
  934. .long _sys_sendfile
  935. .long _sys_ni_syscall /* streams1 */
  936. .long _sys_ni_syscall /* streams2 */
  937. .long _sys_vfork /* 190 */
  938. .long _sys_getrlimit
  939. .long _sys_mmap2
  940. .long _sys_truncate64
  941. .long _sys_ftruncate64
  942. .long _sys_stat64 /* 195 */
  943. .long _sys_lstat64
  944. .long _sys_fstat64
  945. .long _sys_chown
  946. .long _sys_getuid
  947. .long _sys_getgid /* 200 */
  948. .long _sys_geteuid
  949. .long _sys_getegid
  950. .long _sys_setreuid
  951. .long _sys_setregid
  952. .long _sys_getgroups /* 205 */
  953. .long _sys_setgroups
  954. .long _sys_fchown
  955. .long _sys_setresuid
  956. .long _sys_getresuid
  957. .long _sys_setresgid /* 210 */
  958. .long _sys_getresgid
  959. .long _sys_lchown
  960. .long _sys_setuid
  961. .long _sys_setgid
  962. .long _sys_setfsuid /* 215 */
  963. .long _sys_setfsgid
  964. .long _sys_pivot_root
  965. .long _sys_ni_syscall /* sys_mincore */
  966. .long _sys_ni_syscall /* sys_madvise */
  967. .long _sys_getdents64 /* 220 */
  968. .long _sys_fcntl64
  969. .long _sys_ni_syscall /* reserved for TUX */
  970. .long _sys_ni_syscall
  971. .long _sys_gettid
  972. .long _sys_ni_syscall /* 225 */ /* sys_readahead */
  973. .long _sys_setxattr
  974. .long _sys_lsetxattr
  975. .long _sys_fsetxattr
  976. .long _sys_getxattr
  977. .long _sys_lgetxattr /* 230 */
  978. .long _sys_fgetxattr
  979. .long _sys_listxattr
  980. .long _sys_llistxattr
  981. .long _sys_flistxattr
  982. .long _sys_removexattr /* 235 */
  983. .long _sys_lremovexattr
  984. .long _sys_fremovexattr
  985. .long _sys_tkill
  986. .long _sys_sendfile64
  987. .long _sys_futex /* 240 */
  988. .long _sys_sched_setaffinity
  989. .long _sys_sched_getaffinity
  990. .long _sys_ni_syscall /* sys_set_thread_area */
  991. .long _sys_ni_syscall /* sys_get_thread_area */
  992. .long _sys_io_setup /* 245 */
  993. .long _sys_io_destroy
  994. .long _sys_io_getevents
  995. .long _sys_io_submit
  996. .long _sys_io_cancel
  997. .long _sys_ni_syscall /* 250 */ /* sys_alloc_hugepages */
  998. .long _sys_ni_syscall /* sys_freec_hugepages */
  999. .long _sys_exit_group
  1000. .long _sys_lookup_dcookie
  1001. .long _sys_bfin_spinlock
  1002. .long _sys_epoll_create /* 255 */
  1003. .long _sys_epoll_ctl
  1004. .long _sys_epoll_wait
  1005. .long _sys_ni_syscall /* remap_file_pages */
  1006. .long _sys_set_tid_address
  1007. .long _sys_timer_create /* 260 */
  1008. .long _sys_timer_settime
  1009. .long _sys_timer_gettime
  1010. .long _sys_timer_getoverrun
  1011. .long _sys_timer_delete
  1012. .long _sys_clock_settime /* 265 */
  1013. .long _sys_clock_gettime
  1014. .long _sys_clock_getres
  1015. .long _sys_clock_nanosleep
  1016. .long _sys_statfs64
  1017. .long _sys_fstatfs64 /* 270 */
  1018. .long _sys_tgkill
  1019. .long _sys_utimes
  1020. .long _sys_fadvise64_64
  1021. .long _sys_ni_syscall /* vserver */
  1022. .long _sys_ni_syscall /* 275, mbind */
  1023. .long _sys_ni_syscall /* get_mempolicy */
  1024. .long _sys_ni_syscall /* set_mempolicy */
  1025. .long _sys_mq_open
  1026. .long _sys_mq_unlink
  1027. .long _sys_mq_timedsend /* 280 */
  1028. .long _sys_mq_timedreceive
  1029. .long _sys_mq_notify
  1030. .long _sys_mq_getsetattr
  1031. .long _sys_ni_syscall /* kexec_load */
  1032. .long _sys_waitid /* 285 */
  1033. .long _sys_add_key
  1034. .long _sys_request_key
  1035. .long _sys_keyctl
  1036. .long _sys_ioprio_set
  1037. .long _sys_ioprio_get /* 290 */
  1038. .long _sys_inotify_init
  1039. .long _sys_inotify_add_watch
  1040. .long _sys_inotify_rm_watch
  1041. .long _sys_ni_syscall /* migrate_pages */
  1042. .long _sys_openat /* 295 */
  1043. .long _sys_mkdirat
  1044. .long _sys_mknodat
  1045. .long _sys_fchownat
  1046. .long _sys_futimesat
  1047. .long _sys_fstatat64 /* 300 */
  1048. .long _sys_unlinkat
  1049. .long _sys_renameat
  1050. .long _sys_linkat
  1051. .long _sys_symlinkat
  1052. .long _sys_readlinkat /* 305 */
  1053. .long _sys_fchmodat
  1054. .long _sys_faccessat
  1055. .long _sys_pselect6
  1056. .long _sys_ppoll
  1057. .long _sys_unshare /* 310 */
  1058. .long _sys_sram_alloc
  1059. .long _sys_sram_free
  1060. .long _sys_dma_memcpy
  1061. .long _sys_accept
  1062. .long _sys_bind /* 315 */
  1063. .long _sys_connect
  1064. .long _sys_getpeername
  1065. .long _sys_getsockname
  1066. .long _sys_getsockopt
  1067. .long _sys_listen /* 320 */
  1068. .long _sys_recv
  1069. .long _sys_recvfrom
  1070. .long _sys_recvmsg
  1071. .long _sys_send
  1072. .long _sys_sendmsg /* 325 */
  1073. .long _sys_sendto
  1074. .long _sys_setsockopt
  1075. .long _sys_shutdown
  1076. .long _sys_socket
  1077. .long _sys_socketpair /* 330 */
  1078. .long _sys_semctl
  1079. .long _sys_semget
  1080. .long _sys_semop
  1081. .long _sys_msgctl
  1082. .long _sys_msgget /* 335 */
  1083. .long _sys_msgrcv
  1084. .long _sys_msgsnd
  1085. .long _sys_shmat
  1086. .long _sys_shmctl
  1087. .long _sys_shmdt /* 340 */
  1088. .long _sys_shmget
  1089. .rept NR_syscalls-(.-_sys_call_table)/4
  1090. .long _sys_ni_syscall
  1091. .endr
  1092. _excpt_saved_imask:
  1093. .long 0;
  1094. _exception_stack:
  1095. .rept 1024
  1096. .long 0;
  1097. .endr
  1098. _exception_stack_top:
  1099. #if defined(ANOMALY_05000261)
  1100. /* Used by the assembly entry point to work around an anomaly. */
  1101. _last_cplb_fault_retx:
  1102. .long 0;
  1103. #endif
  1104. /*
  1105. * Single instructions can have multiple faults, which need to be
  1106. * handled by traps.c, in irq5. We store the exception cause to ensure
  1107. * we don't miss a double fault condition
  1108. */
  1109. ENTRY(_in_ptr_excause)
  1110. .long 0;
  1111. ENTRY(_out_ptr_excause)
  1112. .long 0;
  1113. ALIGN
  1114. ENTRY(_excause_circ_buf)
  1115. .rept 4
  1116. .long 0
  1117. .endr