summaryrefslogtreecommitdiff
path: root/config.h
Commit message (Collapse)AuthorAgeFilesLines
* Use -DALIGNMENT_WORKAROUND on arm as wellJean Delvare2023-04-031-1/+1
| | | | | | | | | The OBS armv7l build log shows a lot of warnings about casts increasing the required alignment of target type. This suggests that this architecture needs to use the slower byte access which is enabled by -DALIGNMENT_WORKAROUND. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Don't use memcpy on /dev/mem on arm64Jean Delvare2018-11-161-0/+5
| | | | | | | | | | | | | | | | On arm64, calling memcpy on /dev/mem will cause a bus error if the start and the end of the buffer are not aligned on a 64-bit boundary. Using option --no-sysfs triggers this. Use a slow manual byte-by-byte copy in that case, to prevent the bus error. This is only a fallback path (at least on Linux) and not performance-critical anyway, as it is a one-time operation and DMI tables are usually not too large. This fixes bug #55026: https://savannah.nongnu.org/bugs/index.php?55026 Signed-off-by: Jean Delvare <jdelvare@suse.de>
* Haiku recently dropped the _BEOS_ definition in favor of its own platformAnton Arapov2011-11-141-1/+1
| | | | | identification _HAIKU_, so we must now also check for it. Patch from Francois Revol.
* Add support for Solaris (x86 only, of course).Jean Delvare2007-07-021-0/+4
|
* Automatically enable the unaligned memory access workaround on ia64.Jean Delvare2006-05-101-0/+10
|
* Use mmap on all but BeOS, instead of only Linux.Jean Delvare2005-02-171-1/+1
|
* Move USE_MMAP to config.h, use mmap on Linux only.Jean Delvare2004-12-101-0/+5
|
* Define and use a default memory device common to all programs, those valueJean Delvare2004-12-091-0/+10
depends on the host system.