Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
5774146f
Commit
5774146f
authored
32 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Fixed internal-error-arguments. Had to strip off the low two bits from the
pc before looking for the error info.
parent
c0b50de5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/hppa-vm.lisp
+16
-8
16 additions, 8 deletions
code/hppa-vm.lisp
with
16 additions
and
8 deletions
code/hppa-vm.lisp
+
16
−
8
View file @
5774146f
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/hppa-vm.lisp,v 1.
3
1992/0
6/18 11:54:21
wlott Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/hppa-vm.lisp,v 1.
4
1992/0
7/09 16:36:39
wlott Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -20,8 +20,9 @@
(
use-package
"UNIX"
)
(
export
'
(
fixup-code-object
internal-error-arguments
sigcontext-register
sigcontext-float-register
sigcontext-floating-point-modes
extern-alien-name
))
sigcontext-program-counter
sigcontext-register
sigcontext-float-register
sigcontext-floating-point-modes
extern-alien-name
))
;;;; The sigcontext structure.
...
...
@@ -40,9 +41,9 @@
(
sc-fp
system-area-pointer
)
(
sc-ap
(
*
save-state
))
(
sc-pcsqh
unsigned-long
)
(
sc-pc
system-area-pointer
)
; HP calls it the sc-pcoqh.
(
sc-pc
oqh
unsigned-long
)
(
sc-pcsqt
unsigned-long
)
(
sc-pcoqt
system-area-pointer
)
(
sc-pcoqt
unsigned-long
)
(
sc-ps
unsigned-long
)))
...
...
@@ -108,7 +109,7 @@
(
defun
internal-error-arguments
(
scp
)
(
declare
(
type
(
alien
(
*
sigcontext
))
scp
))
(
with-alien
((
scp
(
*
sigcontext
)
scp
))
(
let
((
pc
(
s
lot
scp
'sc-pc
)))
(
let
((
pc
(
s
igcontext-program-counter
scp
)))
(
declare
(
type
system-area-pointer
pc
))
(
let*
((
length
(
sap-ref-8
pc
4
))
(
vector
(
make-array
length
:element-type
'
(
unsigned-byte
8
))))
...
...
@@ -130,7 +131,14 @@
;;;; Sigcontext access functions.
;;; SIGCONTEXT-REGISTER -- Internal.
;;; SIGCONTEXT-PROGRAM-COUNTER -- Interface
;;;
(
defun
sigcontext-program-counter
(
scp
)
(
declare
(
type
(
alien
(
*
sigcontext
))
scp
))
(
with-alien
((
scp
(
*
sigcontext
)
scp
))
(
int-sap
(
logandc2
(
slot
scp
'sc-pcoqh
)
3
))))
;;; SIGCONTEXT-REGISTER -- Interface
;;;
;;; An escape register saves the value of a register for a frame that someone
;;; interrupts.
...
...
@@ -149,7 +157,7 @@
(
defsetf
sigcontext-register
%set-sigcontext-register
)
;;; SIGCONTEXT-FLOAT-REGISTER -- Inter
nal
;;; SIGCONTEXT-FLOAT-REGISTER -- Inter
face
;;;
;;; Like SIGCONTEXT-REGISTER, but returns the value of a float register.
;;; Format is the type of float to return.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment