Added
authorceriel <none@none>
Mon, 16 Sep 1991 11:53:12 +0000 (11:53 +0000)
committerceriel <none@none>
Mon, 16 Sep 1991 11:53:12 +0000 (11:53 +0000)
mach/vax4/libdb/.distr [new file with mode: 0644]
mach/vax4/libdb/machdep.s [new file with mode: 0644]

diff --git a/mach/vax4/libdb/.distr b/mach/vax4/libdb/.distr
new file mode 100644 (file)
index 0000000..af5eda4
--- /dev/null
@@ -0,0 +1 @@
+machdep.s
diff --git a/mach/vax4/libdb/machdep.s b/mach/vax4/libdb/machdep.s
new file mode 100644 (file)
index 0000000..c90df60
--- /dev/null
@@ -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