diff TaskManager/Cell/spe/CellDmaManager.h @ 895:bed529c55eda

add alignment of classes in SPU width and height are automatically set in frame buffer API
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 16 Jul 2010 17:23:49 +0900
parents 31d0a5baafdf
children 586b4f825f24
line wrap: on
line diff
--- a/TaskManager/Cell/spe/CellDmaManager.h	Fri Jul 16 00:13:45 2010 +0900
+++ b/TaskManager/Cell/spe/CellDmaManager.h	Fri Jul 16 17:23:49 2010 +0900
@@ -18,7 +18,7 @@
     typedef struct dma_list {
 	uint32 addr;  // should be memaddr, but in Cell's specification...
 	uint32 size;
-    } DmaList, *DmaListPtr;
+    }  __attribute__ ((aligned (DEFAULT_ALIGNMENT))) DmaList, *DmaListPtr;
 
 
     CellDmaManager() ;
@@ -53,6 +53,6 @@
 
 
 /* end */
-};
+}  __attribute__ ((aligned (DEFAULT_ALIGNMENT)));
 
 #endif