Skip to content
Snippets Groups Projects
Commit c42bbc6c authored by dtc's avatar dtc
Browse files

Modify the assembler syntax for the closure_tramp indirect jump to

'jmp *offset(%eax)' rather than 'jmp offset(%eax)'. Peter Van Eynde
reports that the older syntax is incorrectly assembled on recent linux
systems. The new syntax does work on recent FreeBSD systems.
parent 3df2616c
No related branches found
No related tags found
No related merge requests found
### x86-assem.S -*- Mode: Asm; -*- ### x86-assem.S -*- Mode: Asm; -*-
/** /**
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/x86-assem.S,v 1.16 1999/09/11 13:27:26 pw Exp $ * $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/x86-assem.S,v 1.17 1999/10/06 14:32:36 dtc Exp $
* *
* Authors: Paul F. Werkowski <pw@snoopy.mv.com> * Authors: Paul F. Werkowski <pw@snoopy.mv.com>
* Douglas T. Crosher * Douglas T. Crosher
...@@ -281,7 +281,7 @@ GNAME(undefined_tramp): ...@@ -281,7 +281,7 @@ GNAME(undefined_tramp):
.type GNAME(closure_tramp),@function .type GNAME(closure_tramp),@function
GNAME(closure_tramp): GNAME(closure_tramp):
movl FDEFN_FUNCTION_OFFSET(%eax),%eax movl FDEFN_FUNCTION_OFFSET(%eax),%eax
jmp CLOSURE_FUNCTION_OFFSET(%eax) jmp *CLOSURE_FUNCTION_OFFSET(%eax)
.size GNAME(closure_tramp), .-GNAME(closure_tramp) .size GNAME(closure_tramp), .-GNAME(closure_tramp)
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment