version 1.6, 2020/03/14 16:12:16 |
version 1.6.8.1, 2021/05/13 00:47:27 |
|
|
/* $NetBSD$ */ |
/* $NetBSD$ */ |
|
|
/* |
/* |
* Copyright (c) 2014, 2019 The NetBSD Foundation, Inc. |
* Copyright (c) 2014, 2019, 2021 The NetBSD Foundation, Inc. |
* All rights reserved. |
* All rights reserved. |
* |
* |
* This code is derived from software contributed to The NetBSD Foundation |
* This code is derived from software contributed to The NetBSD Foundation |
* by Matt Thomas (of 3am Software Foundry) and Maxime Villard. |
* by Matt Thomas (of 3am Software Foundry), Maxime Villard, and |
|
* Nick Hudson. |
* |
* |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
* modification, are permitted provided that the following conditions |
Line 143 pmap_md_tlb_check_entry(void *ctx, vaddr |
|
Line 144 pmap_md_tlb_check_entry(void *ctx, vaddr |
|
} |
} |
|
|
void |
void |
pmap_md_pdetab_activate(struct pmap *pmap) |
pmap_md_xtab_activate(struct pmap *pmap, struct lwp *l) |
{ |
{ |
__asm("csrw\tsptbr, %0" :: "r"(pmap->pm_md.md_ptbr)); |
__asm("csrw\tsptbr, %0" :: "r"(pmap->pm_md.md_ptbr)); |
} |
} |
|
|
void |
void |
|
pmap_md_xtab_deactivate(struct pmap *pmap) |
|
{ |
|
} |
|
|
|
void |
pmap_md_pdetab_init(struct pmap *pmap) |
pmap_md_pdetab_init(struct pmap *pmap) |
{ |
{ |
pmap->pm_md.md_pdetab[NPDEPG-1] = pmap_kernel()->pm_md.md_pdetab[NPDEPG-1]; |
pmap->pm_md.md_pdetab[NPDEPG-1] = pmap_kernel()->pm_md.md_pdetab[NPDEPG-1]; |