10 October 2021, 11:39 | #1 |
Registered User
Join Date: Apr 2013
Location: paris
Posts: 133
|
AROS builtin ROM and memory allocation
Hi,
Seems that LDOS demo doesn't properly boot if using AROS builtin winuae ROM, saying the demo needs more memory. After investigation, it seems AROS report very low amount of "free" memory at boot time. In LDOS bootsector I'm doing that: here what happen on a 512KiB chip + 512KiB fake configuration machine: (again, I'm talking about bootblock time) Code:
move.l #(MEMF_LARGEST|MEMF_CHIP),d1 jsr _LVOAvailMem(a6) move.l d0,m_chipSize(a7) ; KS & AROS report around 500KiB moveq #MEMF_CHIP,d1 jsr _LVOAllocMem(a6) move.l d0,m_chipStart(a7) move.l #(MEMF_LARGEST),d1 ; "any" ram request jsr _LVOAvailMem(a6) ; KS reports about 500Kib, AROS reports 0x18 bytes!!!!!! Is there a legit "AROS" way to workaround? (I can alloc available bytes, then align the returned address to 512KiB, and "test" if there is at least 512KiB by read/write at 512KiB-2bytes, but if there is a better way on Aros feel free to share) ( note: I just tested some bootblock amiga demos like "Planet Rocklobster, Rink a dink Redux and EON, and none of them are working on AROS with 512+512 config ) Last edited by leonard; 10 October 2021 at 11:49. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Memory allocation for games and demos | Jobbo | Coders. Asm / Hardware | 18 | 25 August 2020 22:42 |
LINK UNLINK memory allocation. | redblade | Coders. Asm / Hardware | 6 | 19 August 2018 12:37 |
[SOLVED] GCC (g++) Memory allocation issues | NovaCoder | Coders. Language | 36 | 08 June 2015 21:12 |
FS-UAE: Possible to use the builtin AROS ROM? | nexusle | support.FS-UAE | 2 | 11 July 2012 06:24 |
AROS rom and picasso | ara | support.WinUAE | 1 | 17 November 2011 14:10 |
|
|