Changeset 7f341820 in mainline for kernel/arch/mips32/src
- Timestamp:
- 2009-02-17T14:09:31Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 30e2bba
- Parents:
- 85156d3
- Location:
- kernel/arch/mips32/src
- Files:
-
- 1 added
- 1 deleted
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/asm.S
r85156d3 r7f341820 28 28 29 29 #include <arch/asm/regname.h> 30 30 31 31 .text 32 32 … … 46 46 .set noreorder 47 47 .set nomacro 48 49 .global asm_delay_loop 50 asm_delay_loop: 51 j $31 52 nop 48 53 49 54 .global cpu_halt -
kernel/arch/mips32/src/debugger.c
r85156d3 r7f341820 163 163 if (breakpoints[i].address == (uintptr_t)argv->intval) { 164 164 printf("Duplicate breakpoint %d.\n", i); 165 spinlock_unlock(&bkpoint s_lock);165 spinlock_unlock(&bkpoint_lock); 166 166 return 0; 167 167 } else if (breakpoints[i].address == (uintptr_t)argv->intval + … … 170 170 printf("Adjacent breakpoints not supported, conflict " 171 171 "with %d.\n", i); 172 spinlock_unlock(&bkpoint s_lock);172 spinlock_unlock(&bkpoint_lock); 173 173 return 0; 174 174 } 175 175 176 176 } 177 177 -
kernel/arch/mips32/src/interrupt.c
r85156d3 r7f341820 42 42 #include <ddi/device.h> 43 43 44 #define IRQ_COUNT 8 45 #define TIMER_IRQ 7 44 #define IRQ_COUNT 8 45 #define TIMER_IRQ 7 46 #define DORDER_IRQ 5 46 47 47 48 function virtual_timer_fnc = NULL; -
kernel/arch/mips32/src/mips32.c
r85156d3 r7f341820 167 167 } 168 168 169 void calibrate_delay_loop(void) 170 { 171 } 172 169 173 void userspace(uspace_arg_t *kernel_uarg) 170 174 { -
kernel/arch/mips32/src/mm/tlb.c
r85156d3 r7f341820 27 27 */ 28 28 29 /** @addtogroup mips32mm 29 /** @addtogroup mips32mm 30 30 * @{ 31 31 */ … … 42 42 #include <arch.h> 43 43 #include <symtab.h> 44 #include <synch/ spinlock.h>44 #include <synch/mutex.h> 45 45 #include <print.h> 46 46 #include <debug.h> … … 93 93 pte_t *pte; 94 94 int pfrc; 95 95 96 96 badvaddr = cp0_badvaddr_read(); 97 98 spinlock_lock(&AS->lock);97 98 mutex_lock(&AS->lock); 99 99 asid = AS->asid; 100 spinlock_unlock(&AS->lock);101 100 mutex_unlock(&AS->lock); 101 102 102 page_table_lock(AS, true); 103 103 104 104 pte = find_mapping_and_check(badvaddr, PF_ACCESS_READ, istate, &pfrc); 105 105 if (!pte) { -
kernel/arch/mips32/src/smp/dorder.c
r85156d3 r7f341820 27 27 */ 28 28 29 /** @addtogroup mips32 29 /** @addtogroup mips32 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #include <arch/smp/ order.h>35 #include <arch/smp/dorder.h> 36 36 37 #define MSIM_ ORDER_ADDRESS0xB000000437 #define MSIM_DORDER_ADDRESS 0xB0000004 38 38 39 39 void ipi_broadcast_arch(int ipi) 40 40 { 41 *((volatile unsigned int *) MSIM_ORDER_ADDRESS) = 0x7FFFFFFF; 41 #ifdef CONFIG_SMP 42 *((volatile unsigned int *) MSIM_DORDER_ADDRESS) = 0x7FFFFFFF; 43 #endif 42 44 } 43 45
Note:
See TracChangeset
for help on using the changeset viewer.