version 1.25.2.3, 2005/03/16 11:49:54 |
version 1.26, 2004/04/12 13:17:46 |
Line 524 try586: /* Use the `cpuid' instruction. |
|
Line 524 try586: /* Use the `cpuid' instruction. |
|
|
|
/* |
/* |
* Calculate the size of the kernel page table directory, and |
* Calculate the size of the kernel page table directory, and |
* how many entries it will have. Adjust nkpde to the actual |
* how many entries it will have. |
* kernel size automatically. Account for the bootstrap tables, |
|
* round up, and add an extra 4MB. |
|
*/ |
*/ |
leal TABLESIZE+NBPD+PDOFSET(%edi),%eax |
|
shrl $PDSHIFT,%eax |
|
movl RELOC(nkpde),%ecx # get nkpde |
movl RELOC(nkpde),%ecx # get nkpde |
cmpl %ecx,%eax |
cmpl $NKPTP_MIN,%ecx # larger than min? |
jb 1f |
|
movl %eax,%ecx |
|
1: cmpl $NKPTP_MIN,%ecx # larger than min? |
|
jge 1f |
jge 1f |
movl $NKPTP_MIN,%ecx # set at min |
movl $NKPTP_MIN,%ecx # set at min |
jmp 2f |
jmp 2f |
1: cmpl $NKPTP_MAX,%ecx # larger than max? |
1: cmpl $NKPTP_MAX,%ecx # larger than max? |
jle 2f |
jle 2f |
movl $NKPTP_MAX,%ecx |
movl $NKPTP_MAX,%ecx |
2: movl %ecx,RELOC(nkpde) |
2: |
|
|
/* Clear memory for bootstrap tables. */ |
/* Clear memory for bootstrap tables. */ |
shll $PGSHIFT,%ecx |
shll $PGSHIFT,%ecx |
Line 1180 ENTRY(copyoutstr) |
|
Line 1173 ENTRY(copyoutstr) |
|
*/ |
*/ |
movl $VM_MAXUSER_ADDRESS,%eax |
movl $VM_MAXUSER_ADDRESS,%eax |
subl %edi,%eax |
subl %edi,%eax |
jc _C_LABEL(copystr_efault) |
|
cmpl %edx,%eax |
cmpl %edx,%eax |
jae 1f |
jae 1f |
movl %eax,%edx |
movl %eax,%edx |
Line 1235 ENTRY(copyinstr) |
|
Line 1227 ENTRY(copyinstr) |
|
*/ |
*/ |
movl $VM_MAXUSER_ADDRESS,%eax |
movl $VM_MAXUSER_ADDRESS,%eax |
subl %esi,%eax |
subl %esi,%eax |
jc _C_LABEL(copystr_efault) |
|
cmpl %edx,%eax |
cmpl %edx,%eax |
jae 1f |
jae 1f |
movl %eax,%edx |
movl %eax,%edx |