user.h (498495dba268b20e8eadd7fe93c140c68b6cc9d2) user.h (37744feebc086908fd89760650f458ab19071750)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ASM_SH_USER_H
3#define __ASM_SH_USER_H
4
5#include <asm/ptrace.h>
6#include <asm/page.h>
7
8/*

--- 14 unchanged lines hidden (view full) ---

23 * the entire range. All of the addresses are rounded in such a way
24 * that an integral number of pages is written.
25 * stack: We need the stack information in order to get a meaningful
26 * backtrace. We need to write the data from usp to
27 * current->start_stack, so we round each of these in order to be able
28 * to write an integer number of pages.
29 */
30
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ASM_SH_USER_H
3#define __ASM_SH_USER_H
4
5#include <asm/ptrace.h>
6#include <asm/page.h>
7
8/*

--- 14 unchanged lines hidden (view full) ---

23 * the entire range. All of the addresses are rounded in such a way
24 * that an integral number of pages is written.
25 * stack: We need the stack information in order to get a meaningful
26 * backtrace. We need to write the data from usp to
27 * current->start_stack, so we round each of these in order to be able
28 * to write an integer number of pages.
29 */
30
31#if defined(__SH5__) || defined(CONFIG_CPU_SH5)
32struct user_fpu_struct {
31struct user_fpu_struct {
33 unsigned long fp_regs[32];
34 unsigned int fpscr;
35};
36#else
37struct user_fpu_struct {
38 unsigned long fp_regs[16];
39 unsigned long xfp_regs[16];
40 unsigned long fpscr;
41 unsigned long fpul;
42};
32 unsigned long fp_regs[16];
33 unsigned long xfp_regs[16];
34 unsigned long fpscr;
35 unsigned long fpul;
36};
43#endif
44
45struct user {
46 struct pt_regs regs; /* entire machine state */
47 struct user_fpu_struct fpu; /* Math Co-processor registers */
48 int u_fpvalid; /* True if math co-processor being used */
49 size_t u_tsize; /* text size (pages) */
50 size_t u_dsize; /* data size (pages) */
51 size_t u_ssize; /* stack size (pages) */

--- 17 unchanged lines hidden ---
37
38struct user {
39 struct pt_regs regs; /* entire machine state */
40 struct user_fpu_struct fpu; /* Math Co-processor registers */
41 int u_fpvalid; /* True if math co-processor being used */
42 size_t u_tsize; /* text size (pages) */
43 size_t u_dsize; /* data size (pages) */
44 size_t u_ssize; /* stack size (pages) */

--- 17 unchanged lines hidden ---