From fdd536f345ba8d0c0149fbf6cf5c48981bb37aaa Mon Sep 17 00:00:00 2001 From: Ulf Carlsson Date: Fri, 23 Jul 1999 21:13:59 +0000 Subject: Moved around a symbol. --- drivers/sgi/char/graphics_syms.c | 3 +-- drivers/sgi/char/newport.c | 8 +++----- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'drivers') diff --git a/drivers/sgi/char/graphics_syms.c b/drivers/sgi/char/graphics_syms.c index 59c457bc9..6e07d3b8b 100644 --- a/drivers/sgi/char/graphics_syms.c +++ b/drivers/sgi/char/graphics_syms.c @@ -33,5 +33,4 @@ EXPORT_SYMBOL(disable_gconsole); EXPORT_SYMBOL(enable_gconsole); EXPORT_SYMBOL(remove_mapping); - - +EXPORT_SYMBOL(npregs); diff --git a/drivers/sgi/char/newport.c b/drivers/sgi/char/newport.c index 023a228c2..7693933a4 100644 --- a/drivers/sgi/char/newport.c +++ b/drivers/sgi/char/newport.c @@ -17,8 +17,6 @@ struct newport_regs *npregs; -EXPORT_SYMBOL(npregs); - /* Kernel routines for supporting graphics context switching */ void newport_save (void *y) @@ -27,7 +25,7 @@ void newport_save (void *y) newport_wait (); #define LOAD(val) x->val = npregs->set.val; -#define LOADI(val) x->val = npregs->set.val.i; +#define LOADI(val) x->val = npregs->set.val.word; #define LOADC(val) x->val = npregs->cset.val; LOAD(drawmode1); @@ -90,7 +88,7 @@ void newport_save (void *y) newport_bfwait (); LOAD (dcbmode); newport_bfwait (); - x->dcbdata0 = npregs->set.dcbdata0.all; + x->dcbdata0 = npregs->set.dcbdata0.byword; newport_bfwait (); LOAD(dcbdata1); } @@ -110,7 +108,7 @@ void newport_restore (void *y) { newport_ctx *x = y; #define STORE(val) npregs->set.val = x->val -#define STOREI(val) npregs->set.val.i = x->val +#define STOREI(val) npregs->set.val.word = x->val #define STOREC(val) npregs->cset.val = x->val newport_wait (); -- cgit v1.2.3