Changeset f27e21d in mainline
- Timestamp:
- 2019-03-31T17:11:12Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e064102
- Parents:
- f5dd4a1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/mach/msim/dorder.c
rf5dd4a1 rf27e21d 38 38 #include <smp/ipi.h> 39 39 #include <interrupt.h> 40 #include <arch/asm.h> 41 #include <typedefs.h> 40 42 41 43 static irq_t dorder_irq; … … 45 47 void ipi_broadcast_arch(int ipi) 46 48 { 47 *((volatile uint32_t *) MSIM_DORDER_ADDRESS) = 0x7fffffff;49 pio_write_32(((ioport32_t *) MSIM_DORDER_ADDRESS), 0x7fffffff); 48 50 } 49 51 … … 73 75 uint32_t dorder_cpuid(void) 74 76 { 75 return *((volatile uint32_t *) MSIM_DORDER_ADDRESS);77 return pio_read_32((ioport32_t *) MSIM_DORDER_ADDRESS); 76 78 } 77 79 78 80 void dorder_ipi_ack(uint32_t mask) 79 81 { 80 *((volatile uint32_t *) (MSIM_DORDER_ADDRESS + 4)) = mask;82 pio_write_32((ioport32_t *) (MSIM_DORDER_ADDRESS + 4), mask); 81 83 } 82 84
Note:
See TracChangeset
for help on using the changeset viewer.