Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 Use END() to set ELF symbol size. Set ...



details:   https://anonhg.NetBSD.org/src/rev/f05851505b7c
branches:  trunk
changeset: 787531:f05851505b7c
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Sat Jun 22 06:23:28 2013 +0000

description:
Use END() to set ELF symbol size.  Set local data type/size too.

diffstat:

 sys/arch/amd64/amd64/lock_stubs.S |  18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diffs (114 lines):

diff -r 780df75773bb -r f05851505b7c sys/arch/amd64/amd64/lock_stubs.S
--- a/sys/arch/amd64/amd64/lock_stubs.S Sat Jun 22 05:56:32 2013 +0000
+++ b/sys/arch/amd64/amd64/lock_stubs.S Sat Jun 22 06:23:28 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock_stubs.S,v 1.24 2011/01/12 23:12:11 joerg Exp $    */
+/*     $NetBSD: lock_stubs.S,v 1.25 2013/06/22 06:23:28 uebayasi Exp $ */
 
 /*-
  * Copyright (c) 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -68,6 +68,7 @@
        RET(1)
 1:
        jmp     _C_LABEL(mutex_vector_enter)
+END(mutex_enter)
 
 /*
  * void mutex_exit(kmutex_t *mtx);
@@ -86,6 +87,7 @@
        ret
 1:
        jmp     _C_LABEL(mutex_vector_exit)
+END(mutex_exit)
 
 /*
  * void mutex_spin_enter(kmutex_t *mtx);
@@ -110,6 +112,7 @@
        RET(2)
 1:
        jmp     _C_LABEL(mutex_spin_retry)      /* failed; hard case */
+END(mutex_spin_enter)
 
 /*
  * void mutex_spin_exit(kmutex_t *mtx);
@@ -167,6 +170,8 @@
 
 #endif /* DIAGNOSTIC */
 
+END(mutex_spin_exit)
+
 /*
  * void        rw_enter(krwlock_t *rwl, krw_t op);
  *
@@ -203,6 +208,7 @@
        RET(4)
 3:
        jmp     _C_LABEL(rw_vector_enter)
+END(rw_enter)
 
 /*
  * void        rw_exit(krwlock_t *rwl);
@@ -241,6 +247,7 @@
        ret
 
 3:     jmp     _C_LABEL(rw_vector_exit)
+END(rw_exit)
 
 /*
  * int rw_tryenter(krwlock_t *rwl, krw_t op);
@@ -283,6 +290,7 @@
 4:
        xorl    %eax, %eax
        jmp     3b
+END(rw_tryenter)
 
 #endif /* LOCKDEBUG */
 
@@ -292,6 +300,7 @@
 ENTRY(__cpu_simple_lock_init)
        movb    $0, (%rdi)
        ret
+END(__cpu_simple_lock_init)
 
 NENTRY(__cpu_simple_lock)
        movl    $0x0100, %eax
@@ -308,10 +317,12 @@
        cmpb    $0, (%rdi)
        je      1b
        jmp     2b
+END(__cpu_simple_lock)
 
 ENTRY(__cpu_simple_unlock)
        movb    $0, (%rdi)
        ret
+END(__cpu_simple_unlock)
 
 ENTRY(__cpu_simple_lock_try)
        movl    $0x0100, %eax
@@ -320,21 +331,26 @@
        movl    $0, %eax
        setz    %al
        RET(8)
+END(__cpu_simple_lock_try)
 
 /*
  * Patchpoints to replace with NOP when ncpu == 1.
  */
 #ifndef LOCKDEBUG
+       .type   _C_LABEL(x86_lockpatch), @object
 LABEL(x86_lockpatch)
        .quad   .Lpatch1, .Lpatch2, .Lpatch3, .Lpatch4
        .quad   .Lpatch5, .Lpatch6, .Lpatch7, .Lpatch8
        .quad   .Lpatch9
        .quad   0
+END(x86_lockpatch)
 #endif
 
+       .type   _C_LABEL(x86_retpatch), @object
 LABEL(x86_retpatch)
 #ifndef LOCKDEBUG
        .quad   .Lret1, .Lret2, .Lret3, .Lret4, .Lret5, .Lret6
 #endif
        .quad   .Lret7, .Lret8
        .quad   0
+END(x86_retpatch)



Home | Main Index | Thread Index | Old Index