pthread_cond_timedwait.S 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  1. /* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3. The GNU C Library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. The GNU C Library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with the GNU C Library; if not, write to the Free
  13. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  14. 02111-1307 USA. */
  15. #include <sysdep.h>
  16. #include <lowlevelcond.h>
  17. #include <pthread-errnos.h>
  18. #include "lowlevel-atomic.h"
  19. #define SYS_gettimeofday __NR_gettimeofday
  20. #define FUTEX_WAIT 0
  21. #define FUTEX_WAKE 1
  22. .text
  23. /* int pthread_cond_timedwait (pthread_cond_t *cond, pthread_mutex_t *mutex,
  24. const struct timespec *abstime) */
  25. .globl __pthread_cond_timedwait
  26. .type __pthread_cond_timedwait, @function
  27. .align 5
  28. __pthread_cond_timedwait:
  29. .LSTARTCODE:
  30. mov.l r8, @-r15
  31. .Lpush_r8:
  32. mov.l r9, @-r15
  33. .Lpush_r9:
  34. mov.l r10, @-r15
  35. .Lpush_r10:
  36. mov.l r11, @-r15
  37. .Lpush_r11:
  38. mov.l r12, @-r15
  39. .Lpush_r12:
  40. mov.l r13, @-r15
  41. .Lpush_r13:
  42. sts.l pr, @-r15
  43. .Lpush_pr:
  44. add #-64, r15
  45. .Lalloc:
  46. mov r4, r8
  47. mov r5, r9
  48. mov r6, r13
  49. #ifdef __PIC__
  50. mova .Lgot0, r0
  51. mov.l .Lgot0, r12
  52. add r0, r12
  53. #endif
  54. mov.l @(4,r13), r0
  55. mov.l .L1g, r1
  56. cmp/hs r1, r0
  57. bf 0f
  58. bra 18f
  59. mov #EINVAL, r0
  60. 0:
  61. /* Get internal lock. */
  62. mov #0, r3
  63. mov #1, r4
  64. #if cond_lock != 0
  65. CMPXCHG (r3, @(cond_lock,r8), r4, r2)
  66. #else
  67. CMPXCHG (r3, @r8, r4, r2)
  68. #endif
  69. bt 2f
  70. bra 1f
  71. nop
  72. #ifdef __PIC__
  73. .align 2
  74. .Lgot0:
  75. .long _GLOBAL_OFFSET_TABLE_
  76. #endif
  77. 2:
  78. /* Store the reference to the mutex. If there is already a
  79. different value in there this is a bad user bug. */
  80. mov.l @(dep_mutex,r8),r0
  81. cmp/eq #-1, r0
  82. bt 17f
  83. mov.l r9, @(dep_mutex,r8)
  84. 17:
  85. /* Unlock the mutex. */
  86. mov.l .Lmunlock1, r1
  87. mov #0, r5
  88. bsrf r1
  89. mov r9, r4
  90. .Lmunlock1b:
  91. tst r0, r0
  92. bt 0f
  93. bra 16f
  94. nop
  95. 0:
  96. mov #1, r2
  97. mov #0, r3
  98. clrt
  99. mov.l @(total_seq,r8),r0
  100. mov.l @(total_seq+4,r8),r1
  101. addc r2, r0
  102. addc r3, r1
  103. mov.l r0,@(total_seq,r8)
  104. mov.l r1,@(total_seq+4,r8)
  105. mov.l @(cond_futex,r8), r0
  106. add r2, r0
  107. mov.l r0, @(cond_futex,r8)
  108. mov #(1 << clock_bits), r2
  109. mov.l @(cond_nwaiters,r8), r0
  110. add r2, r0
  111. mov.l r0, @(cond_nwaiters,r8)
  112. /* Get and store current wakeup_seq value. */
  113. mov.l @(wakeup_seq,r8), r10
  114. mov.l @(wakeup_seq+4,r8), r11
  115. mov.l @(broadcast_seq,r8), r0
  116. mov.l r0, @(4,r15)
  117. 8:
  118. /* Get current time. */
  119. #ifdef __NR_clock_gettime
  120. /* Get the clock number. */
  121. mov.l @(cond_nwaiters,r8), r4
  122. mov #((1 << clock_bits) - 1), r0
  123. and r0, r4
  124. /* Only clocks 0 and 1 are allowed. Both are handled in the
  125. kernel. */
  126. mov r15, r5
  127. add #16, r5
  128. mov.w .L__NR_clock_gettime, r3
  129. trapa #0x12
  130. SYSCALL_INST_PAD
  131. # ifndef __ASSUME_POSIX_TIMERS
  132. cmp/eq #-ENOSYS, r0
  133. bt 19f
  134. # endif
  135. /* Compute relative timeout. */
  136. mov.l @r13, r2
  137. mov.l @(4,r13), r3
  138. mov.l @(16,r15), r0
  139. bra 0f
  140. mov.l @(20,r15), r1
  141. .L__NR_clock_gettime:
  142. .word __NR_clock_gettime
  143. # ifndef __ASSUME_POSIX_TIMERS
  144. 19:
  145. mov r15, r4
  146. add #16, r4
  147. mov #0, r5
  148. mov #SYS_gettimeofday, r3
  149. trapa #0x12
  150. SYSCALL_INST_PAD
  151. /* Compute relative timeout. */
  152. mov.l @(20,r15), r0
  153. mov.w .L1k, r1
  154. dmulu.l r0, r1 /* Micro seconds to nano seconds. */
  155. mov.l @r13, r2
  156. mov.l @(4,r13), r3
  157. mov.l @(16,r15), r0
  158. sts macl, r1
  159. #endif
  160. 0:
  161. #else
  162. mov r15, r4
  163. add #16, r4
  164. mov #0, r5
  165. mov #SYS_gettimeofday, r3
  166. trapa #0x12
  167. SYSCALL_INST_PAD
  168. /* Compute relative timeout. */
  169. mov.l @(20,r15), r0
  170. mov.w .L1k, r1
  171. dmulu.l r0, r1 /* Micro seconds to nano seconds. */
  172. mov.l @r13, r2
  173. mov.l @(4,r13), r3
  174. mov.l @(16,r15), r0
  175. sts macl, r1
  176. #endif
  177. sub r0, r2
  178. clrt
  179. subc r1, r3
  180. bf 12f
  181. mov.l .L1g, r1
  182. add r1, r3
  183. add #-1, r2
  184. 12:
  185. mov #-ETIMEDOUT, r1
  186. mov.l r1, @(12,r15)
  187. cmp/pz r2
  188. bf 6f /* Time is already up. */
  189. /* Store relative timeout. */
  190. mov.l r2, @(16,r15)
  191. mov.l r3, @(20,r15)
  192. mov.l @(cond_futex,r8), r1
  193. mov.l r1, @(8,r15)
  194. /* Unlock. */
  195. #if cond_lock != 0
  196. DEC (@(cond_lock,r8), r2)
  197. #else
  198. DEC (@r8, r2)
  199. #endif
  200. tst r2, r2
  201. bt 4f
  202. bra 3f
  203. nop
  204. 4:
  205. .LcleanupSTART:
  206. mov.l .Lenable1, r1
  207. bsrf r1
  208. nop
  209. .Lenable1b:
  210. mov.l r0, @r15
  211. mov r15, r7
  212. add #16, r7
  213. mov #FUTEX_WAIT, r5
  214. mov.l @(8,r15), r6
  215. mov r8, r4
  216. add #cond_futex, r4
  217. mov #SYS_futex, r3
  218. extu.b r3, r3
  219. trapa #0x14
  220. SYSCALL_INST_PAD
  221. mov.l r0, @(12,r15)
  222. mov.l .Ldisable1, r1
  223. bsrf r1
  224. mov.l @r15, r4
  225. .Ldisable1b:
  226. .LcleanupEND:
  227. /* Lock. */
  228. mov #0, r3
  229. mov #1, r4
  230. #if cond_lock != 0
  231. CMPXCHG (r3, @(cond_lock,r8), r4, r2)
  232. #else
  233. CMPXCHG (r3, @r8, r4, r2)
  234. #endif
  235. bf 5f
  236. 6:
  237. mov.l @(broadcast_seq,r8), r0
  238. mov.l @(4,r15), r1
  239. cmp/eq r0, r1
  240. bf 23f
  241. mov.l @(woken_seq,r8), r0
  242. mov.l @(woken_seq+4,r8), r1
  243. mov.l @(wakeup_seq,r8), r2
  244. mov.l @(wakeup_seq+4,r8), r3
  245. cmp/eq r3, r11
  246. bf 7f
  247. cmp/eq r2, r10
  248. bt 15f
  249. 7:
  250. cmp/eq r1, r3
  251. bf 9f
  252. cmp/eq r0, r2
  253. bf 9f
  254. 15:
  255. mov.l @(12,r15),r0
  256. cmp/eq #-ETIMEDOUT, r0
  257. bf 8b
  258. mov #1, r2
  259. mov #0, r3
  260. clrt
  261. mov.l @(wakeup_seq,r8),r0
  262. mov.l @(wakeup_seq+4,r8),r1
  263. addc r2, r0
  264. addc r3, r1
  265. mov.l r0,@(wakeup_seq,r8)
  266. mov.l r1,@(wakeup_seq+4,r8)
  267. mov.l @(cond_futex,r8),r0
  268. add r2, r0
  269. mov.l r0,@(cond_futex,r8)
  270. mov #ETIMEDOUT, r0
  271. bra 14f
  272. mov.l r0, @(24,r15)
  273. 23:
  274. mov #0, r0
  275. bra 24f
  276. mov.l r0, @(24,r15)
  277. 9:
  278. mov #0, r0
  279. mov.l r0, @(24,r15)
  280. 14:
  281. mov #1, r2
  282. mov #0, r3
  283. clrt
  284. mov.l @(woken_seq,r8),r0
  285. mov.l @(woken_seq+4,r8),r1
  286. addc r2, r0
  287. addc r3, r1
  288. mov.l r0,@(woken_seq,r8)
  289. mov.l r1,@(woken_seq+4,r8)
  290. 24:
  291. mov #(1 << clock_bits), r2
  292. mov.l @(cond_nwaiters,r8),r0
  293. sub r2, r0
  294. mov.l r0,@(cond_nwaiters,r8)
  295. /* Wake up a thread which wants to destroy the condvar object. */
  296. mov.l @(total_seq,r8),r0
  297. mov.l @(total_seq+4,r8),r1
  298. and r1, r0
  299. not r0, r0
  300. cmp/eq #0, r0
  301. bf/s 25f
  302. mov #((1 << clock_bits) - 1), r1
  303. not r1, r1
  304. mov.l @(cond_nwaiters,r8),r0
  305. tst r1, r0
  306. bf 25f
  307. mov r8, r4
  308. add #cond_nwaiters, r4
  309. mov #FUTEX_WAKE, r5
  310. mov #1, r6
  311. mov #0, r7
  312. mov #SYS_futex, r3
  313. extu.b r3, r3
  314. trapa #0x14
  315. SYSCALL_INST_PAD
  316. 25:
  317. #if cond_lock != 0
  318. DEC (@(cond_lock,r8), r2)
  319. #else
  320. DEC (@r8, r2)
  321. #endif
  322. tst r2, r2
  323. bf 10f
  324. 11:
  325. mov r9, r4
  326. mov.l .Lmlocki1, r1
  327. bsrf r1
  328. nop
  329. .Lmlocki1b:
  330. /* We return the result of the mutex_lock operation if it failed. */
  331. tst r0, r0
  332. bf 18f
  333. mov.l @(24,r15), r0
  334. 18:
  335. add #64, r15
  336. lds.l @r15+, pr
  337. mov.l @r15+, r13
  338. mov.l @r15+, r12
  339. mov.l @r15+, r11
  340. mov.l @r15+, r10
  341. mov.l @r15+, r9
  342. rts
  343. mov.l @r15+, r8
  344. .L1k:
  345. .word 1000
  346. .align 2
  347. .Lmunlock1:
  348. .long __pthread_mutex_unlock_usercnt-.Lmunlock1b
  349. .Lenable1:
  350. .long __pthread_enable_asynccancel-.Lenable1b
  351. .Ldisable1:
  352. .long __pthread_disable_asynccancel-.Ldisable1b
  353. .Lmlocki1:
  354. .long __pthread_mutex_cond_lock-.Lmlocki1b
  355. .L1g:
  356. .long 1000000000
  357. 1:
  358. /* Initial locking failed. */
  359. mov r8, r5
  360. #if cond_lock != 0
  361. add #cond_lock, r5
  362. #endif
  363. mov.l .Lmwait2, r1
  364. bsrf r1
  365. mov r2, r4
  366. .Lmwait2b:
  367. bra 2b
  368. nop
  369. 3:
  370. /* Unlock in loop requires wakeup. */
  371. mov r8, r4
  372. #if cond_lock != 0
  373. add #cond_lock, r4
  374. #endif
  375. mov.l .Lmwake2, r1
  376. bsrf r1
  377. nop
  378. .Lmwake2b:
  379. bra 4b
  380. nop
  381. 5:
  382. /* Locking in loop failed. */
  383. mov r8, r5
  384. #if cond_lock != 0
  385. add #cond_lock, r5
  386. #endif
  387. mov.l .Lmwait3, r1
  388. bsrf r1
  389. mov r2, r4
  390. .Lmwait3b:
  391. bra 6b
  392. nop
  393. 10:
  394. /* Unlock after loop requires wakeup. */
  395. mov r8, r4
  396. #if cond_lock != 0
  397. add #cond_lock, r4
  398. #endif
  399. mov.l .Lmwake3, r1
  400. bsrf r1
  401. nop
  402. .Lmwake3b:
  403. bra 11b
  404. nop
  405. 16:
  406. /* The initial unlocking of the mutex failed. */
  407. mov.l r0, @(24,r15)
  408. #if cond_lock != 0
  409. DEC (@(cond_lock,r8), r2)
  410. #else
  411. DEC (@r8, r2)
  412. #endif
  413. tst r2, r2
  414. bf 17f
  415. mov r8, r4
  416. #if cond_lock != 0
  417. add #cond_lock, r4
  418. #endif
  419. mov.l .Lmwake4, r1
  420. bsrf r1
  421. nop
  422. .Lmwake4b:
  423. 17:
  424. bra 18b
  425. mov.l @(24,r15), r0
  426. .align 2
  427. .Lmwait2:
  428. .long __lll_mutex_lock_wait-.Lmwait2b
  429. .Lmwake2:
  430. .long __lll_mutex_unlock_wake-.Lmwake2b
  431. .Lmwait3:
  432. .long __lll_mutex_lock_wait-.Lmwait3b
  433. .Lmwake3:
  434. .long __lll_mutex_unlock_wake-.Lmwake3b
  435. .Lmwake4:
  436. .long __lll_mutex_unlock_wake-.Lmwake4b
  437. .size __pthread_cond_timedwait, .-__pthread_cond_timedwait
  438. weak_alias (__pthread_cond_timedwait, pthread_cond_timedwait)
  439. .type __condvar_tw_cleanup, @function
  440. __condvar_tw_cleanup:
  441. mov r4, r11
  442. /* Get internal lock. */
  443. mov #0, r3
  444. mov #1, r4
  445. #if cond_lock != 0
  446. CMPXCHG (r3, @(cond_lock,r8), r4, r2)
  447. #else
  448. CMPXCHG (r3, @r8, r4, r2)
  449. #endif
  450. bt 1f
  451. nop
  452. mov r8, r5
  453. #if cond_lock != 0
  454. add #cond_lock, r5
  455. #endif
  456. mov.l .Lmwait5, r1
  457. bsrf r1
  458. mov r2, r4
  459. .Lmwait5b:
  460. 1:
  461. mov.l @(broadcast_seq,r8), r0
  462. mov.l @(4,r15), r1
  463. cmp/eq r0, r1
  464. bf 3f
  465. mov #1, r2
  466. mov #0, r3
  467. clrt
  468. mov.l @(wakeup_seq,r8),r0
  469. mov.l @(wakeup_seq+4,r8),r1
  470. addc r2, r0
  471. addc r3, r1
  472. mov.l r0,@(wakeup_seq,r8)
  473. mov.l r1,@(wakeup_seq+4,r8)
  474. mov.l @(cond_futex,r8),r0
  475. add r2, r0
  476. mov.l r0,@(cond_futex,r8)
  477. clrt
  478. mov.l @(woken_seq,r8),r0
  479. mov.l @(woken_seq+4,r8),r1
  480. addc r2, r0
  481. addc r3, r1
  482. mov.l r0,@(woken_seq,r8)
  483. mov.l r1,@(woken_seq+4,r8)
  484. 3:
  485. mov #(1 << clock_bits), r2
  486. mov.l @(cond_nwaiters,r8),r0
  487. sub r2, r0
  488. mov.l r0,@(cond_nwaiters,r8)
  489. /* Wake up a thread which wants to destroy the condvar object. */
  490. mov #0, r10
  491. mov.l @(total_seq,r8),r0
  492. mov.l @(total_seq+4,r8),r1
  493. and r1, r0
  494. not r0, r0
  495. cmp/eq #0, r0
  496. bf/s 4f
  497. mov #((1 << clock_bits) - 1), r1
  498. not r1, r1
  499. mov.l @(cond_nwaiters,r8),r0
  500. tst r1, r0
  501. bf 4f
  502. mov r8, r4
  503. add #cond_nwaiters, r4
  504. mov #FUTEX_WAKE, r5
  505. mov #1, r6
  506. mov #0, r7
  507. mov #SYS_futex, r3
  508. extu.b r3, r3
  509. trapa #0x14
  510. SYSCALL_INST_PAD
  511. mov #1, r10
  512. 4:
  513. #if cond_lock != 0
  514. DEC (@(cond_lock,r8), r2)
  515. #else
  516. DEC (@r8, r2)
  517. #endif
  518. tst r2, r2
  519. bt 2f
  520. mov r8, r4
  521. #if cond_lock != 0
  522. add #cond_lock, r4
  523. #endif
  524. mov.l .Lmwake5, r1
  525. bsrf r1
  526. nop
  527. .Lmwake5b:
  528. 2:
  529. /* Wake up all waiters to make sure no signal gets lost. */
  530. tst r10, r10
  531. bf/s 5f
  532. mov r8, r4
  533. add #cond_futex, r4
  534. mov #FUTEX_WAKE, r5
  535. mov #-1, r6
  536. shlr r6 /* r6 = 0x7fffffff */
  537. mov #0, r7
  538. mov #SYS_futex, r3
  539. extu.b r3, r3
  540. trapa #0x14
  541. SYSCALL_INST_PAD
  542. 5:
  543. mov.l .Lmlocki5, r1
  544. bsrf r1
  545. mov r9, r4
  546. .Lmlocki5b:
  547. .LcallUR:
  548. mov.l .Lresume, r1
  549. #ifdef __PIC__
  550. add r12, r1
  551. #endif
  552. jsr @r1
  553. mov r11, r4
  554. sleep
  555. .align 2
  556. .Lmwait5:
  557. .long __lll_mutex_lock_wait-.Lmwait5b
  558. .Lmwake5:
  559. .long __lll_mutex_unlock_wake-.Lmwake5b
  560. .Lmlocki5:
  561. .long __pthread_mutex_cond_lock-.Lmlocki5b
  562. .Lresume:
  563. #ifdef __PIC__
  564. .long _Unwind_Resume@GOTOFF
  565. #else
  566. .long _Unwind_Resume
  567. #endif
  568. .LENDCODE:
  569. .size __condvar_tw_cleanup, .-__condvar_tw_cleanup
  570. .section .gcc_except_table,"a",@progbits
  571. .LexceptSTART:
  572. .byte 0xff ! @LPStart format (omit)
  573. .byte 0xff ! @TType format (omit)
  574. .byte 0x0b ! call-site format
  575. ! DW_EH_PE_sdata4
  576. .uleb128 .Lcstend-.Lcstbegin
  577. .Lcstbegin:
  578. .ualong .LcleanupSTART-.LSTARTCODE
  579. .ualong .LcleanupEND-.LcleanupSTART
  580. .ualong __condvar_tw_cleanup-.LSTARTCODE
  581. .uleb128 0
  582. .ualong .LcallUR-.LSTARTCODE
  583. .ualong .LENDCODE-.LcallUR
  584. .ualong 0
  585. .uleb128 0
  586. .Lcstend:
  587. .section .eh_frame,"a",@progbits
  588. .LSTARTFRAME:
  589. .ualong .LENDCIE-.LSTARTCIE ! Length of the CIE.
  590. .LSTARTCIE:
  591. .ualong 0 ! CIE ID.
  592. .byte 1 ! Version number.
  593. #ifdef SHARED
  594. .string "zPLR" ! NUL-terminated augmentation
  595. ! string.
  596. #else
  597. .string "zPL" ! NUL-terminated augmentation
  598. ! string.
  599. #endif
  600. .uleb128 1 ! Code alignment factor.
  601. .sleb128 -4 ! Data alignment factor.
  602. .byte 0x11 ! Return address register
  603. ! column.
  604. #ifdef SHARED
  605. .uleb128 7 ! Augmentation value length.
  606. .byte 0x9b ! Personality: DW_EH_PE_pcrel
  607. ! + DW_EH_PE_sdata4
  608. ! + DW_EH_PE_indirect
  609. .ualong DW.ref.__gcc_personality_v0-.
  610. .byte 0x1b ! LSDA Encoding: DW_EH_PE_pcrel
  611. ! + DW_EH_PE_sdata4.
  612. .byte 0x1b ! FDE Encoding: DW_EH_PE_pcrel
  613. ! + DW_EH_PE_sdata4.
  614. #else
  615. .uleb128 6 ! Augmentation value length.
  616. .byte 0x0 ! Personality: absolute
  617. .ualong __gcc_personality_v0
  618. .byte 0x0 ! LSDA Encoding: absolute
  619. #endif
  620. .byte 0x0c ! DW_CFA_def_cfa
  621. .uleb128 0xf
  622. .uleb128 0
  623. .align 2
  624. .LENDCIE:
  625. .ualong .LENDFDE-.LSTARTFDE ! Length of the FDE.
  626. .LSTARTFDE:
  627. .ualong .LSTARTFDE-.LSTARTFRAME ! CIE pointer.
  628. #ifdef SHARED
  629. .ualong .LSTARTCODE-. ! PC-relative start address
  630. ! of the code.
  631. #else
  632. .ualong .LSTARTCODE ! Start address of the code.
  633. #endif
  634. .ualong .LENDCODE-.LSTARTCODE ! Length of the code.
  635. .uleb128 4 ! Augmentation size
  636. #ifdef SHARED
  637. .ualong .LexceptSTART-.
  638. #else
  639. .ualong .LexceptSTART
  640. #endif
  641. .byte 0x4
  642. .ualong .Lpush_r8-.LSTARTCODE
  643. .byte 0xe
  644. .uleb128 4
  645. .byte 0x88
  646. .uleb128 1
  647. .byte 0x4
  648. .ualong .Lpush_r9-.Lpush_r8
  649. .byte 0xe
  650. .uleb128 8
  651. .byte 0x89
  652. .uleb128 2
  653. .byte 0x4
  654. .ualong .Lpush_r10-.Lpush_r9
  655. .byte 0xe
  656. .uleb128 12
  657. .byte 0x8a
  658. .uleb128 3
  659. .byte 0x4
  660. .ualong .Lpush_r11-.Lpush_r10
  661. .byte 0xe
  662. .uleb128 16
  663. .byte 0x8b
  664. .uleb128 4
  665. .byte 0x4
  666. .ualong .Lpush_r12-.Lpush_r11
  667. .byte 0xe
  668. .uleb128 20
  669. .byte 0x8c
  670. .uleb128 5
  671. .byte 0x4
  672. .ualong .Lpush_r13-.Lpush_r12
  673. .byte 0xe
  674. .uleb128 24
  675. .byte 0x8d
  676. .uleb128 6
  677. .byte 0x4
  678. .ualong .Lpush_pr-.Lpush_r13
  679. .byte 0xe
  680. .uleb128 28
  681. .byte 0x91
  682. .uleb128 7
  683. .byte 0x4
  684. .ualong .Lalloc-.Lpush_pr
  685. .byte 0xe
  686. .uleb128 92
  687. .align 2
  688. .LENDFDE:
  689. #ifdef SHARED
  690. .hidden DW.ref.__gcc_personality_v0
  691. .weak DW.ref.__gcc_personality_v0
  692. .section .gnu.linkonce.d.DW.ref.__gcc_personality_v0,"aw",@progbits
  693. .align 4
  694. .type DW.ref.__gcc_personality_v0, @object
  695. .size DW.ref.__gcc_personality_v0, 4
  696. DW.ref.__gcc_personality_v0:
  697. .long __gcc_personality_v0
  698. #endif