diff options
author | Y.C. Chen <yc_chen@aspeedtech.com> | 2009-04-13 21:01:51 +0800 |
---|---|---|
committer | Y.C. Chen <yc_chen@aspeedtech.com> | 2009-04-13 21:01:51 +0800 |
commit | ca0863e91cf7bdbd2f9c30aa1af5c9471dfc858e (patch) | |
tree | d4833c83e7df16e4b06b0e5a9455216496f82f33 /src/ast_driver.c | |
parent | da1387d472ce893f0c3466e59c9808db8e1025f0 (diff) |
xf86-video-ast-0.89.0xf86-video-ast-0.89.0
Diffstat (limited to 'src/ast_driver.c')
-rw-r--r-- | src/ast_driver.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ast_driver.c b/src/ast_driver.c index 920987b..927ad6a 100644 --- a/src/ast_driver.c +++ b/src/ast_driver.c @@ -658,10 +658,12 @@ ASTPreInit(ScrnInfoPtr pScrn, int flags) pAST->FbMapSize = pScrn->videoRam * 1024; +#if 0 if (!ASTMapMem(pScrn)) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Map FB Memory Failed \n"); return FALSE; } +#endif pScrn->memPhysBase = (ULONG)pAST->FBPhysAddr; pScrn->fbOffset = 0; @@ -797,6 +799,11 @@ ASTScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) pScrn = xf86Screens[pScreen->myNum]; pAST = ASTPTR(pScrn); hwp = VGAHWPTR(pScrn); + + if (!ASTMapMem(pScrn)) { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Map FB Memory Failed \n"); + return FALSE; + } /* if (!pAST->noAccel) */ { |