Changeset 12665
- Timestamp:
- Aug 24, 2009, 1:03:43 PM (15 years ago)
- Location:
- trunk/source/lisp-kernel
- Files:
-
- 3 edited
-
lisp.h (modified) (1 diff)
-
pmcl-kernel.c (modified) (4 diffs)
-
ppc-exceptions.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/lisp-kernel/lisp.h
r12095 r12665 34 34 35 35 extern Boolean use_mach_exception_handling; 36 #ifdef DARWIN37 extern Boolean running_under_rosetta;38 #endif39 36 40 37 extern int page_size, log2_page_size; -
trunk/source/lisp-kernel/pmcl-kernel.c
r12425 r12665 90 90 #include <mach/port.h> 91 91 #include <sys/sysctl.h> 92 93 Boolean running_under_rosetta = false;94 95 92 #include <dlfcn.h> 96 93 #endif … … 1475 1472 exit(1); 1476 1473 } 1477 #ifdef PPC1478 #ifdef DARWIN1479 {1480 char *hosttype = getenv("HOSTTYPE");1481 if (hosttype && !strncmp("intel", hosttype, 5)) {1482 running_under_rosetta = true;1483 use_mach_exception_handling = false;1484 reserved_area_size = 1U << 30;1485 }1486 }1487 #endif1488 #endif1489 1474 #endif 1490 1475 } … … 1969 1954 xMakeDataExecutable(void *start, unsigned long nbytes) 1970 1955 { 1956 #ifndef X86 1971 1957 extern void flush_cache_lines(); 1972 1958 natural ustart = (natural) start, base, end; … … 1974 1960 base = (ustart) & ~(cache_block_size-1); 1975 1961 end = (ustart + nbytes + cache_block_size - 1) & ~(cache_block_size-1); 1976 #ifdef DARWIN1977 if (running_under_rosetta) {1978 /* We probably need to flush something's cache even if running1979 under Rosetta, but (a) this is agonizingly slow and (b) we're1980 dying before we get to the point where this would matter.1981 */1982 return;1983 }1984 #endif1985 #ifndef X861986 1962 flush_cache_lines(base, (end-base)/cache_block_size, cache_block_size); 1987 1963 #endif -
trunk/source/lisp-kernel/ppc-exceptions.c
r11659 r12665 1852 1852 xframe_list xframe_link; 1853 1853 1854 #ifdef DARWIN1855 if (running_under_rosetta) {1856 fprintf(dbgout, "signal handler: signal = %d, pc = 0x%08x\n", signum, xpPC(context));1857 }1858 #endif1859 1854 if (!use_mach_exception_handling) { 1860 1855
Note:
See TracChangeset
for help on using the changeset viewer.
