Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch Trailing whitespace
details: https://anonhg.NetBSD.org/src/rev/7bfd9201f96e
branches: trunk
changeset: 374129:7bfd9201f96e
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Apr 02 07:26:17 2023 +0000
description:
Trailing whitespace
diffstat:
lib/libc/arch/i386/gen/_lwp.c | 10 +++++-----
lib/libc/arch/m68k/gen/_lwp.c | 8 ++++----
lib/libc/arch/vax/gen/_lwp.c | 8 ++++----
lib/libc/arch/x86_64/gen/_lwp.c | 8 ++++----
4 files changed, 17 insertions(+), 17 deletions(-)
diffs (136 lines):
diff -r 8ed184dbf3e0 -r 7bfd9201f96e lib/libc/arch/i386/gen/_lwp.c
--- a/lib/libc/arch/i386/gen/_lwp.c Sat Apr 01 23:44:11 2023 +0000
+++ b/lib/libc/arch/i386/gen/_lwp.c Sun Apr 02 07:26:17 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _lwp.c,v 1.8 2012/08/31 20:57:24 drochner Exp $ */
+/* $NetBSD: _lwp.c,v 1.9 2023/04/02 07:26:17 skrll Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _lwp.c,v 1.8 2012/08/31 20:57:24 drochner Exp $");
+__RCSID("$NetBSD: _lwp.c,v 1.9 2023/04/02 07:26:17 skrll Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -55,14 +55,14 @@ void
/* LINTED uintptr_t is safe */
u->uc_mcontext.__gregs[_REG_EIP] = (uintptr_t)start;
-
+
/* Align to a 16-byte boundary for SSE */
/* LINTED uintptr_t is safe */
sp = (void **) (((uintptr_t)(stack_base + stack_size - 4) & ~0xf) + 4);
-
+
*--sp = arg;
*--sp = (void *) _lwp_exit;
-
+
/* LINTED uintptr_t is safe */
u->uc_mcontext.__gregs[_REG_UESP] = (uintptr_t) sp;
diff -r 8ed184dbf3e0 -r 7bfd9201f96e lib/libc/arch/m68k/gen/_lwp.c
--- a/lib/libc/arch/m68k/gen/_lwp.c Sat Apr 01 23:44:11 2023 +0000
+++ b/lib/libc/arch/m68k/gen/_lwp.c Sun Apr 02 07:26:17 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _lwp.c,v 1.8 2012/03/18 16:26:34 christos Exp $ */
+/* $NetBSD: _lwp.c,v 1.9 2023/04/02 07:26:17 skrll Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _lwp.c,v 1.8 2012/03/18 16:26:34 christos Exp $");
+__RCSID("$NetBSD: _lwp.c,v 1.9 2023/04/02 07:26:17 skrll Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -54,9 +54,9 @@ void
u->uc_stack.ss_size = stack_size;
u->uc_mcontext.__gregs[_REG_PC] = (int)start;
-
+
sp = (void **)(void *)(stack_base + stack_size);
-
+
*--sp = arg;
*--sp = (void *) _lwp_exit;
diff -r 8ed184dbf3e0 -r 7bfd9201f96e lib/libc/arch/vax/gen/_lwp.c
--- a/lib/libc/arch/vax/gen/_lwp.c Sat Apr 01 23:44:11 2023 +0000
+++ b/lib/libc/arch/vax/gen/_lwp.c Sun Apr 02 07:26:17 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _lwp.c,v 1.3 2012/03/22 17:32:22 christos Exp $ */
+/* $NetBSD: _lwp.c,v 1.4 2023/04/02 07:26:18 skrll Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _lwp.c,v 1.3 2012/03/22 17:32:22 christos Exp $");
+__RCSID("$NetBSD: _lwp.c,v 1.4 2023/04/02 07:26:18 skrll Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -57,7 +57,7 @@ void
/* Align to a word */
/* LINTED uintptr_t is safe */
sp = (int *)((uintptr_t)(stack_base + stack_size) & ~0x3);
-
+
/*
* Allocate necessary stack space for arguments including arg count
* and call frame
@@ -71,7 +71,7 @@ void
sp[4] = (int)(uintptr_t)_lwp_exit + 2;/* return via _lwp_exit */
sp[5] = 1; /* argc */
sp[6] = (int)(uintptr_t)arg; /* argv */
-
+
gr[_REG_AP] = (__greg_t)(uintptr_t)(sp + 5);
gr[_REG_SP] = (__greg_t)(uintptr_t)sp;
gr[_REG_FP] = (__greg_t)(uintptr_t)sp;
diff -r 8ed184dbf3e0 -r 7bfd9201f96e lib/libc/arch/x86_64/gen/_lwp.c
--- a/lib/libc/arch/x86_64/gen/_lwp.c Sat Apr 01 23:44:11 2023 +0000
+++ b/lib/libc/arch/x86_64/gen/_lwp.c Sun Apr 02 07:26:17 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _lwp.c,v 1.7 2011/02/24 04:28:43 joerg Exp $ */
+/* $NetBSD: _lwp.c,v 1.8 2023/04/02 07:26:18 skrll Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _lwp.c,v 1.7 2011/02/24 04:28:43 joerg Exp $");
+__RCSID("$NetBSD: _lwp.c,v 1.8 2023/04/02 07:26:18 skrll Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -56,13 +56,13 @@ void
/* LINTED uintptr_t is safe */
gr[_REG_RIP] = (uintptr_t)start;
-
+
sp = (void **) (((uintptr_t)(stack_base + stack_size) & ~15));
/* LINTED __greg_t is safe */
gr[_REG_RDI] = (__greg_t)arg;
*--sp = (void *) _lwp_exit;
-
+
/* LINTED uintptr_t is safe */
gr[_REG_URSP] = (uintptr_t) sp;
Home |
Main Index |
Thread Index |
Old Index