summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>2000-07-25 15:14:45 +0000
committermycroft <mycroft@NetBSD.org>2000-07-25 15:14:45 +0000
commitfb41c8728ceac03b1e83e2f9ab448ec6da660cba (patch)
tree13c4679fec9b0c9919661f1d22ccb488f6c87d99
parent27d41a1de392313a0fb4c83022b26cc7f07f146c (diff)
Use cpp comment style.
-rw-r--r--lib/libc/arch/sparc64/sys/Ovfork.S8
-rw-r--r--lib/libc/arch/sparc64/sys/__vfork14.S8
-rw-r--r--lib/libc/arch/sparc64/sys/brk.S26
-rw-r--r--lib/libc/arch/sparc64/sys/fork.S8
-rw-r--r--lib/libc/arch/sparc64/sys/pipe.S12
-rw-r--r--lib/libc/arch/sparc64/sys/sbrk.S32
-rw-r--r--lib/libc/arch/sparc64/sys/sigpending.S14
-rw-r--r--lib/libc/arch/sparc64/sys/sigprocmask.S24
-rw-r--r--lib/libc/arch/sparc64/sys/sigsuspend.S8
9 files changed, 71 insertions, 69 deletions
diff --git a/lib/libc/arch/sparc64/sys/Ovfork.S b/lib/libc/arch/sparc64/sys/Ovfork.S
index 4ab2103787d..f3b5f5ccb16 100644
--- a/lib/libc/arch/sparc64/sys/Ovfork.S
+++ b/lib/libc/arch/sparc64/sys/Ovfork.S
@@ -1,4 +1,4 @@
-/* $NetBSD: Ovfork.S,v 1.2 1998/12/02 19:29:57 thorpej Exp $ */
+/* $NetBSD: Ovfork.S,v 1.3 2000/07/25 15:14:45 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -44,7 +44,7 @@
#if 0
.asciz "@(#)Ovfork.s 8.1 (Berkeley) 6/4/93"
#else
- RCSID("$NetBSD: Ovfork.S,v 1.2 1998/12/02 19:29:57 thorpej Exp $")
+ RCSID("$NetBSD: Ovfork.S,v 1.3 2000/07/25 15:14:45 mycroft Exp $")
#endif
#endif /* SYSLIBC_SCCS and not lint */
@@ -61,6 +61,6 @@ WARN_REFERENCES(vfork, \
"warning: reference to compatibility vfork(); include <unistd.h> for correct reference")
SYSCALL(vfork)
- dec %o1 ! from 1 to 0 in child, 0 to -1 in parent
+ dec %o1 /* from 1 to 0 in child, 0 to -1 in parent */
retl
- and %o0, %o1, %o0 ! return 0 in child, pid in parent
+ and %o0, %o1, %o0 /* return 0 in child, pid in parent */
diff --git a/lib/libc/arch/sparc64/sys/__vfork14.S b/lib/libc/arch/sparc64/sys/__vfork14.S
index bf42244840a..43214a7c4d9 100644
--- a/lib/libc/arch/sparc64/sys/__vfork14.S
+++ b/lib/libc/arch/sparc64/sys/__vfork14.S
@@ -1,4 +1,4 @@
-/* $NetBSD: __vfork14.S,v 1.1 1998/09/11 04:56:33 eeh Exp $ */
+/* $NetBSD: __vfork14.S,v 1.2 2000/07/25 15:14:45 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -44,7 +44,7 @@
#if 0
.asciz "@(#)Ovfork.s 8.1 (Berkeley) 6/4/93"
#else
- RCSID("$NetBSD: __vfork14.S,v 1.1 1998/09/11 04:56:33 eeh Exp $")
+ RCSID("$NetBSD: __vfork14.S,v 1.2 2000/07/25 15:14:45 mycroft Exp $")
#endif
#endif /* SYSLIBC_SCCS and not lint */
@@ -58,6 +58,6 @@
#include "SYS.h"
SYSCALL(__vfork14)
- dec %o1 ! from 1 to 0 in child, 0 to -1 in parent
+ dec %o1 /* from 1 to 0 in child, 0 to -1 in parent */
retl
- and %o0, %o1, %o0 ! return 0 in child, pid in parent
+ and %o0, %o1, %o0 /* return 0 in child, pid in parent */
diff --git a/lib/libc/arch/sparc64/sys/brk.S b/lib/libc/arch/sparc64/sys/brk.S
index 82c462fcadd..85597a8ed10 100644
--- a/lib/libc/arch/sparc64/sys/brk.S
+++ b/lib/libc/arch/sparc64/sys/brk.S
@@ -1,4 +1,4 @@
-/* $NetBSD: brk.S,v 1.7 2000/07/21 03:14:15 eeh Exp $ */
+/* $NetBSD: brk.S,v 1.8 2000/07/25 15:14:45 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -44,7 +44,7 @@
#if 0
.asciz "@(#)brk.s 8.1 (Berkeley) 6/4/93"
#else
- RCSID("$NetBSD: brk.S,v 1.7 2000/07/21 03:14:15 eeh Exp $")
+ RCSID("$NetBSD: brk.S,v 1.8 2000/07/25 15:14:45 mycroft Exp $")
#endif
#endif /* SYSLIBC_SCCS and not lint */
@@ -61,7 +61,7 @@ WEAK_ALIAS(brk, _brk)
.data
.align 8
_C_LABEL(__minbrk):
- .xword _C_LABEL(_end) ! lower brk limit; also for gmon code
+ .xword _C_LABEL(_end) /* lower brk limit; also for gmon code */
.text
ENTRY(_brk)
@@ -69,10 +69,10 @@ ENTRY(_brk)
PIC_PROLOGUE(%o5,%o4)
set _C_LABEL(__minbrk), %o4
ldx [%o5 + %o4], %o4
- ldx [%o4], %o1 ! %o1 = minbrk
- cmp %o1, %o0 ! if (minbrk > %o0)
- movg %xcc, %o1, %o0 ! %o0 = minbrk
- mov %o0, %o2 ! save argument to syscall
+ ldx [%o4], %o1 /* %o1 = minbrk */
+ cmp %o1, %o0 /* if (minbrk > %o0) */
+ movg %xcc, %o1, %o0 /* %o0 = minbrk */
+ mov %o0, %o2 /* save argument to syscall */
mov SYS_break, %g1
t ST_SYSCALL
set _C_LABEL(__curbrk), %o3
@@ -80,20 +80,20 @@ ENTRY(_brk)
ldx [%o5 + %o3], %o4
ERROR()
1:
- retl ! success, return 0 & record new break
+ retl /* success, return 0 & record new break */
st %o2, [%o4]
#else
- sethi %hi(_C_LABEL(__minbrk)), %o1 ! %o1 = minbrk
+ sethi %hi(_C_LABEL(__minbrk)), %o1 /* %o1 = minbrk */
ldx [%o1 + %lo(_C_LABEL(__minbrk))], %o1
- cmp %o1, %o0 ! if (minbrk > %o0)
- movg %xcc, %o1, %o0 ! %o0 = minbrk
- mov %o0, %o2 ! save argument to syscall
+ cmp %o1, %o0 /* if (minbrk > %o0) */
+ movg %xcc, %o1, %o0 /* %o0 = minbrk */
+ mov %o0, %o2 /* save argument to syscall */
mov SYS_break, %g1
t ST_SYSCALL
bcc,a,pt %icc,1f
sethi %hi(_C_LABEL(__curbrk)), %g1
ERROR()
1:
- retl ! success, return 0 & record new break
+ retl /* success, return 0 & record new break */
stx %o2, [%g1 + %lo(_C_LABEL(__curbrk))]
#endif
diff --git a/lib/libc/arch/sparc64/sys/fork.S b/lib/libc/arch/sparc64/sys/fork.S
index a1099efef9a..0f7a2c282eb 100644
--- a/lib/libc/arch/sparc64/sys/fork.S
+++ b/lib/libc/arch/sparc64/sys/fork.S
@@ -1,4 +1,4 @@
-/* $NetBSD: fork.S,v 1.2 2000/06/26 06:33:03 kleink Exp $ */
+/* $NetBSD: fork.S,v 1.3 2000/07/25 15:14:46 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -44,7 +44,7 @@
#if 0
.asciz "@(#)fork.s 8.1 (Berkeley) 6/4/93"
#else
- RCSID("$NetBSD: fork.S,v 1.2 2000/06/26 06:33:03 kleink Exp $")
+ RCSID("$NetBSD: fork.S,v 1.3 2000/07/25 15:14:46 mycroft Exp $")
#endif
#endif /* SYSLIBC_SCCS and not lint */
@@ -55,6 +55,6 @@ WEAK_ALIAS(fork, _fork)
#endif
_SYSCALL(_fork,fork)
- dec %o1 ! from 1 to 0 in child, 0 to -1 in parent
+ dec %o1 /* from 1 to 0 in child, 0 to -1 in parent */
retl
- and %o0, %o1, %o0 ! return 0 in child, pid in parent
+ and %o0, %o1, %o0 /* return 0 in child, pid in parent */
diff --git a/lib/libc/arch/sparc64/sys/pipe.S b/lib/libc/arch/sparc64/sys/pipe.S
index 73f52f3629a..e5287864eda 100644
--- a/lib/libc/arch/sparc64/sys/pipe.S
+++ b/lib/libc/arch/sparc64/sys/pipe.S
@@ -1,4 +1,4 @@
-/* $NetBSD: pipe.S,v 1.1 1998/09/11 04:56:34 eeh Exp $ */
+/* $NetBSD: pipe.S,v 1.2 2000/07/25 15:14:46 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -44,20 +44,20 @@
#if 0
.asciz "@(#)pipe.s 8.1 (Berkeley) 6/4/93"
#else
- RCSID("$NetBSD: pipe.S,v 1.1 1998/09/11 04:56:34 eeh Exp $")
+ RCSID("$NetBSD: pipe.S,v 1.2 2000/07/25 15:14:46 mycroft Exp $")
#endif
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
ENTRY(pipe)
- mov %o0, %o2 ! save pointer
+ mov %o0, %o2 /* save pointer */
mov SYS_pipe, %g1
- t ST_SYSCALL ! pipe()
+ t ST_SYSCALL /* pipe() */
bcc,a 1f
- st %o0, [%o2] ! success, store fds
+ st %o0, [%o2] /* success, store fds */
ERROR()
1:
st %o1, [%o2 + 4]
- retl ! and return 0
+ retl /* and return 0 */
clr %o0
diff --git a/lib/libc/arch/sparc64/sys/sbrk.S b/lib/libc/arch/sparc64/sys/sbrk.S
index d3f040e25fa..670c84a4c33 100644
--- a/lib/libc/arch/sparc64/sys/sbrk.S
+++ b/lib/libc/arch/sparc64/sys/sbrk.S
@@ -1,4 +1,4 @@
-/* $NetBSD: sbrk.S,v 1.6 2000/07/18 22:39:25 eeh Exp $ */
+/* $NetBSD: sbrk.S,v 1.7 2000/07/25 15:14:46 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -44,7 +44,7 @@
#if 0
.asciz "@(#)sbrk.s 8.1 (Berkeley) 6/4/93"
#else
- RCSID("$NetBSD: sbrk.S,v 1.6 2000/07/18 22:39:25 eeh Exp $")
+ RCSID("$NetBSD: sbrk.S,v 1.7 2000/07/25 15:14:46 mycroft Exp $")
#endif
#endif /* SYSLIBC_SCCS and not lint */
@@ -68,28 +68,28 @@ ENTRY(_sbrk)
PIC_PROLOGUE(%o5,%o4)
set _C_LABEL(__curbrk), %o3
ldx [%o5 + %o3], %o2
- ldx [%o2], %o3 ! %o3 = old break
- add %o3, %o0, %o4 ! %o4 = new break
- mov %o4, %o0 ! copy for syscall
+ ldx [%o2], %o3 /* %o3 = old break */
+ add %o3, %o0, %o4 /* %o4 = new break */
+ mov %o4, %o0 /* copy for syscall */
mov SYS_break, %g1
- t ST_SYSCALL ! break(new_break)
- bcc,a 1f ! if success,
- mov %o3, %o0 ! set return value
+ t ST_SYSCALL /* break(new_break) */
+ bcc,a 1f /* if success, */
+ mov %o3, %o0 /* set return value */
ERROR()
1:
- retl ! and update curbrk
+ retl /* and update curbrk */
stx %o4, [%o2]
#else
sethi %hi(_C_LABEL(__curbrk)), %o2
- ldx [%o2 + %lo(_C_LABEL(__curbrk))], %o3 ! %o3 = old break
- add %o3, %o0, %o4 ! %o4 = new break
- mov %o4, %o0 ! copy for syscall
+ ldx [%o2 + %lo(_C_LABEL(__curbrk))], %o3 /* %o3 = old break */
+ add %o3, %o0, %o4 /* %o4 = new break */
+ mov %o4, %o0 /* copy for syscall */
mov SYS_break, %g1
- t ST_SYSCALL ! break(new_break)
- bcc,a 1f ! if success,
- mov %o3, %o0 ! set return value
+ t ST_SYSCALL /* break(new_break) */
+ bcc,a 1f /* if success, */
+ mov %o3, %o0 /* set return value */
ERROR()
1:
- retl ! and update curbrk
+ retl /* and update curbrk */
stx %o4, [%o2 + %lo(_C_LABEL(__curbrk))]
#endif
diff --git a/lib/libc/arch/sparc64/sys/sigpending.S b/lib/libc/arch/sparc64/sys/sigpending.S
index 5a14bde4dcf..66a50450dbc 100644
--- a/lib/libc/arch/sparc64/sys/sigpending.S
+++ b/lib/libc/arch/sparc64/sys/sigpending.S
@@ -1,4 +1,4 @@
-/* $NetBSD: sigpending.S,v 1.5 1998/12/02 01:01:05 thorpej Exp $ */
+/* $NetBSD: sigpending.S,v 1.6 2000/07/25 15:14:46 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -43,7 +43,7 @@
#if 0
.asciz "@(#)sigpending.s 8.1 (Berkeley) 6/4/93"
#else
- RCSID("$NetBSD: sigpending.S,v 1.5 1998/12/02 01:01:05 thorpej Exp $")
+ RCSID("$NetBSD: sigpending.S,v 1.6 2000/07/25 15:14:46 mycroft Exp $")
#endif
#endif /* SYSLIBC_SCCS and not lint */
@@ -53,12 +53,12 @@ WARN_REFERENCES(sigpending, \
"warning: reference to compatibility sigpending(); include <signal.h> for correct reference")
ENTRY(sigpending)
- mov %o0, %o2 ! save pointer
+ mov %o0, %o2 /* save pointer */
mov SYS_compat_13_sigpending13, %g1
- t ST_SYSCALL ! sigpending()
- bcc,a 1f ! if success,
- st %o0, [%o2] ! store return value
+ t ST_SYSCALL /* sigpending() */
+ bcc,a 1f /* if success, */
+ st %o0, [%o2] /* store return value */
ERROR()
1:
- retl ! and return 0
+ retl /* and return 0 */
clr %o0
diff --git a/lib/libc/arch/sparc64/sys/sigprocmask.S b/lib/libc/arch/sparc64/sys/sigprocmask.S
index b82a55326a7..52234365b8e 100644
--- a/lib/libc/arch/sparc64/sys/sigprocmask.S
+++ b/lib/libc/arch/sparc64/sys/sigprocmask.S
@@ -1,4 +1,4 @@
-/* $NetBSD: sigprocmask.S,v 1.6 2000/07/21 03:14:16 eeh Exp $ */
+/* $NetBSD: sigprocmask.S,v 1.7 2000/07/25 15:14:46 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -44,7 +44,7 @@
#if 0
.asciz "@(#)sigprocmask.s 8.1 (Berkeley) 6/4/93"
#else
- RCSID("$NetBSD: sigprocmask.S,v 1.6 2000/07/21 03:14:16 eeh Exp $")
+ RCSID("$NetBSD: sigprocmask.S,v 1.7 2000/07/25 15:14:46 mycroft Exp $")
#endif
#endif /* SYSLIBC_SCCS and not lint */
@@ -57,19 +57,21 @@ WARN_REFERENCES(sigprocmask, \
* sigprocmask(int how, sigset_t *set, sigset_t *oset)
*/
ENTRY(sigprocmask)
- brnz,a %o1, 1f ! if (set != NULL)
- ld [%o1], %o1 ! replace it in %o1 with *set
-! clr %o1 ! else block no signals ...
- mov 1, %o0 ! ... using sigprocmask(SIG_BLOCK)
+ brnz,a %o1, 1f /* if (set != NULL) */
+ ld [%o1], %o1 /* replace it in %o1 with *set */
+#if 0
+ clr %o1 /* else block no signals ... */
+#endif
+ mov 1, %o0 /* ... using sigprocmask(SIG_BLOCK) */
1:
mov SYS_compat_13_sigprocmask13, %g1
t ST_SYSCALL
- bcc 2f ! if success,
- tst %o2 ! check to see if oset requested
+ bcc 2f /* if success, */
+ tst %o2 /* check to see if oset requested */
ERROR()
2:
- bne,a 3f ! if oset != NULL,
- st %o0, [%o2] ! *oset = oldmask
+ bne,a 3f /* if oset != NULL, */
+ st %o0, [%o2] /* *oset = oldmask */
3:
- retl ! in any case, return 0
+ retl /* in any case, return 0 */
clr %o0
diff --git a/lib/libc/arch/sparc64/sys/sigsuspend.S b/lib/libc/arch/sparc64/sys/sigsuspend.S
index 0f9c76a63ba..be864ff94f5 100644
--- a/lib/libc/arch/sparc64/sys/sigsuspend.S
+++ b/lib/libc/arch/sparc64/sys/sigsuspend.S
@@ -1,4 +1,4 @@
-/* $NetBSD: sigsuspend.S,v 1.5 1998/12/02 01:01:05 thorpej Exp $ */
+/* $NetBSD: sigsuspend.S,v 1.6 2000/07/25 15:14:46 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -43,7 +43,7 @@
#if 0
.asciz "@(#)sigsuspend.s 8.1 (Berkeley) 6/4/93"
#else
- RCSID("$NetBSD: sigsuspend.S,v 1.5 1998/12/02 01:01:05 thorpej Exp $")
+ RCSID("$NetBSD: sigsuspend.S,v 1.6 2000/07/25 15:14:46 mycroft Exp $")
#endif
#endif /* SYSLIBC_SCCS and not lint */
@@ -53,7 +53,7 @@ WARN_REFERENCES(sigsuspend, \
"warning: reference to compatibility sigsuspend(); include <signal.h> for correct reference")
ENTRY(sigsuspend)
- ld [%o0], %o0 ! indirect to mask argument
+ ld [%o0], %o0 /* indirect to mask argument */
mov SYS_compat_13_sigsuspend13, %g1
t ST_SYSCALL
- ERROR() ! always terminates with EINTR
+ ERROR() /* always terminates with EINTR */