#define OS_VM_PROT_ALL \
(OS_VM_PROT_READ | OS_VM_PROT_WRITE | OS_VM_PROT_EXECUTE)
-#define OS_VM_PROT_NONE (!OS_VM_PROT_ALL)
+#define OS_VM_PROT_NONE 0
extern os_vm_size_t os_vm_page_size;
/* This maps a file into memory, or calls lose(..) for various
* failures. */
extern os_vm_address_t os_map(int fd,
- int offset,
- os_vm_address_t addr,
- os_vm_size_t len);
+ int offset,
+ os_vm_address_t addr,
+ os_vm_size_t len);
/* This presumably flushes the instruction cache, if that can be done
* explicitly. (It doesn't seem to be an issue for the i386 port,
* write-protecting a page so that the garbage collector can find out
* whether it's modified by handling the signal. */
extern void os_protect(os_vm_address_t addr,
- os_vm_size_t len,
- os_vm_prot_t protection);
+ os_vm_size_t len,
+ os_vm_prot_t protection);
/* This returns true for an address which makes sense at the Lisp level. */
extern boolean is_valid_lisp_addr(os_vm_address_t test);
* turns out that the alpha truly requires this, it can change to
* ARCH_HAS_FLOAT_REGISTERS (currently #defined in alpha-arch.h -- CSR
* 2002-02-04 */
-#ifdef alpha
+#ifdef LISP_FEATURE_ALPHA
os_context_register_t *
os_context_float_register_addr(os_context_t *context, int offset);
#endif
* depend not only on the OS, but also on the architecture, e.g.
* getting at EFL/EFLAGS on the x86. Such things are defined in the
* architecture-dependence files, not the OS-dependence files.) */
-
+
/* These are not architecture-specific functions, but are instead
* general utilities defined in terms of the architecture-specific
* function os_validate(..) and os_invalidate(..).
extern os_vm_address_t os_allocate(os_vm_size_t len);
extern os_vm_address_t os_allocate_at(os_vm_address_t addr, os_vm_size_t len);
extern os_vm_address_t os_reallocate(os_vm_address_t addr,
- os_vm_size_t old_len,
- os_vm_size_t len);
+ os_vm_size_t old_len,
+ os_vm_size_t len);
extern void os_deallocate(os_vm_address_t addr, os_vm_size_t len);