On 3/17/10 11:11 PM, Stefan Reinauer wrote:
On 3/17/10 10:33 PM, Myles Watson wrote:
+#ifndef __ROMCC__ +#include <lib.h> /* Prototypes */ +#endif
I think the ifndef __ROMCC__ should go into lib.h just as __PRE_RAM__ did..
Acked-by: Stefan Reinauer stepan@coresystems.de
Sorry, got to N-Ack again....
unsigned char AmlCode[] = { 0x44,0x53,0x44,0x54,0xE6,0x27,0x00,0x00, /* 00000000 "DSDT.'.." */ 0x02,0x7C,0x41,0x4D,0x44,0x20,0x20,0x20, /* 00000008 ".|AMD " */ 0x4D,0x41,0x48,0x4F,0x47,0x41,0x4E,0x59, /* 00000010 "MAHOGANY" */ .... }
and in another file it looks like this:
-extern unsigned char AmlCode[]; +extern void* AmlCode;
So AmlCode is used as a void * pointing to the address 0x54445344
which is definitely not what you want...
Even though it might appear that char *foo and char foo[] are the same in C, they're in fact not.
Stefan