Changeset 15012
- Timestamp:
- Oct 7, 2011, 8:24:39 AM (13 years ago)
- Location:
- trunk/source
- Files:
-
- 3 edited
-
level-1/linux-files.lisp (modified) (1 diff)
-
lisp-kernel/androidarm/Makefile (modified) (2 diffs)
-
lisp-kernel/pmcl-kernel.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/level-1/linux-files.lisp
r15009 r15012 977 977 978 978 (defun %probe-shared-library (shlib) 979 #-(or windows-target freebsd-target)979 #-(or windows-target android-target freebsd-target) 980 980 (with-cstrs ((name (shlib.pathname shlib))) 981 981 (not (%null-ptr-p (#_dlopen name (logior #$RTLD_NOW #$RTLD_NOLOAD))))) 982 982 ;; FreeBSD may support #$RTLD_NOLOAD in 8.0, and that support may 983 983 ;; have been backported to 7.2. Until then ... 984 #+ freebsd-target984 #+(or freebsd-target android-target) 985 985 (rlet ((info #>Dl_info)) 986 986 (not (eql 0 (#_dladdr (shlib.base shlib) info)))) -
trunk/source/lisp-kernel/androidarm/Makefile
r14570 r15012 15 15 16 16 LIBBASE = 0x04001000 17 NDK = /usr/local/android-ndk-r 517 NDK = /usr/local/android-ndk-r6b 18 18 HOST = darwin-x86 19 ANDROIDVERSION = android- 819 ANDROIDVERSION = android-9 20 20 SYSROOT = $(NDK)/platforms/$(ANDROIDVERSION)/arch-arm 21 21 NDKLIB = $(SYSROOT)/usr/lib … … 94 94 95 95 ../../aarmcl.so: $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) ./armandroid.x ./fixlib 96 $(LD) --shared -Bdynamic -dynamic-linker /system/bin/linker -nostdlib -z nocopyreloc -o ../../aarmcl.so -L $(NDKLIB) pad.o arm-spentry.o pmcl-kernel.o gc-common.o arm-gc.o bits.o arm-exceptions.o image.o thread_manager.o lisp-debug.o memory.o unix-calls.o arm-asmutils.o imports.o lispdcmd.o plprint.o plsym.o albt.o arm_print.o $(OSLIBS) -T ./armandroid.x -M96 $(LD) --shared -Bdynamic -dynamic-linker /system/bin/linker -nostdlib -z nocopyreloc -o ../../aarmcl.so -L $(NDKLIB) pad.o arm-spentry.o pmcl-kernel.o gc-common.o arm-gc.o bits.o arm-exceptions.o image.o thread_manager.o lisp-debug.o memory.o unix-calls.o arm-asmutils.o imports.o lispdcmd.o plprint.o plsym.o albt.o arm_print.o $(OSLIBS) -T ./armandroid.x 97 97 ./fixlib $(LIBBASE) >> ../../aarmcl.so 98 98 -
trunk/source/lisp-kernel/pmcl-kernel.c
r14953 r15012 1571 1571 */ 1572 1572 FILE *f = fopen("/proc/cpuinfo", "r"); 1573 char *procline = NULL, *cpuline = NULL, **lineptr, *line = NULL;1573 char *procline = NULL, *cpuline = NULL, line[129], *workline; 1574 1574 size_t n; 1575 ssize_t result;1576 1575 1577 1576 if (f) { 1578 1577 while (1) { 1579 n = 0; 1580 line = NULL; 1581 lineptr = &line; 1582 result = getline(lineptr, &n, f); 1583 if (result < 0) { 1578 if (fgets(line,128,f)==NULL) { 1584 1579 break; 1585 1580 } 1586 line = *lineptr;1581 n = strlen(line); 1587 1582 if (strncmp(line,"Processor",sizeof("Processor")-1) == 0) { 1588 procline = line; 1583 procline = malloc(n+1); 1584 strcpy(procline,line); 1585 procline[n]='\0'; 1589 1586 } else if (strncmp(line, "CPU architecture",sizeof("CPU architecture")-1) == 0) { 1590 cpuline = line;1591 } else {1592 free(line);1587 cpuline = malloc(n+1); 1588 strcpy(cpuline,line); 1589 cpuline[n] = '\0'; 1593 1590 } 1594 1591 } 1595 line = NULL;1596 1592 if (cpuline) { 1597 line = index(cpuline,':');1598 if ( line) {1599 n = strtol( line+1,lineptr,0);1593 workline = index(cpuline,':'); 1594 if (workline) { 1595 n = strtol(workline+1,NULL,0); 1600 1596 if (n >= 7) { 1601 1597 if (n == 7) {
Note:
See TracChangeset
for help on using the changeset viewer.
