minor reformat
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1567 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
c8ccf8ac0a
commit
7b095aa1d9
|
@ -66,8 +66,7 @@
|
||||||
/* The address arguments to this function are PHYSICAL ADDRESSES */
|
/* The address arguments to this function are PHYSICAL ADDRESSES */
|
||||||
static void real_mode_switch_call_vga(unsigned long devfn)
|
static void real_mode_switch_call_vga(unsigned long devfn)
|
||||||
{
|
{
|
||||||
__asm__ __volatile__
|
__asm__ __volatile__ (
|
||||||
(
|
|
||||||
// paranoia -- does ecx get saved? not sure. This is
|
// paranoia -- does ecx get saved? not sure. This is
|
||||||
// the easiest safe thing to do.
|
// the easiest safe thing to do.
|
||||||
" pushal\n"
|
" pushal\n"
|
||||||
|
@ -82,7 +81,8 @@ static void real_mode_switch_call_vga(unsigned long devfn)
|
||||||
/* This configures CS properly for real mode. */
|
/* This configures CS properly for real mode. */
|
||||||
" ljmp $0x28, $__rms_16bit\n"
|
" ljmp $0x28, $__rms_16bit\n"
|
||||||
"__rms_16bit: \n"
|
"__rms_16bit: \n"
|
||||||
".code16 \n" /* 16 bit code from here on... */
|
".code16 \n"
|
||||||
|
/* 16 bit code from here on... */
|
||||||
|
|
||||||
/* Load the segment registers w/ properly configured segment
|
/* Load the segment registers w/ properly configured segment
|
||||||
* descriptors. They will retain these configurations (limits,
|
* descriptors. They will retain these configurations (limits,
|
||||||
|
@ -147,6 +147,7 @@ static void real_mode_switch_call_vga(unsigned long devfn)
|
||||||
" popal\n"
|
" popal\n"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
__asm__ (".text\n""real_mode_switch_end:\n");
|
__asm__ (".text\n""real_mode_switch_end:\n");
|
||||||
extern char real_mode_switch_end[];
|
extern char real_mode_switch_end[];
|
||||||
|
|
||||||
|
@ -161,12 +162,14 @@ do_vgabios(void)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i=0x400; i<0x500; i++) {
|
for (i=0x400; i<0x500; i++) {
|
||||||
printk_debug("%02x%c", *(unsigned char *)i, i%16==15 ? '\n' : ' ');
|
printk_debug("%02x%c", *(unsigned char *)i,
|
||||||
|
i%16==15 ? '\n' : ' ');
|
||||||
*(unsigned char *) i = 0;
|
*(unsigned char *) i = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=0x400; i<0x500; i++) {
|
for (i=0x400; i<0x500; i++) {
|
||||||
printk_debug("%02x%c", *(unsigned char *)i, i%16==15 ? '\n' : ' ');
|
printk_debug("%02x%c", *(unsigned char *)i,
|
||||||
|
i%16==15 ? '\n' : ' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
dev = pci_find_class(PCI_CLASS_DISPLAY_VGA <<8, NULL);
|
dev = pci_find_class(PCI_CLASS_DISPLAY_VGA <<8, NULL);
|
||||||
|
|
Loading…
Reference in New Issue