/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * OpenRISC Linux * * Linux architectural port borrowing liberally from similar works of * others. All original copyrights apply as per the original source * declaration. * * OpenRISC implementation: * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com> * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> * et al.
*/
/* * User space process size. This is hardcoded into a few places, * so don't change it unless you know what you are doing.
*/
#define TASK_SIZE (0x80000000UL)
/* This decides where the kernel will search for a free chunk of vm * space during mmap's.
*/ #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3)
#ifndef __ASSEMBLER__
struct task_struct;
struct thread_struct { long fpcsr; /* Floating point control status register. */
};
/* * At user->kernel entry, the pt_regs struct is stacked on the top of the * kernel-stack. This macro allows us to find those regs for a task. * Notice that subsequent pt_regs stackings, like recursive interrupts * occurring while we're in the kernel, won't affect this - only the first * user->kernel transition registers are reached by this (i.e. not regs * for running signal handler)
*/ #define user_regs(thread_info) (((struct pt_regs *)((unsignedlong)(thread_info) + THREAD_SIZE - STACK_FRAME_OVERHEAD)) - 1)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.