- '(t
-
- ;; 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::!cold-init
- sb!impl::maybe-gc
- sb!kernel::internal-error
- sb!di::handle-breakpoint
- sb!impl::fdefinition-object
-
- ;; free pointers
- ;;
- ;; Note that these are FIXNUM word counts, not (as one might
- ;; expect) byte counts or SAPs. The reason seems to be that by
- ;; representing them this way, we can avoid consing bignums.
- ;; -- WHN 2000-10-02
- *read-only-space-free-pointer*
- *static-space-free-pointer*
- *initial-dynamic-space-free-pointer*
-
- ;; things needed for non-local exit
- sb!impl::*current-catch-block*
- sb!impl::*current-unwind-protect-block*
- sb!c::*eval-stack-top*
- sb!vm::*alien-stack*
-
- ;; interrupt handling
- sb!impl::*pseudo-atomic-atomic*
- sb!impl::*pseudo-atomic-interrupted*
- sb!unix::*interrupts-enabled*
- sb!unix::*interrupt-pending*
- sb!impl::*free-interrupt-context-index*
-
- sb!vm::*allocation-pointer*
- sb!vm::*binding-stack-pointer*
- sb!vm::*internal-gc-trigger* ; Not used.
-
- ;; the floating point constants
- sb!vm::*fp-constant-0d0*
- sb!vm::*fp-constant-1d0*
- sb!vm::*fp-constant-0s0*
- sb!vm::*fp-constant-1s0*
- ;; The following are all long-floats.
- sb!vm::*fp-constant-0l0*
- sb!vm::*fp-constant-1l0*
- sb!vm::*fp-constant-pi*
- sb!vm::*fp-constant-l2t*
- sb!vm::*fp-constant-l2e*
- sb!vm::*fp-constant-lg2*
- sb!vm::*fp-constant-ln2*
-
- ;; used by gencgc
- sb!vm::*scavenge-read-only-space*
-
- ;; multi-process support
- sb!vm::*control-stacks*
-
- ;; The ..SLOT-UNBOUND.. symbol is static in order to optimise the
- ;; common slot unbound check.
- sb!pcl::..slot-unbound..
-
- ;; spare symbols
- sb!vm::spare-10
- sb!vm::spare-9
- sb!vm::spare-8
- sb!vm::spare-7
- sb!vm::spare-6
- sb!vm::spare-5
- sb!vm::spare-4
- sb!vm::spare-3
- sb!vm::spare-2
- sb!vm::spare-1
-
- ;; used by cgc
- sb!vm::*x86-cgc-active-p*
- sb!vm::*static-blue-bag* ; must be last or change C code
- ))
-
-(defparameter *static-functions*
+ (append
+ *common-static-symbols*
+ *c-callable-static-symbols*
+ '(*alien-stack*
+
+ ;; interrupt handling
+ *pseudo-atomic-bits*
+ #!+sb-thread *stop-for-gc-pending*
+ #!+sb-thread *free-tls-index*
+ #!+sb-thread *tls-index-lock*
+
+ *allocation-pointer*
+ *binding-stack-pointer*
+
+ ;; the floating point constants
+ *fp-constant-0d0*
+ *fp-constant-1d0*
+ *fp-constant-0f0*
+ *fp-constant-1f0*
+ ;; The following are all long-floats.
+ *fp-constant-0l0*
+ *fp-constant-1l0*
+ *fp-constant-pi*
+ *fp-constant-l2t*
+ *fp-constant-l2e*
+ *fp-constant-lg2*
+ *fp-constant-ln2*
+
+ ;; For GC-AND-SAVE
+ *restart-lisp-function*
+
+ ;; Needed for callbacks to work across saving cores. see
+ ;; ALIEN-CALLBACK-ASSEMBLER-WRAPPER in c-call.lisp for gory
+ ;; details.
+ sb!alien::*enter-alien-callback*
+
+ ;; see comments in ../x86-64/parms.lisp
+ sb!pcl::..slot-unbound..)))
+
+(defparameter *static-funs*