Changeset 6304


Ignore:
Timestamp:
Apr 18, 2007, 11:34:56 PM (15 years ago)
Author:
gb
Message:

Constants related to recognizing the RIP-relative instruction after
each TRA.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/x8664-call/ccl/compiler/X86/X8664/x8664-arch.lisp

    r6292 r6304  
    12831283    `(ccl::%stack-block ((,buf ,size :clear t))
    12841284      ,@body)))
    1285  
     1285
     1286;;; an (lea (@ disp (% rip)) (% fn)) instruction following a tagged
     1287;;; return address helps the runtime map from the return address to
     1288;;; the containing function.  That instuction is 7 bytes long: 3
     1289;;; bytes of code followed by 4 bytes of displacement.  The constant
     1290;;; part of that - assuming that FN is R13 - looks like #x4c #x8d #x2d.
     1291
     1292(defconstant recover-fn-from-rip-length 7)
     1293(defconstant recover-fn-from-rip-disp-offset 3)
     1294(defconstant recover-fn-from-rip-word0 #x8d4c)
     1295(defconstant recover-fn-from-rip-byte2 #x2d)
    12861296
    12871297
Note: See TracChangeset for help on using the changeset viewer.