move all register fram definitions to arch/register.h

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4832 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2009-10-24 00:47:07 +00:00 committed by Stefan Reinauer
parent c1e7efa98d
commit 42dc721cdf
15 changed files with 57 additions and 107 deletions

View File

@ -0,0 +1,34 @@
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2009 coresystems GmbH
*
* 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
*/
#ifndef __ARCH_REGISTERS_H
#define __ARCH_REGISTERS_H
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
uint32_t error_code;
uint32_t eip;
uint32_t cs;
uint32_t eflags;
};
#endif

View File

@ -359,14 +359,7 @@ static void put_packet(char *buffer)
}
#endif /* CONFIG_GDB_STUB */
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
uint32_t error_code;
uint32_t eip;
uint32_t cs;
uint32_t eflags;
};
#include <arch/registers.h>
void x86_exception(struct eregs *info)
{

View File

@ -102,14 +102,8 @@ void hardwaremain(int ret_addr)
}
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
uint32_t error_code;
uint32_t eip;
uint32_t cs;
uint32_t eflags;
};
#include <arch/registers.h>
void x86_exception(struct eregs *info)
{

View File

@ -43,7 +43,7 @@ static void dump_mem(u32 start, u32 end)
printk_debug(" %02x", (unsigned char)*((unsigned char *)i));
}
print_debug("\n");
}
}
#endif
extern u8 AmlCode[];

View File

@ -96,14 +96,8 @@ void hardwaremain(int ret_addr)
}
struct eregs {
u32 eax, ecx, edx, ebx, esp, ebp, esi, edi;
u32 vector;
u32 error_code;
u32 eip;
u32 cs;
u32 eflags;
};
#include <arch/registers.h>
void x86_exception(struct eregs *info)
{

View File

@ -113,14 +113,8 @@ void hardwaremain(int ret_addr)
}
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
uint32_t error_code;
uint32_t eip;
uint32_t cs;
uint32_t eflags;
};
#include <arch/registers.h>
void x86_exception(struct eregs *info)
{

View File

@ -111,14 +111,8 @@ void hardwaremain(int ret_addr)
}
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
uint32_t error_code;
uint32_t eip;
uint32_t cs;
uint32_t eflags;
};
#include <arch/registers.h>
void x86_exception(struct eregs *info)
{

View File

@ -88,14 +88,7 @@ void hardwaremain(int ret_addr)
);
}
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
uint32_t error_code;
uint32_t eip;
uint32_t cs;
uint32_t eflags;
};
#include <arch/registers.h>
void x86_exception(struct eregs *info)
{

View File

@ -111,14 +111,8 @@ void hardwaremain(int ret_addr)
}
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
uint32_t error_code;
uint32_t eip;
uint32_t cs;
uint32_t eflags;
};
#include <arch/registers.h>
void x86_exception(struct eregs *info)
{

View File

@ -118,14 +118,8 @@ void hardwaremain(int ret_addr)
}
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
uint32_t error_code;
uint32_t eip;
uint32_t cs;
uint32_t eflags;
};
#include <arch/registers.h>
void x86_exception(struct eregs *info)
{

View File

@ -118,14 +118,8 @@ void hardwaremain(int ret_addr)
}
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
uint32_t error_code;
uint32_t eip;
uint32_t cs;
uint32_t eflags;
};
#include <arch/registers.h>
void x86_exception(struct eregs *info)
{

View File

@ -100,14 +100,8 @@ void hardwaremain(int ret_addr)
}
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
uint32_t error_code;
uint32_t eip;
uint32_t cs;
uint32_t eflags;
};
#include <arch/registers.h>
void x86_exception(struct eregs *info)
{

View File

@ -100,14 +100,8 @@ void hardwaremain(int ret_addr)
}
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
uint32_t error_code;
uint32_t eip;
uint32_t cs;
uint32_t eflags;
};
#include <arch/registers.h>
void x86_exception(struct eregs *info)
{

View File

@ -22,6 +22,7 @@
#ifdef CONFIG_COREBOOT_V2
#include <arch/io.h>
#include <arch/registers.h>
#include <console/console.h>
#define printk(x...) do_printk(x)
#else
@ -34,15 +35,6 @@ struct realmode_idt {
u16 offset, cs;
};
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
uint32_t error_code;
uint32_t eip;
uint32_t cs;
uint32_t eflags;
};
void x86_exception(struct eregs *info);
extern unsigned char __idt_handler, __idt_handler_size;

View File

@ -26,21 +26,13 @@
#ifdef CONFIG_COREBOOT_V2
#include <console/console.h>
#include <arch/io.h>
#include <arch/registers.h>
#define printk(x...) do_printk(x)
#else
#include <console.h>
#include <io.h>
#endif
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
uint32_t error_code;
uint32_t eip;
uint32_t cs;
uint32_t eflags;
};
enum {
CHECK = 0xb001,
FINDDEV = 0xb102,