Re: [hatari-devel] Linux bootup issues in Hatari

[ Thread Index | Date Index | More Archives ]

> BTW have to think about what checks regarding TT-RAM should be implemented

Ok i just tried. Guess you can't get it perfect. Currently,

bool load_to_fastram = bx_options.lilo.load_to_fastram && FastRAMSize > 0;

already ensures that the kernel is only loaded in FastRAM when it is 
configured (load_to_fastram only applies to kernel, not to ramdisk). But even 
if i add some checks e.g whether the kernel size does not exceed the Fast-
Ramsize, there are situations where both will fit in memory, but leaving only 
less than 1MB of free memory. In that case, i don't get a segfault, but the 
kernel panics rather early. The missing checks might be the reason that you 
got a segfault, if your kernel is larger than mine.

But i think this is only a matter for debugging purposes. In practise, there 
is no reason to not configure a decent amount of TT-RAM.

Anyway, pushed a few extra checks.

Mail converted by MHonArc 2.6.19+