Page 1 of 1

Synchronization problem

Posted: Sat Jun 06, 2020 9:13 am
by nexos
I have been trying to implement terminal scrolling for a while, and got it. But now, however it page faults after scrolling. The code is here:

Code: Select all

for(int i = 0; i < 73; i++) putchar('\n');
printf("Moved down\n");
The strange thing is, when I put the printf in another thread, it works fine. What is the problem?
Thank you for your help.

Re: Synchronization problem

Posted: Sat Jun 06, 2020 9:35 am
by PeterX
This probably means that your code which prints '\n' is wrong. For example it might go to far/deep on the screen. Or other miscalculation.

Can you tell us perhaps where the file with that code is. I looked into your drivers dir and couldn't find it (but that may be _my_ mistake!).

EDIT: Found it! I first looked in hal not drivers!

EDIT2: After looking at the source I can't find out if the problem is in the user space library or in the kernel. Doesn't it seem a good idea to debug here?

Greetings
Peter