enabling/disabling trampoline

Frank Mehnert fm3 at os.inf.tu-dresden.de
Mon Mar 10 15:22:06 CET 2003

On Monday 10 March 2003 14:27, Cristiano Ligieri Pereira wrote:
> Isn't there a quick (but perhaps not very nice or friendly) way to do it?
> I'm kind of tight on a schedule to have this data collected.

Hmm. There isn't a quick hack. You have to replace every occurrence of 
"int $0x80" in your programs by

        "1:                     \n\t"
        "pushf                  \n\t"
        "push   %%cs            \n\t"
        "pushl  $2f             \n\t"
        "pushl  $0x402          \n\t"
        "pushl  $0xa0008000     \n\t"
        "ret                    \n\t"
        "jmp    1b              \n\t"
        "2:                     \n\t"

So the best is to generate an extra C library for this, right?

## Dept. of Computer Science, Dresden University of Technology, Germany ##
## E-Mail: fm3 at os.inf.tu-dresden.de    http://os.inf.tu-dresden.de/~fm3 ##
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20030310/79a361d1/attachment-0001.sig>

More information about the l4-hackers mailing list