Move definition and initialization of video_mode_pointer to syscons.c.

This commit is contained in:
Bruce Evans 1994-10-26 21:52:25 +00:00
parent 0d55b76505
commit 51c7f756fe
3 changed files with 3 additions and 63 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.39 1994/10/25 07:25:55 davidg Exp $
* $Id: locore.s,v 1.40 1994/10/25 18:22:32 bde Exp $
*/
/*
@ -114,12 +114,9 @@ tmpstk:
.globl _cpu,_cold,_atdevbase,_cpu_vendor,_cpu_id
.globl _video_mode_ptr
_cpu: .long 0 /* are we 386, 386sx, or 486 */
_cpu_id: .long 0 /* stepping ID */
_cpu_vendor: .space 20 /* CPU origin code */
_video_mode_ptr: .long 0
_cold: .long 1 /* cold till we are not */
_atdevbase: .long 0 /* location of start of iomem in virtual */
_atdevphys: .long 0 /* location of device mapping ptes (phys) */
@ -282,23 +279,6 @@ NON_GPROF_ENTRY(btext)
movl 12(%ebp),%eax
movl %eax,_bootdev-KERNBASE
/* get the BIOS video mode pointer */
movl $0x4a8, %ecx
movl (%ecx), %eax
movl %eax, %ecx
shrl $12, %ecx
andl $0xffff0000, %ecx
andl $0x0000ffff, %eax
orl %ecx, %eax
movl (%eax), %eax
movl %eax, %ecx
shrl $12, %ecx
andl $0xffff0000, %ecx
andl $0x0000ffff, %eax
orl %ecx, %eax
addl $KERNBASE, %eax
movl %eax, _video_mode_ptr-KERNBASE
#if NAPM > 0
/*
* Setup APM BIOS:

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.39 1994/10/25 07:25:55 davidg Exp $
* $Id: locore.s,v 1.40 1994/10/25 18:22:32 bde Exp $
*/
/*
@ -114,12 +114,9 @@ tmpstk:
.globl _cpu,_cold,_atdevbase,_cpu_vendor,_cpu_id
.globl _video_mode_ptr
_cpu: .long 0 /* are we 386, 386sx, or 486 */
_cpu_id: .long 0 /* stepping ID */
_cpu_vendor: .space 20 /* CPU origin code */
_video_mode_ptr: .long 0
_cold: .long 1 /* cold till we are not */
_atdevbase: .long 0 /* location of start of iomem in virtual */
_atdevphys: .long 0 /* location of device mapping ptes (phys) */
@ -282,23 +279,6 @@ NON_GPROF_ENTRY(btext)
movl 12(%ebp),%eax
movl %eax,_bootdev-KERNBASE
/* get the BIOS video mode pointer */
movl $0x4a8, %ecx
movl (%ecx), %eax
movl %eax, %ecx
shrl $12, %ecx
andl $0xffff0000, %ecx
andl $0x0000ffff, %eax
orl %ecx, %eax
movl (%eax), %eax
movl %eax, %ecx
shrl $12, %ecx
andl $0xffff0000, %ecx
andl $0x0000ffff, %eax
orl %ecx, %eax
addl $KERNBASE, %eax
movl %eax, _video_mode_ptr-KERNBASE
#if NAPM > 0
/*
* Setup APM BIOS:

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.39 1994/10/25 07:25:55 davidg Exp $
* $Id: locore.s,v 1.40 1994/10/25 18:22:32 bde Exp $
*/
/*
@ -114,12 +114,9 @@ tmpstk:
.globl _cpu,_cold,_atdevbase,_cpu_vendor,_cpu_id
.globl _video_mode_ptr
_cpu: .long 0 /* are we 386, 386sx, or 486 */
_cpu_id: .long 0 /* stepping ID */
_cpu_vendor: .space 20 /* CPU origin code */
_video_mode_ptr: .long 0
_cold: .long 1 /* cold till we are not */
_atdevbase: .long 0 /* location of start of iomem in virtual */
_atdevphys: .long 0 /* location of device mapping ptes (phys) */
@ -282,23 +279,6 @@ NON_GPROF_ENTRY(btext)
movl 12(%ebp),%eax
movl %eax,_bootdev-KERNBASE
/* get the BIOS video mode pointer */
movl $0x4a8, %ecx
movl (%ecx), %eax
movl %eax, %ecx
shrl $12, %ecx
andl $0xffff0000, %ecx
andl $0x0000ffff, %eax
orl %ecx, %eax
movl (%eax), %eax
movl %eax, %ecx
shrl $12, %ecx
andl $0xffff0000, %ecx
andl $0x0000ffff, %eax
orl %ecx, %eax
addl $KERNBASE, %eax
movl %eax, _video_mode_ptr-KERNBASE
#if NAPM > 0
/*
* Setup APM BIOS: