diff options
author | briggs <briggs@cvs.openbsd.org> | 1997-03-12 13:26:39 +0000 |
---|---|---|
committer | briggs <briggs@cvs.openbsd.org> | 1997-03-12 13:26:39 +0000 |
commit | 3c247247910b4dfed70f5f807a8b024221aeeeb1 (patch) | |
tree | 9578fab21d7b81b36109c35986f3ac312cbdb6c6 /sys/arch/mac68k/dev/ite.c | |
parent | 57505bccc5d1dd7a8806135987da69e8b303ac31 (diff) |
Fix for bizarre internal framebuffers that don't start on page boundaries.
Dave Huang found this one...
Diffstat (limited to 'sys/arch/mac68k/dev/ite.c')
-rw-r--r-- | sys/arch/mac68k/dev/ite.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/mac68k/dev/ite.c b/sys/arch/mac68k/dev/ite.c index 58fb71bdf6b..37613bab1f7 100644 --- a/sys/arch/mac68k/dev/ite.c +++ b/sys/arch/mac68k/dev/ite.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ite.c,v 1.10 1997/03/08 16:16:54 briggs Exp $ */ +/* $OpenBSD: ite.c,v 1.11 1997/03/12 13:26:38 briggs Exp $ */ /* $NetBSD: ite.c,v 1.32 1997/02/20 00:23:25 scottr Exp $ */ /* @@ -112,7 +112,7 @@ static void putc_getpars __P((char)); static void putc_square __P((char)); static void ite_putchar __P((char)); static int ite_pollforchar __P((void)); -static int itematch __P((struct device *, struct cfdata *, void *)); +static int itematch __P((struct device *, void *, void *)); static void iteattach __P((struct device *, struct device *, void *)); #define dprintf if (0) printf @@ -855,9 +855,9 @@ struct cfdriver ite_cd = { }; static int -itematch(parent, cf, aux) +itematch(parent, vcf, aux) struct device *parent; - struct cfdata *cf; + void *vcf; void *aux; { struct grfbus_attach_args *ga = aux; @@ -866,7 +866,7 @@ itematch(parent, cf, aux) if (strcmp(ga->ga_name, "ite")) return 0; - pa = pmap_extract(pmap_kernel(), (vm_offset_t) gm->fbbase); + pa = pmap_extract(pmap_kernel(), (vm_offset_t) gm->fbbase + gm->fboff); return (pa == (vm_offset_t) mac68k_vidphys); } |