entry-common.S 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. /*
  2. * linux/arch/arm/kernel/entry-common.S
  3. *
  4. * Copyright (C) 2000 Russell King
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <asm/unistd.h>
  11. #include <asm/ftrace.h>
  12. #include <asm/unwind.h>
  13. #ifdef CONFIG_NEED_RET_TO_USER
  14. #include <mach/entry-macro.S>
  15. #else
  16. .macro arch_ret_to_user, tmp1, tmp2
  17. .endm
  18. #endif
  19. #include "entry-header.S"
  20. .align 5
  21. /*
  22. * This is the fast syscall return path. We do as little as
  23. * possible here, and this includes saving r0 back into the SVC
  24. * stack.
  25. */
  26. ret_fast_syscall:
  27. UNWIND(.fnstart )
  28. UNWIND(.cantunwind )
  29. disable_irq @ disable interrupts
  30. ldr r1, [tsk, #TI_FLAGS]
  31. tst r1, #_TIF_WORK_MASK
  32. bne fast_work_pending
  33. #if defined(CONFIG_IRQSOFF_TRACER)
  34. asm_trace_hardirqs_on
  35. #endif
  36. /* perform architecture specific actions before user return */
  37. arch_ret_to_user r1, lr
  38. restore_user_regs fast = 1, offset = S_OFF
  39. UNWIND(.fnend )
  40. /*
  41. * Ok, we need to do extra processing, enter the slow path.
  42. */
  43. fast_work_pending:
  44. str r0, [sp, #S_R0+S_OFF]! @ returned r0
  45. work_pending:
  46. tst r1, #_TIF_NEED_RESCHED
  47. bne work_resched
  48. tst r1, #_TIF_SIGPENDING|_TIF_NOTIFY_RESUME
  49. beq no_work_pending
  50. mov r0, sp @ 'regs'
  51. mov r2, why @ 'syscall'
  52. tst r1, #_TIF_SIGPENDING @ delivering a signal?
  53. movne why, #0 @ prevent further restarts
  54. bl do_notify_resume
  55. b ret_slow_syscall @ Check work again
  56. work_resched:
  57. bl schedule
  58. /*
  59. * "slow" syscall return path. "why" tells us if this was a real syscall.
  60. */
  61. ENTRY(ret_to_user)
  62. ret_slow_syscall:
  63. disable_irq @ disable interrupts
  64. ENTRY(ret_to_user_from_irq)
  65. ldr r1, [tsk, #TI_FLAGS]
  66. tst r1, #_TIF_WORK_MASK
  67. bne work_pending
  68. no_work_pending:
  69. #if defined(CONFIG_IRQSOFF_TRACER)
  70. asm_trace_hardirqs_on
  71. #endif
  72. /* perform architecture specific actions before user return */
  73. arch_ret_to_user r1, lr
  74. restore_user_regs fast = 0, offset = 0
  75. ENDPROC(ret_to_user_from_irq)
  76. ENDPROC(ret_to_user)
  77. /*
  78. * This is how we return from a fork.
  79. */
  80. ENTRY(ret_from_fork)
  81. bl schedule_tail
  82. get_thread_info tsk
  83. ldr r1, [tsk, #TI_FLAGS] @ check for syscall tracing
  84. mov why, #1
  85. tst r1, #_TIF_SYSCALL_WORK @ are we tracing syscalls?
  86. beq ret_slow_syscall
  87. mov r1, sp
  88. mov r0, #1 @ trace exit [IP = 1]
  89. bl syscall_trace
  90. b ret_slow_syscall
  91. ENDPROC(ret_from_fork)
  92. .equ NR_syscalls,0
  93. #define CALL(x) .equ NR_syscalls,NR_syscalls+1
  94. #include "calls.S"
  95. #undef CALL
  96. #define CALL(x) .long x
  97. #ifdef CONFIG_FUNCTION_TRACER
  98. /*
  99. * When compiling with -pg, gcc inserts a call to the mcount routine at the
  100. * start of every function. In mcount, apart from the function's address (in
  101. * lr), we need to get hold of the function's caller's address.
  102. *
  103. * Older GCCs (pre-4.4) inserted a call to a routine called mcount like this:
  104. *
  105. * bl mcount
  106. *
  107. * These versions have the limitation that in order for the mcount routine to
  108. * be able to determine the function's caller's address, an APCS-style frame
  109. * pointer (which is set up with something like the code below) is required.
  110. *
  111. * mov ip, sp
  112. * push {fp, ip, lr, pc}
  113. * sub fp, ip, #4
  114. *
  115. * With EABI, these frame pointers are not available unless -mapcs-frame is
  116. * specified, and if building as Thumb-2, not even then.
  117. *
  118. * Newer GCCs (4.4+) solve this problem by introducing a new version of mcount,
  119. * with call sites like:
  120. *
  121. * push {lr}
  122. * bl __gnu_mcount_nc
  123. *
  124. * With these compilers, frame pointers are not necessary.
  125. *
  126. * mcount can be thought of as a function called in the middle of a subroutine
  127. * call. As such, it needs to be transparent for both the caller and the
  128. * callee: the original lr needs to be restored when leaving mcount, and no
  129. * registers should be clobbered. (In the __gnu_mcount_nc implementation, we
  130. * clobber the ip register. This is OK because the ARM calling convention
  131. * allows it to be clobbered in subroutines and doesn't use it to hold
  132. * parameters.)
  133. *
  134. * When using dynamic ftrace, we patch out the mcount call by a "mov r0, r0"
  135. * for the mcount case, and a "pop {lr}" for the __gnu_mcount_nc case (see
  136. * arch/arm/kernel/ftrace.c).
  137. */
  138. #ifndef CONFIG_OLD_MCOUNT
  139. #if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))
  140. #error Ftrace requires CONFIG_FRAME_POINTER=y with GCC older than 4.4.0.
  141. #endif
  142. #endif
  143. .macro mcount_adjust_addr rd, rn
  144. bic \rd, \rn, #1 @ clear the Thumb bit if present
  145. sub \rd, \rd, #MCOUNT_INSN_SIZE
  146. .endm
  147. .macro __mcount suffix
  148. mcount_enter
  149. ldr r0, =ftrace_trace_function
  150. ldr r2, [r0]
  151. adr r0, .Lftrace_stub
  152. cmp r0, r2
  153. bne 1f
  154. #ifdef CONFIG_FUNCTION_GRAPH_TRACER
  155. ldr r1, =ftrace_graph_return
  156. ldr r2, [r1]
  157. cmp r0, r2
  158. bne ftrace_graph_caller\suffix
  159. ldr r1, =ftrace_graph_entry
  160. ldr r2, [r1]
  161. ldr r0, =ftrace_graph_entry_stub
  162. cmp r0, r2
  163. bne ftrace_graph_caller\suffix
  164. #endif
  165. mcount_exit
  166. 1: mcount_get_lr r1 @ lr of instrumented func
  167. mcount_adjust_addr r0, lr @ instrumented function
  168. adr lr, BSYM(2f)
  169. mov pc, r2
  170. 2: mcount_exit
  171. .endm
  172. .macro __ftrace_caller suffix
  173. mcount_enter
  174. mcount_get_lr r1 @ lr of instrumented func
  175. mcount_adjust_addr r0, lr @ instrumented function
  176. .globl ftrace_call\suffix
  177. ftrace_call\suffix:
  178. bl ftrace_stub
  179. #ifdef CONFIG_FUNCTION_GRAPH_TRACER
  180. .globl ftrace_graph_call\suffix
  181. ftrace_graph_call\suffix:
  182. mov r0, r0
  183. #endif
  184. mcount_exit
  185. .endm
  186. .macro __ftrace_graph_caller
  187. sub r0, fp, #4 @ &lr of instrumented routine (&parent)
  188. #ifdef CONFIG_DYNAMIC_FTRACE
  189. @ called from __ftrace_caller, saved in mcount_enter
  190. ldr r1, [sp, #16] @ instrumented routine (func)
  191. mcount_adjust_addr r1, r1
  192. #else
  193. @ called from __mcount, untouched in lr
  194. mcount_adjust_addr r1, lr @ instrumented routine (func)
  195. #endif
  196. mov r2, fp @ frame pointer
  197. bl prepare_ftrace_return
  198. mcount_exit
  199. .endm
  200. #ifdef CONFIG_OLD_MCOUNT
  201. /*
  202. * mcount
  203. */
  204. .macro mcount_enter
  205. stmdb sp!, {r0-r3, lr}
  206. .endm
  207. .macro mcount_get_lr reg
  208. ldr \reg, [fp, #-4]
  209. .endm
  210. .macro mcount_exit
  211. ldr lr, [fp, #-4]
  212. ldmia sp!, {r0-r3, pc}
  213. .endm
  214. ENTRY(mcount)
  215. #ifdef CONFIG_DYNAMIC_FTRACE
  216. stmdb sp!, {lr}
  217. ldr lr, [fp, #-4]
  218. ldmia sp!, {pc}
  219. #else
  220. __mcount _old
  221. #endif
  222. ENDPROC(mcount)
  223. #ifdef CONFIG_DYNAMIC_FTRACE
  224. ENTRY(ftrace_caller_old)
  225. __ftrace_caller _old
  226. ENDPROC(ftrace_caller_old)
  227. #endif
  228. #ifdef CONFIG_FUNCTION_GRAPH_TRACER
  229. ENTRY(ftrace_graph_caller_old)
  230. __ftrace_graph_caller
  231. ENDPROC(ftrace_graph_caller_old)
  232. #endif
  233. .purgem mcount_enter
  234. .purgem mcount_get_lr
  235. .purgem mcount_exit
  236. #endif
  237. /*
  238. * __gnu_mcount_nc
  239. */
  240. .macro mcount_enter
  241. stmdb sp!, {r0-r3, lr}
  242. .endm
  243. .macro mcount_get_lr reg
  244. ldr \reg, [sp, #20]
  245. .endm
  246. .macro mcount_exit
  247. ldmia sp!, {r0-r3, ip, lr}
  248. mov pc, ip
  249. .endm
  250. ENTRY(__gnu_mcount_nc)
  251. #ifdef CONFIG_DYNAMIC_FTRACE
  252. mov ip, lr
  253. ldmia sp!, {lr}
  254. mov pc, ip
  255. #else
  256. __mcount
  257. #endif
  258. ENDPROC(__gnu_mcount_nc)
  259. #ifdef CONFIG_DYNAMIC_FTRACE
  260. ENTRY(ftrace_caller)
  261. __ftrace_caller
  262. ENDPROC(ftrace_caller)
  263. #endif
  264. #ifdef CONFIG_FUNCTION_GRAPH_TRACER
  265. ENTRY(ftrace_graph_caller)
  266. __ftrace_graph_caller
  267. ENDPROC(ftrace_graph_caller)
  268. #endif
  269. .purgem mcount_enter
  270. .purgem mcount_get_lr
  271. .purgem mcount_exit
  272. #ifdef CONFIG_FUNCTION_GRAPH_TRACER
  273. .globl return_to_handler
  274. return_to_handler:
  275. stmdb sp!, {r0-r3}
  276. mov r0, fp @ frame pointer
  277. bl ftrace_return_to_handler
  278. mov lr, r0 @ r0 has real ret addr
  279. ldmia sp!, {r0-r3}
  280. mov pc, lr
  281. #endif
  282. ENTRY(ftrace_stub)
  283. .Lftrace_stub:
  284. mov pc, lr
  285. ENDPROC(ftrace_stub)
  286. #endif /* CONFIG_FUNCTION_TRACER */
  287. /*=============================================================================
  288. * SWI handler
  289. *-----------------------------------------------------------------------------
  290. */
  291. /* If we're optimising for StrongARM the resulting code won't
  292. run on an ARM7 and we can save a couple of instructions.
  293. --pb */
  294. #ifdef CONFIG_CPU_ARM710
  295. #define A710(code...) code
  296. .Larm710bug:
  297. ldmia sp, {r0 - lr}^ @ Get calling r0 - lr
  298. mov r0, r0
  299. add sp, sp, #S_FRAME_SIZE
  300. subs pc, lr, #4
  301. #else
  302. #define A710(code...)
  303. #endif
  304. .align 5
  305. ENTRY(vector_swi)
  306. sub sp, sp, #S_FRAME_SIZE
  307. stmia sp, {r0 - r12} @ Calling r0 - r12
  308. ARM( add r8, sp, #S_PC )
  309. ARM( stmdb r8, {sp, lr}^ ) @ Calling sp, lr
  310. THUMB( mov r8, sp )
  311. THUMB( store_user_sp_lr r8, r10, S_SP ) @ calling sp, lr
  312. mrs r8, spsr @ called from non-FIQ mode, so ok.
  313. str lr, [sp, #S_PC] @ Save calling PC
  314. str r8, [sp, #S_PSR] @ Save CPSR
  315. str r0, [sp, #S_OLD_R0] @ Save OLD_R0
  316. zero_fp
  317. /*
  318. * Get the system call number.
  319. */
  320. #if defined(CONFIG_OABI_COMPAT)
  321. /*
  322. * If we have CONFIG_OABI_COMPAT then we need to look at the swi
  323. * value to determine if it is an EABI or an old ABI call.
  324. */
  325. #ifdef CONFIG_ARM_THUMB
  326. tst r8, #PSR_T_BIT
  327. movne r10, #0 @ no thumb OABI emulation
  328. ldreq r10, [lr, #-4] @ get SWI instruction
  329. #else
  330. ldr r10, [lr, #-4] @ get SWI instruction
  331. A710( and ip, r10, #0x0f000000 @ check for SWI )
  332. A710( teq ip, #0x0f000000 )
  333. A710( bne .Larm710bug )
  334. #endif
  335. #ifdef CONFIG_CPU_ENDIAN_BE8
  336. rev r10, r10 @ little endian instruction
  337. #endif
  338. #elif defined(CONFIG_AEABI)
  339. /*
  340. * Pure EABI user space always put syscall number into scno (r7).
  341. */
  342. A710( ldr ip, [lr, #-4] @ get SWI instruction )
  343. A710( and ip, ip, #0x0f000000 @ check for SWI )
  344. A710( teq ip, #0x0f000000 )
  345. A710( bne .Larm710bug )
  346. #elif defined(CONFIG_ARM_THUMB)
  347. /* Legacy ABI only, possibly thumb mode. */
  348. tst r8, #PSR_T_BIT @ this is SPSR from save_user_regs
  349. addne scno, r7, #__NR_SYSCALL_BASE @ put OS number in
  350. ldreq scno, [lr, #-4]
  351. #else
  352. /* Legacy ABI only. */
  353. ldr scno, [lr, #-4] @ get SWI instruction
  354. A710( and ip, scno, #0x0f000000 @ check for SWI )
  355. A710( teq ip, #0x0f000000 )
  356. A710( bne .Larm710bug )
  357. #endif
  358. #ifdef CONFIG_ALIGNMENT_TRAP
  359. ldr ip, __cr_alignment
  360. ldr ip, [ip]
  361. mcr p15, 0, ip, c1, c0 @ update control register
  362. #endif
  363. enable_irq
  364. get_thread_info tsk
  365. adr tbl, sys_call_table @ load syscall table pointer
  366. #if defined(CONFIG_OABI_COMPAT)
  367. /*
  368. * If the swi argument is zero, this is an EABI call and we do nothing.
  369. *
  370. * If this is an old ABI call, get the syscall number into scno and
  371. * get the old ABI syscall table address.
  372. */
  373. bics r10, r10, #0xff000000
  374. eorne scno, r10, #__NR_OABI_SYSCALL_BASE
  375. ldrne tbl, =sys_oabi_call_table
  376. #elif !defined(CONFIG_AEABI)
  377. bic scno, scno, #0xff000000 @ mask off SWI op-code
  378. eor scno, scno, #__NR_SYSCALL_BASE @ check OS number
  379. #endif
  380. ldr r10, [tsk, #TI_FLAGS] @ check for syscall tracing
  381. stmdb sp!, {r4, r5} @ push fifth and sixth args
  382. #ifdef CONFIG_SECCOMP
  383. tst r10, #_TIF_SECCOMP
  384. beq 1f
  385. mov r0, scno
  386. bl __secure_computing
  387. add r0, sp, #S_R0 + S_OFF @ pointer to regs
  388. ldmia r0, {r0 - r3} @ have to reload r0 - r3
  389. 1:
  390. #endif
  391. tst r10, #_TIF_SYSCALL_WORK @ are we tracing syscalls?
  392. bne __sys_trace
  393. cmp scno, #NR_syscalls @ check upper syscall limit
  394. adr lr, BSYM(ret_fast_syscall) @ return address
  395. ldrcc pc, [tbl, scno, lsl #2] @ call sys_* routine
  396. add r1, sp, #S_OFF
  397. 2: mov why, #0 @ no longer a real syscall
  398. cmp scno, #(__ARM_NR_BASE - __NR_SYSCALL_BASE)
  399. eor r0, scno, #__NR_SYSCALL_BASE @ put OS number back
  400. bcs arm_syscall
  401. b sys_ni_syscall @ not private func
  402. ENDPROC(vector_swi)
  403. /*
  404. * This is the really slow path. We're going to be doing
  405. * context switches, and waiting for our parent to respond.
  406. */
  407. __sys_trace:
  408. mov r2, scno
  409. add r1, sp, #S_OFF
  410. mov r0, #0 @ trace entry [IP = 0]
  411. bl syscall_trace
  412. adr lr, BSYM(__sys_trace_return) @ return address
  413. mov scno, r0 @ syscall number (possibly new)
  414. add r1, sp, #S_R0 + S_OFF @ pointer to regs
  415. cmp scno, #NR_syscalls @ check upper syscall limit
  416. ldmccia r1, {r0 - r3} @ have to reload r0 - r3
  417. ldrcc pc, [tbl, scno, lsl #2] @ call sys_* routine
  418. b 2b
  419. __sys_trace_return:
  420. str r0, [sp, #S_R0 + S_OFF]! @ save returned r0
  421. mov r2, scno
  422. mov r1, sp
  423. mov r0, #1 @ trace exit [IP = 1]
  424. bl syscall_trace
  425. b ret_slow_syscall
  426. .align 5
  427. #ifdef CONFIG_ALIGNMENT_TRAP
  428. .type __cr_alignment, #object
  429. __cr_alignment:
  430. .word cr_alignment
  431. #endif
  432. .ltorg
  433. /*
  434. * This is the syscall table declaration for native ABI syscalls.
  435. * With EABI a couple syscalls are obsolete and defined as sys_ni_syscall.
  436. */
  437. #define ABI(native, compat) native
  438. #ifdef CONFIG_AEABI
  439. #define OBSOLETE(syscall) sys_ni_syscall
  440. #else
  441. #define OBSOLETE(syscall) syscall
  442. #endif
  443. .type sys_call_table, #object
  444. ENTRY(sys_call_table)
  445. #include "calls.S"
  446. #undef ABI
  447. #undef OBSOLETE
  448. /*============================================================================
  449. * Special system call wrappers
  450. */
  451. @ r0 = syscall number
  452. @ r8 = syscall table
  453. sys_syscall:
  454. bic scno, r0, #__NR_OABI_SYSCALL_BASE
  455. cmp scno, #__NR_syscall - __NR_SYSCALL_BASE
  456. cmpne scno, #NR_syscalls @ check range
  457. stmloia sp, {r5, r6} @ shuffle args
  458. movlo r0, r1
  459. movlo r1, r2
  460. movlo r2, r3
  461. movlo r3, r4
  462. ldrlo pc, [tbl, scno, lsl #2]
  463. b sys_ni_syscall
  464. ENDPROC(sys_syscall)
  465. sys_fork_wrapper:
  466. add r0, sp, #S_OFF
  467. b sys_fork
  468. ENDPROC(sys_fork_wrapper)
  469. sys_vfork_wrapper:
  470. add r0, sp, #S_OFF
  471. b sys_vfork
  472. ENDPROC(sys_vfork_wrapper)
  473. sys_execve_wrapper:
  474. add r3, sp, #S_OFF
  475. b sys_execve
  476. ENDPROC(sys_execve_wrapper)
  477. sys_clone_wrapper:
  478. add ip, sp, #S_OFF
  479. str ip, [sp, #4]
  480. b sys_clone
  481. ENDPROC(sys_clone_wrapper)
  482. sys_sigreturn_wrapper:
  483. add r0, sp, #S_OFF
  484. mov why, #0 @ prevent syscall restart handling
  485. b sys_sigreturn
  486. ENDPROC(sys_sigreturn_wrapper)
  487. sys_rt_sigreturn_wrapper:
  488. add r0, sp, #S_OFF
  489. mov why, #0 @ prevent syscall restart handling
  490. b sys_rt_sigreturn
  491. ENDPROC(sys_rt_sigreturn_wrapper)
  492. sys_sigaltstack_wrapper:
  493. ldr r2, [sp, #S_OFF + S_SP]
  494. b do_sigaltstack
  495. ENDPROC(sys_sigaltstack_wrapper)
  496. sys_statfs64_wrapper:
  497. teq r1, #88
  498. moveq r1, #84
  499. b sys_statfs64
  500. ENDPROC(sys_statfs64_wrapper)
  501. sys_fstatfs64_wrapper:
  502. teq r1, #88
  503. moveq r1, #84
  504. b sys_fstatfs64
  505. ENDPROC(sys_fstatfs64_wrapper)
  506. /*
  507. * Note: off_4k (r5) is always units of 4K. If we can't do the requested
  508. * offset, we return EINVAL.
  509. */
  510. sys_mmap2:
  511. #if PAGE_SHIFT > 12
  512. tst r5, #PGOFF_MASK
  513. moveq r5, r5, lsr #PAGE_SHIFT - 12
  514. streq r5, [sp, #4]
  515. beq sys_mmap_pgoff
  516. mov r0, #-EINVAL
  517. mov pc, lr
  518. #else
  519. str r5, [sp, #4]
  520. b sys_mmap_pgoff
  521. #endif
  522. ENDPROC(sys_mmap2)
  523. #ifdef CONFIG_OABI_COMPAT
  524. /*
  525. * These are syscalls with argument register differences
  526. */
  527. sys_oabi_pread64:
  528. stmia sp, {r3, r4}
  529. b sys_pread64
  530. ENDPROC(sys_oabi_pread64)
  531. sys_oabi_pwrite64:
  532. stmia sp, {r3, r4}
  533. b sys_pwrite64
  534. ENDPROC(sys_oabi_pwrite64)
  535. sys_oabi_truncate64:
  536. mov r3, r2
  537. mov r2, r1
  538. b sys_truncate64
  539. ENDPROC(sys_oabi_truncate64)
  540. sys_oabi_ftruncate64:
  541. mov r3, r2
  542. mov r2, r1
  543. b sys_ftruncate64
  544. ENDPROC(sys_oabi_ftruncate64)
  545. sys_oabi_readahead:
  546. str r3, [sp]
  547. mov r3, r2
  548. mov r2, r1
  549. b sys_readahead
  550. ENDPROC(sys_oabi_readahead)
  551. /*
  552. * Let's declare a second syscall table for old ABI binaries
  553. * using the compatibility syscall entries.
  554. */
  555. #define ABI(native, compat) compat
  556. #define OBSOLETE(syscall) syscall
  557. .type sys_oabi_call_table, #object
  558. ENTRY(sys_oabi_call_table)
  559. #include "calls.S"
  560. #undef ABI
  561. #undef OBSOLETE
  562. #endif