Subject: Re: build aborts in regress/lib/libpthread/sem
To: Izumi Tsutsui <>
From: Marcus Comstedt <>
List: port-dreamcast
Date: 02/16/2003 20:42:49
Izumi Tsutsui <> writes:

> How about the attached patch?

There was a point in having the LOCK/UNLOCK macros, now the
implementation is spread out over all the place.  For example, if we
implement some G2 DMA (for sound, for example), we'll need to add
appropriate DMA suspension calls (so that we don't have to busy-wait
for the whole DMA transfer to complete) at each of these points.
I realize you need a temp variable, and declaring it in G2_LOCK is a
bit hackish, but I don't really like this excessive cut'n'paste

  // Marcus