mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-14 07:30:21 +00:00
Disallow UNALIGNED_FETCH_OK on ARM, not LINUX. (#258)
UNALIGNED_FETCH_OK shouldn't be set for an entire OS, but based on the CPU architecture. Some ARM systems don't allow unaligned reads. x86 and x86_64 do, so update how we configure this.
This commit is contained in:
parent
819f1c6c0a
commit
0010a02cb1
@ -213,7 +213,7 @@ error Must specify RELEASE to build Medley.
|
||||
|
||||
/* Not all platforms want to do unaligned reads, so
|
||||
* we will disable those here. */
|
||||
#if defined(MAIKO_ARCH_SPARC)
|
||||
#if defined(MAIKO_ARCH_SPARC) || defined(MAIKO_ARCH_ARM)
|
||||
#undef UNALIGNED_FETCH_OK
|
||||
#endif
|
||||
|
||||
@ -232,17 +232,6 @@ error Must specify RELEASE to build Medley.
|
||||
|
||||
|
||||
|
||||
/********************************************************/
|
||||
/* */
|
||||
/********************************************************/
|
||||
#ifdef LINUX
|
||||
/* LINUX, the free POSIX-compliant Unix */
|
||||
#undef UNALIGNED_FETCH_OK
|
||||
#endif /* LINUX */
|
||||
|
||||
|
||||
|
||||
|
||||
/********************************************************/
|
||||
/* */
|
||||
/********************************************************/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user