Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/samsung exynos_bootstrap doesn't need an argument



details:   https://anonhg.NetBSD.org/src/rev/844e940df146
branches:  trunk
changeset: 433431:844e940df146
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Sep 14 11:58:38 2018 +0000

description:
exynos_bootstrap doesn't need an argument

diffstat:

 sys/arch/arm/samsung/exynos_platform.c |  6 +++---
 sys/arch/arm/samsung/exynos_soc.c      |  7 ++++---
 sys/arch/arm/samsung/exynos_var.h      |  4 ++--
 3 files changed, 9 insertions(+), 8 deletions(-)

diffs (80 lines):

diff -r 55afb7f28058 -r 844e940df146 sys/arch/arm/samsung/exynos_platform.c
--- a/sys/arch/arm/samsung/exynos_platform.c    Fri Sep 14 11:30:07 2018 +0000
+++ b/sys/arch/arm/samsung/exynos_platform.c    Fri Sep 14 11:58:38 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exynos_platform.c,v 1.15 2018/09/11 10:06:53 jmcneill Exp $ */
+/* $NetBSD: exynos_platform.c,v 1.16 2018/09/14 11:58:38 skrll Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -34,7 +34,7 @@
 #include "ukbd.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exynos_platform.c,v 1.15 2018/09/11 10:06:53 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exynos_platform.c,v 1.16 2018/09/14 11:58:38 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -123,7 +123,7 @@
 exynos_platform_bootstrap(void)
 {
 
-       exynos_bootstrap(EXYNOS_CORE_VBASE);
+       exynos_bootstrap();
 
        void (*mp_bootstrap)(void) = NULL;
        const struct of_compat_data *cd = of_search_compatible(OF_finddevice("/"), mp_compat_data);
diff -r 55afb7f28058 -r 844e940df146 sys/arch/arm/samsung/exynos_soc.c
--- a/sys/arch/arm/samsung/exynos_soc.c Fri Sep 14 11:30:07 2018 +0000
+++ b/sys/arch/arm/samsung/exynos_soc.c Fri Sep 14 11:58:38 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exynos_soc.c,v 1.35 2018/08/19 07:27:33 skrll Exp $    */
+/*     $NetBSD: exynos_soc.c,v 1.36 2018/09/14 11:58:38 skrll Exp $    */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #include "opt_exynos.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exynos_soc.c,v 1.35 2018/08/19 07:27:33 skrll Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exynos_soc.c,v 1.36 2018/09/14 11:58:38 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -475,7 +475,7 @@
 
 
 void
-exynos_bootstrap(vaddr_t iobase)
+exynos_bootstrap(void)
 {
        int error;
        size_t core_size, audiocore_size;
@@ -485,6 +485,7 @@
        bus_addr_t exynos_pmu_offset;
        bus_addr_t exynos_sysreg_offset;
        bus_addr_t exynos_cmu_apll_offset;
+       const vaddr_t iobase = EXYNOS_CORE_VBASE;
 
 #ifdef SOC_EXYNOS4
        core_size = EXYNOS4_CORE_SIZE;
diff -r 55afb7f28058 -r 844e940df146 sys/arch/arm/samsung/exynos_var.h
--- a/sys/arch/arm/samsung/exynos_var.h Fri Sep 14 11:30:07 2018 +0000
+++ b/sys/arch/arm/samsung/exynos_var.h Fri Sep 14 11:58:38 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exynos_var.h,v 1.25 2018/08/19 07:27:33 skrll Exp $    */
+/*     $NetBSD: exynos_var.h,v 1.26 2018/09/14 11:58:38 skrll Exp $    */
 
 /*-
  * Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -143,7 +143,7 @@
 extern bus_space_handle_t exynos_cmu_bsh;
 extern bus_space_handle_t exynos_sysreg_bsh;
 
-extern void exynos_bootstrap(vaddr_t);
+extern void exynos_bootstrap(void);
 extern void exynos_dma_bootstrap(psize_t memsize);
 
 struct exynos_pinctrl_softc;



Home | Main Index | Thread Index | Old Index