IOMD OS_Memory 8 incorrect
Theo Markettos (89) 919 posts |
RPCEmu 0.8.9, RISC OS 5 ROM from 8th June. RPCEmu configured with 32MB DRAM and 8MB VRAM. RISC OS 40MB appears on the boot screen, running out of the desktop BASIC gets 39xxxxxx bytes. But if I run this program:
I get:
The memory table is correct, but OS_Memory 8 is claiming all the RAM is DRAM when actually some is VRAM. |
Theo Markettos (89) 919 posts |
Hmm… if I configure RPCEmu with no VRAM and various amounts of DRAM I get this behaviour:
I’m using ARM610 emulation by the way. Perhaps this is related to the above bug. If I run with 256MB DRAM and 8MB VRAM it still happens, though. |
Sprow (202) 1158 posts |
Looking in the kernel there’s a warning to say “Sort out memory amounts” and it looks like it never got filled in. I think all the information is around somewhere in its head, but currently the kernel only bothers filling in 5 (soft ROM) and 1 (DRAM). Seeing as I’ve looked this far I can at least fix the VRAM/DRAM one.
No, that’s an unrelated problem in the new HAL RAM probing code, I’ve been in private discussions with Jeffrey Lee about how best to tackle it – there are some odd combinations of physical SIMMs that also don’t get probed right at present. Interestingly, RISC OS 3.60 in ARM710 mode is happy to detect all combinations of DRAM/VRAM I tried. This might give a means to test out the RAM probing code – my best idea so far was just to clip on a logic analyser to an actual machine. |
Andrew Daniel (376) 76 posts |
I wonder if this is related to the problem I have with the soft load of RISC OS 5 on my physical RiscPC. Where although VIDCBandLimit is being set correctly, the machine behaves as if no VRAM is fitted rather the 1MB it has. |
Sprow (202) 1158 posts |
Is the startup banner an odd number? eg. if you have a 32MB SIMM + 1MB VRAM banner should say RISC OS 33MB, that would suggest the VRAM was detected at the lowest level. I just checked here (64+1 machine) and it says 65MB and my fix to OS_Memory reports that VRAM now too! |
Colin Ferris (399) 1818 posts |
Nice to think things are moving on with the RPC ROM version. |
Colin Ferris (399) 1818 posts |
After a couple of re-boots the StrongEd error is - |
Andrew Daniel (376) 76 posts |
Yes, the start up banner reads 41MB. (32+8+1). |
Colin Ferris (399) 1818 posts |
Ref my error with StrongEd – *Filer_Boot – RO5 |
Colin Ferris (399) 1818 posts |
Running RO5.19 (19 Jun 12) |
Sprow (202) 1158 posts |
StrongEd 4.68 works OK for me. Is the error when you double click its icon or is it in your “add to apps” in !Configure?
OS_Memory 8 now reports VRAM correctly, of all the ways to detect RO5 to select “NoVram” obey file that was probably a weak check. DRAM+VRAM should work to give full resolutions, I’m looking at VIDC at the moment so will inevitably check this along the way.
On IOMD class machines there’s no DMA from floppies, it pumps the data with FIQs, and that code path hasn’t been updated in ADFS yet. It’s on (one of my) todo lists, since I still use floppies quite a bit to copy to a BBC Micro. |
Colin Ferris (399) 1818 posts |
I had added a line to the !Run file- sometime ago. The Vram error – was made use of – while sorting out the boot files. |
Sprow (202) 1158 posts |
What does -d do? Can you show what the help reports? I’ve got 4.02 here, and -d is rejected for me. |
Colin Ferris (399) 1818 posts |
*HELP FILER_BOOT RO4.02 |
Sprow (202) 1158 posts |
So it does – I’d forgotten I softload the Filer module on the RISC OS 4.02 boot sequence. |