Commit aa29dfeb by Erik Christiansen Committed by Jim Wilson

Eliminate linker error with v850e code using interrupt_handler attribute.

* config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
Move call_table_data to end.  Delete spurious .text.
(callt_save_all_interrupt): Fix comment typo.

From-SVN: r103231
parent 90e0c734
2005-08-17 Erik Christiansen <erik@dd.nec.com.au>
* config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
Move call_table_data to end. Delete spurious .text.
(callt_save_all_interrupt): Fix comment typo.
2005-08-17 James E Wilson <wilson@specifix.com> 2005-08-17 James E Wilson <wilson@specifix.com>
Kevin Winchester <winchester@amirix.com> Kevin Winchester <winchester@amirix.com>
......
...@@ -1428,7 +1428,7 @@ __callt_save_r6_r9: .short ctoff(.L_save_r6_r9) ...@@ -1428,7 +1428,7 @@ __callt_save_r6_r9: .short ctoff(.L_save_r6_r9)
#ifdef L_callt_save_interrupt #ifdef L_callt_save_interrupt
/* Put this functions into the call table area */ /* Put these functions into the call table area. */
.call_table_text .call_table_text
/* Save registers r1, ep, gp, r10 on stack and load up with expected values. */ /* Save registers r1, ep, gp, r10 on stack and load up with expected values. */
...@@ -1440,23 +1440,14 @@ __callt_save_r6_r9: .short ctoff(.L_save_r6_r9) ...@@ -1440,23 +1440,14 @@ __callt_save_r6_r9: .short ctoff(.L_save_r6_r9)
st.w ep, 0[sp] st.w ep, 0[sp]
st.w gp, 4[sp] st.w gp, 4[sp]
st.w r1, 8[sp] st.w r1, 8[sp]
/* R10 has alread been saved bofore callt ctoff(_save_interrupt). */ /* R10 has already been saved before callt ctoff(_save_interrupt). */
/* st.w r10, 12[sp] */ /* st.w r10, 12[sp] */
mov hilo(__ep),ep mov hilo(__ep),ep
mov hilo(__gp),gp mov hilo(__gp),gp
ctret ctret
/* Place the offsets of the start of the routine into the call table. */
.call_table_data
.global __callt_save_interrupt
.type __callt_save_interrupt,@function
__callt_save_interrupt: .short ctoff(.L_save_interrupt)
.call_table_text
/* Restore saved registers, deallocate stack and return from the interrupt. */ /* Restore saved registers, deallocate stack and return from the interrupt. */
/* Called via: callt ctoff(__callt_restore_itnerrupt). */ /* Called via: callt ctoff(__callt_restore_interrupt). */
.text
.align 2 .align 2
.globl __return_interrupt .globl __return_interrupt
.type __return_interrupt,@function .type __return_interrupt,@function
...@@ -1472,9 +1463,13 @@ __callt_save_interrupt: .short ctoff(.L_save_interrupt) ...@@ -1472,9 +1463,13 @@ __callt_save_interrupt: .short ctoff(.L_save_interrupt)
addi 24, sp, sp addi 24, sp, sp
reti reti
/* Place the offsets of the start of the routine into the call table. */ /* Place the offsets of the start of these routines into the call table. */
.call_table_data .call_table_data
.global __callt_save_interrupt
.type __callt_save_interrupt,@function
__callt_save_interrupt: .short ctoff(.L_save_interrupt)
.global __callt_return_interrupt .global __callt_return_interrupt
.type __callt_return_interrupt,@function .type __callt_return_interrupt,@function
__callt_return_interrupt: .short ctoff(.L_return_interrupt) __callt_return_interrupt: .short ctoff(.L_return_interrupt)
...@@ -1482,7 +1477,7 @@ __callt_return_interrupt: .short ctoff(.L_return_interrupt) ...@@ -1482,7 +1477,7 @@ __callt_return_interrupt: .short ctoff(.L_return_interrupt)
#endif /* L_callt_save_interrupt */ #endif /* L_callt_save_interrupt */
#ifdef L_callt_save_all_interrupt #ifdef L_callt_save_all_interrupt
/* Put this functions into the call table area. */ /* Put these functions into the call table area. */
.call_table_text .call_table_text
/* Save all registers except for those saved in __save_interrupt. */ /* Save all registers except for those saved in __save_interrupt. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment