summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorKenji Aoyama <aoyama@cvs.openbsd.org>2020-11-07 02:52:09 +0000
committerKenji Aoyama <aoyama@cvs.openbsd.org>2020-11-07 02:52:09 +0000
commit372fbe81c09ab874a550e595f19e4ae615d05955 (patch)
tree913be81157075052a45eb15bbc328adce2f00410 /lib/libc
parent358a95d7ee183bc00dc40eb85509c86225911267 (diff)
Actually m88k assembler can not handle 'nop' mnemonic, use a macro instead.
ok deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/m88k/sys/tfork_thread.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/arch/m88k/sys/tfork_thread.S b/lib/libc/arch/m88k/sys/tfork_thread.S
index 2ffdb89fe11..e8ba8289291 100644
--- a/lib/libc/arch/m88k/sys/tfork_thread.S
+++ b/lib/libc/arch/m88k/sys/tfork_thread.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: tfork_thread.S,v 1.6 2020/10/18 14:28:18 deraadt Exp $ */
+/* $OpenBSD: tfork_thread.S,v 1.7 2020/11/07 02:52:08 aoyama Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat
@@ -27,6 +27,8 @@
#include "SYS.h"
+#define NOP or %r0, %r0, %r0
+
/*
* int __tfork_thread(const struct __tfork *param, size_t psize, void (*func)(void *), void *arg);
*/
@@ -51,6 +53,6 @@ ENTRY(__tfork_thread)
or %r13, %r0, __SYSCALLNAME(SYS_,__threxit)
tb0 0, %r0, 450
- nop
+ NOP
tb0 0, %r0, 130 /* breakpoint */
END(__tfork_thread)