Changeset 8f91729 in mainline
- Timestamp:
- 2005-08-31T11:43:38Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e291e5d
- Parents:
- b9e97fb
- Files:
-
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc/Makefile.inc
rb9e97fb r8f91729 17 17 arch_sources= \ 18 18 arch/context.S \ 19 arch/ppc.c \20 19 arch/debug/panic.s \ 21 20 arch/fpu_context.c \ -
arch/ppc/include/context.h
rb9e97fb r8f91729 31 31 32 32 #include <arch/types.h> 33 #include <arch/drivers/ofw.h> 33 34 34 #define SP_DELTA 4 35 #define SP_DELTA 8 36 37 #ifdef context_map_stack 38 #undef context_map_stack 39 #endif 40 41 #define context_map_stack(stack, size) \ 42 ofw_claim((void *) stack, size, 0); 35 43 36 44 struct context { -
arch/ppc/include/drivers/ofw.h
rb9e97fb r8f91729 58 58 extern phandle ofw_find_device(const char *name); 59 59 extern int ofw_get_property(const phandle device, const char *name, void *buf, const int buflen); 60 extern void *ofw_claim(const void *addr, const int size, const int align); 60 61 extern void putchar(const char ch); 61 62 -
arch/ppc/src/drivers/ofw.c
rb9e97fb r8f91729 93 93 } 94 94 95 void *ofw_claim(const void *addr, const int size, const int align) 96 { 97 return (void *) ofw_call("claim", 3, 1, addr, size, align); 98 } 99 95 100 void putchar(const char ch) 96 101 { -
arch/ppc/src/start.S
rb9e97fb r8f91729 34 34 35 35 kernel_image_start: 36 bl early_init 36 lis r4, ofw@ha 37 addi r4, r4, ofw@l 38 stw r5, 0(r4) 37 39 38 40 lis r3, _hardcoded_ktext_size@ha … … 54 56 stw r3, 0(r4) 55 57 58 bl ofw_init 59 56 60 b main_bsp -
include/context.h
rb9e97fb r8f91729 39 39 #endif /* context_set */ 40 40 41 #ifndef context_map_stack 42 #define context_map_stack(stack, size) 43 #endif /* context_map_stack */ 44 41 45 extern int context_save(context_t *c); 42 46 extern void context_restore(context_t *c) __attribute__ ((noreturn)); 43 47 44 45 46 48 #endif -
src/main/main.c
rb9e97fb r8f91729 119 119 context_save(&ctx); 120 120 context_set(&ctx, FADDR(main_bsp_separated_stack), config.base + kernel_size, CONFIG_STACK_SIZE); 121 context_map_stack(config.base + kernel_size, CONFIG_STACK_SIZE); 121 122 context_restore(&ctx); 122 123 /* not reached */ … … 134 135 task_t *k; 135 136 thread_t *t; 136 137 137 138 the_initialize(THE); 138 139
Note:
See TracChangeset
for help on using the changeset viewer.