Changeset 14641
- Timestamp:
- Feb 4, 2011, 11:28:57 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/source/level-1/l1-lisp-threads.lisp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/level-1/l1-lisp-threads.lisp
r14619 r14641 293 293 294 294 (defun %current-xp () 295 (let ((xframe (%fixnum-ref (%current-tcr) target::tcr.xframe))) 295 (let ((xframe (%fixnum-ref (%current-tcr) (- target::tcr.xframe 296 target::tcr-bias)))) 296 297 (when (eql xframe 0) 297 298 (error "No current exception frame")) … … 662 663 (if context 663 664 (bt.db-link context) 664 (%fixnum-ref (%current-tcr) target::tcr.db-link)))665 (%fixnum-ref (%current-tcr) (- target::tcr.db-link target::tcr-bias)))) 665 666 666 667 (defun previous-db-link (db-link start ) … … 1140 1141 ;; to BSP; if not, "append" them to the end of the current 1141 1142 ;; linked list. 1142 (let* ((current-db-link (%fixnum-ref (%current-tcr) target::tcr.db-link))) 1143 (let* ((current-db-link (%fixnum-ref (%current-tcr) 1144 (- target::tcr.db-link 1145 target::tcr-bias)))) 1143 1146 (declare (fixnum current-db-link)) 1144 1147 (if (zerop current-db-link) 1145 (setf (%fixnum-ref (%current-tcr) target::tcr.db-link) bsp) 1148 (setf (%fixnum-ref (%current-tcr) (- target::tcr.db-link 1149 target::tcr-bias)) bsp) 1146 1150 (do* ((binding current-db-link) 1147 1151 (next (%fixnum-ref binding 0) … … 1154 1158 ;; on the callback) don't try to unwind the binding stack beyond 1155 1159 ;; where it was just set. 1156 (do* ((catch (%fixnum-ref (%current-tcr) target::tcr.catch-top) 1160 (do* ((catch (%fixnum-ref (%current-tcr) (- target::tcr.catch-top 1161 target::tcr-bias)) 1157 1162 (%fixnum-ref catch target::catch-frame.link))) 1158 1163 ((zerop catch))
Note:
See TracChangeset
for help on using the changeset viewer.
