"
(with-unique-names (outer-allow-with-interrupts without-interrupts-body)
`(flet ((,without-interrupts-body ()
- (declare (disable-package-locks allow-with-interrupts with-local-interrupts))
- (macrolet ((allow-with-interrupts (&body allow-forms)
- `(let ((*allow-with-interrupts* ,',outer-allow-with-interrupts))
- ,@allow-forms))
- (with-local-interrupts (&body with-forms)
- `(let ((*allow-with-interrupts* ,',outer-allow-with-interrupts)
- (*interrupts-enabled* ,',outer-allow-with-interrupts))
- (when (and ,',outer-allow-with-interrupts *interrupt-pending*)
- (receive-pending-interrupt))
- (locally ,@with-forms))))
+ (declare (disable-package-locks allow-with-interrupts
+ with-local-interrupts))
+ (macrolet
+ ((allow-with-interrupts
+ (&body allow-forms)
+ `(let ((*allow-with-interrupts*
+ ,',outer-allow-with-interrupts))
+ ,@allow-forms))
+ (with-local-interrupts
+ (&body with-forms)
+ `(let ((*allow-with-interrupts*
+ ,',outer-allow-with-interrupts)
+ (*interrupts-enabled*
+ ,',outer-allow-with-interrupts))
+ (when (and ,',outer-allow-with-interrupts
+ *interrupt-pending*)
+ (receive-pending-interrupt))
+ (locally ,@with-forms))))
(let ((*interrupts-enabled* nil)
(,outer-allow-with-interrupts *allow-with-interrupts*)
(*allow-with-interrupts* nil))
(declare (ignorable ,outer-allow-with-interrupts))
- (declare (enable-package-locks allow-with-interrupts with-local-interrupts))
+ (declare (enable-package-locks allow-with-interrupts
+ with-local-interrupts))
,@body))))
(if *interrupts-enabled*
(unwind-protect
(defmacro allow-with-interrupts (&body body)
(declare (ignore body))
- (error "~S is valid only inside ~S." 'allow-with-interrupts 'without-interrupts))
+ (error "~S is valid only inside ~S."
+ 'allow-with-interrupts 'without-interrupts))
(defmacro with-local-interrupts (&body body)
(declare (ignore body))
- (error "~S is valid only inside ~S." 'with-local-interrupts 'without-interrupts))
+ (error "~S is valid only inside ~S."
+ 'with-local-interrupts 'without-interrupts))
;;; A low-level operation that assumes that *INTERRUPTS-ENABLED* is false,
;;; and *ALLOW-WITH-INTERRUPTS* is true.
(t (multiple-value-bind (dfun cache info)
(make-final-dfun-internal
gf
- (list (list (find-class 'sb-kernel::control-stack-exhausted))
- (list (find-class 'sb-kernel::heap-exhausted-error))
+ (list (list (find-class
+ 'sb-kernel::control-stack-exhausted))
+ (list (find-class
+ 'sb-kernel::heap-exhausted-error))
(list (find-class 'restart))))
(setq po-cache cache)
(set-dfun gf dfun cache info))))))
{
lispobj *result;
- result = pa_alloc(ALIGNED_SIZE((1 + words) * sizeof(lispobj)), UNBOXED_PAGE_FLAG);
+ result = pa_alloc(ALIGNED_SIZE((1 + words) * sizeof(lispobj)),
+ UNBOXED_PAGE_FLAG);
*result = (lispobj) (words << N_WIDETAG_BITS) | type;
return result;
}
struct vector *result;
result = (struct vector *)
- pa_alloc(ALIGNED_SIZE((2 + (length*size + 31) / 32) * sizeof(lispobj)), page_type_flag);
+ pa_alloc(ALIGNED_SIZE((2 + (length*size + 31) / 32) * sizeof(lispobj)),
+ page_type_flag);
result->header = type;
result->length = make_fixnum(length);
alloc_cons(lispobj car, lispobj cdr)
{
struct cons *ptr =
- (struct cons *)pa_alloc(ALIGNED_SIZE(sizeof(struct cons)), BOXED_PAGE_FLAG);
+ (struct cons *)pa_alloc(ALIGNED_SIZE(sizeof(struct cons)),
+ BOXED_PAGE_FLAG);
ptr->car = car;
ptr->cdr = cdr;
alloc_base_string(char *str)
{
int len = strlen(str);
- lispobj result = alloc_vector(SIMPLE_BASE_STRING_WIDETAG, len+1, 8, UNBOXED_PAGE_FLAG);
+ lispobj result = alloc_vector(SIMPLE_BASE_STRING_WIDETAG, len+1, 8,
+ UNBOXED_PAGE_FLAG);
struct vector *vec = (struct vector *)native_pointer(result);
vec->length = make_fixnum(len);
lispobj
alloc_code_object (unsigned boxed, unsigned unboxed) {
struct code * code;
- boxed = make_fixnum(boxed + 1 + 4); /* 4 == trace_table_offset offset in words */
+ /* 4 == trace_table_offset offset in words */
+ boxed = make_fixnum(boxed + 1 + 4);
boxed &= ~LOWTAG_MASK;
unboxed += LOWTAG_MASK;
unboxed &= ~LOWTAG_MASK;
- code = (struct code *) pa_alloc(ALIGNED_SIZE((boxed + unboxed) * sizeof(lispobj)),
+ code = (struct code *)pa_alloc(ALIGNED_SIZE((boxed + unboxed) *
+ sizeof(lispobj)),
CODE_PAGE_FLAG);
boxed = boxed << (N_WIDETAG_BITS - WORD_SHIFT);
dynamic_space_free_pointer =
(lispobj *)(unsigned long)
(*os_context_register_addr(context, reg_ALLOC));
- /* fprintf(stderr,"dynamic_space_free_pointer: %p\n", dynamic_space_free_pointer); */
+/* fprintf(stderr,"dynamic_space_free_pointer: %p\n", */
+/* dynamic_space_free_pointer); */
#if defined(LISP_FEATURE_ALPHA) || defined(LISP_FEATURE_MIPS)
if ((long)dynamic_space_free_pointer & 1) {
lose("dead in fake_foreign_function_call, context = %x\n", context);
| (*os_context_register_addr(context, reg_ALLOC)
& LOWTAG_MASK);
/*
- ((unsigned long)(*os_context_register_addr(context, reg_ALLOC)) & ~LOWTAG_MASK)
+ ((unsigned long)(*os_context_register_addr(context, reg_ALLOC))
+ & ~LOWTAG_MASK)
| ((unsigned long) dynamic_space_free_pointer & LOWTAG_MASK);
*/
#endif
if(info)
memcpy(&(data->pending_info), info, sizeof(siginfo_t));
- FSHOW_SIGNAL((stderr, "/store_signal_data_for_later: signal: %d\n", signal));
+ FSHOW_SIGNAL((stderr, "/store_signal_data_for_later: signal: %d\n",
+ signal));
if(context) {
/* the signal mask in the context (from before we were
}
static void
-low_level_interrupt_handle_now(int signal, siginfo_t *info, os_context_t *context)
+low_level_interrupt_handle_now(int signal, siginfo_t *info,
+ os_context_t *context)
{
/* No FP control fixage needed, caller has done that. */
check_blockables_blocked_or_lose();
/* let the handler enable interrupts again when it sees fit */
sigaddset_deferrable(os_context_sigmask_addr(context));
- arrange_return_to_lisp_function(context, StaticSymbolFunction(RUN_INTERRUPTION));
+ arrange_return_to_lisp_function(context,
+ StaticSymbolFunction(RUN_INTERRUPTION));
}
#endif
* now -- some address is better then no address in this case.
*/
current_memory_fault_address = addr;
- arrange_return_to_lisp_function(context, StaticSymbolFunction(MEMORY_FAULT_ERROR));
+ arrange_return_to_lisp_function(context,
+ StaticSymbolFunction(MEMORY_FAULT_ERROR));
}
#endif
extern void handle_trap(os_context_t *context, int trap);
#ifndef LISP_FEATURE_WIN32
-extern void lisp_memory_fault_error(os_context_t *context, os_vm_address_t addr);
+extern void lisp_memory_fault_error(os_context_t *context,
+ os_vm_address_t addr);
#endif
#endif
if (errno)
lose("argument to --dynamic-space-size is not a number");
# ifdef MAX_DYNAMIC_SPACE_END
- if (!((DYNAMIC_SPACE_START < DYNAMIC_SPACE_START+dynamic_space_size) &&
- (DYNAMIC_SPACE_START+dynamic_space_size <= MAX_DYNAMIC_SPACE_END)))
+ if (!((DYNAMIC_SPACE_START <
+ DYNAMIC_SPACE_START+dynamic_space_size) &&
+ (DYNAMIC_SPACE_START+dynamic_space_size <=
+ MAX_DYNAMIC_SPACE_END)))
lose("specified --dynamic-space-size too large");
# endif
} else if (0 == strcmp(arg, "--control-stack-size")) {
lose("couldn't find initial function\n");
}
#ifdef LISP_FEATURE_HPUX
- /* -1 = CLOSURE_FUN_OFFSET, 23 = SIMPLE_FUN_CODE_OFFSET, we are not in LANGUAGE_ASSEMBLY
- so we cant reach them. */
+ /* -1 = CLOSURE_FUN_OFFSET, 23 = SIMPLE_FUN_CODE_OFFSET, we are
+ * not in LANGUAGE_ASSEMBLY so we cant reach them. */
return_from_lisp_stub = (void *) ((char *)*((unsigned long *)
((char *)initial_function + -1)) + 23);
#endif
#endif
#ifdef LISP_FEATURE_LINKAGE_TABLE
- ensure_space( (lispobj *)LINKAGE_TABLE_SPACE_START, LINKAGE_TABLE_SPACE_SIZE);
+ ensure_space( (lispobj *)LINKAGE_TABLE_SPACE_START,
+ LINKAGE_TABLE_SPACE_SIZE);
#endif
#ifdef LISP_FEATURE_OS_PROVIDES_DLOPEN
}
void
-protect_control_stack_return_guard_page_thread(int protect_p, struct thread* th) {
+protect_control_stack_return_guard_page_thread(int protect_p,
+ struct thread* th) {
os_protect(CONTROL_STACK_RETURN_GUARD_PAGE(th),
os_vm_page_size,protect_p ?
(OS_VM_PROT_READ|OS_VM_PROT_EXECUTE) : OS_VM_PROT_ALL);
extern void validate(void);
extern void protect_control_stack_guard_page(int protect_p);
extern void protect_control_stack_return_guard_page(int protect_p);
-extern void protect_control_stack_guard_page_thread(int protect_p, struct thread *th);
-extern void protect_control_stack_return_guard_page_thread(int protect_p, struct thread* th);
+extern void protect_control_stack_guard_page_thread(int protect_p,
+ struct thread *th);
+extern void protect_control_stack_return_guard_page_thread(int protect_p,
+ struct thread* th);
extern os_vm_address_t undefined_alien_address;
#endif
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.25.12"
+"1.0.25.13"