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
4dc4f03b
Commit
4dc4f03b
authored
21 years ago
by
toy
Browse files
Options
Downloads
Patches
Plain Diff
Added constants pseudo-atomic-value and
pseudo-atomic-interrupted-value for use in the code.
parent
184bdf08
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
compiler/sparc/parms.lisp
+19
-1
19 additions, 1 deletion
compiler/sparc/parms.lisp
with
19 additions
and
1 deletion
compiler/sparc/parms.lisp
+
19
−
1
View file @
4dc4f03b
...
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/sparc/parms.lisp,v 1.4
4
2003/
09/26 15:37:11
toy Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/sparc/parms.lisp,v 1.4
5
2003/
10/09 19:01:22
toy Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -329,8 +329,13 @@
(
defparameter
*assembly-unit-length*
8
)
(
export
'
(
pseudo-atomic-trap
allocation-trap
pseudo-atomic-value
pseudo-atomic-interrupted-mask
))
;;;; Pseudo-atomic trap number.
;;;;
;;;; This is the trap number to use when a pseudo-atomic section has
;;;; been interrupted.
;;;;
;;;; This should be any valid trap number. According to the Sparc
;;;; Compliance Definition 2.4.1, only traps 16-31 are allowed for
;;;; user applications. All others are reserved. It's ok if this
...
...
@@ -344,3 +349,16 @@
;;;; This is the trap number to use when we need to allocate memory.
;;;; This must match the C runtime code
(
defconstant
allocation-trap
31
)
;;;; Pseudo-atomic flag
;;;;
;;;; This value is added to alloc-tn to indicate a pseudo-atomic
;;;; section.
(
defconstant
pseudo-atomic-value
(
ash
1
(
1-
vm:lowtag-bits
)))
;;;; Pseudo-atomic-interrupted-mask
;;;;
;;;; This is a mask used to check if a pseudo-atomic section was
;;;; interrupted. On sparc, this is indicated by least-significant
;;;; bit of alloc-tn being 1.
(
defconstant
pseudo-atomic-interrupted-value
1
)
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