From 3f88c80d2e50f5e2ee072f2f015ea6f97ff898e5 Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 3 Jan 2011 23:45:02 +0000 Subject: [PATCH] Change timer 0 from mode 4 to mode 0 to avoid hangs with VirtualBox 4.0.0. Also tested on QEmu and three real PCs. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@36377 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/i386-pc/timer/ticks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/i386-pc/timer/ticks.c b/arch/i386-pc/timer/ticks.c index 4ecd8b3847..0827bff502 100644 --- a/arch/i386-pc/timer/ticks.c +++ b/arch/i386-pc/timer/ticks.c @@ -147,7 +147,7 @@ void Timer0Setup(struct TimerBase *TimerBase) if (delay < 2) delay = 2; outb((inb(0x61) & 0xfd) | 1, 0x61); /* Enable the timer (set GATE on) */ - outb(0x38, 0x43); /* Binary, mode 4, LSB&MSB */ + outb(0x30, 0x43); /* Binary, mode 0, LSB&MSB */ outb(delay & 0xff, 0x40); outb(delay >> 8, 0x40); } -- 2.11.4.GIT