From: Norikesh <nor...@ya...> - 2002-10-16 13:28:17
|
Hi: The mm bug is simple, it does not detect the system memory correctly, the computer has 0x800000 (8388608), but it detects 0x850000 (8716288). If I adjust the "total_memory" value manually, delphineOS works correctly. Well, I think we need an alternative routine to detect the RAM for older PC's. --- MODIFIED CODE --- ... ... if (nb_pages mod 1024 <> 0) then cmpt := cmpt + 1; printk('nb_pages: %h\n', [nb_pages]); printk('cr3_k: %h\n', [cr3_k]); for i:=0 to (cmpt - 1) do begin tmp := get_free_page; printk('pass#%d: %h\n', [i, tmp]); asm ... ... --- MODIFIED CODE --- --- RESULT WHIT BAD TOTAL_MEMORY VALUE (0x00850000) --- Loading DelphineOS ... OK ACPU: CPUID instruction not supported !!! nb_pages: 0x00000850 cr3_k: 0x0084f000 pass#0: 0x0084e000 pass#1: 0x0084d000 pass#2: 0x0084c000 adr: 0x00c00001 <-- here, reboot :-( --- RESULT WHIT BAD TOTAL_MEMORY VALUE (0x00850000) --- --- RESULT WHIT CORRECT TOTAL_MEMORY VALUE (0x00800000) --- Loading DelphineOS ... OK ACPU: CPUID instruction not supported !!! nb_pages: 0x00000800 cr3_k: 0x007ff000 pass#0: 0x007fe000 pass#1: 0x007fd000 adr: 0x00800001 Memory: 7520k/8192k available (38k kernel code, 148k data, 672k reserved) PCI: not on this machine !!! com1 at 0x03f8 com2 at 0x02f8 lpt1 at 0x0378 FDC: Nec765a compatible controller fd0: 1,44Mb hda: H3171-A2, 163Mb w/96k cache, CHS=904/10/34 Partition check: hda1 --- RESULT WHIT CORRECT TOTAL_MEMORY VALUE (0x00800000) --- What do you think? See you soon. _______________________________________________________________ Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ¡Gratis! Descárgalo ya desde http://messenger.yahoo.es |