1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Use mtsrin() instead of inline asm.

This commit is contained in:
Benno Rice 2002-04-16 12:07:41 +00:00
parent a8aaf02c3c
commit d080d5fd7c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94836
3 changed files with 6 additions and 9 deletions

View File

@ -724,8 +724,7 @@ pmap_bootstrap(vm_offset_t kernelstart, vm_offset_t kernelend)
* Initialize hardware.
*/
for (i = 0; i < 16; i++) {
__asm __volatile("mtsrin %0,%1"
:: "r"(EMPTY_SEGMENT), "r"(i << ADDR_SR_SHFT));
mtsrin(i << ADDR_SR_SHFT, EMPTY_SEGMENT);
}
__asm __volatile ("mtsr %0,%1"
:: "n"(KERNEL_SR), "r"(KERNEL_SEGMENT));
@ -1893,7 +1892,7 @@ pmap_pte_spill(vm_offset_t addr)
pmap_pte_spills++;
__asm __volatile("mfsrin %0,%1" : "=r"(sr) : "r"(addr));
sr = mfsrin(addr);
ptegidx = va_to_pteg(sr, addr);
/*

View File

@ -724,8 +724,7 @@ pmap_bootstrap(vm_offset_t kernelstart, vm_offset_t kernelend)
* Initialize hardware.
*/
for (i = 0; i < 16; i++) {
__asm __volatile("mtsrin %0,%1"
:: "r"(EMPTY_SEGMENT), "r"(i << ADDR_SR_SHFT));
mtsrin(i << ADDR_SR_SHFT, EMPTY_SEGMENT);
}
__asm __volatile ("mtsr %0,%1"
:: "n"(KERNEL_SR), "r"(KERNEL_SEGMENT));
@ -1893,7 +1892,7 @@ pmap_pte_spill(vm_offset_t addr)
pmap_pte_spills++;
__asm __volatile("mfsrin %0,%1" : "=r"(sr) : "r"(addr));
sr = mfsrin(addr);
ptegidx = va_to_pteg(sr, addr);
/*

View File

@ -724,8 +724,7 @@ pmap_bootstrap(vm_offset_t kernelstart, vm_offset_t kernelend)
* Initialize hardware.
*/
for (i = 0; i < 16; i++) {
__asm __volatile("mtsrin %0,%1"
:: "r"(EMPTY_SEGMENT), "r"(i << ADDR_SR_SHFT));
mtsrin(i << ADDR_SR_SHFT, EMPTY_SEGMENT);
}
__asm __volatile ("mtsr %0,%1"
:: "n"(KERNEL_SR), "r"(KERNEL_SEGMENT));
@ -1893,7 +1892,7 @@ pmap_pte_spill(vm_offset_t addr)
pmap_pte_spills++;
__asm __volatile("mfsrin %0,%1" : "=r"(sr) : "r"(addr));
sr = mfsrin(addr);
ptegidx = va_to_pteg(sr, addr);
/*