Author: mcayland Date: Mon Aug 19 09:39:58 2013 New Revision: 1204 URL: http://tracker.coreboot.org/trac/openbios/changeset/1204
Log: forth.c: fix ioc!, iow! and iol! words
The kernel implementation for the above words is incorrect because the value/reg parameters are the wrong way around.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Modified: trunk/openbios-devel/kernel/forth.c
Modified: trunk/openbios-devel/kernel/forth.c ============================================================================== --- trunk/openbios-devel/kernel/forth.c Sun Aug 11 09:24:36 2013 (r1203) +++ trunk/openbios-devel/kernel/forth.c Mon Aug 19 09:39:58 2013 (r1204) @@ -1787,7 +1787,7 @@ cell reg = POP(); cell val = POP();
- outb(reg, val); + outb(val, reg); #else (void)POP(); (void)POP(); @@ -1805,7 +1805,7 @@ cell reg = POP(); cell val = POP();
- outw(reg, val); + outw(val, reg); #else (void)POP(); (void)POP(); @@ -1823,7 +1823,7 @@ ucell reg = POP(); ucell val = POP();
- outl(reg, val); + outl(val, reg); #else (void)POP(); (void)POP();