Rev 3228 | Rev 3987 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3228 | Rev 3919 | ||
---|---|---|---|
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 | 44 | ||
45 | typedef struct { |
45 | typedef struct { |
46 | uintptr_t addr; |
46 | uintptr_t addr; |
47 | size_t size; |
47 | size_t size; |
48 | } init_task_t; |
48 | } init_task_t; |
Line 61... | Line 61... | ||
61 | uintptr_t base; |
61 | uintptr_t base; |
62 | size_t size; |
62 | size_t size; |
63 | } ballocs_t; |
63 | } ballocs_t; |
64 | 64 | ||
65 | typedef struct { |
65 | typedef struct { |
66 | count_t cpu_count; /**< Number of processors detected. */ |
66 | count_t cpu_count; /**< Number of processors detected. */ |
67 | volatile count_t cpu_active; /**< Number of processors that are up and running. */ |
67 | volatile count_t cpu_active; /**< Number of processors that are up and running. */ |
68 | 68 | ||
69 | uintptr_t base; |
69 | uintptr_t base; |
70 | size_t kernel_size; /**< Size of memory in bytes taken by kernel and stack */ |
70 | size_t kernel_size; /**< Size of memory in bytes taken by kernel and stack */ |
71 | 71 | ||
72 | uintptr_t stack_base; /**< Base adddress of initial stack */ |
72 | uintptr_t stack_base; /**< Base adddress of initial stack */ |
73 | size_t stack_size; /**< Size of initial stack */ |
73 | size_t stack_size; /**< Size of initial stack */ |
74 | } config_t; |
74 | } config_t; |
75 | 75 | ||
76 | extern config_t config; |
76 | extern config_t config; |
77 | extern init_t init; |
77 | extern init_t init; |
78 | extern ballocs_t ballocs; |
78 | extern ballocs_t ballocs; |