| Poster | Thread |
sundown
 |  |
Re: OS4 Memory allocation and progress Posted on 6-Jul-2006 22:38:29
| | [ #21 ] |
|
|
 |
Elite Member  |
Joined: 30-Aug-2003 Posts: 4616
From: West coast, USA | | |
|
| @All
Any known software compatibility problems, especially with older 68k apps that break?
_________________ X1000! Party on  Pure Gold Hate tends to make you look stupid... |
|
| Status: Offline |
|
|
RWO
|  |
Re: OS4 Memory allocation and progress Posted on 6-Jul-2006 23:15:15
| | [ #22 ] |
|
|
 |
Regular Member  |
Joined: 8-Mar-2003 Posts: 447
From: Denmark | | |
|
| @sundown
Yes there is trouble with some of the PPC programs (not 68k) were they dont respect read-only data.
if you for example have a source where the data is set to 'const', that data will be send to a readonly memory location and it will trough a DSI if you try to modify the data.
One program the fails for this is LimpidClock.
edit: I'm were not trying to put LimpidClock in a bad light it was just an example.. I do apologize to the author for using the Nice program as an example.
RWO Last edited by RWO on 07-Jul-2006 at 12:54 PM.
_________________ Debugging is a state of mind |
|
| Status: Offline |
|
|
lylehaze
|  |
Re: OS4 Memory allocation and progress Posted on 6-Jul-2006 23:41:57
| | [ #23 ] |
|
|
 |
Cult Member  |
Joined: 1-Sep-2004 Posts: 865
From: Virginia, USA | | |
|
| @EntilZha
Do developers that are not on the beta list have access to the new memory system?
I'm developing without it, so I'm wondering if it's something I'm missing, or something I'm not supposed to have yet.
LyleHaze, writing drivers in the dark...
_________________ question=(2b||!(2b)) |
|
| Status: Offline |
|
|
afxgroup
 |  |
Re: OS4 Memory allocation and progress Posted on 6-Jul-2006 23:45:31
| | [ #24 ] |
|
|
 |
Super Member  |
Joined: 8-Mar-2004 Posts: 1952
From: Taranto, Italy | | |
|
| |
| Status: Offline |
|
|
wegster
|  |
Re: OS4 Memory allocation and progress Posted on 7-Jul-2006 0:02:50
| | [ #25 ] |
|
|
 |
Elite Member  |
Joined: 29-Nov-2004 Posts: 8554
From: RTP, NC USA | | |
|
| @RWO
Quote:
RWO wrote: @sundown
Yes there is trouble with some of the PPC programs (not 68k) were they dont respect read-only data.
if you for example have a source where the data is set to 'const', that data will be send to a readonly memory location and it will trough a DSI if you try to modify the data.
One program the fails for this is LimpidClock.
RWO |
Hrm, -Wall is your friend 
_________________ Are we not done with the same silly arguments and flames yet??! |
|
| Status: Offline |
|
|
lylehaze
|  |
Re: OS4 Memory allocation and progress Posted on 7-Jul-2006 0:18:42
| | [ #26 ] |
|
|
 |
Cult Member  |
Joined: 1-Sep-2004 Posts: 865
From: Virginia, USA | | |
|
| @afxgroup
Yes, I am writing a driver. Sure, I'm having troubles, nothing works perfect on the first try.
May I assume by your comment that I'll have more troubles when the new memory system is made available?
LyleHaze _________________ question=(2b||!(2b)) |
|
| Status: Offline |
|
|
afxgroup
 |  |
Re: OS4 Memory allocation and progress Posted on 7-Jul-2006 0:20:50
| | [ #27 ] |
|
|
 |
Super Member  |
Joined: 8-Mar-2004 Posts: 1952
From: Taranto, Italy | | |
|
| |
| Status: Offline |
|
|
RWO
|  |
Re: OS4 Memory allocation and progress Posted on 7-Jul-2006 0:24:16
| | [ #28 ] |
|
|
 |
Regular Member  |
Joined: 8-Mar-2003 Posts: 447
From: Denmark | | |
|
| @wegster
Quote:
| Hrm, -Wall is your friend |
Yes I agree.. Looking at the Changelog of OS4 all the Developers have started to use -Wall and -Werror so I followed too, just to be sure.
RWO_________________ Debugging is a state of mind |
|
| Status: Offline |
|
|
RWO
|  |
Re: OS4 Memory allocation and progress Posted on 7-Jul-2006 0:29:57
| | [ #29 ] |
|
|
 |
Regular Member  |
Joined: 8-Mar-2003 Posts: 447
From: Denmark | | |
|
| @lylehaze
Quote:
May I assume by your comment that I'll have more troubles when the new memory system is made available? |
If you need to support DMA in your driver.. you now have to alloc memory block that isent swappable and you need to translate the memory address to the real psyical address.
That also means all current drivers that use DMA, needs to be updated, from AHI driver to USB and IDE and so on. but that is allready done.
RWO_________________ Debugging is a state of mind |
|
| Status: Offline |
|
|
Rogue
|  |
Re: OS4 Memory allocation and progress Posted on 7-Jul-2006 0:30:02
| | [ #30 ] |
|
|
 |
OS4 Core Developer  |
Joined: 14-Jul-2003 Posts: 3999
From: Unknown | | |
|
| @lylehaze
Quote:
May I assume by your comment that I'll have more troubles when the new memory system is made available? |
Well, it's not that big of an issue really. The MEMF_PUBLIC flag is mostly ignored now (or rather converted to MEMF_SHARED) so you will not nescessarily get non-fragmented memory (i.e. the pages may be scattered around). If you don't use MEMF_PUBLIC, it should not make any difference._________________ Seriously, if you want to contact me do not bother sending me a PM here. Write me a mail |
|
| Status: Offline |
|
|
lylehaze
|  |
Re: OS4 Memory allocation and progress Posted on 7-Jul-2006 0:40:05
| | [ #31 ] |
|
|
 |
Cult Member  |
Joined: 1-Sep-2004 Posts: 865
From: Virginia, USA | | |
|
| @All
Thanks for the info. I'll have to look over my existing code to see if anything might be affected.(CAMD, USB MIDI, new project)
I look forward to getting the full details of how to make best use of the new allocation scheme.
Patience is a blessing, I'm just not in a hurry for anything anymore. 
Too old, too tired.
LyleHaze
_________________ question=(2b||!(2b)) |
|
| Status: Offline |
|
|
tonyw
 |  |
Re: OS4 Memory allocation and progress Posted on 7-Jul-2006 3:56:27
| | [ #32 ] |
|
|
 |
Elite Member  |
Joined: 8-Mar-2003 Posts: 2780
From: Sydney (of course) | | |
|
| @wegster
"-Wall" is not enough. Despite the option name ("all"), it does not check everything. You have to add -Wwrite-strings and a few others as well.
The gcc people decided that "all" should mean "almost all".
_________________ cheers tony
Hyperion Support Forum: http://forum.hyperion-entertainment.biz/index.php |
|
| Status: Offline |
|
|
tonyw
 |  |
Re: OS4 Memory allocation and progress Posted on 7-Jul-2006 3:59:19
| | [ #33 ] |
|
|
 |
Elite Member  |
Joined: 8-Mar-2003 Posts: 2780
From: Sydney (of course) | | |
|
| @sundown
Legacy programs like 68k stuff are not checked for writes to "read-only" sections. The old "hunk" binary system did not support it properly, IIRC.
_________________ cheers tony
Hyperion Support Forum: http://forum.hyperion-entertainment.biz/index.php |
|
| Status: Offline |
|
|
sundown
 |  |
Re: OS4 Memory allocation and progress Posted on 7-Jul-2006 4:21:54
| | [ #34 ] |
|
|
 |
Elite Member  |
Joined: 30-Aug-2003 Posts: 4616
From: West coast, USA | | |
|
| @tonyw
Had a feeling some old programs would break. I'm glad I got e-uae working to support those that don't survive the change. Just hope e-uae survives.  _________________ X1000! Party on  Pure Gold Hate tends to make you look stupid... |
|
| Status: Offline |
|
|
Samwel
|  |
Re: OS4 Memory allocation and progress Posted on 7-Jul-2006 4:50:05
| | [ #35 ] |
|
|
 |
Elite Member  |
Joined: 7-Apr-2004 Posts: 3393
From: Sweden | | |
|
| @sundown
If not, I guess Mr Drummond will fix it rather quick as he's in the inner circle and has this information since long ago. 
_________________ /Harry
[SOLD] µA1-C - 750GX 800MHz - 512MB - Antec Aria case
Avatar by HNL_DK! |
|
| Status: Offline |
|
|
sundown
 |  |
Re: OS4 Memory allocation and progress Posted on 7-Jul-2006 6:04:41
| | [ #36 ] |
|
|
 |
Elite Member  |
Joined: 30-Aug-2003 Posts: 4616
From: West coast, USA | | |
|
| @Samwel
Yes, Richard is a beta tester, so not much to worry about.
I was hoping the beta testers could/would start to give us a warning about the apps that are known to fail. _________________ X1000! Party on  Pure Gold Hate tends to make you look stupid... |
|
| Status: Offline |
|
|