From c3144e1d064cb81d3911850e0c1b21f94c5671ff Mon Sep 17 00:00:00 2001 From: jmcmullan Date: Sun, 30 Oct 2011 16:54:28 +0000 Subject: [PATCH] pit.h: Compiler delint Signed-off-by: Jason S. McMullan git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@42117 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- compiler/include/hardware/pit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/include/hardware/pit.h b/compiler/include/hardware/pit.h index 95e8eb59d3..712cf626c4 100644 --- a/compiler/include/hardware/pit.h +++ b/compiler/include/hardware/pit.h @@ -34,6 +34,6 @@ /* Two useful macros for accessing counter values */ #define ch_read(port) inb(port) | (inb(port) << 8) -#define ch_write(val, port) outb(val, port); outb(val >> 8, port) +#define ch_write(val, port) outb((val) & 0xff, port); outb(((val) >> 8) & 0xff, port) #endif -- 2.11.4.GIT