Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 777582
Collapse All | Expand All

(-)a/src/runtime/alpha-arch.c (-1 lines)
Lines 31-37 Link Here
31
31
32
extern char call_into_lisp_LRA[], call_into_lisp_end[];
32
extern char call_into_lisp_LRA[], call_into_lisp_end[];
33
33
34
extern size_t os_vm_page_size;
35
#define BREAKPOINT_INST 0x80
34
#define BREAKPOINT_INST 0x80
36
35
37
36
(-)a/src/runtime/alpha-linux-os.c (-1 lines)
Lines 37-43 Link Here
37
#include <asm/fpu.h>
37
#include <asm/fpu.h>
38
38
39
#include "validate.h"
39
#include "validate.h"
40
size_t os_vm_page_size;
41
40
42
#ifdef LISP_FEATURE_SB_THREAD
41
#ifdef LISP_FEATURE_SB_THREAD
43
#error "Define threading support functions"
42
#error "Define threading support functions"
(-)a/src/runtime/arm-bsd-os.c (-1 lines)
Lines 37-43 Link Here
37
#include <errno.h>
37
#include <errno.h>
38
38
39
#include "validate.h"
39
#include "validate.h"
40
size_t os_vm_page_size;
41
40
42
#ifdef LISP_FEATURE_SB_THREAD
41
#ifdef LISP_FEATURE_SB_THREAD
43
#error "Define threading support functions"
42
#error "Define threading support functions"
(-)a/src/runtime/arm-linux-os.c (-1 lines)
Lines 36-42 Link Here
36
#include <errno.h>
36
#include <errno.h>
37
37
38
#include "validate.h"
38
#include "validate.h"
39
size_t os_vm_page_size;
40
39
41
#ifdef LISP_FEATURE_SB_THREAD
40
#ifdef LISP_FEATURE_SB_THREAD
42
#error "Define threading support functions"
41
#error "Define threading support functions"
(-)a/src/runtime/arm64-linux-os.c (-2 lines)
Lines 36-43 Link Here
36
#include <errno.h>
36
#include <errno.h>
37
37
38
#include "validate.h"
38
#include "validate.h"
39
size_t os_vm_page_size;
40
41
39
42
int arch_os_thread_init(struct thread *thread) {
40
int arch_os_thread_init(struct thread *thread) {
43
    stack_t sigstack;
41
    stack_t sigstack;
(-)a/src/runtime/bsd-os.c (-3 lines)
Lines 49-55 Link Here
49
#endif
49
#endif
50
50
51
51
52
os_vm_size_t os_vm_page_size;
53
52
54
#ifdef __NetBSD__
53
#ifdef __NetBSD__
55
#include <sys/resource.h>
54
#include <sys/resource.h>
Lines 93-100 static void openbsd_init(); Link Here
93
void
92
void
94
os_init(char *argv[], char *envp[])
93
os_init(char *argv[], char *envp[])
95
{
94
{
96
    os_vm_page_size = BACKEND_PAGE_BYTES;
97
98
#ifdef __NetBSD__
95
#ifdef __NetBSD__
99
    netbsd_init();
96
    netbsd_init();
100
#elif defined(LISP_FEATURE_FREEBSD)
97
#elif defined(LISP_FEATURE_FREEBSD)
(-)a/src/runtime/hppa-hpux-os.c (-1 lines)
Lines 35-41 Link Here
35
#include <unistd.h>
35
#include <unistd.h>
36
36
37
#include "validate.h"
37
#include "validate.h"
38
size_t os_vm_page_size;
39
38
40
#ifdef LISP_FEATURE_SB_THREAD
39
#ifdef LISP_FEATURE_SB_THREAD
41
#error "Define threading support functions"
40
#error "Define threading support functions"
(-)a/src/runtime/hppa-linux-os.c (-1 lines)
Lines 35-41 Link Here
35
#include <unistd.h>
35
#include <unistd.h>
36
36
37
#include "validate.h"
37
#include "validate.h"
38
size_t os_vm_page_size;
39
38
40
#ifdef LISP_FEATURE_SB_THREAD
39
#ifdef LISP_FEATURE_SB_THREAD
41
#error "Define threading support functions"
40
#error "Define threading support functions"
(-)a/src/runtime/hpux-os.c (-3 lines)
Lines 25-36 Link Here
25
#error C_STACK_IS_CONTROL_STACK isnt supported
25
#error C_STACK_IS_CONTROL_STACK isnt supported
26
#endif
26
#endif
27
27
28
size_t os_vm_page_size;
29
30
void
28
void
31
os_init(char *argv[], char *envp[])
29
os_init(char *argv[], char *envp[])
32
{
30
{
33
    os_vm_page_size = BACKEND_PAGE_BYTES;
34
}
31
}
35
32
36
os_vm_address_t
33
os_vm_address_t
(-)a/src/runtime/linux-os.c (-8 lines)
Lines 64-71 int personality (unsigned long); Link Here
64
#include <sys/personality.h>
64
#include <sys/personality.h>
65
#endif
65
#endif
66
66
67
size_t os_vm_page_size;
68
69
#if defined(LISP_FEATURE_SB_THREAD) && defined(LISP_FEATURE_SB_FUTEX) && !defined(LISP_FEATURE_SB_PTHREAD_FUTEX)
67
#if defined(LISP_FEATURE_SB_THREAD) && defined(LISP_FEATURE_SB_FUTEX) && !defined(LISP_FEATURE_SB_PTHREAD_FUTEX)
70
#include <sys/syscall.h>
68
#include <sys/syscall.h>
71
#include <unistd.h>
69
#include <unistd.h>
Lines 225-236 void os_init(char __attribute__((unused)) *argv[], Link Here
225
    }
223
    }
226
#endif
224
#endif
227
225
228
    /* Don't use getpagesize(), since it's not constant across Linux
229
     * kernel versions on some architectures (for example PPC). FIXME:
230
     * possibly the same should be done on other architectures too.
231
     */
232
    os_vm_page_size = BACKEND_PAGE_BYTES;
233
234
#ifdef LISP_FEATURE_X86
226
#ifdef LISP_FEATURE_X86
235
    /* Use SSE detector.  Recent versions of Linux enable SSE support
227
    /* Use SSE detector.  Recent versions of Linux enable SSE support
236
     * on SSE capable CPUs.  */
228
     * on SSE capable CPUs.  */
(-)a/src/runtime/mips-linux-os.c (-2 lines)
Lines 26-33 Link Here
26
26
27
#define CAUSEF_BD (1 << 31)
27
#define CAUSEF_BD (1 << 31)
28
28
29
size_t os_vm_page_size;
30
31
int
29
int
32
arch_os_thread_init(struct thread *thread)
30
arch_os_thread_init(struct thread *thread)
33
{
31
{
(-)a/src/runtime/os-common.c (+9 lines)
Lines 32-37 Link Here
32
# include <dlfcn.h>
32
# include <dlfcn.h>
33
#endif
33
#endif
34
34
35
/*
36
 * historically, this used sysconf to select the runtime page size
37
 * per recent changes on other arches and discussion on sbcl-devel,
38
 * however, this is not necessary -- the VM page size need not match
39
 * the OS page size (and the default backend page size has been
40
 * ramped up accordingly for efficiency reasons).
41
*/
42
os_vm_size_t os_vm_page_size = BACKEND_PAGE_BYTES;
43
35
/* Expose to Lisp the value of the preprocessor define. Don't touch! */
44
/* Expose to Lisp the value of the preprocessor define. Don't touch! */
36
int install_sig_memory_fault_handler = INSTALL_SIG_MEMORY_FAULT_HANDLER;
45
int install_sig_memory_fault_handler = INSTALL_SIG_MEMORY_FAULT_HANDLER;
37
46
(-)a/src/runtime/ppc-linux-os.c (-2 lines)
Lines 39-46 Link Here
39
#include "validate.h"
39
#include "validate.h"
40
#include "ppc-linux-mcontext.h"
40
#include "ppc-linux-mcontext.h"
41
41
42
size_t os_vm_page_size;
43
44
int arch_os_thread_init(struct thread *thread) {
42
int arch_os_thread_init(struct thread *thread) {
45
#if defined(LISP_FEATURE_SB_THREAD)
43
#if defined(LISP_FEATURE_SB_THREAD)
46
    pthread_setspecific(specials,thread);
44
    pthread_setspecific(specials,thread);
(-)a/src/runtime/sparc-linux-os.c (-1 lines)
Lines 35-41 Link Here
35
#include <unistd.h>
35
#include <unistd.h>
36
36
37
#include "validate.h"
37
#include "validate.h"
38
size_t os_vm_page_size;
39
38
40
#ifdef LISP_FEATURE_SB_THREAD
39
#ifdef LISP_FEATURE_SB_THREAD
41
#error "Define threading support functions"
40
#error "Define threading support functions"
(-)a/src/runtime/sunos-os.c (-10 lines)
Lines 32-50 Link Here
32
# include <errno.h>
32
# include <errno.h>
33
#endif
33
#endif
34
34
35
os_vm_size_t os_vm_page_size=0;
36
37
void
35
void
38
os_init(char *argv[], char *envp[])
36
os_init(char *argv[], char *envp[])
39
{
37
{
40
    /*
41
     * historically, this used sysconf to select the runtime page size
42
     * per recent changes on other arches and discussion on sbcl-devel,
43
     * however, this is not necessary -- the VM page size need not match
44
     * the OS page size (and the default backend page size has been
45
     * ramped up accordingly for efficiency reasons).
46
     */
47
    os_vm_page_size = BACKEND_PAGE_BYTES;
48
}
38
}
49
39
50
os_vm_address_t os_validate(int attributes, os_vm_address_t addr, os_vm_size_t len)
40
os_vm_address_t os_validate(int attributes, os_vm_address_t addr, os_vm_size_t len)
(-)a/src/runtime/win32-os.c (-2 lines)
Lines 65-72 Link Here
65
#define WITH_GC_AT_SAFEPOINTS_ONLY() if (0) ; else
65
#define WITH_GC_AT_SAFEPOINTS_ONLY() if (0) ; else
66
#endif
66
#endif
67
67
68
os_vm_size_t os_vm_page_size;
69
70
#include "gc.h"
68
#include "gc.h"
71
#include "gencgc-internal.h"
69
#include "gencgc-internal.h"
72
#include <wincrypt.h>
70
#include <wincrypt.h>
(-)a/src/runtime/x86-64-linux-os.c (-1 lines)
Lines 49-55 Link Here
49
#include "thread.h"             /* dynamic_values_bytes */
49
#include "thread.h"             /* dynamic_values_bytes */
50
50
51
#include "validate.h"
51
#include "validate.h"
52
size_t os_vm_page_size;
53
52
54
int arch_os_thread_init(struct thread *thread) {
53
int arch_os_thread_init(struct thread *thread) {
55
    stack_t sigstack;
54
    stack_t sigstack;
(-)a/src/runtime/x86-64-win32-os.c (-1 lines)
Lines 39-45 Link Here
39
#include "align.h"
39
#include "align.h"
40
40
41
#include "validate.h"
41
#include "validate.h"
42
size_t os_vm_page_size;
43
42
44
int arch_os_thread_init(struct thread *thread)
43
int arch_os_thread_init(struct thread *thread)
45
{
44
{
(-)a/src/runtime/x86-linux-os.c (-1 lines)
Lines 51-57 static inline int set_thread_area(struct user_desc *u_info) Link Here
51
}
51
}
52
52
53
#include "validate.h"
53
#include "validate.h"
54
size_t os_vm_page_size;
55
54
56
int arch_os_thread_init(struct thread *thread) {
55
int arch_os_thread_init(struct thread *thread) {
57
    stack_t sigstack;
56
    stack_t sigstack;

Return to bug 777582