As discussed on the mailing list and voted upon, the coreboot project is going to move the majority of copyrights out of the headers and into an AUTHORS file. This will happen a bit at a time, as we'll be unifying license headers at the same time. Additional cleanup - Unify "Inc" to "Inc." and "LLC." to "LLC" Signed-off-by: Martin Roth <martin@coreboot.org> Change-Id: Ie03a3ce1f6085494bd5f38da76e2467970cf301a Reviewed-on: https://review.coreboot.org/c/coreboot/+/35430 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
/*
|
|
* This file is part of the coreboot project.
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef __DEVICE_OPROM_REALMODE_X86_H__
|
|
#define __DEVICE_OPROM_REALMODE_X86_H__
|
|
|
|
#include <arch/cpu.h>
|
|
|
|
#define REALMODE_BASE ((void *)0x600)
|
|
|
|
struct realmode_idt {
|
|
u16 offset, cs;
|
|
};
|
|
|
|
void x86_exception(struct eregs *info);
|
|
|
|
/* From x86_asm.S */
|
|
extern unsigned char __idt_handler;
|
|
extern unsigned int __idt_handler_size;
|
|
extern unsigned char __realmode_code;
|
|
extern unsigned int __realmode_code_size;
|
|
|
|
extern unsigned int (*realmode_call)(u32 addr, u32 eax, u32 ebx, u32 ecx,
|
|
u32 edx, u32 esi, u32 edi) asmlinkage;
|
|
|
|
extern unsigned int (*realmode_interrupt)(u32 intno, u32 eax, u32 ebx, u32 ecx,
|
|
u32 edx, u32 esi, u32 edi) asmlinkage;
|
|
|
|
#define FAKE_MEMORY_SIZE (1024*1024) // only 1MB
|
|
#define INITIAL_EBDA_SEGMENT 0xF600
|
|
#define INITIAL_EBDA_SIZE 0x400
|
|
|
|
int int10_handler(void);
|
|
int int12_handler(void);
|
|
int int16_handler(void);
|
|
int int1a_handler(void);
|
|
|
|
#endif /* __DEVICE_OPROM_REALMODE_X86_H__ */
|