31 January 2009, 02:11 | #1 |
Ya' like it Retr0?
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
|
Deallocating RAM from the Memory Pool
Hello there my forum chummies,
I have a question and I am sure that there is a solution as I used this atleast 14/15 years ago. is there a way I can "software" deallocate memory that has been auto configured. for example. say I have an 8MB RTC memory card configured with 8MB of ram, can I call a small program to de-allocate all the ram from a given starting address ? the idea is to be able to have a startup that checks the mouse button press to de-alloc 3.5MB from the Auto config memory thus allowing PCMCIA activity to go on without issues. ? any ideas? |
31 January 2009, 17:06 | #2 | |
Registered User
Join Date: Sep 2007
Location: Las Cruces, USA
Age: 71
Posts: 351
|
Quote:
|
|
31 January 2009, 17:39 | #3 |
Amibay Senior Staff
Join Date: Feb 2008
Location: Cardiff / Wales
Posts: 1,302
|
@Zeets
I've a feeling Toni Wilen may know the answer to this one my friend. TC |
31 January 2009, 18:07 | #4 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,576
|
I am quite sure above "fix" does not work.
Problem is that fast RAM (if >4M) and PCMCIA physical address space (Gayle) conflicts. It is not possible to have two different chips responding to same address, it most likely result in RAM errors or system crashing randomly and/or failing to boot. It is exactly same situation if you have both fast ram (>4M) and PCMCIA SRAM card inserted (without disabling PCMCIA slot). SRAM and Fast RAM both would exist in same address space. Perhaps it is possible to "disconnect" Gayle's PCMCIA common area address space (=hardware hack) because it isn't really needed when using CF card in PCMCIA adapter or PCMCIA network (SRAM cards need it but if you have SRAM card you won't need fast RAM..) IO area is outside of fast RAM address space. EDIT: if you want to enable PCMCIA even if you have >4M RAM, just clear bit 0 at 0xda8000 and see what happens.. (+insert card because slot is also disabled when it is empty) |
31 January 2009, 19:13 | #5 |
I hate potatos and shirts
|
So a simple command to set bit 0 to 0 on 0xDA8000$ will stop Gayle from acting up?
Just a matter of booting the >4Mb Amiga, insert the card and then issue the command? That's a precious information! |
31 January 2009, 19:44 | #6 |
Amibay Senior Staff
Join Date: Feb 2008
Location: Cardiff / Wales
Posts: 1,302
|
I told you, Toni knows everything Thanks Toni
TC |
31 January 2009, 19:52 | #7 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,576
|
Quote:
I have no idea if it only causes instant crash |
|
31 January 2009, 20:45 | #8 |
CON: artist
Join Date: Feb 2006
Location: Poland
Age: 43
Posts: 1,250
|
@Toni
How would you do it using POKE? Code:
POKE W=WORD/S,L=LONG/S,LIB=LIBRARY/K,DEV=DEVICE/K,RES=RESOURCE/K,AT/S C=CUSTOM/S,CIAA/S,CIAB/S,H=HEX/S,BIN=BINARY/S,STRING/S,ADDRESS/A |
31 January 2009, 21:26 | #9 |
CON: artist
Join Date: Feb 2006
Location: Poland
Age: 43
Posts: 1,250
|
When I use:
Code:
peek 0xDA8000 after Code:
poke 0xDA8000 0 is that correct?! btw the CF0: fails to mount. A1200+8megs (Elbox) |
31 January 2009, 21:47 | #10 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,576
|
Quote:
I guess the slot isn't initialized properly or carddisk.device (or some other device driver) isn't loaded. It is also possible the device driver checks ram size and refuses to initialize without patching it. |
|
31 January 2009, 22:02 | #11 |
CON: artist
Join Date: Feb 2006
Location: Poland
Age: 43
Posts: 1,250
|
I guess it was too good to be true...
|
31 January 2009, 22:06 | #12 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,576
|
At least system didn't become unstable, which means there is still hope if someone is interested in device driver patching
|
31 January 2009, 22:18 | #13 |
I hate potatos and shirts
|
Don't you need to read the other bits too before poking? Only the bit 0 have to be modified.
|
31 January 2009, 22:20 | #14 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,576
|
|
31 January 2009, 22:29 | #15 |
I hate potatos and shirts
|
So just making it read an even number make it act correct, them? Interesting, really.
|
31 January 2009, 22:41 | #16 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,576
|
Find the gayle documention (gayle.pdf), it should be attached to some post here
|
31 January 2009, 23:04 | #17 | |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
Quote:
|
|
01 February 2009, 14:18 | #18 |
The 1 who ribbits
|
now this is a grovey idea if some1 can make it work
being able to have 4meg of fast and a working pcmia port without having to swap/configure the 8meg to 4, now that would be nice, gota love sofware solutions to hardware problems. |
01 February 2009, 21:48 | #19 |
Hamster tamer
Join Date: Apr 2007
Location: Out in the woods
Posts: 122
|
You'd also have to try to re-initialise card.resource too (It doesn't build it's library and add itself to exec's resource list if it finds memory at $00600100), since most of the PCMCIA drivers such as compactflash.device will fail if card.resource can't be opened.
|
02 February 2009, 08:24 | #20 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,576
|
Quote:
I can do the patch (should be really simple) but is there program that can load on-disk resources? (I am too lazy to write one..) |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use of 4MB PCMCIA Fast Flash Memory as Fast RAM in A1200 | nkarytia | support.Hardware | 10 | 16 September 2011 13:37 |
1Mb CHIP RAM hack and extra memory | orange | Hardware mods | 3 | 29 June 2010 13:18 |
RAM Board Accelerator Memory Issue | Lorfarius | support.Hardware | 5 | 05 February 2010 13:11 |
WTB: 4M Zip RAM / Memory for 68040 board | Photon | MarketPlace | 4 | 14 November 2008 22:07 |
Graphics card memory->Amiga fast ram? | manicx | support.Hardware | 9 | 31 July 2003 16:19 |
|
|