[BACK]Return to kvm_aarch64.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libkvm

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

Diff for /src/lib/libkvm/kvm_aarch64.c between version 1.2 and 1.2.4.2

version 1.2, 2017/06/14 12:24:51 version 1.2.4.2, 2018/11/26 01:52:12
Line 83  lose:
Line 83  lose:
         }          }
   
         const cpu_kcore_hdr_t * const cpu_kh = kd->cpu_data;          const cpu_kcore_hdr_t * const cpu_kh = kd->cpu_data;
         const u_int tg1 =__SHIFTOUT(cpu_kh->kh_tcr1, TCR_TG1);          const uint64_t tg1 = cpu_kh->kh_tcr1 & TCR_TG1;
         const u_int t1siz = __SHIFTOUT(cpu_kh->kh_tcr1, TCR_T1SZ);          const u_int t1siz = __SHIFTOUT(cpu_kh->kh_tcr1, TCR_T1SZ);
   
         /*          /*
Line 94  lose:
Line 94  lose:
         u_int page_shift;          u_int page_shift;
   
         switch (tg1) {          switch (tg1) {
         case TCR_TG_4KB:          case TCR_TG1_4KB:
                 va_bits = t1siz + 36;                  va_bits = t1siz + 36;
                 page_shift = 12;                  page_shift = 12;
                 break;                  break;
         case TCR_TG_16KB:          case TCR_TG1_16KB:
                 va_bits = 48;                  va_bits = 48;
                 page_shift = 14;                  page_shift = 14;
                 break;                  break;
         case TCR_TG_64KB:          case TCR_TG1_64KB:
                 va_bits = t1siz + 38;                  va_bits = t1siz + 38;
                 page_shift = 16;                  page_shift = 16;
                 break;                  break;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.2.4.2

CVSweb <webmaster@jp.NetBSD.org>