Changeset 5846
- Timestamp:
- Jan 31, 2007, 2:38:56 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ccl/library/chud-metering.lisp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/library/chud-metering.lisp
r4717 r5846 72 72 (minor (ldb (byte 8 12) version))) 73 73 (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*))) 75 76 (warn "The installed CHUD framework is version ~d.~d. ~ 76 77 The minimum version supported by this interface is ~d.~d." … … 116 117 (defun get-readonly-area-bounds () 117 118 (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) 119 122 (return 120 123 (values (ash (ccl::%fixnum-ref a target::area.low) target::fixnumshift) … … 129 132 (startaddr (+ (ccl::%address-of code-vector) 130 133 target::misc-data-offset)) 131 (endaddr (+ startaddr (* 4(uvsize code-vector)))))134 (endaddr (+ startaddr (* target::node-size (uvsize code-vector))))) 132 135 ;; i hope all lisp sym characters are allowed... we'll see 133 136 (format stream "{~%~@ 134 137 ~a~@ 135 0x~8,'0x~@136 0x~8,'0x~@138 ~@?~@ 139 ~@?~@ 137 140 }~%" 138 141 (safe-shark-function-name fn) 142 #+32-bit-target "0x~8,'0x" #+64-bit-target "0x~16,'0x" 139 143 startaddr 144 #+32-bit-target "0x~8,'0x" #+64-bit-target "0x~16,'0x" 140 145 endaddr))) 141 146 … … 143 148 (let* ((hash (make-hash-table :test #'eq))) 144 149 (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)) 146 152 (startaddr (+ (ccl::%address-of code-vector) 147 153 target::misc-data-offset))) … … 166 172 (sort functions 167 173 #'(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)))))))) 170 178 171 179
Note:
See TracChangeset
for help on using the changeset viewer.
