X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fppc%2Fparms.lisp;h=088d17814b715a763cc55a809a8b3030c8e724ff;hb=88fbde7b3c6e6e66bdde408348337e97068f2568;hp=5b87bcc74b1df470d6c047576f8ec412c4e2d2b4;hpb=db0691b05cc99ce010ecae78bb532b594aea1859;p=sbcl.git diff --git a/src/compiler/ppc/parms.lisp b/src/compiler/ppc/parms.lisp index 5b87bcc..088d178 100644 --- a/src/compiler/ppc/parms.lisp +++ b/src/compiler/ppc/parms.lisp @@ -54,10 +54,23 @@ (def!constant float-round-to-positive 2) (def!constant float-round-to-negative 3) -(defconstant-eqx float-rounding-mode (byte 2 0) #'equalp) ; RD -(defconstant-eqx float-sticky-bits (byte 10 19) #'equalp) -(defconstant-eqx float-traps-byte (byte 6 3) #'equalp) -(defconstant-eqx float-exceptions-byte (byte 5 0) #'equalp) ; cexc +(defconstant-eqx float-rounding-mode (byte 2 0) #'equalp) ; RD +;;; FIXME I: Beware, all ye who trespass here. Despite its name, +;;; FLOAT-STICKY-BITS is not the byte specifier for sticky bits in the +;;; floating point control word. It is more like "accrued exceptions" +;;; where FLOAT-EXCEPTIONS-BYTE is "current exceptions". Consequently, +;;; on architectures where there is no "current exceptions" +;;; FLOAT-EXCEPTIONS-BYTE and FLOAT-STICKY-BITS had better be the +;;; same. +;;; +;;; FIXME II: So, I've now documented this in comments in the PowerPC +;;; tree. This may not make it easy to find for when new architectures +;;; get backends written... +;;; +;;; CSR, 2002-06-11 +(defconstant-eqx float-sticky-bits (byte 5 25) #'equalp) +(defconstant-eqx float-traps-byte (byte 5 3) #'equalp) +(defconstant-eqx float-exceptions-byte (byte 5 25) #'equalp) ; cexc (def!constant float-fast-bit 2) ; Non-IEEE mode @@ -143,25 +156,24 @@ ;; The C startup code must fill these in. *posix-argv* - sb!impl::*initial-fdefn-objects* - ;; Functions that the C code needs to call - ;; sb!impl::%initial-fun + ;; functions that the C code needs to call sb!impl::maybe-gc sb!kernel::internal-error + sb!kernel::control-stack-exhausted-error sb!di::handle-breakpoint sb!impl::fdefinition-object - ;; Free Pointers. + ;; free pointers *read-only-space-free-pointer* *static-space-free-pointer* *initial-dynamic-space-free-pointer* - ;; Things needed for non-local-exit. + ;; things needed for non-local exit *current-catch-block* *current-unwind-protect-block* - ;; Interrupt Handling + ;; interrupt handling *free-interrupt-context-index* sb!unix::*interrupts-enabled* sb!unix::*interrupt-pending*