Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/include ST40_PMB_DA_BITS - all values for the n...
details: https://anonhg.NetBSD.org/src/rev/73ef25a07b4e
branches: trunk
changeset: 936560:73ef25a07b4e
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Jul 30 20:59:08 2020 +0000
description:
ST40_PMB_DA_BITS - all values for the non-continuous size field.
Size field has two reserved bits in the middle. Don't depend on them
being zero, they can be defined in future versions. Provide exhaustive
list with all possibile "filler" bits in the middle so that we
correctly report the size field value regardless of the unrelated bits.
diffstat:
sys/arch/sh3/include/pmb.h | 22 +++++++++++++++++++---
1 files changed, 19 insertions(+), 3 deletions(-)
diffs (43 lines):
diff -r 42aa3b1883ed -r 73ef25a07b4e sys/arch/sh3/include/pmb.h
--- a/sys/arch/sh3/include/pmb.h Thu Jul 30 17:26:23 2020 +0000
+++ b/sys/arch/sh3/include/pmb.h Thu Jul 30 20:59:08 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmb.h,v 1.2 2020/07/30 03:19:33 uwe Exp $ */
+/* $NetBSD: pmb.h,v 1.3 2020/07/30 20:59:08 uwe Exp $ */
/*
* Copyright (c) 2020 Valery Ushakov
* All rights reserved.
@@ -87,15 +87,31 @@
#define ST40_PMB_DA_PPN_MASK 0xff000000
#define ST40_PMB_DA_PPN_SHIFT 24
+/*
+ * size field is not continuous hence the kludgy list with all the
+ * possible junk bits in the middle.
+ */
#define ST40_PMB_DA_BITS \
"\177\020" \
"f\030\010" "PPN\0" \
"b\010" "V\0" \
"F\04\04" "\0" \
+ ":\017" "512M\0" \
+ ":\016" "128M\0" \
+ ":\015" "512M\0" \
+ ":\014" "128M\0" \
+ ":\013" "512M\0" \
+ ":\012" "128M\0" \
":\011" "512M\0" \
":\010" "128M\0" \
- ":\01" "64M\0" \
- ":\0" "16M\0" \
+ ":\007" "64M\0" \
+ ":\006" "16M\0" \
+ ":\005" "64M\0" \
+ ":\004" "16M\0" \
+ ":\003" "64M\0" \
+ ":\002" "16M\0" \
+ ":\001" "64M\0" \
+ ":\000" "16M\0" \
"b\011" "UB\0" \
"b\03" "C\0" \
"F\0\01" "\0" \
Home |
Main Index |
Thread Index |
Old Index