Changeset 7510326 in mainline
- Timestamp:
- 2016-06-08T16:02:54Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8b420fa
- Parents:
- 36df4109
- Location:
- kernel
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/Makefile.inc
r36df4109 r7510326 58 58 59 59 ARCH_SOURCES = \ 60 arch/$(KARCH)/src/sparc64.c \ 60 61 arch/$(KARCH)/src/cpu/$(USARCH)/cpu.c \ 61 62 arch/$(KARCH)/src/debug/stacktrace.c \ -
kernel/arch/sparc64/include/arch/arch.h
r36df4109 r7510326 38 38 #define KERN_sparc64_ARCH_H_ 39 39 40 #ifndef __ASM__ 41 #include <arch.h> 42 #endif 43 40 44 #include <arch/boot/boot.h> 41 45 … … 53 57 #ifndef __ASM__ 54 58 59 extern arch_ops_t *sparc64_ops; 60 55 61 extern void sparc64_pre_main(bootinfo_t *); 56 62 -
kernel/arch/sparc64/include/arch/asm.h
r36df4109 r7510326 36 36 #define KERN_sparc64_ASM_H_ 37 37 38 #include <arch/arch.h>39 38 #include <typedefs.h> 40 39 #include <align.h> -
kernel/arch/sparc64/include/arch/sun4u/cpu.h
r36df4109 r7510326 58 58 #include <arch/regdef.h> 59 59 #include <arch/asm.h> 60 #include <arch/arch.h> 60 61 #include <trace.h> 61 62 -
kernel/arch/sparc64/src/sun4u/sparc64.c
r36df4109 r7510326 53 53 #include <sysinfo/sysinfo.h> 54 54 55 static void s parc64_pre_mm_init(void);56 static void s parc64_post_mm_init(void);57 static void s parc64_post_smp_init(void);58 59 arch_ops_t s parc64_ops = {60 .pre_mm_init = s parc64_pre_mm_init,61 .post_mm_init = s parc64_post_mm_init,62 .post_smp_init = s parc64_post_smp_init,55 static void sun4u_pre_mm_init(void); 56 static void sun4u_post_mm_init(void); 57 static void sun4u_post_smp_init(void); 58 59 arch_ops_t sun4u_ops = { 60 .pre_mm_init = sun4u_pre_mm_init, 61 .post_mm_init = sun4u_post_mm_init, 62 .post_smp_init = sun4u_post_smp_init, 63 63 }; 64 64 65 arch_ops_t * arch_ops = &sparc64_ops;65 arch_ops_t *sparc64_ops = &sun4u_ops; 66 66 67 67 memmap_t memmap; … … 97 97 98 98 /** Perform sparc64 specific initialization before mm is initialized. */ 99 void s parc64_pre_mm_init(void)99 void sun4u_pre_mm_init(void) 100 100 { 101 101 if (config.cpu_active == 1) { … … 106 106 107 107 /** Perform sparc64 specific initialization afterr mm is initialized. */ 108 void s parc64_post_mm_init(void)108 void sun4u_post_mm_init(void) 109 109 { 110 110 if (config.cpu_active == 1) { … … 120 120 } 121 121 122 void s parc64_post_smp_init(void)122 void sun4u_post_smp_init(void) 123 123 { 124 124 /* Currently the only supported platform for sparc64/sun4u is 'sun4u'. */ -
kernel/arch/sparc64/src/sun4v/sparc64.c
r36df4109 r7510326 55 55 #include <sysinfo/sysinfo.h> 56 56 57 static void s parc64_pre_mm_init(void);58 static void s parc64_post_mm_init(void);59 static void s parc64_post_smp_init(void);57 static void sun4v_pre_mm_init(void); 58 static void sun4v_post_mm_init(void); 59 static void sun4v_post_smp_init(void); 60 60 61 arch_ops_t s parc64_ops = {62 .pre_mm_init = s parc64_pre_mm_init,63 .post_mm_init = s parc64_post_mm_init,64 .post_smp_init = s parc64_post_smp_init,61 arch_ops_t sun4v_ops = { 62 .pre_mm_init = sun4v_pre_mm_init, 63 .post_mm_init = sun4v_post_mm_init, 64 .post_smp_init = sun4v_post_smp_init, 65 65 }; 66 66 67 arch_ops_t * arch_ops = &sparc64_ops;67 arch_ops_t *sparc64_ops = &sun4v_ops; 68 68 69 69 memmap_t memmap; … … 95 95 96 96 /** Perform sparc64 specific initialization before mm is initialized. */ 97 void s parc64_pre_mm_init(void)97 void sun4v_pre_mm_init(void) 98 98 { 99 99 if (config.cpu_active == 1) { … … 104 104 105 105 /** Perform sparc64 specific initialization afterr mm is initialized. */ 106 void s parc64_post_mm_init(void)106 void sun4v_post_mm_init(void) 107 107 { 108 108 if (config.cpu_active == 1) { … … 118 118 } 119 119 120 void s parc64_post_smp_init(void)120 void sun4v_post_smp_init(void) 121 121 { 122 122 /* Currently the only supported platform for sparc64/sun4v is 'sun4v'. */ -
kernel/generic/include/arch.h
r36df4109 r7510326 89 89 extern arch_ops_t *arch_ops; 90 90 91 #define ARCH_ OP(op) \91 #define ARCH_STRUCT_OP(s, op) \ 92 92 do { \ 93 if ( arch_ops->op) \94 arch_ops->op(); \93 if ((s)->op) \ 94 (s)->op(); \ 95 95 } while (0) 96 97 #define ARCH_OP(op) ARCH_STRUCT_OP(arch_ops, op) 96 98 97 99 extern void the_initialize(the_t *);
Note:
See TracChangeset
for help on using the changeset viewer.