Author: wmb Date: Tue Jan 17 01:11:33 2012 New Revision: 2834 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2834
Log: Wrapper - removed pointless alignment message.
Modified: forth/wrapper/wrapper.c
Modified: forth/wrapper/wrapper.c ============================================================================== --- forth/wrapper/wrapper.c Tue Jan 17 01:07:05 2012 (r2833) +++ forth/wrapper/wrapper.c Tue Jan 17 01:11:33 2012 (r2834) @@ -1016,10 +1016,10 @@ error("forth: Can't get memory",""); exit(1); } - if (((long)loadaddr & 15) != 0) { - printf("Why isn't loadaddr (%p) aligned?\n", loadaddr); - loadaddr = (char *)(((long)loadaddr + 15) & ~15); - } + + /* Align loadaddr to 16-byte boundary; some mallocs align less stringently */ + loadaddr = (char *)(((long)loadaddr + 15) & ~15); + memsize -= 16; // Leave room for initial stack pointer (void)memcpy(loadaddr, (char *)&header, sizeof(header));