1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __DEVICE_OPROM_REALMODE_X86_H__
4 #define __DEVICE_OPROM_REALMODE_X86_H__
9 #define REALMODE_BASE ((void *)0x600)
15 void x86_exception(struct eregs
*info
);
18 extern unsigned char __idt_handler
;
19 extern unsigned int __idt_handler_size
;
20 extern unsigned char __realmode_code
;
21 extern unsigned int __realmode_code_size
;
23 extern unsigned int (*realmode_call
)(u32 addr
, u32 eax
, u32 ebx
, u32 ecx
,
24 u32 edx
, u32 esi
, u32 edi
) asmlinkage
;
26 extern unsigned int (*realmode_interrupt
)(u32 intno
, u32 eax
, u32 ebx
, u32 ecx
,
27 u32 edx
, u32 esi
, u32 edi
) asmlinkage
;
29 #define FAKE_MEMORY_SIZE (1024*1024) // only 1MB
30 #define INITIAL_EBDA_SEGMENT 0xF600
31 #define INITIAL_EBDA_SIZE 0x400
33 int int10_handler(void);
34 int int12_handler(void);
35 int int16_handler(void);
36 int int1a_handler(void);
38 #endif /* __DEVICE_OPROM_REALMODE_X86_H__ */