Source-Changes-HG archive

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

[src/trunk]: src partial port to powerpc64.



details:   https://anonhg.NetBSD.org/src/rev/f97e7874ef6f
branches:  trunk
changeset: 944034:f97e7874ef6f
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Sep 15 08:14:31 2020 +0000

description:
partial port to powerpc64.

diffstat:

 etc/etc.macppc/Makefile.inc         |  4 +++-
 sys/arch/ofppc/stand/ofwboot/boot.c |  6 +++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r 51fcb16766d8 -r f97e7874ef6f etc/etc.macppc/Makefile.inc
--- a/etc/etc.macppc/Makefile.inc       Tue Sep 15 08:13:51 2020 +0000
+++ b/etc/etc.macppc/Makefile.inc       Tue Sep 15 08:14:31 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.11 2019/02/19 23:46:33 sevan Exp $
+#      $NetBSD: Makefile.inc,v 1.12 2020/09/15 08:14:31 mrg Exp $
 #
 #      etc.macppc/Makefile.inc -- macppc-specific etc Makefile targets
 #
@@ -6,9 +6,11 @@
 # If you change the list of distributed kernels, don't forget
 # to update the release documentation in distrib/notes/common/contents
 
+.if ${MACHINE_ARCH} != "powerpc64"
 KERNEL_SETS=           GENERIC GENERIC.MP GENERIC_601 POWERMAC_G5 \
                        POWERMAC_G5.MP
 
 BUILD_KERNELS+=                INSTALL INSTALL_601 GENERIC_MD
 
 INSTALLATION_DIRS+=    installation/floppy
+.endif
diff -r 51fcb16766d8 -r f97e7874ef6f sys/arch/ofppc/stand/ofwboot/boot.c
--- a/sys/arch/ofppc/stand/ofwboot/boot.c       Tue Sep 15 08:13:51 2020 +0000
+++ b/sys/arch/ofppc/stand/ofwboot/boot.c       Tue Sep 15 08:14:31 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.24 2016/06/11 06:35:38 dholland Exp $       */
+/*     $NetBSD: boot.c,v 1.25 2020/09/15 08:14:31 mrg Exp $    */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -292,8 +292,8 @@
        esym = (void *)marks[MARK_END];
 
        printf(" start=0x%x\n", entry);
-       __syncicache((void *) entry, (u_int) ssym - (u_int) entry);
-       chain((boot_entry_t) entry, bootline, ssym, esym);
+       __syncicache((void *)(uintptr_t)entry, (uintptr_t) ssym - entry);
+       chain((boot_entry_t)(uintptr_t)entry, bootline, ssym, esym);
 
        OF_exit();
 }



Home | Main Index | Thread Index | Old Index