entry-common.S 15 KB

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