projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.25.49: x86/x86-64 unithread: use the allocated alien stack
[sbcl.git]
/
src
/
compiler
/
sparc
/
macros.lisp
diff --git
a/src/compiler/sparc/macros.lisp
b/src/compiler/sparc/macros.lisp
index
bc8149e
..
5136a42
100644
(file)
--- a/
src/compiler/sparc/macros.lisp
+++ b/
src/compiler/sparc/macros.lisp
@@
-70,7
+70,7
@@
(:little-endian
`(inst ldub ,n-target ,n-source ,n-offset))
(:big-endian
(:little-endian
`(inst ldub ,n-target ,n-source ,n-offset))
(:big-endian
- `(inst ldub ,n-target ,n-source (+ ,n-offset 3))))))
+ `(inst ldub ,n-target ,n-source (+ ,n-offset (1- n-word-bytes)))))))
;;; Macros to handle the fact that we cannot use the machine native call and
;;; return instructions.
;;; Macros to handle the fact that we cannot use the machine native call and
;;; return instructions.
@@
-94,7
+94,7
@@
(defmacro emit-return-pc (label)
"Emit a return-pc header word. LABEL is the label to use for this return-pc."
`(progn
(defmacro emit-return-pc (label)
"Emit a return-pc header word. LABEL is the label to use for this return-pc."
`(progn
- (align n-lowtag-bits)
+ (emit-alignment n-lowtag-bits)
(emit-label ,label)
(inst lra-header-word)))
(emit-label ,label)
(inst lra-header-word)))
@@
-181,7
+181,7
@@
(inst byte (length ,vector))
(dotimes (i (length ,vector))
(inst byte (aref ,vector i))))
(inst byte (length ,vector))
(dotimes (i (length ,vector))
(inst byte (aref ,vector i))))
- (align word-shift)))))
+ (emit-alignment word-shift)))))
(defmacro error-call (vop error-code &rest values)
"Cause an error. ERROR-CODE is the error to cause."
(defmacro error-call (vop error-code &rest values)
"Cause an error. ERROR-CODE is the error to cause."
@@
-238,7
+238,7
@@
(inst t :ne pseudo-atomic-trap)))))
(inst t :ne pseudo-atomic-trap)))))
-(defmacro sb!sys::with-pinned-objects ((&rest objects) &body body)
+(def!macro with-pinned-objects ((&rest objects) &body body)
"Arrange with the garbage collector that the pages occupied by
OBJECTS will not be moved in memory for the duration of BODY.
Useful for e.g. foreign calls where another thread may trigger
"Arrange with the garbage collector that the pages occupied by
OBJECTS will not be moved in memory for the duration of BODY.
Useful for e.g. foreign calls where another thread may trigger