>On 2002-04-04 02:49:00, The Legend wrote:
>>On 2002-04-03 14:13:35, Brill wrote:
>>Hi, i have some code written in asm and c++
>>compiled and linked, ready to go, saved on a
>>bootable floppy disk and loaded with grub.
>>But when grub tries to load the file
>>it juest repeats itself.
>>Failing to load it trying over and over since the
>>timeout is zero.
>>I tried it with lilo too, just as a check and the
>>same again.
>>Any idea on what's not going right?
>>The code used is actually code of the net im
>>trying to test out switching to pmode (im still
>>learning like that) so its not mine but it looks
>>cosure and im assuming it should work.
>Are you sure that the code works and is not
>triple-faulting?
>
>The Legend
ok, i can't be sure the code actually works.
Plus i'll be honest, the code was originally written
in C but the c compiler complained about some function
called movedata.
I don't know C so i changed it a little around to
be C++. Here's what happens. The asm sets up pmode.
Then calls the C++ code. The c++ then copies some
stuff to VGA video memory for display.
Thats it.
If the code doesn't work correctly and is tripple
faulting the cpu then shouldn't the whole machine
restart?
Instead of the bootloader trying to load over and
over?
Im fairly sure that my code's ok. It was in another
os example and from sigops.
Plus, i tried that sigops code example hello world os
and it doesn't work. Guessing that code happens to be
pmode 32 bit and the pmode doesn't change.
Does anyone know if that's what the developer wanted to
happen or is there something i didn't do write?
|