English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 10 October 2021, 11:39   #1
leonard
Registered User
 
leonard's Avatar
 
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!!!!!!
Anyone knows why AROS reports less than 1KiB of free "fake" ram at bootblock time? ( some demos doesn't boot on AROS because of that too )
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.
leonard is offline  
Old 10 October 2021, 12:36   #2
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
The ROM integrated in WinUAE is not up-to-date, we have already discussed this HERE
AMIGASYSTEM is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 15:53.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11811 seconds with 13 queries