Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/odroid Make the PoP detection both EXYNOS4 d...
details: https://anonhg.NetBSD.org/src/rev/194049c9f99b
branches: trunk
changeset: 328735:194049c9f99b
user: reinoud <reinoud%NetBSD.org@localhost>
date: Tue Apr 15 20:36:07 2014 +0000
description:
Make the PoP detection both EXYNOS4 defined and when running on a generic
kernel, check if we're on a EXYNOS4 architecture to prevent mishaps.
diffstat:
sys/arch/evbarm/odroid/odroid_machdep.c | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
diffs (43 lines):
diff -r 2de8361359d4 -r 194049c9f99b sys/arch/evbarm/odroid/odroid_machdep.c
--- a/sys/arch/evbarm/odroid/odroid_machdep.c Tue Apr 15 18:40:34 2014 +0000
+++ b/sys/arch/evbarm/odroid/odroid_machdep.c Tue Apr 15 20:36:07 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: odroid_machdep.c,v 1.5 2014/04/14 19:45:40 reinoud Exp $ */
+/* $NetBSD: odroid_machdep.c,v 1.6 2014/04/15 20:36:07 reinoud Exp $ */
/*
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.5 2014/04/14 19:45:40 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.6 2014/04/15 20:36:07 reinoud Exp $");
#include "opt_evbarm_boardtype.h"
#include "opt_exynos.h"
@@ -353,14 +353,16 @@
ram_size = (psize_t) 0xC0000000 - 0x40000000;
#if defined(EXYNOS4)
- switch (exynos_pop_id) {
- case EXYNOS_PACKAGE_ID_2_GIG:
- KASSERT(ram_size <= 2UL*1024*1024*1024);
- break;
- default:
- printf("Unknown PoP package id 0x%08x, assuming 1Gb\n",
- exynos_pop_id);
- ram_size = (psize_t) 0x10000000;
+ if (IS_EXYNOS4_P()) {
+ switch (exynos_pop_id) {
+ case EXYNOS_PACKAGE_ID_2_GIG:
+ KASSERT(ram_size <= 2UL*1024*1024*1024);
+ break;
+ default:
+ printf("Unknown PoP package id 0x%08x, assuming 1Gb\n",
+ exynos_pop_id);
+ ram_size = (psize_t) 0x10000000;
+ }
}
#endif
Home |
Main Index |
Thread Index |
Old Index