2013-05-25 00:09:36 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
* Copyright 2013 Google Inc.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2012-12-08 02:15:04 +01:00
|
|
|
#include <console/console.h>
|
2013-02-12 03:22:44 +01:00
|
|
|
#include <arch/stages.h>
|
2012-12-08 02:15:04 +01:00
|
|
|
|
|
|
|
void jmp_to_elf_entry(void *entry, unsigned long buffer, unsigned long size)
|
|
|
|
{
|
2013-05-25 00:09:36 +02:00
|
|
|
printk(BIOS_SPEW, "entry = %p\n", entry);
|
2013-02-12 03:22:44 +01:00
|
|
|
stage_exit(entry);
|
2012-12-08 02:15:04 +01:00
|
|
|
}
|