locore.s (131840) | locore.s (137912) |
---|---|
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 --- 16 unchanged lines hidden (view full) --- 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * 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 --- 16 unchanged lines hidden (view full) --- 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * from: @(#)locore.s 7.3 (Berkeley) 5/13/91 |
33 * $FreeBSD: head/sys/i386/i386/locore.s 131840 2004-07-08 22:35:36Z brian $ | 33 * $FreeBSD: head/sys/i386/i386/locore.s 137912 2004-11-20 02:29:25Z das $ |
34 * 35 * originally from: locore.s, by William F. Jolitz 36 * 37 * Substantially rewritten by David Greenman, Rod Grimes, 38 * Bruce Evans, Wolfgang Solfrank, Poul-Henning Kamp 39 * and many others. 40 */ 41 --- 82 unchanged lines hidden (view full) --- 124IdlePDPT: .long 0 /* phys addr of kernel PDPT */ 125#endif 126 127#ifdef SMP 128 .globl KPTphys 129#endif 130KPTphys: .long 0 /* phys addr of kernel page tables */ 131 | 34 * 35 * originally from: locore.s, by William F. Jolitz 36 * 37 * Substantially rewritten by David Greenman, Rod Grimes, 38 * Bruce Evans, Wolfgang Solfrank, Poul-Henning Kamp 39 * and many others. 40 */ 41 --- 82 unchanged lines hidden (view full) --- 124IdlePDPT: .long 0 /* phys addr of kernel PDPT */ 125#endif 126 127#ifdef SMP 128 .globl KPTphys 129#endif 130KPTphys: .long 0 /* phys addr of kernel page tables */ 131 |
132 .globl proc0uarea, proc0kstack 133proc0uarea: .long 0 /* address of proc 0 uarea space */ | 132 .globl proc0kstack 133proc0uarea: .long 0 /* address of proc 0 uarea (unused)*/ |
134proc0kstack: .long 0 /* address of proc 0 kstack space */ | 134proc0kstack: .long 0 /* address of proc 0 kstack space */ |
135p0upa: .long 0 /* phys addr of proc0's UAREA */ | 135p0upa: .long 0 /* phys addr of proc0 UAREA (unused) */ |
136p0kpa: .long 0 /* phys addr of proc0's STACK */ 137 138vm86phystk: .long 0 /* PA of vm86/bios stack */ 139 140 .globl vm86paddr, vm86pa 141vm86paddr: .long 0 /* address of vm86 region */ 142vm86pa: .long 0 /* phys addr of vm86 region */ 143 --- 599 unchanged lines hidden (view full) --- 743#ifdef PAE 744 /* XXX only need 32 bytes (easier for now) */ 745 ALLOCPAGES(1) 746 movl %esi,R(IdlePDPT) 747#endif 748 ALLOCPAGES(NPGPTD) 749 movl %esi,R(IdlePTD) 750 | 136p0kpa: .long 0 /* phys addr of proc0's STACK */ 137 138vm86phystk: .long 0 /* PA of vm86/bios stack */ 139 140 .globl vm86paddr, vm86pa 141vm86paddr: .long 0 /* address of vm86 region */ 142vm86pa: .long 0 /* phys addr of vm86 region */ 143 --- 599 unchanged lines hidden (view full) --- 743#ifdef PAE 744 /* XXX only need 32 bytes (easier for now) */ 745 ALLOCPAGES(1) 746 movl %esi,R(IdlePDPT) 747#endif 748 ALLOCPAGES(NPGPTD) 749 movl %esi,R(IdlePTD) 750 |
751/* Allocate UPAGES */ 752 ALLOCPAGES(UAREA_PAGES) 753 movl %esi,R(p0upa) 754 addl $KERNBASE, %esi 755 movl %esi, R(proc0uarea) 756 | 751/* Allocate KSTACK */ |
757 ALLOCPAGES(KSTACK_PAGES) 758 movl %esi,R(p0kpa) 759 addl $KERNBASE, %esi 760 movl %esi, R(proc0kstack) 761 762 ALLOCPAGES(1) /* vm86/bios stack */ 763 movl %esi,R(vm86phystk) 764 --- 77 unchanged lines hidden (view full) --- 842 movl $1, %ecx 843 fillkptphys($PG_RW) 844#endif 845 846 movl R(IdlePTD), %eax 847 movl $NPGPTD, %ecx 848 fillkptphys($PG_RW) 849 | 752 ALLOCPAGES(KSTACK_PAGES) 753 movl %esi,R(p0kpa) 754 addl $KERNBASE, %esi 755 movl %esi, R(proc0kstack) 756 757 ALLOCPAGES(1) /* vm86/bios stack */ 758 movl %esi,R(vm86phystk) 759 --- 77 unchanged lines hidden (view full) --- 837 movl $1, %ecx 838 fillkptphys($PG_RW) 839#endif 840 841 movl R(IdlePTD), %eax 842 movl $NPGPTD, %ecx 843 fillkptphys($PG_RW) 844 |
850/* Map proc0's UPAGES in the physical way ... */ 851 movl R(p0upa), %eax 852 movl $(UAREA_PAGES), %ecx 853 fillkptphys($PG_RW) 854 | |
855/* Map proc0's KSTACK in the physical way ... */ 856 movl R(p0kpa), %eax 857 movl $(KSTACK_PAGES), %ecx 858 fillkptphys($PG_RW) 859 860/* Map ISA hole */ 861 movl $ISA_HOLE_START, %eax 862 movl $ISA_HOLE_LENGTH>>PAGE_SHIFT, %ecx --- 97 unchanged lines hidden --- | 845/* Map proc0's KSTACK in the physical way ... */ 846 movl R(p0kpa), %eax 847 movl $(KSTACK_PAGES), %ecx 848 fillkptphys($PG_RW) 849 850/* Map ISA hole */ 851 movl $ISA_HOLE_START, %eax 852 movl $ISA_HOLE_LENGTH>>PAGE_SHIFT, %ecx --- 97 unchanged lines hidden --- |