Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
74 user(s) are online (49 user(s) are browsing Forums)

Members: 0
Guests: 74

more...

Headlines

 
  Register To Post  

Anonymous
Memory allocation flags for AHI buffers.
I want to allocate memory buffers for AHI dynamic sample. AHI doc says I should use MEMF_PUBLIC to be sure that the memory is never swapped out to a disk (as it may be accessed by AHI from within an interrupt). On the other hand OS4 developer guide states MEMF_PUBLIC is obsolete. Which flags should I use?

I also want to have these buffers AltiVec aligned. Does AmigaOS 4 align to 16 bytes by default, or should I use some special allocation function (like MorphOS AllocVecAligned())?

Go to top
Re: Memory allocation flags for AHI buffers.
Not too shy to talk
Not too shy to talk


See User information
@krashan

The os4_migration_guide.pdf says:
Quote:

...
The only place where MEMF_PUBLIC should be used if when your memory needs to be accessible by an interrupt.
...

Go to top
Re: Memory allocation flags for AHI buffers.
Just can't stay away
Just can't stay away


See User information
@krashan

With AllocVecTags() there is AVT_Alignment parameter which defaults to 16 bytes.

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project