locore.s (2689) | locore.s (2783) |
---|---|
1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)locore.s 7.3 (Berkeley) 5/13/91 | 1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)locore.s 7.3 (Berkeley) 5/13/91 |
37 * $Id: locore.s,v 1.26 1994/09/05 14:09:41 bde Exp $ | 37 * $Id: locore.s,v 1.27 1994/09/12 11:38:06 davidg Exp $ |
38 */ 39 40/* 41 * locore.s: FreeBSD machine support for the Intel 386 42 * originally from: locore.s, by William F. Jolitz 43 * 44 * Substantially rewritten by David Greenman, Rod Grimes, 45 * Bruce Evans, Wolfgang Solfrank, and many others. --- 51 unchanged lines hidden (view full) --- 97 */ 98 .data 99 .globl _esym 100_esym: .long 0 /* ptr to end of syms */ 101 102 .globl _boothowto,_bootdev,_curpcb 103 104 .globl _cpu,_cold,_atdevbase,_cpu_vendor,_cpu_id | 38 */ 39 40/* 41 * locore.s: FreeBSD machine support for the Intel 386 42 * originally from: locore.s, by William F. Jolitz 43 * 44 * Substantially rewritten by David Greenman, Rod Grimes, 45 * Bruce Evans, Wolfgang Solfrank, and many others. --- 51 unchanged lines hidden (view full) --- 97 */ 98 .data 99 .globl _esym 100_esym: .long 0 /* ptr to end of syms */ 101 102 .globl _boothowto,_bootdev,_curpcb 103 104 .globl _cpu,_cold,_atdevbase,_cpu_vendor,_cpu_id |
105 106 .globl _video_mode_ptr 107 |
|
105_cpu: .long 0 /* are we 386, 386sx, or 486 */ 106_cpu_id: .long 0 /* stepping ID */ 107_cpu_vendor: .space 20 /* CPU origin code */ | 108_cpu: .long 0 /* are we 386, 386sx, or 486 */ 109_cpu_id: .long 0 /* stepping ID */ 110_cpu_vendor: .space 20 /* CPU origin code */ |
111_video_mode_ptr: .long 0 |
|
108_cold: .long 1 /* cold till we are not */ 109_atdevbase: .long 0 /* location of start of iomem in virtual */ 110_atdevphys: .long 0 /* location of device mapping ptes (phys) */ 111 112 .globl _KERNend 113_KERNend: .long 0 /* phys addr end of kernel (just after bss) */ 114 115 .globl _IdlePTD,_KPTphys --- 44 unchanged lines hidden (view full) --- 160 movl %eax,_boothowto-KERNBASE 161 movl 8(%esp),%eax 162 movl %eax,_bootdev-KERNBASE 163 movl 12(%esp),%eax 164 movl %eax,_cyloffset-KERNBASE 165 movl 16(%esp),%eax 166 addl $KERNBASE,%eax 167 movl %eax,_esym-KERNBASE | 112_cold: .long 1 /* cold till we are not */ 113_atdevbase: .long 0 /* location of start of iomem in virtual */ 114_atdevphys: .long 0 /* location of device mapping ptes (phys) */ 115 116 .globl _KERNend 117_KERNend: .long 0 /* phys addr end of kernel (just after bss) */ 118 119 .globl _IdlePTD,_KPTphys --- 44 unchanged lines hidden (view full) --- 164 movl %eax,_boothowto-KERNBASE 165 movl 8(%esp),%eax 166 movl %eax,_bootdev-KERNBASE 167 movl 12(%esp),%eax 168 movl %eax,_cyloffset-KERNBASE 169 movl 16(%esp),%eax 170 addl $KERNBASE,%eax 171 movl %eax,_esym-KERNBASE |
172 173 /* get the BIOS video mode pointer */ 174 movl $0x4a8, %ecx 175 movl (%ecx), %eax 176 movl %eax, %ecx 177 shrl $12, %ecx 178 andl $0xffff0000, %ecx 179 andl $0x0000ffff, %eax 180 orl %ecx, %eax 181 movl (%eax), %eax 182 movl %eax, %ecx 183 shrl $12, %ecx 184 andl $0xffff0000, %ecx 185 andl $0x0000ffff, %eax 186 orl %ecx, %eax 187 addl $KERNBASE, %eax 188 movl %eax, _video_mode_ptr-KERNBASE 189 |
|
168#ifdef DISKLESS /* Copy diskless structure */ 169 movl _nfs_diskless_size-KERNBASE,%ecx 170 movl 20(%esp),%esi 171 movl $(_nfs_diskless-KERNBASE),%edi 172 cld 173 rep 174 movsb 175#endif --- 415 unchanged lines hidden --- | 190#ifdef DISKLESS /* Copy diskless structure */ 191 movl _nfs_diskless_size-KERNBASE,%ecx 192 movl 20(%esp),%esi 193 movl $(_nfs_diskless-KERNBASE),%edi 194 cld 195 rep 196 movsb 197#endif --- 415 unchanged lines hidden --- |