Move the hardware currsor off screen when getting back from an

unknown mode.
Fix warning on uninitialized var.
This commit is contained in:
Søren Schmidt 1997-11-25 12:44:44 +00:00
parent 1c682f9842
commit 0690c6fe58
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31412
3 changed files with 27 additions and 6 deletions

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: syscons.c,v 1.238 1997/11/07 09:20:32 phk Exp $
* $Id: syscons.c,v 1.239 1997/11/21 11:37:05 yokota Exp $
*/
#include "sc.h"
@ -925,7 +925,7 @@ int
scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
{
int error;
u_int i;
u_int i = 0;
struct tty *tp;
scr_stat *scp;
u_short *usp;
@ -1450,6 +1450,13 @@ scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
copy_font(LOAD, FONT_16, font_16);
load_palette(palette);
}
/* move hardware cursor out of the way */
outb(crtc_addr, 14);
outb(crtc_addr + 1, 0xff);
outb(crtc_addr, 15);
outb(crtc_addr + 1, 0xff);
/* FALL THROUGH */
case KD_TEXT1: /* switch to TEXT (known) mode */

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: syscons.c,v 1.238 1997/11/07 09:20:32 phk Exp $
* $Id: syscons.c,v 1.239 1997/11/21 11:37:05 yokota Exp $
*/
#include "sc.h"
@ -925,7 +925,7 @@ int
scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
{
int error;
u_int i;
u_int i = 0;
struct tty *tp;
scr_stat *scp;
u_short *usp;
@ -1450,6 +1450,13 @@ scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
copy_font(LOAD, FONT_16, font_16);
load_palette(palette);
}
/* move hardware cursor out of the way */
outb(crtc_addr, 14);
outb(crtc_addr + 1, 0xff);
outb(crtc_addr, 15);
outb(crtc_addr + 1, 0xff);
/* FALL THROUGH */
case KD_TEXT1: /* switch to TEXT (known) mode */

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: syscons.c,v 1.238 1997/11/07 09:20:32 phk Exp $
* $Id: syscons.c,v 1.239 1997/11/21 11:37:05 yokota Exp $
*/
#include "sc.h"
@ -925,7 +925,7 @@ int
scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
{
int error;
u_int i;
u_int i = 0;
struct tty *tp;
scr_stat *scp;
u_short *usp;
@ -1450,6 +1450,13 @@ scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
copy_font(LOAD, FONT_16, font_16);
load_palette(palette);
}
/* move hardware cursor out of the way */
outb(crtc_addr, 14);
outb(crtc_addr + 1, 0xff);
outb(crtc_addr, 15);
outb(crtc_addr + 1, 0xff);
/* FALL THROUGH */
case KD_TEXT1: /* switch to TEXT (known) mode */