Displaying 2 results from an estimated 2 matches for "restore_context".
2008 Jan 24
2
building 64 bit binaries from source
...ts to 'int' in declaration of
'SIGCONTEXT'
signal_x86_64.c:138: error: expected ';', ',' or ')' before '*' token
signal_x86_64.c:174: error: expected declaration specifiers or '...'
before 'SIGCONTEXT'
signal_x86_64.c: In function 'restore_context':
signal_x86_64.c:176: warning: implicit declaration of function 'RAX_sig'
signal_x86_64.c:176: error: 'sigcontext' undeclared (first use in this
function)
signal_x86_64.c:176: error: (Each undeclared identifier is reported
only once
signal_x86_64.c:176: error: for each function...
2012 Feb 13
0
[PATCH 05/14] arm: implement exception and hypercall entries.
...VC)
+
+ sub sp, sp, #CTXT_FRAME_SIZE
+SPFIX( tst sp, #4 )
+SPFIX( bicne sp, sp, #4 )
+ stmib sp, {r1 - lr}^
+ ldmia r0, {r1 - r4}
+ add r5, sp, #CTXT_SSP
+ add r0, sp, #CTXT_FRAME_SIZE
+SPFIX( addne r0, r0, #4 )
+ str r1, [sp]
+ mov r1, lr
+ stmia r5, {r0 - r4}
+ msr spsr_cxsf, r3
+.endm
+
+.macro RESTORE_CONTEXT
+ ldr r0, [sp, #CTXT_SPSR]
+ msr spsr_cxsf, r0
+ ldmia sp, {r0 - lr}^
+ add sp, sp, #CTXT_SSP
+ ldmia sp, {sp, lr, pc}^
+.endm
+
+ .align 5
+ .global exception_vector_table
+exception_vector_table:
+ ldr pc, .rst
+ ldr pc, .und
+ ldr pc, .swi
+ ldr pc, .pabt
+ ldr pc, .dabt
+ ldr pc, .adx
+ ldr pc,...