}
// Assembler entry points defined in romlayout.S
-extern void apm16protected_entry(void);
-extern void apm32protected_entry(void);
+extern void entry_apm16(void);
+extern void entry_apm32(void);
// APM 16 bit protected mode interface connect
static void
handle_155302(struct bregs *regs)
{
- regs->bx = (u32)apm16protected_entry;
+ regs->bx = (u32)entry_apm16;
regs->ax = SEG_BIOS; // 16 bit code segment base
regs->si = 0xfff0; // 16 bit code segment size
regs->cx = SEG_BIOS; // data segment address
handle_155303(struct bregs *regs)
{
regs->ax = SEG_BIOS; // 32 bit code segment base
- regs->ebx = (u32)apm32protected_entry;
+ regs->ebx = (u32)entry_apm32;
regs->cx = SEG_BIOS; // 16 bit code segment base
// 32 bit code segment size (low 16 bits)
// 16 bit code segment size (high 16 bits)
#include "pci_regs.h" // PCI_VENDOR_ID
// romlayout.S
-extern void bios32_entry(void);
-extern void pcibios32_entry(void);
+extern void entry_bios32(void);
+extern void entry_pcibios32(void);
#define RET_FUNC_NOT_SUPPORTED 0x81
#define RET_BAD_VENDOR_ID 0x83
regs->bx = 0x0210; // PCI version 2.10
regs->cl = GET_GLOBAL(MaxPCIBus);
regs->edx = 0x20494350; // "PCI "
- regs->edi = (u32)pcibios32_entry + BUILD_BIOS_ADDR;
+ regs->edi = (u32)entry_pcibios32 + BUILD_BIOS_ADDR;
set_code_success(regs);
}
{
dprintf(3, "init bios32\n");
- BIOS32HEADER.entry = (u32)bios32_entry;
+ BIOS32HEADER.entry = (u32)entry_bios32;
BIOS32HEADER.checksum -= checksum(&BIOS32HEADER, sizeof(BIOS32HEADER));
}
lretw
// APM entry points
- DECLFUNC apm16protected_entry
-apm16protected_entry:
+ DECLFUNC entry_apm16
+entry_apm16:
pushfw // save flags
pushl %eax // dummy
ENTRY_ARG handle_apm16
lretw
.code32
- DECLFUNC apm32protected_entry
-apm32protected_entry:
+ DECLFUNC entry_apm32
+entry_apm32:
pushfl
pushl %gs
pushl %cs // Move second descriptor after %cs to %gs
lretl
// PCI-BIOS 32bit entry point
- DECLFUNC pcibios32_entry
-pcibios32_entry:
+ DECLFUNC entry_pcibios32
+entry_pcibios32:
pushfl
pushl %gs // Backup %gs and set %gs=%ds
pushl %ds
lretl
// BIOS32 support
- EXPORTFUNC bios32_entry
-bios32_entry:
+ EXPORTFUNC entry_bios32
+entry_bios32:
pushfl
#if CONFIG_PCIBIOS
// Check for PCI-BIOS request
jne 1f
movl $BUILD_BIOS_ADDR, %ebx
movl $BUILD_BIOS_SIZE, %ecx
- movl $pcibios32_entry, %edx
+ movl $entry_pcibios32, %edx
xorb %al, %al
jmp 2f
#endif
lretl
// 32bit elf entry point
- EXPORTFUNC post32
-post32:
+ EXPORTFUNC entry_elf
+entry_elf:
cli
cld
lidtl (BUILD_BIOS_ADDR + pmode_IDT_info)
doLayout(sections)
# Write out linker script files.
- entrysym = info16[1]['post32']
+ entrysym = info16[1]['entry_elf']
genreloc = '_reloc_abs_start' in info32flat[1]
writeLinkerScripts(sections, entrysym, genreloc, out16, out32seg, out32flat)