[En-Nut-Discussion] memory boundary

TYOU tyou at i-da.co.jp
Fri Apr 9 09:25:28 CEST 2004


Hi, 

Just had a look of the latest codes and found a bug:
*************************
#if defined(__arm__) || defined(__m68k__) || defined(__H8300H__) || defined(__H8300S__) || defined(__linux__) || defined(__APPLE__)
    /*
     * Allign to the word boundary
     */
    if ((size & 0x01) != 0)
        size++;
#endif
**************************

for 32bit data in ARM or x86 platform, 
the boundary sould be 4. so..maybe it 
is better use like "def MEM_ALIGN" as 
in my port to shorten the "#if defined 
(........"


tyou

_______________________________
| MSN Msger: dma at sina.com     |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





More information about the En-Nut-Discussion mailing list