fixed isinstance check in write syscall
This commit is contained in:
parent
d6e6856431
commit
09844c8d38
0
examples/exit.asm
Normal file
0
examples/exit.asm
Normal file
0
examples/hello-world.asm
Normal file
0
examples/hello-world.asm
Normal 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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user