CVS commit: src/lib/csu/arch/alpha
Module Name:src Committed By: christos Date: Sat Jan 14 15:50:24 UTC 2017 Modified Files: src/lib/csu/arch/alpha: crtbegin.h Log Message: remove useless include; asm.h is not useful for c files. our current assumption is that stuff in cdefs.h is duplicated in asm.h. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/csu/arch/alpha/crtbegin.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/csu/arch/alpha/crtbegin.h diff -u src/lib/csu/arch/alpha/crtbegin.h:1.1 src/lib/csu/arch/alpha/crtbegin.h:1.2 --- src/lib/csu/arch/alpha/crtbegin.h:1.1 Thu Jul 11 12:40:27 2013 +++ src/lib/csu/arch/alpha/crtbegin.h Sat Jan 14 10:50:24 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: crtbegin.h,v 1.1 2013/07/11 16:40:27 matt Exp $ */ +/* $NetBSD: crtbegin.h,v 1.2 2017/01/14 15:50:24 christos Exp $ */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. * All rights reserved. @@ -29,7 +29,6 @@ */ #include -#include /* Assume we need to reload our GP. */ __asm( ".pushsection .init"
CVS commit: src/lib/csu/arch/alpha
Module Name:src Committed By: christos Date: Sat Jan 14 15:50:24 UTC 2017 Modified Files: src/lib/csu/arch/alpha: crtbegin.h Log Message: remove useless include; asm.h is not useful for c files. our current assumption is that stuff in cdefs.h is duplicated in asm.h. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/csu/arch/alpha/crtbegin.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/csu/arch/alpha
Module Name:src Committed By: christos Date: Sun Jan 24 16:27:38 UTC 2016 Modified Files: src/lib/csu/arch/alpha: Makefile.inc Log Message: Alpha needs _KERNTYPES To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/csu/arch/alpha/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/csu/arch/alpha/Makefile.inc diff -u src/lib/csu/arch/alpha/Makefile.inc:1.1 src/lib/csu/arch/alpha/Makefile.inc:1.2 --- src/lib/csu/arch/alpha/Makefile.inc:1.1 Thu Jul 11 12:40:27 2013 +++ src/lib/csu/arch/alpha/Makefile.inc Sun Jan 24 11:27:38 2016 @@ -1,3 +1,3 @@ -# $NetBSD: Makefile.inc,v 1.1 2013/07/11 16:40:27 matt Exp $ +# $NetBSD: Makefile.inc,v 1.2 2016/01/24 16:27:38 christos Exp $ -CPPFLAGS+= -I${ARCHDIR} -DELFSIZE=64 +CPPFLAGS+= -I${ARCHDIR} -DELFSIZE=64 -D_KERNTYPES
CVS commit: src/lib/csu/arch/alpha
Module Name:src Committed By: christos Date: Sun Jan 24 16:27:38 UTC 2016 Modified Files: src/lib/csu/arch/alpha: Makefile.inc Log Message: Alpha needs _KERNTYPES To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/csu/arch/alpha/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/csu/arch/alpha
Module Name:src Committed By: christos Date: Sun Jan 24 16:47:32 UTC 2016 Modified Files: src/lib/csu/arch/alpha: Makefile.inc Log Message: Undo previous; the lossage is more basic. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/lib/csu/arch/alpha/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/csu/arch/alpha/Makefile.inc diff -u src/lib/csu/arch/alpha/Makefile.inc:1.2 src/lib/csu/arch/alpha/Makefile.inc:1.3 --- src/lib/csu/arch/alpha/Makefile.inc:1.2 Sun Jan 24 11:27:38 2016 +++ src/lib/csu/arch/alpha/Makefile.inc Sun Jan 24 11:47:32 2016 @@ -1,3 +1,3 @@ -# $NetBSD: Makefile.inc,v 1.2 2016/01/24 16:27:38 christos Exp $ +# $NetBSD: Makefile.inc,v 1.3 2016/01/24 16:47:32 christos Exp $ -CPPFLAGS+= -I${ARCHDIR} -DELFSIZE=64 -D_KERNTYPES +CPPFLAGS+= -I${ARCHDIR} -DELFSIZE=64
CVS commit: src/lib/csu/arch/alpha
Module Name:src Committed By: christos Date: Sun Jan 24 16:47:32 UTC 2016 Modified Files: src/lib/csu/arch/alpha: Makefile.inc Log Message: Undo previous; the lossage is more basic. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/lib/csu/arch/alpha/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/csu/arch/alpha
Module Name:src Committed By: matt Date: Thu Jul 11 16:40:28 UTC 2013 Added Files: src/lib/csu/arch/alpha: Makefile.inc crt0.S crtbegin.h crtend.S crti.S crtn.S Log Message: Add crtstuff for alpha. Compile tested only. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/lib/csu/arch/alpha/Makefile.inc \ src/lib/csu/arch/alpha/crt0.S src/lib/csu/arch/alpha/crtbegin.h \ src/lib/csu/arch/alpha/crtend.S src/lib/csu/arch/alpha/crti.S \ src/lib/csu/arch/alpha/crtn.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Added files: Index: src/lib/csu/arch/alpha/Makefile.inc diff -u /dev/null src/lib/csu/arch/alpha/Makefile.inc:1.1 --- /dev/null Thu Jul 11 16:40:28 2013 +++ src/lib/csu/arch/alpha/Makefile.inc Thu Jul 11 16:40:27 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.1 2013/07/11 16:40:27 matt Exp $ + +CPPFLAGS+= -I${ARCHDIR} -DELFSIZE=64 Index: src/lib/csu/arch/alpha/crt0.S diff -u /dev/null src/lib/csu/arch/alpha/crt0.S:1.1 --- /dev/null Thu Jul 11 16:40:28 2013 +++ src/lib/csu/arch/alpha/crt0.S Thu Jul 11 16:40:27 2013 @@ -0,0 +1,54 @@ +/* $NetBSD: crt0.S,v 1.1 2013/07/11 16:40:27 matt Exp $ */ + +/*- + * Copyright (c) 2013 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Matt Thomas of 3am Software Foundry. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include alpha/asm.h + +RCSID($NetBSD: crt0.S,v 1.1 2013/07/11 16:40:27 matt Exp $) + +STRONG_ALIAS(_start,__start) + +/* + * Assumes kernel (or ld_elf.so) passes the following parameters to + * user-space in registers: + * + * a0 stack pointer + * a1 cleanup + * a2 Obj_Entry + * a3 ps_strings + */ + +LEAF(__start, 4) + LDGP(pv) + mov a1, a0 /* cleanup */ + mov a2, a1 /* Obj_Entry */ + mov a3, a2 /* ps_strings */ + CALL(___start) +END(__start) Index: src/lib/csu/arch/alpha/crtbegin.h diff -u /dev/null src/lib/csu/arch/alpha/crtbegin.h:1.1 --- /dev/null Thu Jul 11 16:40:28 2013 +++ src/lib/csu/arch/alpha/crtbegin.h Thu Jul 11 16:40:27 2013 @@ -0,0 +1,50 @@ +/* $NetBSD: crtbegin.h,v 1.1 2013/07/11 16:40:27 matt Exp $ */ +/*- + * Copyright (c) 2013 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Matt Thomas of 3am Software Foundry. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE
CVS commit: src/lib/csu/arch/alpha
Module Name:src Committed By: matt Date: Thu Jul 11 16:40:28 UTC 2013 Added Files: src/lib/csu/arch/alpha: Makefile.inc crt0.S crtbegin.h crtend.S crti.S crtn.S Log Message: Add crtstuff for alpha. Compile tested only. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/lib/csu/arch/alpha/Makefile.inc \ src/lib/csu/arch/alpha/crt0.S src/lib/csu/arch/alpha/crtbegin.h \ src/lib/csu/arch/alpha/crtend.S src/lib/csu/arch/alpha/crti.S \ src/lib/csu/arch/alpha/crtn.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.