Subject: Re: cerror.S ignores error number returned
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: Srinivasa Kanduru <ksraghavan@yahoo.com>
List: port-i386
Date: 11/29/2003 14:17:13
>
> Ah, the patch was backwards ('diff -u new old ' instead of 'diff -u old
> new').
>
> OK, your:
>
> popl %ecx
> movl %ecx, (%eax)
>
> is semantically exactly same as the current
>
> popl (%eax)
>
> and the latter one saves one insn. Since the code is this
> way for some three years, it got to be fine ;) Do you have
> any actual problem with errno setting after any system call?
>
You are right !! I have been all along thinking that the pop was to %eax. It
was a little tricky.
Thanks a lot for clarification
Regards,
Srini.
> Jaromir
> --
> Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.cz/
> -=- We should be mindful of the potential goal, but as the Buddhist -=-
> -=- masters say, ``You may notice during meditation that you -=-
> -=- sometimes levitate or glow. Do not let this distract you.'' -=-
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/