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
d5f541ce
Commit
d5f541ce
authored
35 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Changed ESCAPE-ROUTINE to explicitly handle 4 arg calls, with the 4'th argument
coming in in A3.
parent
efe0a9b5
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
assembler/rompconst.lisp
+9
-1
9 additions, 1 deletion
assembler/rompconst.lisp
with
9 additions
and
1 deletion
assembler/rompconst.lisp
+
9
−
1
View file @
d5f541ce
...
@@ -444,7 +444,7 @@
...
@@ -444,7 +444,7 @@
;;;
;;;
;;; Call the function that is the definition of the symbol at the specifed
;;; Call the function that is the definition of the symbol at the specifed
;;; offset, passing Nargs arguments. The arguments should already be set up in
;;; offset, passing Nargs arguments. The arguments should already be set up in
;;; A0..A
2
. The function must take no more than
3
arguments and return no more
;;; A0..A
3
. The function must take no more than
4
arguments and return no more
;;; than 3 values. We make an "escape frame" and save the entire register set
;;; than 3 values. We make an "escape frame" and save the entire register set
;;; in it. If the called function returns, we restore the saved registers
;;; in it. If the called function returns, we restore the saved registers
;;; *except* for A<N> and NL<N>. This is so that we return the values returned
;;; *except* for A<N> and NL<N>. This is so that we return the values returned
...
@@ -453,6 +453,8 @@
...
@@ -453,6 +453,8 @@
;;; the benefit of the debugger.
;;; the benefit of the debugger.
;;;
;;;
(
defmacro
escape-routine
(
symbol-offset
nargs
)
(
defmacro
escape-routine
(
symbol-offset
nargs
)
(
unless
(
<=
0
nargs
4
)
(
error
"Losing NARGS: ~D."
nargs
))
`
((
cal
SP
SP
(
*
4
%escape-frame-size
))
; Allocate frame
`
((
cal
SP
SP
(
*
4
%escape-frame-size
))
; Allocate frame
;; Clear type bits in unboxed registers so that GC doesn't gag. If these
;; Clear type bits in unboxed registers so that GC doesn't gag. If these
;; hold user fixnum or string-char variables, then this won't destroy the
;; hold user fixnum or string-char variables, then this won't destroy the
...
@@ -486,6 +488,12 @@
...
@@ -486,6 +488,12 @@
(
cas
PC
PC
NL1
)
(
cas
PC
PC
NL1
)
(
lr
OLD-CONT
CONT
)
; OLD-CONT gets escape frame.
(
lr
OLD-CONT
CONT
)
; OLD-CONT gets escape frame.
(
lr
CONT
SP
)
; So escape frame doesn't get overwritten.
(
lr
CONT
SP
)
; So escape frame doesn't get overwritten.
;;
;; If 4 args, set up arg frame.
,@
(
when
(
=
nargs
4
)
'
((
cal
SP
SP
(
*
4
4
))
(
storew
A3
SP
-4
)))
;;
;; Call, giving this miscop as return PC for escape frame.
;; Call, giving this miscop as return PC for escape frame.
(
balrx
PC
PC
)
(
balrx
PC
PC
)
(
lis
NARGS
,
nargs
)
; Load argument count
(
lis
NARGS
,
nargs
)
; Load argument count
...
...
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