summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/pcaudio.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-14 06:17:28 +0000
committerbde <bde@FreeBSD.org>1998-07-14 06:17:28 +0000
commit93d24a7132eb20e861940e9750b484f076c1b5c3 (patch)
tree731cf55e92fce973e052f19a4f036b76ce5df755 /sys/i386/isa/pcaudio.c
parent55ddae5a80992ccb5383ea0c6f2f7055694716b7 (diff)
downloadFreeBSD-src-93d24a7132eb20e861940e9750b484f076c1b5c3.zip
FreeBSD-src-93d24a7132eb20e861940e9750b484f076c1b5c3.tar.gz
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.
Diffstat (limited to 'sys/i386/isa/pcaudio.c')
-rw-r--r--sys/i386/isa/pcaudio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/isa/pcaudio.c b/sys/i386/isa/pcaudio.c
index a574afb..25b5237 100644
--- a/sys/i386/isa/pcaudio.c
+++ b/sys/i386/isa/pcaudio.c
@@ -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);
OpenPOWER on IntegriCloud