diff options
author | 2005-05-23 23:59:19 +0000 | |
---|---|---|
committer | 2005-05-23 23:59:19 +0000 | |
commit | 2a1e1515ac8fb92fb6f7138bd3f3e8e2db10f8a1 (patch) | |
tree | fdb30d15d1117fe45d67b1c44d376322cdc308a3 | |
parent | add USER_PCICONF (diff) | |
download | wireguard-openbsd-2a1e1515ac8fb92fb6f7138bd3f3e8e2db10f8a1.tar.xz wireguard-openbsd-2a1e1515ac8fb92fb6f7138bd3f3e8e2db10f8a1.zip |
fix rasops initialization when not acting as console; ok miod@
-rw-r--r-- | sys/arch/arm/xscale/pxa2x0_lcd.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_lcd.c b/sys/arch/arm/xscale/pxa2x0_lcd.c index dc70d78c0a8..d8854c58f81 100644 --- a/sys/arch/arm/xscale/pxa2x0_lcd.c +++ b/sys/arch/arm/xscale/pxa2x0_lcd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pxa2x0_lcd.c,v 1.18 2005/04/30 23:13:47 pascoe Exp $ */ +/* $OpenBSD: pxa2x0_lcd.c,v 1.19 2005/05/23 23:59:19 uwe Exp $ */ /* $NetBSD: pxa2x0_lcd.c,v 1.8 2003/10/03 07:24:05 bsh Exp $ */ /* @@ -585,11 +585,6 @@ pxa2x0_lcd_setup_rasops(struct rasops_info *rinfo, if (descr->c.nrows == 0) { /* get rasops to compute screen size the first time */ rasops_init(rinfo, 100, 100); - - descr->c.nrows = rinfo->ri_rows; - descr->c.ncols = rinfo->ri_cols; - descr->c.capabilities = rinfo->ri_caps; - descr->c.textops = &rinfo->ri_ops; } else #ifndef __zaurus__ rasops_init(rinfo, descr->c.nrows, descr->c.ncols); @@ -597,6 +592,11 @@ pxa2x0_lcd_setup_rasops(struct rasops_info *rinfo, /* XXX swap rows/cols for second call because of rotation */ rasops_init(rinfo, descr->c.ncols, descr->c.nrows); #endif + + descr->c.nrows = rinfo->ri_rows; + descr->c.ncols = rinfo->ri_cols; + descr->c.capabilities = rinfo->ri_caps; + descr->c.textops = &rinfo->ri_ops; } /* @@ -641,10 +641,6 @@ pxa2x0_lcd_cnattach(struct pxa2x0_wsscreen_descr *descr, pxa2x0_lcd_start_dma(pxa2x0_lcd_console.iot, pxa2x0_lcd_console.ioh, &pxa2x0_lcd_console.scr); - descr->c.nrows = ri->ri_rows; - descr->c.ncols = ri->ri_cols; - descr->c.capabilities = ri->ri_caps; - descr->c.textops = &ri->ri_ops; wsdisplay_cnattach(&descr->c, ri, ri->ri_ccol, ri->ri_crow, defattr); return (0); |