Subversion Repositories HelenOS

Rev

Rev 3425 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3425 Rev 4377
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
/** @addtogroup generic
29
/** @addtogroup generic
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
Line 36... Line 36...
36
#define KERN_CONFIG_H_
36
#define KERN_CONFIG_H_
37
 
37
 
38
#include <arch/types.h>
38
#include <arch/types.h>
39
#include <arch/mm/page.h>
39
#include <arch/mm/page.h>
40
 
40
 
41
#define STACK_SIZE      PAGE_SIZE
41
#define STACK_SIZE  PAGE_SIZE
42
 
42
 
43
#define CONFIG_INIT_TASKS   32
43
#define CONFIG_INIT_TASKS        32
-
 
44
#define CONFIG_TASK_NAME_BUFLEN  32
44
 
45
 
45
typedef struct {
46
typedef struct {
46
    uintptr_t addr;
47
    uintptr_t addr;
47
    size_t size;
48
    size_t size;
-
 
49
    char name[CONFIG_TASK_NAME_BUFLEN];
48
} init_task_t;
50
} init_task_t;
49
 
51
 
50
typedef struct {
52
typedef struct {
51
    count_t cnt;
53
    count_t cnt;
52
    init_task_t tasks[CONFIG_INIT_TASKS];
54
    init_task_t tasks[CONFIG_INIT_TASKS];
Line 61... Line 63...
61
    uintptr_t base;
63
    uintptr_t base;
62
    size_t size;
64
    size_t size;
63
} ballocs_t;
65
} ballocs_t;
64
 
66
 
65
typedef struct {
67
typedef struct {
66
    count_t cpu_count;      /**< Number of processors detected. */
68
    count_t cpu_count;            /**< Number of processors detected. */
67
    volatile count_t cpu_active;    /**< Number of processors that are up and running. */
69
    volatile count_t cpu_active;  /**< Number of processors that are up and running. */
68
 
70
   
69
    uintptr_t base;
71
    uintptr_t base;
70
    size_t kernel_size;     /**< Size of memory in bytes taken by kernel and stack */
72
    size_t kernel_size;           /**< Size of memory in bytes taken by kernel and stack */
71
   
73
   
72
    uintptr_t stack_base;       /**< Base adddress of initial stack */
74
    uintptr_t stack_base;         /**< Base adddress of initial stack */
73
    size_t stack_size;      /**< Size of initial stack */
75
    size_t stack_size;            /**< Size of initial stack */
74
} config_t;
76
} config_t;
75
 
77
 
76
extern config_t config;
78
extern config_t config;
77
extern init_t init;
79
extern init_t init;
78
extern ballocs_t ballocs;
80
extern ballocs_t ballocs;