/* * This is used to define STACK_TOP, and with MMU it must be below * kernel base to select the correct PGD when handling MMU exceptions.
*/ # define TASK_SIZE (CONFIG_KERNEL_START)
/* * 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)
# define THREAD_KSP 0
# ifndef __ASSEMBLY__
/* If you change this, you must change the associated assembly-languages * constants defined below, THREAD_*.
*/ struct thread_struct { /* kernel stack pointer (must be first field in structure) */ unsignedlong ksp; unsignedlong ksp_limit; /* if ksp <= ksp_limit stack overflow */ void *pgdir; /* root of page-table tree */ struct pt_regs *regs; /* Pointer to saved register state */
};
/* The size allocated for kernel stacks. This _must_ be a power of two! */ # define KERNEL_STACK_SIZE 0x2000
/* Return some info about the user process TASK. */ # define task_tos(task) ((unsignedlong)(task) + KERNEL_STACK_SIZE) # define task_regs(task) ((struct pt_regs *)task_tos(task) - 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.