#define imb() __asm__ __volatile__ ("call_pal %0 #imb" : : "i" (PAL_imb) : "memory")
#define CLEAR_CACHE imb()
+/*FIXME probe broken in recent kernels, no access*/
+#define DEFINED_REAL_MAXPAGE (1UL<<18) /*FIXME brk probe broken*/
(defun compile-xgcl()
- #+m68k(progn (trace si::readdir si::opendir si::closedir si::pathname-match-p)
- (print (directory "*.c"))
- (untrace si::readdir si::opendir si::closedir si::pathname-match-p))
+ #+(or m68k sh4)
+ (progn (trace si::readdir si::opendir si::closedir si::pathname-match-p)
+ (print (directory "*.c"))
+ (untrace si::readdir si::opendir si::closedir si::pathname-match-p))
(mapc (lambda (x)
(let ((x (concatenate 'string compiler::*cc* " -I../h " (namestring x))))
(unless (zerop (system x))
(error "compile failure: ~s~%" x))))
- (directory "*.c"))
+ (or (directory "*.c")
+ #+(or m68k sh4)
+ (progn (print "qemu/readdir issue still present")
+ (mapcar (lambda (x) (truename (merge-pathnames ".c" x))) '("XStruct-4" "general-c" "Xutil-2" "Events" "XStruct-2")))))
(mapc (lambda (x)
(compile-file (format nil "~a.lsp" x) :system-p t)) *files*))