site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=PlNvt9Fj6IHcJAr+CUlXdeREdflQ4nWgy+3yx96qoDS/eojYWVV/8+zblJ0EdiCvL1hbC7/muOUzaq+r86B4m5g92yorsYqEEz3vecdVelTDOHSnThZQ/qjtSKTGoj/ltCNvWZTNYv5PG5UbDOxJEW1xiWrr74WCtXfClzb/xjw= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=e//x87Va/bvPiibVJ4LJlC909pCTTqqY8Rv6cXIcGdoVnYj/PsrxMshWVQfMvjNTgbcf9LscyHsUNJLIEEy5N5l1ml59yqPaDX0mpoMimHr65l3J2V3jGQzKCP2OYUSmxEH8+/HdqLisMFLXofSTAdjyIN53BAe1wbDh1xR1Fls= On 18 Mar, 2007, at 12:20, Geoffrey Lee wrote: No, you missed something: sysenter_trap looks like this: __sysenter_trap: 90110ac0 popl %edx 90110ac1 movl %esp,%ecx 90110ac3 sysenter So, %ecx contains the saved stack pointer and %edx contains the return address. Thanks for the help Filipe Cabecinhas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... Yes, I missed that. I think I removed it when I removed the stuff for PIC. I don't know why... By the way, I am not quite sure if doing things directly is such a good idea ... can you not go through libc? - gl Yes, doing things directly is a Bad Thing (TM). But the thing is... Our compiler class has to use the library they give us, and it is made for linux (with the int 0x80 stuff). So, in Mac OS X, I can't link to libc so I have the setup as similar as I can. This email sent to site_archiver@lists.apple.com