Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2056 → Rev 2058

/trunk/kernel/arch/sparc64/src/trap/trap_table.S
629,11 → 629,19
* within a trap context possible. It is called from several other trap
* handlers.
*
* This function can be entered either with interrupt globals or alternate globals.
* Memory management trap handlers are obliged to switch to one of those global sets
* prior to calling this function. Register window management functions are not
* allowed to modify the alternate global registers.
* This function can be entered either with interrupt globals or alternate
* globals. Memory management trap handlers are obliged to switch to one of
* those global sets prior to calling this function. Register window management
* functions are not allowed to modify the alternate global registers.
*
* The kernel is designed to work on trap levels 0 - 4. For instance, the
* following can happen:
* TL0: kernel thread runs (CANSAVE=0, kernel stack not in DTLB)
* TL1: preemptible trap handler started after a tick interrupt
* TL2: preemptible trap handler did SAVE
* TL3: spill handler touched the kernel stack
* TL4: hardware or software failure
*
* Input registers:
* %g1 Address of function to call.
* %g2 First argument for the function.
/trunk/kernel/arch/sparc64/src/start.S
329,10 → 329,6
* Create small stack to be used by the bootstrap processor. It is going to be
* used only for a very limited period of time, but we switch to it anyway,
* just to be sure we are properly initialized.
*
* What is important is that this piece of memory is covered by the 4M DTLB
* locked entry and therefore there will be no surprises like deadly
* combinations of spill trap and and TLB miss on the stack address.
*/
 
#define INITIAL_STACK_SIZE 1024