[OpenBIOS] [PATCH 01/14] forth.c: fix ioc!, iow! and iol! words
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Thu Aug 8 00:51:05 CEST 2013
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 at ilande.co.uk>
---
openbios-devel/kernel/forth.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/openbios-devel/kernel/forth.c b/openbios-devel/kernel/forth.c
index 0d3b2d2..61dd70d 100644
--- a/openbios-devel/kernel/forth.c
+++ b/openbios-devel/kernel/forth.c
@@ -1787,7 +1787,7 @@ static void iocstore(void)
cell reg = POP();
cell val = POP();
- outb(reg, val);
+ outb(val, reg);
#else
(void)POP();
(void)POP();
@@ -1805,7 +1805,7 @@ static void iowstore(void)
cell reg = POP();
cell val = POP();
- outw(reg, val);
+ outw(val, reg);
#else
(void)POP();
(void)POP();
@@ -1823,7 +1823,7 @@ static void iolstore(void)
ucell reg = POP();
ucell val = POP();
- outl(reg, val);
+ outl(val, reg);
#else
(void)POP();
(void)POP();
--
1.7.10.4
More information about the OpenBIOS
mailing list