mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
But we can start to build it now. Add the serengeti. Now comes the fun part: trying to get it to build. Be aware that things have changed. Stage1 is going to need to start up the APs, load the microcode, before we can event attempt to run initram. So we're going to need more sophisticated code than we've had in the past. Note also that copying cache_as_ram_auto.c and hacking it is NOT an option. We're going to have to recreate stage 1 and initram from scratch. I expect this to improve the code anyway. Signed-off-by: Ronald G. Minnich <rminnich@gmail.com Acked-by: Ronald G. Minnich <rminnich@gmail.com git-svn-id: svn://coreboot.org/repository/coreboot-v3@773 f3766cd6-281f-0410-b1cd-43a5c92072e9
66 lines
1.6 KiB
C
66 lines
1.6 KiB
C
/*
|
|
* This file is part of the coreboot project.
|
|
*
|
|
* Copyright (C) 2007 Advanced Micro Devices, Inc.
|
|
* Copyright (C) 2007 Ronald G. Minnich <rminnich@gmail.com>
|
|
*
|
|
* 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; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* 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
|
|
*/
|
|
|
|
#define _MAINOBJECT
|
|
|
|
#include <types.h>
|
|
#include <lib.h>
|
|
#include <console.h>
|
|
#include <device/device.h>
|
|
#include <device/pci.h>
|
|
#include <string.h>
|
|
#include <msr.h>
|
|
#include <io.h>
|
|
#include <cpu.h>
|
|
#include <amd/k8/k8.h>
|
|
#include <southbridge/nvidia/mcp55/mcp55_smbus.h>
|
|
#include <mc146818rtc.h>
|
|
#include <spd.h>
|
|
|
|
# warning fix hard_reset
|
|
void hard_reset(void)
|
|
{
|
|
}
|
|
void memreset_setup(void)
|
|
{
|
|
}
|
|
|
|
void memreset(int controllers, const struct mem_controller *ctrl)
|
|
{
|
|
}
|
|
|
|
void activate_spd_rom(const struct mem_controller *ctrl)
|
|
{
|
|
/* nothing to do */
|
|
}
|
|
|
|
|
|
/**
|
|
* main for initram for the Gigabyte m57sli.
|
|
*/
|
|
int main(void)
|
|
{
|
|
printk(BIOS_DEBUG, "Hi there from stage1\n");
|
|
post_code(POST_START_OF_MAIN);
|
|
|
|
printk(BIOS_DEBUG, "stage1 returns\n");
|
|
return 0;
|
|
}
|