Module Name: src Committed By: uwe Date: Sat Jan 28 12:21:14 UTC 2012
Modified Files: src/lib/csu/arch/sh3: crt0.S Log Message: Asm cosmetic. Add a comment that explains what this trampoline does. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/csu/arch/sh3/crt0.S 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/sh3/crt0.S diff -u src/lib/csu/arch/sh3/crt0.S:1.1 src/lib/csu/arch/sh3/crt0.S:1.2 --- src/lib/csu/arch/sh3/crt0.S:1.1 Sat Aug 7 18:01:34 2010 +++ src/lib/csu/arch/sh3/crt0.S Sat Jan 28 12:21:13 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: crt0.S,v 1.1 2010/08/07 18:01:34 joerg Exp $ */ +/* $NetBSD: crt0.S,v 1.2 2012/01/28 12:21:13 uwe Exp $ */ /* * Copyright (c) 1998 Christos Zoulas @@ -37,11 +37,17 @@ #include <machine/asm.h> -RCSID("$NetBSD: crt0.S,v 1.1 2010/08/07 18:01:34 joerg Exp $") +RCSID("$NetBSD: crt0.S,v 1.2 2012/01/28 12:21:13 uwe Exp $") STRONG_ALIAS(_start,__start) +/* + * Kernel setregs() passes all arguments in registers to avoid + * copyout. This trampoline pushes 5th and 6th arguments into stack, + * where C ABI expects them to be, and calls the real startup code + * written in C. + */ _ENTRY(__start) - mov.l r9,@-r15 - bra ___start - mov.l r8,@-r15 + mov.l r9, @-sp + bra ___start + mov.l r8, @-sp