Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 107 → Rev 108

/SPARTAN/trunk/include/userspace.h
29,6 → 29,6
#ifndef __USERSPACE_H__
#define __USERSPACE_H__
 
extern void userspace(void) __attribute__ ((noreturn));
extern void userspace(void) __attribute__ ((noreturn)); /**< Switch to user-space (CPU user priviledge level) */
 
#endif
/SPARTAN/trunk/src/Makefile.config
10,6 → 10,9
# Improved support for hyperthreading
HT=__HT__
 
# General debuging and assert checking disable
#NDEBUG=__NDEBUG__
 
# Deadlock detection support for spinlocks.
DEBUG_SPINLOCK=DEBUG_SPINLOCK
 
/SPARTAN/trunk/src/main/main.c
84,8 → 84,13
static void main_bsp_separated_stack(void);
static void main_ap_separated_stack(void);
 
/*
* Executed by the bootstrap processor. cpu_priority_high()'d
 
/** Bootstrap CPU main kernel routine
*
* Initializes the kernel by bootstrap CPU.
*
* Assuming cpu_priority_high().
*
*/
void main_bsp(void)
{
102,6 → 107,12
/* not reached */
}
 
 
/** Bootstrap CPU main kernel routine stack wrapper
*
* Second part of main_bsp().
*
*/
void main_bsp_separated_stack(void) {
vm_t *m;
task_t *k;
161,10 → 172,15
/* not reached */
}
 
 
#ifdef __SMP__
/*
* Executed by application processors. cpu_priority_high()'d
* Temporary stack is at ctx.sp which was set during BP boot.
/** Application CPUs main kernel routine
*
* Executed by application processors, temporary stack
* is at ctx.sp which was set during BP boot.
*
* Assuming cpu_priority_high().
*
*/
void main_ap(void)
{
198,6 → 214,12
/* not reached */
}
 
 
/** Application CPUs main kernel routine stack wrapper
*
* Second part of main_ap().
*
*/
void main_ap_separated_stack(void)
{
/*
/SPARTAN/trunk/src/cpu/cpu.c
43,6 → 43,12
cpu_private_data_t *cpu_private_data;
cpu_t *cpus;
 
 
/** Initialize CPUs
*
* Initialize kernel CPUs support.
*
*/
void cpu_init(void) {
int i, j;