freebsd-skq/sys/powerpc
Eitan Adler 7a22215c53 Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
shifts into the sign bit.  Instead use (1U << 31) which gets the
expected result.

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.

Discussed with:	-arch, rdivacky
Reviewed by:	cperciva
2013-11-30 22:17:27 +00:00
..
aim badaddr() is used only in the grackle PCI driver, so move its definition 2013-11-27 22:01:09 +00:00
booke badaddr() is used only in the grackle PCI driver, so move its definition 2013-11-27 22:01:09 +00:00
conf Make process descriptors standard part of the kernel. rwhod(8) already 2013-11-30 15:08:35 +00:00
cpufreq Remove unused variables. Spotted by a cppcheck 2011-01-06 20:19:01 +00:00
fpu Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
include Save and restore the trap vectors when doing OF calls on pSeries machines. 2013-11-23 18:58:17 +00:00
mambo Standards-conformance and code deduplication: 2013-10-22 14:07:57 +00:00
mpc85xx Move CCSR discovery into the platform module, while simultaneously making 2013-11-17 02:03:36 +00:00
ofw Add a printf to inform about the logical memory block size which is in use 2013-11-30 21:54:55 +00:00
powermac Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
powerpc Use the Open Firmware-based CPU frequency determination as a generic 2013-11-29 21:59:03 +00:00
ps3 - Provide necessary includes. 2013-10-29 11:17:49 +00:00
pseries This driver doesn't need the /options node, so don't check for it. 2013-11-27 22:02:55 +00:00
psim - With the demise of !ATA_CAM, ATA_STATIC_ID is the only ata(4) related 2013-04-06 19:12:49 +00:00
wii Add an interface for the Wii IOS kernels. 2013-11-29 00:40:32 +00:00