Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2020 02:42:43 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r358306 - head/sys/powerpc/booke
Message-ID:  <202002250242.01P2ghRr001214@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Tue Feb 25 02:42:43 2020
New Revision: 358306
URL: https://svnweb.freebsd.org/changeset/base/358306

Log:
  Unbreak the 32-bit powerpc builds
  
  Force unsigned integer usage by casting to vm_offset_t, to avoid integer
  overflow, from r358305

Modified:
  head/sys/powerpc/booke/pmap.c

Modified: head/sys/powerpc/booke/pmap.c
==============================================================================
--- head/sys/powerpc/booke/pmap.c	Tue Feb 25 01:40:22 2020	(r358305)
+++ head/sys/powerpc/booke/pmap.c	Tue Feb 25 02:42:43 2020	(r358306)
@@ -233,7 +233,7 @@ uint32_t tlb1_entries;
 #define	VM_MAPDEV_BASE		0x8000000000000000
 #define	VM_MAPDEV_PA_MAX	0x4000000000000000 /* Don't encroach on DMAP */
 #else
-#define	VM_MAPDEV_BASE	(VM_MAXUSER_ADDRESS + PAGE_SIZE)
+#define	VM_MAPDEV_BASE	((vm_offset_t)VM_MAXUSER_ADDRESS + PAGE_SIZE)
 #endif
 
 static vm_offset_t tlb1_map_base = VM_MAPDEV_BASE;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002250242.01P2ghRr001214>