/[cmucl]/src/lisp/NetBSD-os.c
ViewVC logotype

Log of /src/lisp/NetBSD-os.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Tag:

Revision 1.20 - (view) (annotate) - [select for diffs]
Thu Sep 1 05:18:26 2011 UTC (2 years, 7 months ago) by rtoy
Branch: MAIN
CVS Tags: GIT-CONVERSION, HEAD, snapshot-2011-09
Changes since 1.19: +5 -1 lines
Diff to previous 1.19
Add os_init0 to allow for some really early OS inits.

On Linux, os_init can re-exec lisp to set up the correct personality.
Not normally a problem, but if any output happens before os_init is
called, the output appears to happen twice.  So add os_init0 to do
this early on, before any output.  This is a bit of a kludge.

lisp/lisp.c:
o Call os_init0 early in main.

lisp/Linux-os.c:
o Move the personality stuff from os_init to os_init0.

lisp/Darwin-os.c:
lisp/FreeBSD-os.c:
lisp/NetBSD-os.c:
lisp/OpenBSD-os.c:
lisp/hpux-os.c:
lisp/irix-os.c:
lisp/mach-os.c:
lisp/osf1-os.c:
lisp/solaris-os.c:
lisp/sunos-os.c:
o Add dummy implementation of os_init0.  These OSes don't (currently)
  need anything special.

lisp/os.h:
o Declare os_init0.

Revision 1.19 - (view) (annotate) - [select for diffs]
Sun Dec 26 16:04:43 2010 UTC (3 years, 3 months ago) by rswindells
Branch: MAIN
CVS Tags: snapshot-2011-01, snapshot-2011-02, snapshot-2011-03, snapshot-2011-04, snapshot-2011-06, snapshot-2011-07
Changes since 1.18: +17 -1 lines
Diff to previous 1.18
Add a test for whether the operating system supports use of the SSE2
registers. The test is a stub on everything except NetBSD for now.

Revision 1.18 - (view) (annotate) - [select for diffs]
Thu Dec 23 17:38:05 2010 UTC (3 years, 3 months ago) by rtoy
Branch: MAIN
Changes since 1.17: +7 -2 lines
Diff to previous 1.17
o Oops.  We want the xmm registers if index >= 8.
o Add some debugging prints.

Revision 1.17 - (view) (annotate) - [select for diffs]
Thu Dec 23 04:50:02 2010 UTC (3 years, 3 months ago) by rtoy
Branch: MAIN
Changes since 1.16: +21 -3 lines
Diff to previous 1.16
Fix os_sigcontext_fpu_reg to return the correct address for SSE2
registers.  This works.  We also try to get the correct data for the
x87 registers, but this is not tested.

Revision 1.16 - (view) (annotate) - [select for diffs]
Sun Jun 27 15:14:54 2010 UTC (3 years, 9 months ago) by rswindells
Branch: MAIN
CVS Tags: RELEASE_20b, cross-sol-x86-2010-12-20, cross-sol-x86-base, cross-sol-x86-merged, cross-sparc-branch-base, release-20b-pre1, release-20b-pre2, snapshot-2010-07, snapshot-2010-08, snapshot-2010-11, snapshot-2010-12, sparc-tramp-assem-2010-07-19, sparc-tramp-assem-base
Branch point for: RELEASE-20B-BRANCH, cross-sol-x86-branch, cross-sparc-branch, sparc-tramp-assem-branch
Changes since 1.15: +4 -4 lines
Diff to previous 1.15
Return address from os_sigcontext_fpu_reg(), make sigsegv_handler compile
when SIGSEGV_VERBOSE defined.

Revision 1.15 - (view) (annotate) - [select for diffs]
Mon Feb 1 16:04:43 2010 UTC (4 years, 2 months ago) by rtoy
Branch: MAIN
CVS Tags: intl-2-branch-base, intl-branch-2010-03-18-1300, intl-branch-base, intl-branch-working-2010-02-11-1000, intl-branch-working-2010-02-19-1000, post-merge-intl-branch, pre-merge-intl-branch, snapshot-2010-03, snapshot-2010-04, snapshot-2010-05, snapshot-2010-06
Branch point for: intl-2-branch, intl-branch
Changes since 1.14: +2 -2 lines
Diff to previous 1.14
Linux-os.c:
o Follow CMUCL coding style.
o Argv and envp are const char*.

os.h:
lisp.c:
Darwin-os.c:
FreeBSD-os.c:
NetBSD-os.c:
OpenBSD-os.c:
hpux-os.c:
irix-os.c:
mach-os.c:
osf1-os.c:
solaris-os.c:
sunos-os.c:
o argv and envp are const char *.

Revision 1.14 - (view) (annotate) - [select for diffs]
Mon Feb 1 15:16:09 2010 UTC (4 years, 2 months ago) by rtoy
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13
Patch from Stelian Ionescu on cmucl-imp, 2010/02/01:

    When run on a kernel compiled without COMPAT_BRK CMUCL segfaults,
    so I copied the kludge used by SBCL - check the current
    personality, and if necessary, enable ADDR_NO_RANDOMIZE and
    re-exec itself.

Linux-os.c:
o Check for personality and rexec if necessary.

os.h:
o New prototype for os_init needed because it needs argv and envp.

lisp.c:
Darwin-os.c:
FreeBSD-os.c:
NetBSD-os.c:
OpenBSD-os.c:
hpux-os.c:
irix-os.c:
mach-os.c:
osf1-os.c:
solaris-os.c:
sunos-os.c:
o Update call to os_init, which needs argv and envp now.

Revision 1.13 - (view) (annotate) - [select for diffs]
Fri Oct 16 13:38:02 2009 UTC (4 years, 6 months ago) by rswindells
Branch: MAIN
CVS Tags: amd64-dd-start, snapshot-2009-11, snapshot-2009-12, snapshot-2010-01, snapshot-2010-02
Branch point for: amd64-dd-branch
Changes since 1.12: +2 -2 lines
Diff to previous 1.12
Test fpu_mode instead of calling arch_support_sse2() to match
Linux and FreeBSD.

Revision 1.12 - (view) (annotate) - [select for diffs]
Sun Aug 30 19:17:55 2009 UTC (4 years, 7 months ago) by rswindells
Branch: MAIN
CVS Tags: unicode-string-buffer-base, unicode-string-buffer-impl-base
Branch point for: unicode-string-buffer-branch, unicode-string-buffer-impl-branch
Changes since 1.11: +125 -1 lines
Diff to previous 1.11
Add new FPU interface code.

Revision 1.8.4.1.2.2 - (view) (annotate) - [select for diffs]
Fri Dec 19 01:31:34 2008 UTC (5 years, 3 months ago) by rtoy
Branch: unicode-utf16-extfmt-branch
CVS Tags: unicode-snapshot-2009-05, unicode-snapshot-2009-06, unicode-utf16-extfmt-2009-03-27, unicode-utf16-extfmt-2009-06-11, unicode-utf16-extfmts-sync-2008-12
Changes since 1.8.4.1.2.1: +0 -2 lines
Diff to previous 1.8.4.1.2.1 , to branch point 1.8.4.1 , to next main 1.8.4.3
Merge changes from utf16 branch to update to snapshot 2008-12.

Revision 1.8.4.3 - (view) (annotate) - [select for diffs]
Thu Dec 18 21:50:19 2008 UTC (5 years, 3 months ago) by rtoy
Branch: unicode-utf16-branch
CVS Tags: unicode-utf16-char-support-2009-03-25, unicode-utf16-char-support-2009-03-26, unicode-utf16-sync-2008-12, unicode-utf16-sync-label-2009-03-16
Changes since 1.8.4.2: +0 -2 lines
Diff to previous 1.8.4.2 , to branch point 1.8 , to next main 1.20
Merge Snapshot 2008-12 to this branch.  Some tweaks needed in
boot-2008-05-cross-unicode-x86.lisp and the Config files.  FreeBSD and
Darwin/x86 untested, but Linux and Solaris build ok.

Revision 1.11 - (view) (annotate) - [select for diffs]
Sun Dec 7 02:33:55 2008 UTC (5 years, 4 months ago) by agoncharov
Branch: MAIN
CVS Tags: RELEASE_19f, RELEASE_20a, label-2009-03-16, label-2009-03-25, merge-with-19f, merged-unicode-utf16-extfmt-2009-06-11, portable-clx-base, portable-clx-import-2009-06-16, release-19f-base, release-19f-pre1, release-20a-base, release-20a-pre1, snapshot-2008-12, snapshot-2009-01, snapshot-2009-02, snapshot-2009-04, snapshot-2009-05, snapshot-2009-07, snapshot-2009-08
Branch point for: RELEASE-19F-BRANCH, RELEASE-20A-BRANCH, portable-clx-branch
Changes since 1.10: +1 -3 lines
Diff to previous 1.10
Instead of defining DPRINTF in every X-os.c file, do it once, in os.h

Revision 1.8.4.1.2.1 - (view) (annotate) - [select for diffs]
Sun Nov 2 13:30:03 2008 UTC (5 years, 5 months ago) by rtoy
Branch: unicode-utf16-extfmt-branch
Changes since 1.8.4.1: +2 -16 lines
Diff to previous 1.8.4.1
Sync to snapshot 2008-11.  But we didn't sync code/extfmts.lisp or
iso8859-1.lisp and utf-8.lisp.  (I don't think we want those changes,
yet.)

Revision 1.8.4.2 - (view) (annotate) - [select for diffs]
Sat Nov 1 22:40:36 2008 UTC (5 years, 5 months ago) by rtoy
Branch: unicode-utf16-branch
CVS Tags: unicode-utf16-sync-2008-11
Changes since 1.8.4.1: +2 -16 lines
Diff to previous 1.8.4.1 , to branch point 1.8
Sync to snapshot 2008-11.

Revision 1.10 - (view) (annotate) - [select for diffs]
Tue Sep 16 08:52:31 2008 UTC (5 years, 7 months ago) by cshapiro
Branch: MAIN
CVS Tags: merge-sse2-packed, snapshot-2008-10, snapshot-2008-11, sse2-base, sse2-checkpoint-2008-10-01, sse2-merge-with-2008-10, sse2-merge-with-2008-11, sse2-packed-2008-11-12, sse2-packed-base
Branch point for: sse2-branch, sse2-packed-branch
Changes since 1.9: +2 -16 lines
Diff to previous 1.9
Move the gencgc write barrier code into its own function.

Revision 1.8.4.1 - (view) (annotate) - [select for diffs]
Thu Jun 19 03:30:44 2008 UTC (5 years, 9 months ago) by rtoy
Branch: unicode-utf16-branch
CVS Tags: unicode-utf16-extfmts-pre-sync-2008-11, unicode-utf16-sync-2008-07, unicode-utf16-sync-2008-09
Branch point for: unicode-utf16-extfmt-branch
Changes since 1.8: +30 -24 lines
Diff to previous 1.8
Merge changes from HEAD to the unicode-utf16 branch.

Revision 1.9 - (view) (annotate) - [select for diffs]
Fri May 16 13:30:21 2008 UTC (5 years, 11 months ago) by rswindells
Branch: MAIN
CVS Tags: snapshot-2008-06, snapshot-2008-07, snapshot-2008-08, snapshot-2008-09
Changes since 1.8: +30 -24 lines
Diff to previous 1.8
Make it build again for NetBSD.

Revision 1.8 - (view) (annotate) - [select for diffs]
Fri Nov 16 06:31:54 2007 UTC (6 years, 5 months ago) by cshapiro
Branch: MAIN
CVS Tags: release-19e, release-19e-base, release-19e-pre1, release-19e-pre2, snapshot-2007-12, snapshot-2008-01, snapshot-2008-02, snapshot-2008-03, snapshot-2008-04, snapshot-2008-05, unicode-utf16-base, unicode-utf16-string-support
Branch point for: release-19e-branch, unicode-utf16-branch
Changes since 1.7: +1 -22 lines
Diff to previous 1.7
Directly specify the SA_SIGINFO signal option.  Remove USE_SA_SIGINFO
all of its remaining references.

Revision 1.7 - (view) (annotate) - [select for diffs]
Mon Jul 30 07:24:46 2007 UTC (6 years, 8 months ago) by cshapiro
Branch: MAIN
CVS Tags: pre-telent-clx, snapshot-2007-08, snapshot-2007-09, snapshot-2007-10, snapshot-2007-11
Changes since 1.6: +1 -2 lines
Diff to previous 1.6
Remove the attempted include of a local signal.h header.  Replace this
quoted include with an include of the system signal.h where needed.

Revision 1.6 - (view) (annotate) - [select for diffs]
Sun Jul 15 21:33:14 2007 UTC (6 years, 9 months ago) by cshapiro
Branch: MAIN
Changes since 1.5: +1 -14 lines
Diff to previous 1.5
Remove unused context saving and setting functions.

Revision 1.5 - (view) (annotate) - [select for diffs]
Tue Jun 12 03:21:46 2007 UTC (6 years, 10 months ago) by cshapiro
Branch: MAIN
CVS Tags: snapshot-2007-07
Changes since 1.4: +2 -4 lines
Diff to previous 1.4
Remove no-op compatibility macros.

Revision 1.4 - (view) (annotate) - [select for diffs]
Tue Nov 7 11:24:12 2006 UTC (7 years, 5 months ago) by cshapiro
Branch: MAIN
CVS Tags: snapshot-2006-12, snapshot-2007-01, snapshot-2007-02, snapshot-2007-03, snapshot-2007-04, snapshot-2007-05, snapshot-2007-06
Changes since 1.3: +19 -19 lines
Diff to previous 1.3
Make SC_REG expand out to an lvalue on the x86 and AMD64.  Define a
reg_NARGS macro on these targets and use SC_REG to replace open-coded
assignments to platform specific sigcontext members in interrupt.c and
os-common.c.  This code could be simplified further by merging the x86
and AMD64 cases into the general case.

Revision 1.2.2.1 - (view) (annotate) - [select for diffs]
Mon Dec 19 01:10:11 2005 UTC (8 years, 4 months ago) by rtoy
Branch: ppc_gencgc_branch
CVS Tags: ppc_gencgc_snap_2005-12-17, ppc_gencgc_snap_2006-01-06
Changes since 1.2: +180 -162 lines
Diff to previous 1.2 , to next main 1.20
Merge code from main branch of 2005-12-17 to ppc gencgc branch.  Still
doesn't work of course.

Revision 1.3 - (view) (annotate) - [select for diffs]
Thu Sep 15 18:26:50 2005 UTC (8 years, 7 months ago) by rtoy
Branch: MAIN
CVS Tags: double-double-array-base, double-double-array-checkpoint, double-double-base, double-double-init-%make-sparc, double-double-init-checkpoint-1, double-double-init-ppc, double-double-init-sparc, double-double-init-sparc-2, double-double-init-x86, double-double-irrat-end, double-double-irrat-start, double-double-reader-base, double-double-reader-checkpoint-1, double-double-sparc-checkpoint-1, release-19c, release-19c-base, release-19c-pre1, release-19d, release-19d-base, release-19d-pre1, release-19d-pre2, snapshot-2005-10, snapshot-2005-11, snapshot-2005-12, snapshot-2006-01, snapshot-2006-02, snapshot-2006-03, snapshot-2006-04, snapshot-2006-05, snapshot-2006-06, snapshot-2006-07, snapshot-2006-08, snapshot-2006-09, snapshot-2006-10, snapshot-2006-11
Branch point for: double-double-array-branch, double-double-branch, double-double-reader-branch, release-19c-branch, release-19d-branch
Changes since 1.2: +180 -162 lines
Diff to previous 1.2
Indent all source files using GNU indent using the config in
.indent.pro.

Revision 1.2 - (view) (annotate) - [select for diffs]
Wed Jul 7 15:03:11 2004 UTC (9 years, 9 months ago) by rtoy
Branch: MAIN
CVS Tags: ppc_gencgc_snap_2005-05-14, prm-before-macosx-merge-tag, release-19b-base, release-19b-pre1, release-19b-pre2, snapshot-2004-08, snapshot-2004-09, snapshot-2004-10, snapshot-2004-11, snapshot-2004-12, snapshot-2005-01, snapshot-2005-02, snapshot-2005-03, snapshot-2005-04, snapshot-2005-05, snapshot-2005-06, snapshot-2005-07, snapshot-2005-08, snapshot-2005-09
Branch point for: ppc_gencgc_branch, release-19b-branch
Changes since 1.1: +71 -16 lines
Diff to previous 1.1
Changes from Robert Swindells to support NetBSD.

Revision 1.1 - (view) (annotate) - [select for diffs]
Mon Jan 28 20:19:39 2002 UTC (12 years, 2 months ago) by pmai
Branch: MAIN
CVS Tags: LINKAGE_TABLE, PRE_LINKAGE_TABLE, UNICODE-BASE, amd64-merge-start, cold-pcl-base, dynamic-extent-base, lisp-executable-base, mod-arith-base, release-18e, release-18e-base, release-18e-pre1, release-18e-pre2, release-19a, release-19a-base, release-19a-pre1, release-19a-pre2, release-19a-pre3, remove_negative_zero_not_zero, snapshot-2003-10, snapshot-2003-11, snapshot-2003-12, snapshot-2004-04, snapshot-2004-05, snapshot-2004-06, snapshot-2004-07, sparc_gencgc, sparc_gencgc_merge
Branch point for: UNICODE-BRANCH, cold-pcl, dynamic-extent, lisp-executable, mod-arith-branch, release-18e-branch, release-19a-branch, sparc_gencgc_branch
Added specialised port to NetBSD (1.5.2) on x86.  Since the code-base
was already cleaned up with the OpenBSD port, this doesn't require
massive changes.

Since current NetBSD is ELF-based by default, we don't make use of the
ELF feature, or in other words:  The presence of the NetBSD feature
implies ELF, since there is no support for non-ELF NetBSD.

The page-protection feature of the generational GC had to be turned
off, because currently NetBSD 1.5.2 doesn't provide access to the
faulting memory address in SIGSEGV signal-handlers on the x86
platform.

The memory is validated/mmapped in 64MB chunks in os-validate, in
order to circumvent a restriction on NetBSD, that prevented me from
mmapping 128MB or more apiece.  It has been pointed out to me that
this may be caused by the default ulimit on data segment sizes, which
seems kind of strange, but might be true.  In any case the current
approach works OK, and doesn't require root interaction, so is
probably the better approach.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.5