summaryrefslogtreecommitdiff
path: root/packages/cacao/files/arm_mmap.patch
diff options
context:
space:
mode:
authorPhilip Balister <philip@balister.org>2007-08-08 23:08:40 +0000
committerPhilip Balister <philip@balister.org>2007-08-08 23:08:40 +0000
commit2834b0db4e4bad2956bf51638d1d3f4e7b48f25c (patch)
treed129788e0b39e34a4fc77d41d617a6fd7dda69af /packages/cacao/files/arm_mmap.patch
parent8546864754d38a632194f52d15a554c33728a554 (diff)
parent1c512d6f768199951cc7e0b97576761a0700776e (diff)
merge of '036e2e71bb09d2efdeab9165b6946b947e4316b2'
and '73523d2b53ed38a63f46fcb966b7de6091c0c9d5'
Diffstat (limited to 'packages/cacao/files/arm_mmap.patch')
-rw-r--r--packages/cacao/files/arm_mmap.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/cacao/files/arm_mmap.patch b/packages/cacao/files/arm_mmap.patch
new file mode 100644
index 0000000000..e34c7b7802
--- /dev/null
+++ b/packages/cacao/files/arm_mmap.patch
@@ -0,0 +1,21 @@
+--- cacao-0.98/src/vm/exceptions.c 2007/06/27 09:04:17 8146
++++ cacao-0.98/src/vm/exceptions.c 2007/07/02 14:07:24 8175
+@@ -92,6 +92,10 @@
+
+ bool exceptions_init(void)
+ {
++#if !(defined(__ARM__) && defined(__LINUX__))
++ /* On arm-linux the first memory page can't be mmap'ed, as it
++ contains the exception vectors. */
++
+ int pagesize;
+
+ /* mmap a memory page at address 0x0, so our hardware-exceptions
+@@ -100,6 +104,7 @@
+ pagesize = getpagesize();
+
+ (void) memory_mmap_anon(NULL, pagesize, PROT_NONE, MAP_PRIVATE | MAP_FIXED);
++#endif
+
+ /* check if we get into trouble with our hardware-exceptions */
+