Add a comment that explains what this code does.

This commit is contained in:
uwe 2012-01-28 12:44:19 +00:00
parent b4ccb4c5f9
commit 002cc93ef2
2 changed files with 16 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: crti.S,v 1.1 2010/08/07 18:01:34 joerg Exp $ */
/* $NetBSD: crti.S,v 1.2 2012/01/28 12:44:19 uwe Exp $ */
/*-
* Copyright (c) 2001 Ross Harvey
@ -35,10 +35,16 @@
#include <machine/asm.h>
RCSID("$NetBSD: crti.S,v 1.1 2010/08/07 18:01:34 joerg Exp $")
RCSID("$NetBSD: crti.S,v 1.2 2012/01/28 12:44:19 uwe Exp $")
#include "sysident.S"
/*
* Provide function prologues for the code in .init and .fini sections.
* Corresponding epilogues are in crtn.S
*/
.section ".init", "ax", @progbits
.align 4
.globl _init

View File

@ -1,4 +1,4 @@
/* $NetBSD: crtn.S,v 1.1 2010/08/07 18:01:34 joerg Exp $ */
/* $NetBSD: crtn.S,v 1.2 2012/01/28 12:45:43 uwe Exp $ */
/*-
* Copyright (c) 2001 Ross Harvey
@ -35,7 +35,13 @@
#include <machine/asm.h>
RCSID("$NetBSD: crtn.S,v 1.1 2010/08/07 18:01:34 joerg Exp $")
RCSID("$NetBSD: crtn.S,v 1.2 2012/01/28 12:45:43 uwe Exp $")
/*
* Provide function epilogues for the code in .init and .fini sections.
* Corresponding prologues are in crti.S
*/
.section ".init", "ax", @progbits
mov r14, sp