duskos

dusk os fork
git clone git://git.alexwennerberg.com/duskos
Log | Files | Refs | README | LICENSE

commit 32262d4e4f25f398adbf85c65ad3b1b6ea9b86b2
parent 6a166edbd7e63108ffc75ed954842034eafc3800
Author: Virgil Dupras <hsoft@hardcoded.net>
Date:   Mon,  3 Jul 2023 16:01:45 -0400

posix: fix bug with compound +)

Compounded +) ops aren't used often, so there wasn't many occasions to test
them, but the posix implementation was broken in many cases and HAL tests
falsely passed.

Diffstat:
Mposix/vm.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/posix/vm.c b/posix/vm.c @@ -169,7 +169,7 @@ static dword _hbankset(dword val) { return idx; } static dword hbankset(dword operand, dword val) { - return operand | (_hbankset(val) << 12); + return (operand & 0xfff) | (_hbankset(val) << 12); } static void retwr() { cwrite(0x02); }