Module Name:    src
Committed By:   maxv
Date:           Sat Jan 20 14:39:21 UTC 2018

Modified Files:
        src/sys/arch/amd64/include: frameasm.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/amd64/include/frameasm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/amd64/include/frameasm.h
diff -u src/sys/arch/amd64/include/frameasm.h:1.29 src/sys/arch/amd64/include/frameasm.h:1.30
--- src/sys/arch/amd64/include/frameasm.h:1.29	Thu Jan 18 07:25:34 2018
+++ src/sys/arch/amd64/include/frameasm.h	Sat Jan 20 14:39:21 2018
@@ -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)		; \

Reply via email to