File: 0001-Don-t-use-unaligned-access-on-ARM.patch

package info (click to toggle)
python-dmidecode 3.12.2-13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,156 kB
  • sloc: ansic: 6,946; xml: 741; python: 595; makefile: 87; sh: 68
file content (26 lines) | stat: -rw-r--r-- 679 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Sandro Tosi <morph@debian.org>
Date: Tue, 5 Dec 2017 18:45:36 -0500
Subject: Don't use unaligned access on ARM

Depending on CPU and kernel config, unaligned access may raise SIGBUS on
ARM.  Use the slower, but safe, implementation instead.

Author: Steve Langasek <steve.langasek@ubuntu.com>
Last-Update: 2017-06-18
---
 src/config.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config.h b/src/config.h
index 4fb28df..ac3c942 100644
--- a/src/config.h
+++ b/src/config.h
@@ -53,7 +53,7 @@
 #endif
 
 /* Use memory alignment workaround or not */
-#ifdef __ia64__
+#if defined(__ia64__) || defined(__arm__)
 #define ALIGNMENT_WORKAROUND
 #endif