[NSWI004] Stuck on syscall return

Patrik Smelik patrik.smelik at gmail.com
Sun Feb 16 17:12:27 CET 2020


ne 16. 2. 2020 o 16:47 Vojtech Horky <horky at d3s.mff.cuni.cz> napĂ­sal(a):

>
> And which test have you tried to run?
>

I've mostly tried basic/empty, but it fails after printing out the name of
the test (===userspace basic/empty===).


> Looking at your code, I do not see where you distinguish between puts
> and putc in libc syscalls..


Do you mean puts and putchar? Well I've implemented it together, so that we
won't use several syscalls for basically the same thing. But now that I've
tried it, it worked so i guess that was the mistake :D It isn't possible to
pass a single char to a function that takes pointer to char as argument? I
thought since it was passed as int, it didn't really matter what you cast
it as after it gets to handle syscall.


Thanks,
Patrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20200216/c60008a2/attachment-0001.html>


More information about the NSWI004 mailing list