Changes in / [f8f7dba:72bf0d2] in mainline
- Files:
-
- 4 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/Makefile.inc
rf8f7dba r72bf0d2 50 50 endif 51 51 52 ifeq ($(COMPILER),clang) 53 CLANG_ARCH = i386 54 endif 55 52 56 BITS = 32 53 57 ENDIANESS = LE -
kernel/arch/sparc64/include/mm/sun4v/mmu.h
rf8f7dba r72bf0d2 28 28 */ 29 29 30 /** @addtogroup sparc64mm 30 /** @addtogroup sparc64mm 31 31 * @{ 32 32 */ -
kernel/arch/sparc64/include/mm/sun4v/tlb.h
rf8f7dba r72bf0d2 28 28 */ 29 29 30 /** @addtogroup sparc64mm 30 /** @addtogroup sparc64mm 31 31 * @{ 32 32 */ -
kernel/arch/sparc64/include/mm/sun4v/tsb.h
rf8f7dba r72bf0d2 28 28 */ 29 29 30 /** @addtogroup sparc64mm 30 /** @addtogroup sparc64mm 31 31 * @{ 32 32 */ -
kernel/arch/sparc64/include/mm/sun4v/tte.h
rf8f7dba r72bf0d2 27 27 */ 28 28 29 /** @addtogroup sparc64mm 29 /** @addtogroup sparc64mm 30 30 * @{ 31 31 */ -
kernel/arch/sparc64/include/smp/sun4v/smp.h
rf8f7dba r72bf0d2 38 38 #define KERN_sparc64_sun4v_SMP_H_ 39 39 40 bool calculate_optimal_nrdy(exec_unit_t *exec_unit); 40 #include <typedefs.h> 41 #include <arch/sun4v/cpu.h> 42 43 extern bool calculate_optimal_nrdy(exec_unit_t *); 41 44 42 45 #endif -
kernel/arch/sparc64/include/sun4v/cpu.h
rf8f7dba r72bf0d2 44 44 #ifndef __ASM__ 45 45 46 #include <atomic.h> 47 #include <synch/spinlock.h> 48 46 49 struct cpu; 47 50 … … 51 54 uint64_t cpuids[MAX_CORE_STRANDS]; 52 55 struct cpu *cpus[MAX_CORE_STRANDS]; 53 //cpu_t *cpus[MAX_CORE_STRANDS];54 56 atomic_t nrdy; 55 57 SPINLOCK_DECLARE(proposed_nrdy_lock); -
kernel/arch/sparc64/include/sun4v/ipi.h
rf8f7dba r72bf0d2 38 38 #define KERN_sparc64_sun4v_IPI_H_ 39 39 40 uint64_t ipi_brodcast_to(void (*func)(void), uint16_t cpu_list[MAX_NUM_STRANDS], 41 uint64_t list_size); 42 uint64_t ipi_unicast_to(void (*func)(void), uint16_t cpu_id); 40 #include <arch/types.h> 41 42 extern uint64_t ipi_brodcast_to(void (*)(void), uint16_t cpu_list[], uint64_t); 43 extern uint64_t ipi_unicast_to(void (*)(void), uint16_t); 43 44 44 45 #endif -
kernel/arch/sparc64/include/trap/sun4v/interrupt.h
rf8f7dba r72bf0d2 40 40 #ifndef __ASM__ 41 41 42 void sun4v_ipi_init(void);43 void cpu_mondo(void);42 extern void sun4v_ipi_init(void); 43 extern void cpu_mondo(void); 44 44 45 45 #endif -
kernel/arch/sparc64/src/cpu/sun4v/cpu.c
rf8f7dba r72bf0d2 42 42 #include <arch/sun4v/hypercall.h> 43 43 #include <arch/trap/sun4v/interrupt.h> 44 45 //#include <arch/trap/sun4v/interrupt.h>46 44 47 45 /** Perform sparc64 specific initialization of the processor structure for the … … 97 95 { 98 96 printf("cpu%d: Niagara (%d MHz)\n", m->id, 99 97 m->arch.clock_frequency / 1000000); 100 98 } 101 99 -
kernel/arch/sparc64/src/smp/sun4u/smp.c
rf8f7dba r72bf0d2 36 36 #include <genarch/ofw/ofw_tree.h> 37 37 #include <cpu.h> 38 #include <arch/ sun4u/cpu_family.h>38 #include <arch/cpu_family.h> 39 39 #include <arch/cpu.h> 40 40 #include <arch.h> … … 45 45 #include <synch/waitq.h> 46 46 #include <print.h> 47 #include <arch/ sun4u/cpu_node.h>47 #include <arch/cpu_node.h> 48 48 49 49 /** … … 62 62 { 63 63 ofw_tree_node_t *node; 64 count_t cnt = 0;64 unsigned int cnt = 0; 65 65 66 66 if (is_us() || is_us_iii()) { -
kernel/arch/sparc64/src/trap/sun4v/interrupt.c
rf8f7dba r72bf0d2 36 36 #include <arch/trap/interrupt.h> 37 37 #include <arch/sparc64.h> 38 #include <arch/trap/interrupt.h>39 38 #include <interrupt.h> 40 39 #include <ddi/irq.h> … … 89 88 CPU_MONDO_NENTRIES) != EOK) 90 89 panic("Initializing mondo queue failed on CPU %d.\n", 91 CPU->arch.id);90 CPU->arch.id); 92 91 } 93 92 … … 98 97 void cpu_mondo(void) 99 98 { 99 #ifdef CONFIG_SMP 100 100 unsigned int tail = asi_u64_read(ASI_QUEUE, VA_CPU_MONDO_QUEUE_TAIL); 101 101 unsigned int head = asi_u64_read(ASI_QUEUE, VA_CPU_MONDO_QUEUE_HEAD); 102 102 103 103 while (head != tail) { 104 105 104 uint64_t data1 = cpu_mondo_queues[CPU->id][0]; 106 105 107 106 head = (head + CPU_MONDO_ENTRY_SIZE * sizeof(uint64_t)) % 108 107 (CPU_MONDO_QUEUE_SIZE * sizeof(uint64_t)); 109 108 asi_u64_write(ASI_QUEUE, VA_CPU_MONDO_QUEUE_HEAD, head); 110 109 111 if (data1 == (uint 64_t) tlb_shootdown_ipi_recv) {110 if (data1 == (uintptr_t) tlb_shootdown_ipi_recv) { 112 111 ((void (*)(void)) data1)(); 113 112 } else { 114 113 printf("Spurious interrupt on %d, data = %lx.\n", 115 114 CPU->arch.id, data1); 116 115 } 117 118 116 } 119 117 #endif 120 118 } 121 119 -
kernel/generic/src/proc/scheduler.c
rf8f7dba r72bf0d2 201 201 * even though there is a runnable thread. 202 202 */ 203 203 204 cpu_sleep(); 204 205 goto loop; -
uspace/lib/libc/arch/abs32le/Makefile.inc
rf8f7dba r72bf0d2 46 46 endif 47 47 48 ifeq ($(COMPILER),clang) 49 CLANG_ARCH = i386 50 endif 51 48 52 ARCH_SOURCES = \ 49 53 arch/$(UARCH)/src/entry.c \
Note:
See TracChangeset
for help on using the changeset viewer.