Discussion:
documentation
(too old to reply)
Drew CHen
2005-02-20 21:58:31 UTC
Permalink
Ok, I am having
trouble with, and
know others are, the
documenation of what
needs to be done.

Right now i am stuck
trying to get my LDT
to load, i get an
error where bochs
just quits saying
LDT: index (702f)e05
limit (10)
(702f)e05 is my
(index)[TI|RPL]
if anyone has any
ideas, it woudl be
greatly appreciated

i figure my Create
user context is
wrong, so here is
what i want:

Better documentation
on
Init_xxxx_Segment_Descriptor,
and better
documentation on the
assembly lldt
instruction.

also a simple yes or
no that all the
steps in the power
point presentation
for Create user
context do not need
more than virtSize
as a parameter for
the function.

and lastly, we need
to add an
Interrupt_Handler
like lprog.c in
project one did or
something similar.
The project
description
describing sys_calls
seems to imply that
the ONLY thing
needed for sys_Calls
is to edit the
function bodies of
the call.

thanks.
Julio
2005-02-21 01:45:50 UTC
Permalink
I don't think the index of your LDT is right, the index for my LDT is
something like 8, it's the index in the array s_GDT.



For the lldt, I pretty much copied the code from the function in tss.c.
I found this website but I didn't really need it:
http://www.cs.ucla.edu/~kohler/class/04f-aos/ref/i386/LLDT.htm

Looking at my code, it would appear that everything from that slide could
have been done in the Create_User_Context function, though I only did some
of it there.

As for the interrupt_handler, all I did was add code to the system call
functions and everything worked just fine.

I hope that's helpful.
Julio
Ben Rogers
2005-02-21 02:52:28 UTC
Permalink
I think i've been having a similar problem. My ldtSelector comes out as
35, which seems too high, but I have no idea what is wrong. I pretty
much followed the slide and the code from lprog.c. Has anyone else run
into this, or have an suggestions?

Ben
Drew Chen
2005-02-21 04:44:20 UTC
Permalink
thanks julio.

Continue reading on narkive:
Loading...