You are not logged in.


#1 2005-06-08 14:09:21

fafek
New member
Registered: 2005-02-19
Posts: 2
PM

bug with memtest in bos 0.0.4

Hello :]

I've downloaded bos image (version 0.0.4) and I began to testing it. When I trying to call `memtest' twice, kernel hangs.
I had tested it under windows (bochs emulator - 2.2).

Offline

 

#2 2005-06-08 14:18:18

bubach
Administrator
From: Trollhättan, Sweden
Registered: 2005-02-15
Posts: 367
PM  Website

Re: bug with memtest in bos 0.0.4

Do you have 32mb of RAM in you bochsrc file?
I do some "debugging" by allocation and freeing memory, and it assumes that
the machine has atleast 32mb.

/ Christoffer

Offline

 

#3 2005-06-08 15:14:02

fafek
New member
Registered: 2005-02-19
Posts: 2
PM

Re: bug with memtest in bos 0.0.4

Yes, I have 16MB of RAM. Hmm, but as I can remember, BOS require sth like 4 MB of RAM. Anyway, its good that You know about.

Offline

 

#4 2005-06-08 17:53:33

smiddy
Active member
Registered: 2005-02-15
Posts: 183
PM

Re: bug with memtest in bos 0.0.4

I'll see if I can repeat this myself with different memory sizes.


- [color=red]s[/color][color=blue]m[/color][color=red]i[/color][color=blue]d[/color][color=red]d[/color][color=blue]y[/color]

Offline

 

#5 2005-06-08 18:05:05

smiddy
Active member
Registered: 2005-02-15
Posts: 183
PM

Re: bug with memtest in bos 0.0.4

Bochs 2.2 with megs: 32:

Code:

 BOS shell. Type "help" for more info.
BOS kernel>memtest
Performing memory test. (debugging allocs assume 32mb RAM)
Total installed memory (in bytes): 0x02000000

Memory chunks:
Address    Size       Type       Previous   Next
-------------------------------------------------------
0x00000000 0x01100000 Used       None       None
0x01100000 0x00E00000 Free       0x00000000 0x01F10000
0x01F00000 0x00010000 Used       None       None

This looks ok...using megs: 16:

Code:

 BOS shell. Type "help" for more info.
BOS kernel>memtest
Performing memory test. (debugging allocs assume 32mb RAM)
Total installed memory (in bytes): 0x01000000

Memory chunks:
Address    Size       Type       Previous   Next
-------------------------------------------------------
0x00000000 0x00100000 Used       None       None
0x00100000 0x00E00000 Free       0x00000000 0x00F10000
0x00F00000 0x00010000 Used       None       None
0x00F10000 0x000F0000 Free       0x00100000 0x00000000 <- Cursor dies here!

The cursor dies on the second memtest though displays some of the information before it croaks, but locks up bochs so that you can not grab a screen shot of it.

Interresting, I think I may have found a bug in Bochs too, as the screen capture of text doesn't do the entire screen...humm! The first one I did at 32 megs showed the first and second times running memtest, but didn't show up on the pasting...

Last edited by smiddy (2005-06-08 18:07:22)


- [color=red]s[/color][color=blue]m[/color][color=red]i[/color][color=blue]d[/color][color=red]d[/color][color=blue]y[/color]

Offline

 

#6 2005-06-09 06:36:55

bubach
Administrator
From: Trollhättan, Sweden
Registered: 2005-02-15
Posts: 367
PM  Website

Re: bug with memtest in bos 0.0.4

lol...
well, my alloc resturns zero instead of a pointer if you try to allocate more
mem then whats available, unfortunate i didn't check that in my "memtest".. tongue
so, it's no bug. i just messed it up.

Offline

 

 

Board footer

Powered by PunBB
BOS homepage © Copyright 2005 Christoffer Bubach
Strict XHTML and valid CSS.