Commit 6438e048 authored by rtoy's avatar rtoy
Browse files

Merge changes from cross-sol-x86-2010-12-20 which adds support for

Solaris/x86.  There should be no functional changes for either other
x86 ports or for the sparc port.
parent f8a406dc
Loading
Loading
Loading
Loading
+8 −1
Changes for code/float-trap.lisp: 8 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/float-trap.lisp,v 1.38 2010/04/20 17:57:44 rtoy Rel $")
  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/float-trap.lisp,v 1.39 2010/12/22 02:12:51 rtoy Exp $")
;;;
;;; **********************************************************************
;;;
@@ -290,6 +290,13 @@
		    :operation fop
		    :operands operands))
	    (t
	     ;; It looks like the sigcontext on Solaris/x86 doesn't
	     ;; actually save the status word of the FPU.  The
	     ;; operands also seem to be missing.  Signal a general
	     ;; arithmetic error.
	     #+solaris
	     (error 'arithmetic-error :operands operands)
	     #-solaris
	     (error (intl:gettext "SIGFPE with no exceptions currently enabled?")))))))

;;; WITH-FLOAT-TRAPS-MASKED  --  Public
+5 −5
Changes for code/signal.lisp: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/signal.lisp,v 1.41 2010/07/14 03:13:20 rtoy Rel $")
  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/signal.lisp,v 1.42 2010/12/22 02:12:51 rtoy Exp $")
;;;
;;; **********************************************************************
;;;
@@ -104,7 +104,7 @@
(def-unix-signal :SIGIOT 6 "Iot instruction") ; Compatibility
(def-unix-signal :SIGABRT 6 "C abort()")
(intl::with-textdomain ("cmucl" #+linux "cmucl-linux-os"
				#+sparc "cmucl-sparc-svr4"
				#+(or sparc solaris) "cmucl-sparc-svr4"
				#+bsd "cmucl-bsd-os")
#-linux
(def-unix-signal :SIGEMT 7 "Emt instruction"))
@@ -115,7 +115,7 @@
(def-unix-signal :SIGBUS #-linux 10 #+linux 7 "Bus error")
(def-unix-signal :SIGSEGV 11 "Segmentation violation")
(intl::with-textdomain ("cmucl" #+linux "cmucl-linux-os"
				#+sparc "cmucl-sparc-svr4"
				#+(or sparc solaris) "cmucl-sparc-svr4"
				#+bsd "cmucl-bsd-os")
#-linux
(def-unix-signal :SIGSYS 12 "Bad argument to system call"))
@@ -124,7 +124,7 @@
(def-unix-signal :SIGALRM 14 "Alarm clock")
(def-unix-signal :SIGTERM 15 "Software termination signal")
(intl::with-textdomain ("cmucl" #+linux "cmucl-linux-os"
				#+sparc "cmucl-sparc-svr4"
				#+(or sparc solaris) "cmucl-sparc-svr4"
				#+bsd "cmucl-bsd-os")
#+linux
(def-unix-signal :SIGSTKFLT 16 "Stack fault on coprocessor"))
@@ -163,7 +163,7 @@

;;; SVR4 (or Solaris?) specific signals
(intl::with-textdomain ("cmucl" #+linux "cmucl-linux-os"
				#+sparc "cmucl-sparc-svr4"
				#+(or sparc solaris) "cmucl-sparc-svr4"
				#+bsd "cmucl-bsd-os")
#+svr4
(def-unix-signal :SIGWAITING 32 "Process's lwps are blocked"))
+6 −1
Changes for code/sunos-os.lisp: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/sunos-os.lisp,v 1.15 2010/04/20 17:57:45 rtoy Rel $")
  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/sunos-os.lisp,v 1.16 2010/12/22 02:12:51 rtoy Exp $")
;;;
;;; **********************************************************************
;;;
@@ -21,6 +21,11 @@

(pushnew :sunos *features*)

#+solaris
(register-lisp-feature :solaris)
#+svr4
(register-lisp-feature :svr4)

#+executable
(register-lisp-runtime-feature :executable)

+3 −2
Changes for code/unix.lisp: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/unix.lisp,v 1.131 2010/11/12 16:53:17 rtoy Exp $")
  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/unix.lisp,v 1.132 2010/12/22 02:12:51 rtoy Exp $")
;;;
;;; **********************************************************************
;;;
@@ -3391,7 +3391,8 @@

(defun unix-uname ()
  (with-alien ((names (struct utsname)))
    (syscall* (#-freebsd "uname"
    (syscall* (#-(or freebsd solaris) "uname"
	       #+solaris "nuname"	; See /usr/include/sys/utsname.h
	       #+freebsd "__xuname" #+freebsd int
	       (* (struct utsname)))
	      (values (cast (slot names 'sysname) c-string)
+5 −3
Changes for compiler/x86/parms.lisp: 5 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(ext:file-comment
  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/x86/parms.lisp,v 1.41 2010/12/04 17:32:34 rtoy Exp $")
  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/x86/parms.lisp,v 1.42 2010/12/22 02:12:52 rtoy Exp $")
;;;
;;; **********************************************************************
;;;
@@ -65,7 +65,8 @@

(setf (c::backend-foreign-linkage-space-start *target-backend*)
      #+linux #x58000000
      #-linux #xB0000000
      #+solaris #x30000000
      #-(or linux solaris) #xB0000000
      (c::backend-foreign-linkage-entry-size *target-backend*)
      8)
); eval-when
@@ -217,7 +218,8 @@
  #-FreeBSD #x28000000)
(defconstant target-dynamic-space-start
  #+linux #x58100000
  #-linux #x48000000)
  #+solaris #x40000000
  #-(or linux solaris) #x48000000)
(defconstant target-foreign-linkage-space-start
  (c:backend-foreign-linkage-space-start *target-backend*))
(defconstant target-foreign-linkage-entry-size
Loading