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,23 +66,23 @@
|
|||
/* The address arguments to this function are PHYSICAL ADDRESSES */
|
||||
static void real_mode_switch_call_vga(unsigned long devfn)
|
||||
{
|
||||
__asm__ __volatile__
|
||||
(
|
||||
__asm__ __volatile__ (
|
||||
// paranoia -- does ecx get saved? not sure. This is
|
||||
// the easiest safe thing to do.
|
||||
"pushal\n"
|
||||
" pushal\n"
|
||||
/* save the stack */
|
||||
"mov %esp, __stack\n"
|
||||
"jmp 1f\n"
|
||||
" mov %esp, __stack\n"
|
||||
" jmp 1f\n"
|
||||
"__stack: .long 0\n"
|
||||
"1:\n"
|
||||
/* get devfn into %ecx */
|
||||
"movl %esp, %ebp\n"
|
||||
"movl 8(%ebp), %ecx\n"
|
||||
" movl %esp, %ebp\n"
|
||||
" movl 8(%ebp), %ecx\n"
|
||||
/* This configures CS properly for real mode. */
|
||||
" ljmp $0x28, $__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
|
||||
* descriptors. They will retain these configurations (limits,
|
||||
|
@ -147,6 +147,7 @@ static void real_mode_switch_call_vga(unsigned long devfn)
|
|||
" popal\n"
|
||||
);
|
||||
}
|
||||
|
||||
__asm__ (".text\n""real_mode_switch_end:\n");
|
||||
extern char real_mode_switch_end[];
|
||||
|
||||
|
@ -161,12 +162,14 @@ do_vgabios(void)
|
|||
int 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;
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue