36 #define KERNEL_STACK_SIZE 8192
76 #ifdef POK_NEEDS_DEBUG
77 printf (
"pok_create_space: %d: partition size too big 0x%x\n", partition_id, size);
84 #ifdef POK_NEEDS_DEBUG
85 printf (
"pok_create_space: %d: partition address not aligned 0x%x\n", partition_id, addr);
89 #ifdef POK_NEEDS_DEBUG
90 printf (
"pok_create_space: %d: %x %x\n", partition_id, addr, size);
98 mmu_level1_tab[partition_id][as_ptd] = ((
unsigned int) &(mmu_level2_tab[partition_id]) >> 4) |
MM_ET_PTD;
111 (void) old_partition_id;
113 asm volatile (
"flush\n"
148 #ifdef POK_NEEDS_DEBUG
149 printf (
"space_context_create part_id=%d entry=%x stack=%x arg1=%x arg2=%x\n",
150 id, entry_rel, stack_rel, arg1, arg2);
169 mmu_contexts_tab[i] = (
unsigned int)&(mmu_level1_tab[i]) >> 4 |
MM_ET_PTD;
192 asm volatile (
"sta %0, [%1] %2;\n"
200 asm volatile (
"flush\n"
207 #ifdef POK_NEEDS_DEBUG
208 printf (
"pok_arch_space_init: ctx nbr=%u\n", POK_CONFIG_NB_PARTITIONS);