[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] MiNT dynamic/static RAM-Disk



on 11/5/13, 11:58 AM, Jo Even Skarstein wrote:

> On Tue, 2013-11-05 at 06:43 -0500, Lonny Pursell wrote:
> 
>> What MiKRO said is correct. If I boot mint, do show info the built in ram
>> disk is quite literally the size of free memory.  Something is not working
>> right at the firebee if you boot up and it reports zero.
> 
> Are you sure? Because u:\ram is not a drive, but a directory, so you
> can't just "Dfree()" it to find the amount of free space. And I guess
> that a TOS-program will use Dfree for this purpose. "df" use MiNTlib
> which might use some magic to find the free space in the ramdisk.
> 
> Matthias, try creating a "virtual" drive for the ramdisk. Put...
> 
> alias k: u:\ram
> 
> ...somewhere in your mint.cnf file. This will link the ramdisk to the
> new drive K (or whichever drive letter you choose). Atleast Teradesk
> will report the correct amount of free space on this "drive" on my
> Firebee with a fairly recent MiNT kernel.

See attached snapshot, it even works from GFA.
Yes, I checked the source code of the library and interpreter, DFREE() in
GFA is a direct call to dfree() and so some magic is going somewhere.  :)

-- 
Lonny Pursell    http://www.bright.net/~gfabasic/


Attachment: Screen Shot 2013-11-05 at 12.21.36 PM.png
Description: Binary data