how does stage 2 access LAR? The mem_file struct is an auto (local) for stage1.
void __attribute__((stdcall)) stage1_main(u32 bist) { int ret; struct mem_file archive, result; int elfboot_mem(struct lb_memory *mem, void *where, int size); void *entry;
You need that mem_file struct ... how do we get this made available to other functions?
Remember, you can't make it global to the file before RAM is turned on ...
Just have a global that is assigned once RAM is on?
ron