Disk Block loading in Stage 14 for exec process

37 views
Skip to first unread message

nidhin mohan

unread,
Oct 22, 2020, 2:19:39 PM10/22/20
to xos-...@googlegroups.com
Sir,
I'm in Stage 14 and I have some trouble with, I think it's regarding disk block loading. First what I did was I actually loaded the code for the exec process from the disk block that is used for the exec interrupt. This actually made the debugger run, but the user stack pointer wasn't pointing to the first code instruction correctly.

So, I corrected it, checked the inode table and loaded the exec code for the process from the 1st data block(it showed block 70) into a memory page(I loaded into memory page 83). But when I run the debugger or the xsm simulator after this, it gets stuck in an infinite loop and doesn't exit.

I have tried loading the code into various blocks, and I don't understood whether it is a problem with memory page or disk blocks. I had done everything else just about correctly. 

Murali Krishnan

unread,
Oct 23, 2020, 9:39:54 AM10/23/20
to xos-...@googlegroups.com
Dear Nithin, 
I actually loaded the code for the exec process from the disk block that is used for the exec interrupt.
>>  It isn't clear what this means. 

This actually made the debugger run, 
>>  I don't see how.  

So, I corrected it, checked the inode table and loaded the exec code for the process from the 1st data block(it showed block 70) 
>>  Is IP value set in the stack correctly?  Set watch points in debug mode and check all register values. 
If you are conversant with the user of the debugger, you will be able to track the registers and values stored in memory locations. 
Murali


--
You received this message because you are subscribed to the Google Groups "XOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xos-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/xos-users/CAEME5HPnGLe1byZrj2t_LtJ-XJGzx%2BkzwyFE9JL2AGZinMi4OA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages