From 61be7eafde7d53161e526c02ba7f0caeced89037 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 12 Aug 1997 19:12:10 +0000 Subject: better regs --- sys/arch/i386/stand/libsa/memprobe.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/arch/i386/stand/libsa/memprobe.c b/sys/arch/i386/stand/libsa/memprobe.c index f07a9966914..728c162e269 100644 --- a/sys/arch/i386/stand/libsa/memprobe.c +++ b/sys/arch/i386/stand/libsa/memprobe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: memprobe.c,v 1.8 1997/08/07 01:11:07 mickey Exp $ */ +/* $OpenBSD: memprobe.c,v 1.9 1997/08/12 19:12:09 mickey Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -43,8 +43,7 @@ memprobe() { int ram; - __asm volatile(DOINT(0x12) "\n\t" : "=a" (cnvmem)); - + __asm __volatile(DOINT(0x12) : "=a" (cnvmem) :: "%ecx", "%edx", "cc"); cnvmem &= 0xffff; /* probe extended memory -- cgit v1.2.3