Changeset 11187 for trunk/source/level-1/x86-callback-support.lisp
- Timestamp:
- Oct 21, 2008, 11:19:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/level-1/x86-callback-support.lisp
r10132 r11187 19 19 20 20 #+x8664-target 21 (defun make-callback-trampoline (index &optional monitor-exception-ports)22 (declare (ignor able monitor-exception-ports))21 (defun make-callback-trampoline (index &optional discard-stack-bytes) 22 (declare (ignore discard-stack-bytes)) 23 23 (let* ((p (%allocate-callback-pointer 16)) 24 24 (addr #.(subprim-name->offset '.SPcallback))) … … 40 40 41 41 #+x8632-target 42 (defun make-callback-trampoline (index &optional monitor-exception-ports) 43 (declare (ignorable monitor-exception-ports)) 42 (defun make-callback-trampoline (index &optional (discard-stack-bytes 0)) 44 43 (let* ((p (%allocate-callback-pointer 12)) 45 44 (addr #.(subprim-name->offset '.SPcallback))) … … 48 47 (%get-unsigned-byte p 2) (ldb (byte 8 8) index) 49 48 (%get-unsigned-byte p 3) (ldb (byte 8 16) index) 50 (%get-unsigned-byte p 4) (ldb (byte 8 24) index)49 (%get-unsigned-byte p 4) (ldb (byte 8 24) (ash discard-stack (- x8632::word-shift))) 51 50 (%get-unsigned-byte p 5) #xff ; jmp * 52 51 (%get-unsigned-byte p 6) #x24
Note: See TracChangeset
for help on using the changeset viewer.