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;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to