Module Name: src
Committed By: bsh
Date: Wed Mar 21 09:05:36 UTC 2012
Modified Files:
src/lib/libc/arch/arm/gen: _lwp.c
Log Message:
shut up lint(1)
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/arch/arm/gen/_lwp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/arch/arm/gen/_lwp.c
diff -u src/lib/libc/arch/arm/gen/_lwp.c:1.5 src/lib/libc/arch/arm/gen/_lwp.c:1.6
--- src/lib/libc/arch/arm/gen/_lwp.c:1.5 Thu Feb 24 04:28:41 2011
+++ src/lib/libc/arch/arm/gen/_lwp.c Wed Mar 21 09:05:35 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: _lwp.c,v 1.5 2011/02/24 04:28:41 joerg Exp $ */
+/* $NetBSD: _lwp.c,v 1.6 2012/03/21 09:05:35 bsh Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _lwp.c,v 1.5 2011/02/24 04:28:41 joerg Exp $");
+__RCSID("$NetBSD: _lwp.c,v 1.6 2012/03/21 09:05:35 bsh Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -58,16 +58,22 @@ _lwp_makecontext(ucontext_t *u, void (*s
u->uc_stack.ss_sp = stack_base;
u->uc_stack.ss_size = stack_size;
+ /* LINTED - alignment is fixed below. */
sp = (void **) (stack_base + stack_size);
/*
* Note: We make sure the stack is 8-byte aligned, here.
*/
+ /* LINTED - doesn't lose any bits by this conversion */
u->uc_mcontext.__gregs[_REG_R0] = (__greg_t) arg;
+ /* LINTED - doesn't lose any bits by this conversion */
u->uc_mcontext.__gregs[_REG_SP] = ((__greg_t) sp) & ~7;
+ /* LINTED - doesn't lose any bits by this conversion */
u->uc_mcontext.__gregs[_REG_LR] = (__greg_t) _lwp_exit;
+ /* LINTED - doesn't lose any bits by this conversion */
u->uc_mcontext.__gregs[_REG_PC] = (__greg_t) start;
+ /* LINTED - unsinged long and unsigned int are same size */
u->uc_mcontext._mc_tlsbase = (uintptr_t)private;
u->uc_flags |= _UC_TLSBASE;
}