mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 02:20:51 +01:00
Unbreak the 32-bit powerpc builds
Force unsigned integer usage by casting to vm_offset_t, to avoid integer overflow, from r358305
This commit is contained in:
parent
0b2f25287c
commit
d029e3b3f7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=358306
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user