projects
/
seabios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vgabios: Don't call int10 during mode switch.
[seabios.git]
/
vgasrc
/
vgabios.c
diff --git
a/vgasrc/vgabios.c
b/vgasrc/vgabios.c
index 5f646cdf1f4a2b955feb379dbb0b90812bb4669a..4724c4b5b9c9685d5f847a3cb27564b42d20af21 100644
(file)
--- a/
vgasrc/vgabios.c
+++ b/
vgasrc/vgabios.c
@@
-46,18
+46,6
@@
struct pci_data rom_pci_data VAR16VISIBLE = {
* Helper functions
****************************************************************/
* Helper functions
****************************************************************/
-static inline void
-call16_vgaint(u32 eax, u32 ebx)
-{
- asm volatile(
- "int $0x10\n"
- "cli\n"
- "cld"
- :
- : "a"(eax), "b"(ebx)
- : "cc", "memory");
-}
-
static void
perform_gray_scale_summing(u16 start, u16 count)
{
static void
perform_gray_scale_summing(u16 start, u16 count)
{
@@
-440,8
+428,8
@@
vga_set_mode(u8 mode, u8 noclearmem)
// Write the fonts in memory
if (GET_GLOBAL(vmode_g->memmodel) & TEXT) {
// Write the fonts in memory
if (GET_GLOBAL(vmode_g->memmodel) & TEXT) {
-
call16_vgaint(0x1104, 0
);
-
call16_vgaint(0x1103,
0);
+
stdvga_load_font(get_global_seg(), vgafont16, 0x100, 0, 0, 16
);
+
stdvga_set_text_block_specifier(
0);
}
// Set the ints 0x1F and 0x43
SET_IVT(0x1f, SEGOFF(get_global_seg(), (u32)&vgafont8[128 * 8]));
}
// Set the ints 0x1F and 0x43
SET_IVT(0x1f, SEGOFF(get_global_seg(), (u32)&vgafont8[128 * 8]));
@@
-792,20
+780,20
@@
handle_1010(struct bregs *regs)
static void
handle_101100(struct bregs *regs)
{
static void
handle_101100(struct bregs *regs)
{
-
vgafb
_load_font(regs->es, (void*)(regs->bp+0), regs->cx
- , regs->dx, regs->bl, regs->bh);
+
stdvga
_load_font(regs->es, (void*)(regs->bp+0), regs->cx
+
, regs->dx, regs->bl, regs->bh);
}
static void
handle_101101(struct bregs *regs)
{
}
static void
handle_101101(struct bregs *regs)
{
-
vgafb
_load_font(get_global_seg(), vgafont14, 0x100, 0, regs->bl, 14);
+
stdvga
_load_font(get_global_seg(), vgafont14, 0x100, 0, regs->bl, 14);
}
static void
handle_101102(struct bregs *regs)
{
}
static void
handle_101102(struct bregs *regs)
{
-
vgafb
_load_font(get_global_seg(), vgafont8, 0x100, 0, regs->bl, 8);
+
stdvga
_load_font(get_global_seg(), vgafont8, 0x100, 0, regs->bl, 8);
}
static void
}
static void
@@
-817,35
+805,35
@@
handle_101103(struct bregs *regs)
static void
handle_101104(struct bregs *regs)
{
static void
handle_101104(struct bregs *regs)
{
-
vgafb
_load_font(get_global_seg(), vgafont16, 0x100, 0, regs->bl, 16);
+
stdvga
_load_font(get_global_seg(), vgafont16, 0x100, 0, regs->bl, 16);
}
static void
handle_101110(struct bregs *regs)
{
}
static void
handle_101110(struct bregs *regs)
{
-
vgafb
_load_font(regs->es, (void*)(regs->bp+0), regs->cx
- , regs->dx, regs->bl, regs->bh);
+
stdvga
_load_font(regs->es, (void*)(regs->bp+0), regs->cx
+
, regs->dx, regs->bl, regs->bh);
set_scan_lines(regs->bh);
}
static void
handle_101111(struct bregs *regs)
{
set_scan_lines(regs->bh);
}
static void
handle_101111(struct bregs *regs)
{
-
vgafb
_load_font(get_global_seg(), vgafont14, 0x100, 0, regs->bl, 14);
+
stdvga
_load_font(get_global_seg(), vgafont14, 0x100, 0, regs->bl, 14);
set_scan_lines(14);
}
static void
handle_101112(struct bregs *regs)
{
set_scan_lines(14);
}
static void
handle_101112(struct bregs *regs)
{
-
vgafb
_load_font(get_global_seg(), vgafont8, 0x100, 0, regs->bl, 8);
+
stdvga
_load_font(get_global_seg(), vgafont8, 0x100, 0, regs->bl, 8);
set_scan_lines(8);
}
static void
handle_101114(struct bregs *regs)
{
set_scan_lines(8);
}
static void
handle_101114(struct bregs *regs)
{
-
vgafb
_load_font(get_global_seg(), vgafont16, 0x100, 0, regs->bl, 16);
+
stdvga
_load_font(get_global_seg(), vgafont16, 0x100, 0, regs->bl, 16);
set_scan_lines(16);
}
set_scan_lines(16);
}