/* SPDX-License-Identifier: GPL-2.0-only */ /* * Process/processor support for the Hexagon architecture * * Copyright (c) 2010-2012, The Linux Foundation. All rights reserved.
*/
/* * thread_struct is supposed to be for context switch data. * Specifically, to hold the state necessary to perform switch_to...
*/ struct thread_struct { void *switch_sp;
};
/* * initializes thread_struct * The only thing we have in there is switch_sp * which doesn't really need to be initialized.
*/
#define INIT_THREAD { \
}
#define cpu_relax() __vmyield()
/* * Decides where the kernel will search for a free chunk of vm space during * mmaps. * See also arch_get_unmapped_area. * Doesn't affect if you have MAX_FIXED in the page flags set though... * * Apparently the convention is that ld.so will ask for "unmapped" private * memory to be allocated SOMEWHERE, but it also asks for memory explicitly * via MAP_FIXED at the lower * addresses starting at VA=0x0. * * If the two requests collide, you get authentic segfaulting action, so * you have to kick the "unmapped" base requests higher up.
*/ #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE/3))
/* The following stuff is pretty HEXAGON specific. */
/* This is really just here for __switch_to.
Offsets are pulled via asm-offsets.c */
/* * No real reason why VM and native switch stacks should be different. * Ultimately this should merge. Note that Rev C. ABI called out only * R24-27 as callee saved GPRs needing explicit attention (R29-31 being * dealt with automagically by allocframe), but the current ABI has * more, R16-R27. By saving more, the worst case is that we waste some * cycles if building with the old compilers.
*/
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.