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
13ad1c59
Commit
13ad1c59
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Pass the sigcontext alien into internal-error-arguments instead of a
pointer to the sigcontext.
parent
5eb910af
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/pmax-vm.lisp
+26
-33
26 additions, 33 deletions
code/pmax-vm.lisp
with
26 additions
and
33 deletions
code/pmax-vm.lisp
+
26
−
33
View file @
13ad1c59
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pmax-vm.lisp,v 1.
3
1990/11/26 1
5:16:43
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pmax-vm.lisp,v 1.
4
1990/11/26 1
8:55:08
wlott Exp $
;;;
;;;
;;; This file contains the PMAX specific runtime stuff.
;;; This file contains the PMAX specific runtime stuff.
;;;
;;;
...
@@ -57,36 +57,29 @@
...
@@ -57,36 +57,29 @@
;;; Given the sigcontext, extract the internal error arguments from the
;;; Given the sigcontext, extract the internal error arguments from the
;;; instruction stream.
;;; instruction stream.
;;;
;;;
(
defun
internal-error-arguments
(
scp
)
(
defun
internal-error-arguments
(
sc
)
(
alien-bind
((
sc
(
make-alien
'mach:sigcontext
(
alien-bind
((
sc
sc
mach:sigcontext
t
))
#.
(
c-sizeof
'mach:sigcontext
)
(
let
((
pc
(
alien-access
(
mach:sigcontext-pc
(
alien-value
sc
)))))
scp
)
(
declare
(
type
system-area-pointer
pc
))
mach:sigcontext
(
when
(
logbitp
31
t
)
(
alien-access
(
mach:sigcontext-cause
(
alien-value
sc
))))
(
regs
(
mach:sigcontext-regs
(
alien-value
sc
))
mach:int-array
t
))
(
setf
pc
(
sap+
pc
4
)))
(
let*
((
original-pc
(
alien-access
(
mach:sigcontext-pc
(
alien-value
sc
))))
(
when
(
=
(
sap-ref-8
pc
4
)
255
)
(
pc
(
sap+
original-pc
(
setf
pc
(
sap+
pc
1
)))
(
+
(
if
(
logbitp
31
(
let*
((
length
(
sap-ref-8
pc
4
))
(
alien-access
(
vector
(
make-array
length
:element-type
'
(
unsigned-byte
8
))))
(
mach:sigcontext-cause
(
declare
(
type
(
unsigned-byte
8
)
length
)
(
alien-value
sc
))))
(
type
(
simple-array
(
unsigned-byte
8
)
(
*
))
vector
))
4
(
copy-from-system-area
pc
(
*
vm:byte-bits
5
)
0
)
vector
(
*
vm:word-bits
(
if
(
=
(
sap-ref-8
original-pc
4
)
255
)
vm:vector-data-offset
)
1
(
*
length
vm:byte-bits
))
0
))))
(
let*
((
index
0
)
(
length
(
sap-ref-8
pc
4
))
(
error-number
(
c::read-var-integer
vector
index
)))
(
vector
(
make-array
length
:element-type
'
(
unsigned-byte
8
))))
(
collect
((
sc-offsets
))
(
copy-from-system-area
pc
(
*
vm:byte-bits
5
)
(
loop
vector
(
*
vm:word-bits
(
when
(
>=
index
length
)
vm:vector-data-offset
)
(
return
))
(
*
length
vm:byte-bits
))
(
sc-offsets
(
c::read-var-integer
vector
index
)))
(
let*
((
index
0
)
(
values
error-number
(
sc-offsets
))))))))
(
error-number
(
c::read-var-integer
vector
index
)))
(
collect
((
sc-offsets
))
(
loop
(
when
(
>=
index
length
)
(
return
))
(
sc-offsets
(
c::read-var-integer
vector
index
)))
(
values
error-number
(
sc-offsets
)))))))
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