freebsd-dev/sys/boot/i386
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
..
boot0 Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to 2012-02-28 18:30:18 +00:00
boot0ext
boot0sio
boot2 Shrink boot2 by 8 bytes, by eliminating some unneeded instructions in 2012-11-08 23:21:02 +00:00
btx Sanitize the %eflags returned by BIOS routines. Some BIOS routines enter 2013-10-10 19:51:38 +00:00
cdboot Fix sys/boot/i386/cdboot/cdboot.S compilation with clang after r235219. 2012-05-11 18:07:23 +00:00
common boot: use packed attribute for edd_params* structures and their substructures 2012-11-14 11:05:16 +00:00
efi Purely cosmetic change: order DT_REL* and DT_RELA* consistently. 2013-11-28 19:41:03 +00:00
gptboot Add descriptions to the FILES list, fix some mdoc complaints, move the 2013-07-03 18:53:36 +00:00
gptzfsboot Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to 2012-02-28 18:30:18 +00:00
kgzldr
libfirewire Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
libi386 Allow users to set UUID in network byte order regardless of SMBIOS version. 2013-10-22 21:32:28 +00:00
loader Add a try-include word (which acts the same as "include") and use it to 2013-11-17 18:12:17 +00:00
mbr Use -Wl,-N instead of the undocumented -N option for GCC. 2010-06-03 17:42:32 +00:00
pmbr When GPT signature is invalid in the primary GPT header, then try to 2012-08-05 12:57:38 +00:00
pxeldr cdboot, pxeldr: make use of bootargs.h instead of redefining flag constants 2012-05-10 09:47:04 +00:00
zfsboot add detection of serial console presence to btx and boot2-like blocks 2012-10-06 20:08:29 +00:00
zfsloader For consistency, change all 'i386' and MACHINE_ARCH to x86. 2010-08-31 19:01:12 +00:00
Makefile Don't build zfsboot, gptzfsboot, and zfsloader if WITHOUT_ZFS is enabled. 2009-12-22 20:56:33 +00:00
Makefile.inc boot: use -march=i386 for both i386 and amd64 builds 2012-10-20 16:57:23 +00:00