bi_record location Error ?

From: John Traill <hidden>
Date: 2002-09-27 07:39:24

The _ALIGN macro is defined as follows :-

#define _ALIGN(addr,size)        (((addr)+size-1)&(~(size-1)))

However all uses of the ALIGN macro for bi_record location already add the size eg.

rec = (struct bi_record *)_ALIGN((ulong)__bss_start+(1<<20)-1,(1<<20));

The use of _ALIGN for the bi_records is consistent but is there a reason for the double size offset or is it a simple typo ?

--

Regards, John


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help