mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[RTL]
- Add CFI annotations to debug functions CORE-8531 svn path=/trunk/; revision=75990
This commit is contained in:
parent
9173e7c6cf
commit
abc37007a0
1 changed files with 14 additions and 0 deletions
|
@ -65,7 +65,10 @@ FUNC _DebugService2@12
|
|||
|
||||
/* Set up the stack */
|
||||
push ebp
|
||||
CFI_ADJUST_CFA_OFFSET 4
|
||||
CFI_REL_OFFSET ebp, 0
|
||||
mov ebp, esp
|
||||
CFI_DEF_CFA_REGISTER ebp
|
||||
|
||||
/* Call the interrupt */
|
||||
mov eax, [ebp+16]
|
||||
|
@ -76,6 +79,8 @@ FUNC _DebugService2@12
|
|||
|
||||
/* Return */
|
||||
pop ebp
|
||||
CFI_SAME_VALUE ebp
|
||||
CFI_DEF_CFA esp, 12
|
||||
ret 12
|
||||
|
||||
ENDFUNC
|
||||
|
@ -87,11 +92,16 @@ FUNC _DebugService@20
|
|||
|
||||
/* Set up the stack */
|
||||
push ebp
|
||||
CFI_ADJUST_CFA_OFFSET 4
|
||||
CFI_REL_OFFSET ebp, 0
|
||||
mov ebp, esp
|
||||
CFI_DEF_CFA_REGISTER ebp
|
||||
|
||||
/* Save non-volatiles */
|
||||
push ebx
|
||||
CFI_REL_OFFSET ebx, -4
|
||||
push edi
|
||||
CFI_REL_OFFSET edi, -8
|
||||
|
||||
/* Call the Interrupt */
|
||||
mov eax, [ebp+8]
|
||||
|
@ -104,10 +114,14 @@ FUNC _DebugService@20
|
|||
|
||||
/* Restore non-volatiles */
|
||||
pop edi
|
||||
CFI_SAME_VALUE edi
|
||||
pop ebx
|
||||
CFI_SAME_VALUE ebx
|
||||
|
||||
/* Return */
|
||||
pop ebp
|
||||
CFI_SAME_VALUE ebp
|
||||
CFI_DEF_CFA esp, 20
|
||||
ret 20
|
||||
|
||||
ENDFUNC
|
||||
|
|
Loading…
Reference in a new issue