mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Remaining to be done: PIRQ table MP table ACPI table relocate the GDT reload to a sensible place -- or figure out if we even need to bother; we're back to execute in place and the GDT is in flash rom ==> we can leave it until we boot the payload I think. At this point, however, we've got the basic bits to sensibly create tables. This has been tested and works on bochs. It is working to a point, but still failing on qemu for reasons we don't quite understand. Elfboot Found ELF candidate at offset 0 New segment addr 0x100000 size 0x21310 offset 0xc0 filesize 0x7348 (cleaned up) New segment addr 0x100000 size 0x7348 offset 0xc0 set 00100000 to 0 for 0 bytes Copy to 00100000 from fffc3f24 for 29512 bytes New segment addr 0x121320 size 0x48 offset 0x7420 filesize 0x48 (cleaned up) New segment addr 0x121320 size 0x48 offset 0x7420 set 00121320 to 0 for 0 bytes Copy to 00121320 from fffcb284 for 72 bytes Dropping non PT_LOAD segment Dropping non PT_LOAD segment Jumping to boot code at 0x1047c0 FILO version 0.5 (rminnich@q.ccstar.lanl.gov) Sun Feb 25 10:19:16 MST 2007 collect_sys_info: boot eax = 0xfe collect_sys_info: boot ebx = 0xffffd4ca collect_sys_info: boot arg = 0x1047c0 collect_linuxbios_info: NOT Searching for LinuxBIOS tables... Can't get memory map from firmware. Using hardcoded default. collect_sys_info: 0000000000000000-00000000000a0000 collect_sys_info: 0000000000100000-0000000002000000 collect_sys_info: RAM 32 MB relocate: Current location: 0x1000c7-0x12142e relocate: Relocating to 0x1fdec90-0x1fffff7... ok Press <Enter> for default boot, or <Esc> for boot prompt... boot: hdc1:/phase1 root=/dev/hdc1 console=ttyS0,115200 malloc_check: invalid head->prev_size: 0x0 Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@133 f3766cd6-281f-0410-b1cd-43a5c92072e9
31 lines
1 KiB
C
31 lines
1 KiB
C
/*
|
|
* table management code for Linux BIOS
|
|
* This is the architecture-independent driver; it has a hook to architecture-dependent code.
|
|
*
|
|
* Copright (C) 2002 Eric Biederman, Linux NetworX
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; version 2 of the License.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
|
|
*
|
|
*/
|
|
|
|
#include <console/console.h>
|
|
//#include <cpu.h>
|
|
#include <tables.h>
|
|
#include <tables.h>
|
|
|
|
struct lb_memory *
|
|
write_tables(void)
|
|
{
|
|
return arch_write_tables();
|
|
}
|