Subversion Repositories HelenOS

Rev

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

Rev 3022 Rev 4055
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_MEMORY_SIZE  (8 * 1024 * 1024)
43
#define CONFIG_INIT_TASKS   32
44
 
44
 
45
#define CONFIG_INIT_TASKS   32
45
#define CONFIG_TASK_NAME_BUFLEN 32
46
 
46
 
47
typedef struct {
47
typedef struct {
48
    uintptr_t addr;
48
    uintptr_t addr;
49
    size_t size;
49
    size_t size;
-
 
50
    char name[CONFIG_TASK_NAME_BUFLEN];
50
} init_task_t;
51
} init_task_t;
51
 
52
 
52
typedef struct {
53
typedef struct {
53
    count_t cnt;
54
    count_t cnt;
54
    init_task_t tasks[CONFIG_INIT_TASKS];
55
    init_task_t tasks[CONFIG_INIT_TASKS];
Line 63... Line 64...
63
    uintptr_t base;
64
    uintptr_t base;
64
    size_t size;
65
    size_t size;
65
} ballocs_t;
66
} ballocs_t;
66
 
67
 
67
typedef struct {
68
typedef struct {
68
    count_t cpu_count;      /**< Number of processors detected. */
69
    count_t cpu_count;            /**< Number of processors detected. */
69
    volatile count_t cpu_active;    /**< Number of processors that are up and running. */
70
    volatile count_t cpu_active;  /**< Number of processors that are up and running. */
70
 
71
   
71
    uintptr_t base;
72
    uintptr_t base;
72
    size_t kernel_size;     /**< Size of memory in bytes taken by kernel and stack */
73
    size_t kernel_size;           /**< Size of memory in bytes taken by kernel and stack */
73
   
74
   
74
    uintptr_t stack_base;       /**< Base adddress of initial stack */
75
    uintptr_t stack_base;         /**< Base adddress of initial stack */
75
    size_t stack_size;      /**< Size of initial stack */
76
    size_t stack_size;            /**< Size of initial stack */
76
} config_t;
77
} config_t;
77
 
78
 
78
extern config_t config;
79
extern config_t config;
79
extern init_t init;
80
extern init_t init;
80
extern ballocs_t ballocs;
81
extern ballocs_t ballocs;