Don't pretend to support ix86's with 16-bit ints and 32-bit registers
by using longs just to ensure 32-bit variables. Long variables don't fit in 32-bit registers on ix86's with 64-bit longs.
This commit is contained in:
parent
55ddae5a80
commit
93d24a7132
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pcaudio.c,v 1.40 1998/04/15 17:45:40 bde Exp $
|
||||
* $Id: pcaudio.c,v 1.41 1998/06/07 17:10:48 dfr Exp $
|
||||
*/
|
||||
|
||||
#include "pca.h"
|
||||
@ -118,7 +118,7 @@ static void pca_init __P((void));
|
||||
static void pca_pause __P((void));
|
||||
|
||||
static __inline void
|
||||
conv(const void *table, void *buff, unsigned long n)
|
||||
conv(const void *table, void *buff, unsigned int n)
|
||||
{
|
||||
__asm__("1:\tmovb (%2), %3\n"
|
||||
"\txlatb\n"
|
||||
@ -127,7 +127,7 @@ conv(const void *table, void *buff, unsigned long n)
|
||||
"\tdec %1\n"
|
||||
"\tjnz 1b\n"
|
||||
:
|
||||
:"b" ((long)table), "c" (n), "D" ((long)buff), "a" ((char)n)
|
||||
:"b" (table), "c" (n), "D" (buff), "a" ((char)n)
|
||||
:"bx","cx","di","ax");
|
||||
}
|
||||
|
||||
@ -466,7 +466,7 @@ pcaintr(struct clockframe *frame)
|
||||
__asm__("xlatb\n"
|
||||
"outb %0,$0x42"
|
||||
: : "a" ((char)pca_status.buffer[pca_status.index]),
|
||||
"b" ((long)volume_table) );
|
||||
"b" (volume_table) );
|
||||
enable_intr();
|
||||
pca_status.counter += pca_status.scale;
|
||||
pca_status.index = (pca_status.counter >> 8);
|
||||
|
Loading…
x
Reference in New Issue
Block a user