locore.s (109994) | locore.s (111299) |
---|---|
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 * $FreeBSD: head/sys/i386/i386/locore.s 109994 2003-01-28 19:05:44Z jake $ | 37 * $FreeBSD: head/sys/i386/i386/locore.s 111299 2003-02-23 09:45:50Z jake $ |
38 * 39 * originally from: locore.s, by William F. Jolitz 40 * 41 * Substantially rewritten by David Greenman, Rod Grimes, 42 * Bruce Evans, Wolfgang Solfrank, Poul-Henning Kamp 43 * and many others. 44 */ 45 --- 139 unchanged lines hidden (view full) --- 185 * fillkpt 186 * eax = page frame address 187 * ebx = index into page table 188 * ecx = how many pages to map 189 * base = base address of page dir/table 190 * prot = protection bits 191 */ 192#define fillkpt(base, prot) \ | 38 * 39 * originally from: locore.s, by William F. Jolitz 40 * 41 * Substantially rewritten by David Greenman, Rod Grimes, 42 * Bruce Evans, Wolfgang Solfrank, Poul-Henning Kamp 43 * and many others. 44 */ 45 --- 139 unchanged lines hidden (view full) --- 185 * fillkpt 186 * eax = page frame address 187 * ebx = index into page table 188 * ecx = how many pages to map 189 * base = base address of page dir/table 190 * prot = protection bits 191 */ 192#define fillkpt(base, prot) \ |
193 shll $2,%ebx ; \ | 193 shll $PTESHIFT,%ebx ; \ |
194 addl base,%ebx ; \ 195 orl $PG_V,%eax ; \ 196 orl prot,%eax ; \ 1971: movl %eax,(%ebx) ; \ 198 addl $PAGE_SIZE,%eax ; /* increment physical address */ \ | 194 addl base,%ebx ; \ 195 orl $PG_V,%eax ; \ 196 orl prot,%eax ; \ 1971: movl %eax,(%ebx) ; \ 198 addl $PAGE_SIZE,%eax ; /* increment physical address */ \ |
199 addl $4,%ebx ; /* next pte */ \ | 199 addl $PTESIZE,%ebx ; /* next pte */ \ |
200 loop 1b 201 202/* 203 * fillkptphys(prot) 204 * eax = physical address 205 * ecx = how many pages to map 206 * prot = protection bits 207 */ --- 685 unchanged lines hidden --- | 200 loop 1b 201 202/* 203 * fillkptphys(prot) 204 * eax = physical address 205 * ecx = how many pages to map 206 * prot = protection bits 207 */ --- 685 unchanged lines hidden --- |