Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/atomic Use __section(".test.startup") for th...
details: https://anonhg.NetBSD.org/src/rev/7563cd09b78d
branches: trunk
changeset: 789507:7563cd09b78d
user: matt <matt%NetBSD.org@localhost>
date: Wed Aug 21 03:00:56 2013 +0000
description:
Use __section(".test.startup") for the init routines
diffstat:
common/lib/libc/atomic/atomic_init_cas.c | 6 +++---
common/lib/libc/atomic/atomic_init_testset.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (50 lines):
diff -r 6ad6dd619643 -r 7563cd09b78d common/lib/libc/atomic/atomic_init_cas.c
--- a/common/lib/libc/atomic/atomic_init_cas.c Tue Aug 20 23:19:28 2013 +0000
+++ b/common/lib/libc/atomic/atomic_init_cas.c Wed Aug 21 03:00:56 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_init_cas.c,v 1.3 2008/04/28 20:22:53 martin Exp $ */
+/* $NetBSD: atomic_init_cas.c,v 1.4 2013/08/21 03:00:56 matt Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -32,11 +32,11 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: atomic_init_cas.c,v 1.3 2008/04/28 20:22:53 martin Exp $");
+__RCSID("$NetBSD: atomic_init_cas.c,v 1.4 2013/08/21 03:00:56 matt Exp $");
void __libc_atomic_init(void) __attribute__ ((visibility("hidden")));
-void
+void __section(".text.startup")
__libc_atomic_init(void)
{
diff -r 6ad6dd619643 -r 7563cd09b78d common/lib/libc/atomic/atomic_init_testset.c
--- a/common/lib/libc/atomic/atomic_init_testset.c Tue Aug 20 23:19:28 2013 +0000
+++ b/common/lib/libc/atomic/atomic_init_testset.c Wed Aug 21 03:00:56 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_init_testset.c,v 1.8 2012/02/28 20:41:19 joerg Exp $ */
+/* $NetBSD: atomic_init_testset.c,v 1.9 2013/08/21 03:00:56 matt Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: atomic_init_testset.c,v 1.8 2012/02/28 20:41:19 joerg Exp $");
+__RCSID("$NetBSD: atomic_init_testset.c,v 1.9 2013/08/21 03:00:56 matt Exp $");
#include "atomic_op_namespace.h"
@@ -109,7 +109,7 @@
return (*_atomic_cas_fn)(ptr, old, new);
}
-void
+void __section(".text.startup")
__libc_atomic_init(void)
{
int ncpu, mib[2];
Home |
Main Index |
Thread Index |
Old Index