bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More on oskit-mach booting troubles


From: Kalle Olavi Niemitalo
Subject: Re: More on oskit-mach booting troubles
Date: 22 Jul 2001 15:02:40 +0300

Roland McGrath <roland@gnu.org> writes:

> > extern inline void down (struct semaphore *sem)
> > {
> >     asm volatile ("
> >             decl (%0)
> >             js 2f
> >     1:      .section .text.lock,"ax"
> >     2:      call __down_failed
> >             jmp 1b
> >             .previous"
> >     : "c" (sem) : "memory");
> > }
> 
> This is approximately:  while (--*(int*)sem < 0) __down_failed();

Isn't that "if" rather than "while"?  I don't see a jump back to
the "decl".



reply via email to

[Prev in Thread] Current Thread [Next in Thread]