Changeset 691


Ignore:
Timestamp:
Mar 22, 2004, 9:31:56 AM (21 years ago)
Author:
Gary Byers
Message:

NEW-TCR converts pointer to fixnum, even if sign bit set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/l1-lisp-threads.lisp

    r664 r691  
    192192  (ash (- (%fixnum-ref area ppc32::area.high)
    193193          (%fixnum-ref area ppc32::area.softlimit))
    194        2))
     194       target::fixnum-shift))
    195195
    196196(defun %cons-lisp-thread (name &optional tcr)
     
    262262    (let* ((tcr (lisp-thread.tcr thread)))
    263263      (if (and tcr (not (eql 0 tcr)))
    264         (format stream " [tcr @ #x~x]" (ash tcr ppc32::fixnumshift))))))
     264        (format stream " [tcr @ #x~x]" (ash tcr target::fixnumshift))))))
    265265
    266266
     
    320320
    321321(defun new-tcr (cs-size vs-size ts-size)
    322   (ash
    323    (%ptr-to-int
    324     (ff-call
    325      (%kernel-import ppc32::kernel-import-newthread)
     322  (macptr->fixnum
     323   (ff-call
     324    (%kernel-import ppc32::kernel-import-newthread)
    326325     :unsigned-fullword cs-size
    327326     :unsigned-fullword vs-size
    328327     :unsigned-fullword ts-size
    329      :address))
    330    -2))
     328     :address)))
    331329
    332330(defun new-thread (name cstack-size vstack-size tstack-size)
Note: See TracChangeset for help on using the changeset viewer.