Discussion:
Looped rebooting OS
(too old to reply)
Joe Barrett
2005-04-08 21:47:23 UTC
Permalink
I'm in the process of setting up user memory mapping (yes I'm far
behind, I've had the flu for the last week) and I think I've got
everything set up properly in Load_User_Program & Create_User_Context,
but when I run the OS, it reboots itself right after it finishes calling
Start_User_Program in Spawn().

Has anyone else run into this problem and found a solution?

Thanks,
Joe
Iulian Neamtiu
2005-04-09 00:26:44 UTC
Permalink
You mean it bochs enters an endless loop where it starts GeekOS up to
spawning the shell and then reboots and soo on ? That's very strange.

Does
$ cat bochs.out
report anything meaningful ?

Iulian
Post by Joe Barrett
I'm in the process of setting up user memory mapping (yes I'm far
behind, I've had the flu for the last week) and I think I've got
everything set up properly in Load_User_Program & Create_User_Context,
but when I run the OS, it reboots itself right after it finishes calling
Start_User_Program in Spawn().
Has anyone else run into this problem and found a solution?
Thanks,
Joe
Joe Barrett
2005-04-09 04:28:59 UTC
Permalink
I've got my Load_User_Program set up so that, while it's running through
each segment, it creates the page table entry [using Create_PT_Entry],
allocates the necessary page using Alloc_Pageable_Page( [created PT
entry], USER_VM_START + segmentStart + [specific page] ) and then I
memcpy the data into it.

However, the OS still reboots right after it launches the shell - and
bochs.out contains this:

00010316975e[HD ] device set to 1 which does not exist
00018098155e[HD ] device set to 1 which does not exist
00018098221e[HD ] device set to 1 which does not exist
00019295010e[CPU ] exception(): 3rd (14) exception with no resolution,
shutdown status is 00h, resetting

I'm not exactly sure what that means, except that it can't be good.
Does anyone have advice?

Thanks,
Joe

Continue reading on narkive:
Loading...