fixed isinstance check in write syscall

This commit is contained in:
Anton Lydike 2021-04-18 18:39:32 +02:00
parent d6e6856431
commit 09844c8d38
3 changed files with 1 additions and 1 deletions

0
examples/exit.asm Normal file
View File

0
examples/hello-world.asm Normal file
View File

View File

@ -98,7 +98,7 @@ class SyscallInterface:
data = scall.cpu.mmu.read(addr, size)
if not isinstance(str, bytearray):
if not isinstance(data, bytearray):
print(FMT_SYSCALL + '[Syscall] write: writing from .text region not supported.' + FMT_NONE)
return scall.ret(-1)