Changeset 5846


Ignore:
Timestamp:
Jan 31, 2007, 2:38:56 PM (18 years ago)
Author:
Gary Byers
Message:

Tweak a little, so that it might work on darwinppc64 (and on darwinx8664
when purify does something there.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/library/chud-metering.lisp

    r4717 r5846  
    7272         (minor (ldb (byte 8 12) version)))
    7373    (or (and (>= major *chud-supported-major-version*)
    74              (>= minor *chud-supported-minor-version*))
     74             (when (= major *chud-supported-major-version*)
     75               (>= minor *chud-supported-minor-version*)))
    7576        (warn "The installed CHUD framework is version ~d.~d.  ~
    7677The minimum version supported by this interface is ~d.~d."
     
    116117(defun get-readonly-area-bounds ()
    117118  (ccl::do-gc-areas (a)
    118     (when (eql(ccl::%fixnum-ref a target::area.code) ccl::area-readonly)
     119    (when (eql(ccl::%fixnum-ref a target::area.code)
     120              #+ppc-target ccl::area-readonly
     121              #+x8664-target ccl::area-managed-static)
    119122      (return
    120123        (values (ash (ccl::%fixnum-ref a target::area.low) target::fixnumshift)
     
    129132         (startaddr (+ (ccl::%address-of code-vector)
    130133                       target::misc-data-offset))
    131          (endaddr (+ startaddr (* 4 (uvsize code-vector)))))
     134         (endaddr (+ startaddr (* target::node-size (uvsize code-vector)))))
    132135    ;; i hope all lisp sym characters are allowed... we'll see
    133136    (format stream "{~%~@
    134137                        ~a~@
    135                         0x~8,'0x~@
    136                         0x~8,'0x~@
     138                        ~@?~@
     139                        ~@?~@
    137140                        }~%"
    138141            (safe-shark-function-name fn)
     142            #+32-bit-target "0x~8,'0x" #+64-bit-target "0x~16,'0x"
    139143            startaddr
     144            #+32-bit-target "0x~8,'0x" #+64-bit-target "0x~16,'0x"
    140145            endaddr)))
    141146
     
    143148  (let* ((hash (make-hash-table :test #'eq)))
    144149    (ccl::%map-lfuns #'(lambda (f)
    145                          (let* ((code-vector (ccl:uvref f 0))
     150                         (let* ((code-vector #+ppc-target (ccl:uvref f 0)
     151                                             #+x8664-target (ccl::function-to-function-vector f))
    146152                                (startaddr (+ (ccl::%address-of code-vector)
    147153                                              target::misc-data-offset)))
     
    166172        (sort functions
    167173              #'(lambda (x y)
    168                   (< (ccl::%address-of (uvref x 0))
    169                      (ccl::%address-of (uvref y 0)))))))))
     174                  (< (ccl::%address-of #+ppc-target (uvref x 0)
     175                                       #+x8664-target x)
     176                     (ccl::%address-of #+ppc-target (uvref y 0)
     177                                       #+x8664-target y))))))))
    170178       
    171179                           
Note: See TracChangeset for help on using the changeset viewer.