mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Forgot to commit this file. Catch up to loader->kernel abi changes.
This commit is contained in:
parent
8c7b34b8a3
commit
626d38b529
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97511
@ -79,6 +79,7 @@
|
||||
#include <machine/asi.h>
|
||||
#include <machine/atomic.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/metadata.h>
|
||||
#include <machine/ofw_machdep.h>
|
||||
#include <machine/smp.h>
|
||||
#include <machine/tick.h>
|
||||
@ -123,8 +124,11 @@ mp_tramp_alloc(void)
|
||||
*(u_long *)(v + mp_tramp_tlb_slots) = kernel_tlb_slots;
|
||||
*(u_long *)(v + mp_tramp_func) = (u_long)mp_startup;
|
||||
tp = (struct tte *)(v + mp_tramp_code_len);
|
||||
for (i = 0; i < kernel_tlb_slots; i++)
|
||||
tp[i] = kernel_ttes[i];
|
||||
for (i = 0; i < kernel_tlb_slots; i++) {
|
||||
tp[i].tte_vpn = TV_VPN(kernel_tlbs[i].te_va);
|
||||
tp[i].tte_data = TD_V | TD_4M | TD_PA(kernel_tlbs[i].te_pa) |
|
||||
TD_L | TD_CP | TD_CV | TD_P | TD_W;
|
||||
}
|
||||
for (i = 0; i < PAGE_SIZE; i += sizeof(long))
|
||||
flush(v + i);
|
||||
return (vm_offset_t)v;
|
||||
|
Loading…
Reference in New Issue
Block a user