summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2009-11-12 16:38:03 +0000
committerMyles Watson <mylesgw@gmail.com>2009-11-12 16:38:03 +0000
commit2e6727362410294ad39116a3d84d99746565ce05 (patch)
treefbe6a12f3fbbd5a2fc08a7c18df4e45faf356700 /src/cpu
parentf9a72600a9fc4b6ed9aeebb7641c9209861c6548 (diff)
Add CONFIG_WARNINGS_ARE_ERRORS and set it for qemu.
Remove all remaining warnings from qemu. Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4939 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/emulation/qemu-x86/northbridge.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cpu/emulation/qemu-x86/northbridge.c b/src/cpu/emulation/qemu-x86/northbridge.c
index 7c3c18095c..44fb1ce598 100644
--- a/src/cpu/emulation/qemu-x86/northbridge.c
+++ b/src/cpu/emulation/qemu-x86/northbridge.c
@@ -8,6 +8,7 @@
#include <bitops.h>
#include "chip.h"
#include "northbridge.h"
+#include <delay.h>
static void ram_resource(device_t dev, unsigned long index,
unsigned long basek, unsigned long sizek)
@@ -157,9 +158,9 @@ struct chip_operations cpu_emulation_qemu_x86_ops = {
.enable_dev = enable_dev,
};
-void udelay(int usecs)
+void udelay(unsigned usecs)
{
- int i;
+ unsigned i;
for(i = 0; i < usecs; i++)
inb(0x80);
}