From fe74ad115ddca15940ef063b6da18220e7b1683f Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 16 Sep 1991 11:53:12 +0000 Subject: [PATCH] Added --- mach/vax4/libdb/.distr | 1 + mach/vax4/libdb/machdep.s | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 mach/vax4/libdb/.distr create mode 100644 mach/vax4/libdb/machdep.s diff --git a/mach/vax4/libdb/.distr b/mach/vax4/libdb/.distr new file mode 100644 index 000000000..af5eda499 --- /dev/null +++ b/mach/vax4/libdb/.distr @@ -0,0 +1 @@ +machdep.s diff --git a/mach/vax4/libdb/machdep.s b/mach/vax4/libdb/machdep.s new file mode 100644 index 000000000..c90df6096 --- /dev/null +++ b/mach/vax4/libdb/machdep.s @@ -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 -- 2.34.1