Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libkern/arch Align explicitly to make kernels compil...



details:   https://anonhg.NetBSD.org/src/rev/7e84d275bbdd
branches:  trunk
changeset: 794188:7e84d275bbdd
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Fri Mar 07 20:23:09 2014 +0000

description:
Align explicitly to make kernels compiled by clang generate
properly aligned code.

diffstat:

 sys/lib/libkern/arch/sparc/random.S   |  3 ++-
 sys/lib/libkern/arch/sparc64/random.S |  3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r e4062af8f25e -r 7e84d275bbdd sys/lib/libkern/arch/sparc/random.S
--- a/sys/lib/libkern/arch/sparc/random.S       Fri Mar 07 18:37:48 2014 +0000
+++ b/sys/lib/libkern/arch/sparc/random.S       Fri Mar 07 20:23:09 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: random.S,v 1.4 2013/09/12 15:36:17 joerg Exp $ */
+/*     $NetBSD: random.S,v 1.5 2014/03/07 20:23:09 nakayama Exp $      */
 
 /*
  * Copyright (c) 1990,1993 The Regents of the University of California.
@@ -43,6 +43,7 @@
 #include <machine/asm.h>
 
        .data
+       .align  4
 randseed:
        .long   1
 
diff -r e4062af8f25e -r 7e84d275bbdd sys/lib/libkern/arch/sparc64/random.S
--- a/sys/lib/libkern/arch/sparc64/random.S     Fri Mar 07 18:37:48 2014 +0000
+++ b/sys/lib/libkern/arch/sparc64/random.S     Fri Mar 07 20:23:09 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: random.S,v 1.4 2013/09/12 15:36:17 joerg Exp $ */
+/*     $NetBSD: random.S,v 1.5 2014/03/07 20:23:09 nakayama Exp $      */
 
 /*
  * Copyright (c) 1990,1993 The Regents of the University of California.
@@ -43,6 +43,7 @@
 #include <machine/asm.h>
 
        .data
+       .align  4
 randseed:
        .long   1
 



Home | Main Index | Thread Index | Old Index