[lkml]   [2001]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: [PATCH] hgafb oopses


On Mon, 12 Nov 2001, Geert Uytterhoeven wrote:
> Sorry... Anyway, the old code was broken too, since it wasn't portable.

Is it portable now? Can you test it on non-i386?

> > The patch below is against 2.4.15-pre1. It resolves the ISA address
> > confusion, replaces scr_{read|write} functions with isa_{read|write},
> > and elimiates a cosmetic compiler warning about suggested parens.

> But it does some other Bad Things(TM): putting ISA memory _adresses_ and
> _16_bit_ values in _unsigned_chars_ is not good for your health...

There is no mercy for my brain-damage, patch follows.

Ferenc Bakonyi

--- linux-2.4.15-pre3/drivers/video/hgafb.c Mon Nov 12 13:16:32 2001
+++ linux/drivers/video/hgafb.c Mon Nov 12 13:15:56 2001
@@ -312,8 +312,8 @@
static int __init hga_card_detect(void)
int count=0;
- unsigned char p, p_save;
- unsigned char q, q_save;
+ unsigned long p, q;
+ unsigned short p_save, q_save;

hga_vram_base = 0xb0000;
hga_vram_len = 0x08000;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.033 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site