diff options
author | Henning Heinold <henning@itconsulting-heinold.de> | 2014-01-03 21:42:17 +0100 |
---|---|---|
committer | Henning Heinold <henning@itconsulting-heinold.de> | 2014-01-09 01:25:35 +0100 |
commit | b229a38bdb5cc0ebadcd36d6f71380aa932efec3 (patch) | |
tree | 545ae58f8099fc490ecc48c05ba92f8a5514d4b6 /recipes-core/cacao/files/disable_hw_exceptions.patch | |
parent | 14d6ad1608c66b8970d4052dce4cd1fc64fb6ea2 (diff) | |
download | meta-java-b229a38bdb5cc0ebadcd36d6f71380aa932efec3.tar.gz |
cacao-initial: add cacao-initial recipe from oe-classic
Diffstat (limited to 'recipes-core/cacao/files/disable_hw_exceptions.patch')
-rw-r--r-- | recipes-core/cacao/files/disable_hw_exceptions.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes-core/cacao/files/disable_hw_exceptions.patch b/recipes-core/cacao/files/disable_hw_exceptions.patch new file mode 100644 index 0000000..bf2e998 --- /dev/null +++ b/recipes-core/cacao/files/disable_hw_exceptions.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | Index: cacao-0.98/src/vm/exceptions.c | ||
2 | =================================================================== | ||
3 | --- cacao-0.98.orig/src/vm/exceptions.c 2007-06-05 09:41:07.000000000 +0200 | ||
4 | +++ cacao-0.98/src/vm/exceptions.c 2014-01-03 16:21:42.430783148 +0100 | ||
5 | @@ -89,17 +89,6 @@ | ||
6 | |||
7 | bool exceptions_init(void) | ||
8 | { | ||
9 | - int pagesize; | ||
10 | - | ||
11 | - /* mmap a memory page at address 0x0, so our hardware-exceptions | ||
12 | - work. */ | ||
13 | - | ||
14 | - pagesize = getpagesize(); | ||
15 | - | ||
16 | - (void) memory_mmap_anon(NULL, pagesize, PROT_NONE, MAP_PRIVATE | MAP_FIXED); | ||
17 | - | ||
18 | - /* check if we get into trouble with our hardware-exceptions */ | ||
19 | - | ||
20 | if (OFFSET(java_bytearray, data) <= EXCEPTION_HARDWARE_PATCHER) | ||
21 | vm_abort("signal_init: array-data offset is less or equal the maximum hardware-exception displacement: %d <= %d", OFFSET(java_bytearray, data), EXCEPTION_HARDWARE_PATCHER); | ||
22 | |||