Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/aarch64/aarch64 sctlr_el1 and ctr_el0 are 64-bit re...



details:   https://anonhg.NetBSD.org/src/rev/6407db693fa2
branches:  trunk
changeset: 933765:6407db693fa2
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat May 30 17:50:39 2020 +0000

description:
sctlr_el1 and ctr_el0 are 64-bit registers

diffstat:

 sys/arch/aarch64/aarch64/cpu.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 394efa139e76 -r 6407db693fa2 sys/arch/aarch64/aarch64/cpu.c
--- a/sys/arch/aarch64/aarch64/cpu.c    Sat May 30 17:19:45 2020 +0000
+++ b/sys/arch/aarch64/aarch64/cpu.c    Sat May 30 17:50:39 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.45 2020/05/11 14:44:16 riastradh Exp $ */
+/* $NetBSD: cpu.c,v 1.46 2020/05/30 17:50:39 jmcneill Exp $ */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: cpu.c,v 1.45 2020/05/11 14:44:16 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: cpu.c,v 1.46 2020/05/30 17:50:39 jmcneill Exp $");
 
 #include "locators.h"
 #include "opt_arm_debug.h"
@@ -232,7 +232,7 @@
 static void
 cpu_identify1(device_t self, struct cpu_info *ci)
 {
-       uint32_t ctr, sctlr;    /* for cache */
+       uint64_t ctr, sctlr;    /* for cache */
 
        /* SCTLR - System Control Register */
        sctlr = reg_sctlr_el1_read();



Home | Main Index | Thread Index | Old Index