Skip to content

Commit 1823265

Browse files
riastradhriastradh
authored andcommitted
hppa _lwp_makecontext, makecontext: Sort includes.
No functional change intended. PR kern/59327: user stack pointer is not aligned properly
1 parent b3dc6b9 commit 1823265

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

lib/libc/arch/hppa/gen/_lwp.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: _lwp.c,v 1.5 2011/02/24 04:28:42 joerg Exp $ */
1+
/* $NetBSD: _lwp.c,v 1.6 2025/04/25 01:17:11 riastradh Exp $ */
22

33
/*
44
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,15 +31,18 @@
3131

3232
#include <sys/cdefs.h>
3333
#if defined(LIBC_SCCS) && !defined(lint)
34-
__RCSID("$NetBSD: _lwp.c,v 1.5 2011/02/24 04:28:42 joerg Exp $");
34+
__RCSID("$NetBSD: _lwp.c,v 1.6 2025/04/25 01:17:11 riastradh Exp $");
3535
#endif /* LIBC_SCCS and not lint */
3636

3737
#include "namespace.h"
38+
3839
#include <sys/types.h>
39-
#include <ucontext.h>
40+
41+
#include <machine/frame.h>
42+
4043
#include <lwp.h>
4144
#include <stdlib.h>
42-
#include <machine/frame.h>
45+
#include <ucontext.h>
4346

4447
void
4548
_lwp_makecontext(ucontext_t *u, void (*start)(void *),

lib/libc/arch/hppa/gen/makecontext.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: makecontext.c,v 1.6 2012/03/22 12:31:32 skrll Exp $ */
1+
/* $NetBSD: makecontext.c,v 1.7 2025/04/25 01:17:11 riastradh Exp $ */
22

33
/*-
44
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,18 +31,19 @@
3131

3232
#include <sys/cdefs.h>
3333
#if defined(LIBC_SCCS) && !defined(lint)
34-
__RCSID("$NetBSD: makecontext.c,v 1.6 2012/03/22 12:31:32 skrll Exp $");
34+
__RCSID("$NetBSD: makecontext.c,v 1.7 2025/04/25 01:17:11 riastradh Exp $");
3535
#endif
3636

37+
#include <sys/types.h>
38+
39+
#include <machine/frame.h>
40+
3741
#include <inttypes.h>
42+
#include <stdarg.h>
3843
#include <stddef.h>
3944
#include <ucontext.h>
40-
#include "extern.h"
4145

42-
#include <stdarg.h>
43-
44-
#include <sys/types.h>
45-
#include <machine/frame.h>
46+
#include "extern.h"
4647

4748
void __resumecontext(void) __dead;
4849

0 commit comments

Comments
 (0)