coreboot-kgpe-d16/util
Mathias Krause d2567c8d92 cbfstool: make endian detection code more robust
Accessing the memory of a char array through a uint32_t pointer breaks
strict-aliasing rules as it dereferences memory with lower alignment
requirements than the type of the pointer requires. It's no problem on
x86 as the architecture is able to handle unaligned memory access but
other architectures are not.

Fix this by doing the test the other way around -- accessing the first
byte of a uint32_t variable though a uint8_t pointer.

Change-Id: Id340b406597014232741c98a4fd0b7c159f164c2
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Reviewed-on: http://review.coreboot.org/1234
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
2012-07-18 00:15:15 +02:00
..
abuild Improve parsing of --cpu parameter in abuild script. 2012-06-04 16:19:45 +02:00
acpi Remove whitespace. 2012-02-17 19:04:31 +01:00
amdtools Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
cbfstool cbfstool: make endian detection code more robust 2012-07-18 00:15:15 +02:00
cbmem Revamp cbmem.py to use the coreboot tables. 2012-03-30 17:46:26 +02:00
crossgcc crossgcc: Test for m4 and bison 2012-05-14 18:33:41 +02:00
dumpmmcr dumpmmcr: Fix compilation warnings in printf 2012-01-26 09:57:56 +01:00
ectool ectool: Allow build under Cygwin 2012-04-28 02:46:54 +02:00
genprof Add support utils for tracing 2011-09-07 01:27:57 +02:00
getpir Cut the crap. 2010-09-21 21:16:27 +00:00
gitconfig gitconfig: Improve commit-msg hook 2012-03-25 20:20:41 +02:00
i915tool Add a tool to work on i915 hardware in user mode 2012-05-08 00:40:36 +02:00
ifdtool Add EM100 mode to Intel Firmware Descriptor tool 2012-05-24 22:22:24 +02:00
inteltool inteltool: fixup intel 5000 chipset pci ids 2012-07-06 16:40:46 +02:00
k8resdump add license headers to some trivial files and pc87427.h 2010-12-17 00:13:54 +00:00
kconfig kconfig: Fix 'make gconfig'. 2012-04-13 10:51:40 +02:00
lbtdump Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
lint lint: Avoid downloading blobs repository 2012-05-04 01:54:02 +02:00
mkelfImage mkelfimage: pkgdata directory created but never used 2012-07-09 22:18:37 +02:00
mptable mptable: realign comments with code 2012-06-20 12:46:55 +02:00
msrtool msrtool: add support for cs5536 LPC_SERIRQ (0x5140004e) 2012-07-13 08:40:14 +02:00
nrv2b Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
nvramtool nvramtool: use C99 PRIx64 / PRId64 for uint64_t variables 2012-05-25 08:01:37 +02:00
optionlist Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
resetcf Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
romcc ROMCC: fix unused attribute lookup 2012-06-22 09:19:37 +02:00
sconfig sconfig: fix up shipped code 2012-07-13 20:27:28 +02:00
superiotool superiotool: Dump data registers for Nuvoton chips 2012-07-12 08:13:21 +02:00
vgabios Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
xcompile Update xcompile to search for x86_64 toolchain. 2012-03-31 12:49:45 +02:00