Added
This commit is contained in:
parent
03da2719ec
commit
fe74ad115d
2 changed files with 36 additions and 0 deletions
1
mach/vax4/libdb/.distr
Normal file
1
mach/vax4/libdb/.distr
Normal file
|
@ -0,0 +1 @@
|
||||||
|
machdep.s
|
35
mach/vax4/libdb/machdep.s
Normal file
35
mach/vax4/libdb/machdep.s
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
.define ___Get_PC, ___Set_PC, ___u_LiB
|
||||||
|
.sect .text; .sect .rom; .sect .data
|
||||||
|
|
||||||
|
! $Header$
|
||||||
|
|
||||||
|
! This is the machine-dependant part of the ACK debugger support.
|
||||||
|
! ___Get_PC takes a frame pointer (local base) argument and returns the
|
||||||
|
! return address from this frame.
|
||||||
|
! ___Set_PC takes a frame pointer (local base) argument plus a return
|
||||||
|
! address and sets the return address of this frame to the
|
||||||
|
! return address supplied.
|
||||||
|
! ___u_LiB has a special register save mask: it also saves the
|
||||||
|
! scratch registers.
|
||||||
|
|
||||||
|
.sect .text
|
||||||
|
|
||||||
|
___Get_PC:
|
||||||
|
.data2 00
|
||||||
|
movl 4(ap),r0
|
||||||
|
beql 1f
|
||||||
|
movl 16(r0),r0
|
||||||
|
1:
|
||||||
|
ret
|
||||||
|
|
||||||
|
___Set_PC:
|
||||||
|
.data2 00
|
||||||
|
movl 4(ap),r0
|
||||||
|
beql 1f
|
||||||
|
movl 8(ap),16(r0)
|
||||||
|
1:
|
||||||
|
ret
|
||||||
|
|
||||||
|
___u_LiB:
|
||||||
|
.data2 07777
|
||||||
|
jmp ___uX_LiB+2
|
Loading…
Reference in a new issue