forked from len0rd/rockbox
Add some CACHEALIGN_* macros and a helper function to assist in aligning data and buffers on PortalPlayer processors to cache line boundaries. They're noops when PROC_NEED_CACHEALIGN isn't defined. Go safe and increase the value to 32 since I'm not sure yet if 16 is sufficient - changing that is a one-liner. Add helper to plugin API which will be needed shortly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15523 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
194a66ef83
commit
57d71e4267
8 changed files with 87 additions and 5 deletions
|
@ -42,7 +42,8 @@ enum fill_opt {
|
|||
};
|
||||
|
||||
/*** globals ***/
|
||||
fb_data lcd_framebuffer[LCD_FBHEIGHT][LCD_FBWIDTH] IRAM_LCDFRAMEBUFFER __attribute__ ((aligned (16)));
|
||||
fb_data lcd_framebuffer[LCD_FBHEIGHT][LCD_FBWIDTH]
|
||||
IRAM_LCDFRAMEBUFFER CACHEALIGN_AT_LEAST_ATTR(16);
|
||||
|
||||
|
||||
static fb_data* lcd_backdrop = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue