Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/include Use .pushsection/.popsection, we will...



details:   https://anonhg.NetBSD.org/src/rev/551ff08a4935
branches:  trunk
changeset: 829166:551ff08a4935
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Jan 20 14:39:21 2018 +0000

description:
Use .pushsection/.popsection, we will soon embed macros in several layers
of nested sections.

diffstat:

 sys/arch/amd64/include/frameasm.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r bfede52594bb -r 551ff08a4935 sys/arch/amd64/include/frameasm.h
--- a/sys/arch/amd64/include/frameasm.h Sat Jan 20 14:27:14 2018 +0000
+++ b/sys/arch/amd64/include/frameasm.h Sat Jan 20 14:39:21 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: frameasm.h,v 1.29 2018/01/18 07:25:34 maxv Exp $       */
+/*     $NetBSD: frameasm.h,v 1.30 2018/01/20 14:39:21 maxv Exp $       */
 
 #ifndef _AMD64_MACHINE_FRAMEASM_H
 #define _AMD64_MACHINE_FRAMEASM_H
@@ -43,11 +43,11 @@
 
 #define HOTPATCH(name, size) \
 123:                                           ; \
-       .section        .rodata.hotpatch, "a"   ; \
+       .pushsection    .rodata.hotpatch, "a"   ; \
        .byte           name                    ; \
        .byte           size                    ; \
        .quad           123b                    ; \
-       .previous
+       .popsection
 
 #define SMAP_ENABLE \
        HOTPATCH(HP_NAME_CLAC, 3)               ; \



Home | Main Index | Thread Index | Old Index