- Timestamp:
- 2005-11-08T12:22:35Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36a140b
- Parents:
- 389f41e
- Location:
- arch
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/Makefile.inc
r389f41e r5f85c91 61 61 62 62 ifeq ($(CONFIG_SMP),y) 63 DEFS += -D SMP63 DEFS += -DCONFIG_SMP 64 64 endif 65 65 ifeq ($(CONFIG_HT),y) 66 DEFS += -D HT66 DEFS += -DCONFIG_HT 67 67 endif 68 68 ifeq ($(CONFIG_FPU_LAZY),y) 69 DEFS += -D FPU_LAZY69 DEFS += -DCONFIG_FPU_LAZY 70 70 endif 71 71 -
arch/amd64/src/amd64.c
r389f41e r5f85c91 76 76 trap_register(VECTOR_SYSCALL, syscall); 77 77 78 #ifdef __SMP__78 #ifdef CONFIG_SMP 79 79 trap_register(VECTOR_TLB_SHOOTDOWN_IPI, tlb_shootdown_ipi); 80 80 trap_register(VECTOR_WAKEUP_IPI, wakeup_ipi); 81 #endif /* __SMP__*/81 #endif /* CONFIG_SMP */ 82 82 } 83 83 } … … 95 95 memory_print_map(); 96 96 97 #ifdef __SMP__97 #ifdef CONFIG_SMP 98 98 acpi_init(); 99 #endif /* __SMP__*/99 #endif /* CONFIG_SMP */ 100 100 } 101 101 } -
arch/amd64/src/interrupt.c
r389f41e r5f85c91 140 140 void nm_fault(__u8 n, __native stack[]) 141 141 { 142 #ifdef FPU_LAZY142 #ifdef CONFIG_FPU_LAZY 143 143 scheduler_fpu_lazy_request(); 144 144 #else -
arch/amd64/src/smp/ap.S
r389f41e r5f85c91 40 40 .section K_TEXT_START_2, "ax" 41 41 42 #ifdef __SMP__42 #ifdef CONFIG_SMP 43 43 44 44 .global ap_boot … … 101 101 102 102 103 #endif /* __SMP__*/103 #endif /* CONFIG_SMP */ -
arch/ia32/Makefile.inc
r389f41e r5f85c91 80 80 81 81 ifeq ($(CONFIG_SMP),y) 82 DEFS += -D SMP82 DEFS += -DCONFIG_SMP 83 83 endif 84 84 ifeq ($(CONFIG_HT),y) 85 DEFS += -D HT85 DEFS += -DCONFIG_HT 86 86 endif 87 87 ifeq ($(CONFIG_FPU_LAZY),y) 88 DEFS += -D FPU_LAZY88 DEFS += -DCONFIG_FPU_LAZY 89 89 endif 90 90 -
arch/ia32/include/atomic.h
r389f41e r5f85c91 33 33 34 34 static inline void atomic_inc(volatile int *val) { 35 #ifdef __SMP__35 #ifdef CONFIG_SMP 36 36 __asm__ volatile ("lock incl %0\n" : "=m" (*val)); 37 37 #else 38 38 __asm__ volatile ("incl %0\n" : "=m" (*val)); 39 #endif /* __SMP__*/39 #endif /* CONFIG_SMP */ 40 40 } 41 41 42 42 static inline void atomic_dec(volatile int *val) { 43 #ifdef __SMP__43 #ifdef CONFIG_SMP 44 44 __asm__ volatile ("lock decl %0\n" : "=m" (*val)); 45 45 #else 46 46 __asm__ volatile ("decl %0\n" : "=m" (*val)); 47 #endif /* __SMP__*/47 #endif /* CONFIG_SMP */ 48 48 } 49 49 -
arch/ia32/src/atomic.S
r389f41e r5f85c91 29 29 .text 30 30 31 #ifdef __SMP__31 #ifdef CONFIG_SMP 32 32 33 33 .global spinlock_arch … … 43 43 44 44 0: 45 #ifdef __HT__45 #ifdef CONFIG_HT 46 46 pause # Pentium 4's with HT love this instruction 47 47 #endif -
arch/ia32/src/ia32.c
r389f41e r5f85c91 63 63 trap_register(VECTOR_SYSCALL, syscall); 64 64 65 #ifdef __SMP__65 #ifdef CONFIG_SMP 66 66 trap_register(VECTOR_TLB_SHOOTDOWN_IPI, tlb_shootdown_ipi); 67 67 trap_register(VECTOR_WAKEUP_IPI, wakeup_ipi); 68 #endif /* __SMP__*/68 #endif /* CONFIG_SMP */ 69 69 } 70 70 } … … 82 82 memory_print_map(); 83 83 84 #ifdef __SMP__84 #ifdef CONFIG_SMP 85 85 acpi_init(); 86 #endif /* __SMP__*/86 #endif /* CONFIG_SMP */ 87 87 } 88 88 } -
arch/ia32/src/interrupt.c
r389f41e r5f85c91 111 111 void nm_fault(__u8 n, __native stack[]) 112 112 { 113 #ifdef FPU_LAZY113 #ifdef CONFIG_FPU_LAZY 114 114 scheduler_fpu_lazy_request(); 115 115 #else -
arch/ia32/src/smp/ap.S
r389f41e r5f85c91 33 33 .section K_TEXT_START_2, "ax" 34 34 35 #ifdef __SMP__35 #ifdef CONFIG_SMP 36 36 37 37 .global ap_boot … … 74 74 jmpl $KTEXT, $main_ap 75 75 76 #endif /* __SMP__*/76 #endif /* CONFIG_SMP */ -
arch/ia32/src/smp/apic.c
r389f41e r5f85c91 38 38 #include <arch.h> 39 39 40 #ifdef __SMP__40 #ifdef CONFIG_SMP 41 41 42 42 /* … … 417 417 } 418 418 419 #endif /* __SMP__*/419 #endif /* CONFIG_SMP */ -
arch/ia32/src/smp/ipi.c
r389f41e r5f85c91 27 27 */ 28 28 29 #ifdef __SMP__29 #ifdef CONFIG_SMP 30 30 31 31 #include <smp/ipi.h> … … 37 37 } 38 38 39 #endif /* __SMP__*/39 #endif /* CONFIG_SMP */ -
arch/ia32/src/smp/mps.c
r389f41e r5f85c91 27 27 */ 28 28 29 #ifdef __SMP__29 #ifdef CONFIG_SMP 30 30 31 31 #include <config.h> … … 423 423 } 424 424 425 #endif /* __SMP__*/425 #endif /* CONFIG_SMP */ -
arch/ia32/src/smp/smp.c
r389f41e r5f85c91 48 48 #include <arch/i8259.h> 49 49 50 #ifdef __SMP__50 #ifdef CONFIG_SMP 51 51 52 52 static struct smp_config_operations *ops = NULL; … … 166 166 } 167 167 168 #endif /* __SMP__*/168 #endif /* CONFIG_SMP */ -
arch/mips32/Makefile.inc
r389f41e r5f85c91 103 103 104 104 ifeq ($(CONFIG_FPU_LAZY),y) 105 DEFS += -D FPU_LAZY105 DEFS += -DCONFIG_FPU_LAZY 106 106 endif 107 107 -
arch/mips32/src/exception.c
r389f41e r5f85c91 74 74 break; 75 75 case EXC_CpU: 76 #ifdef FPU_LAZY76 #ifdef CONFIG_FPU_LAZY 77 77 if (cp0_cause_coperr(cause) == fpu_cop_id) 78 78 scheduler_fpu_lazy_request();
Note:
See TracChangeset
for help on using the changeset viewer.