[BACK]Return to pmap_machdep.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / riscv / riscv

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/riscv/riscv/pmap_machdep.c between version 1.6 and 1.6.8.1

version 1.6, 2020/03/14 16:12:16 version 1.6.8.1, 2021/05/13 00:47:27
Line 1 
Line 1 
 /* $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];

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.6.8.1

CVSweb <webmaster@jp.NetBSD.org>