Changeset f27e21d in mainline


Ignore:
Timestamp:
2019-03-31T17:11:12Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e064102
Parents:
f5dd4a1
Message:

Use pio_read/write functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/mach/msim/dorder.c

    rf5dd4a1 rf27e21d  
    3838#include <smp/ipi.h>
    3939#include <interrupt.h>
     40#include <arch/asm.h>
     41#include <typedefs.h>
    4042
    4143static irq_t dorder_irq;
     
    4547void ipi_broadcast_arch(int ipi)
    4648{
    47         *((volatile uint32_t *) MSIM_DORDER_ADDRESS) = 0x7fffffff;
     49        pio_write_32(((ioport32_t *) MSIM_DORDER_ADDRESS), 0x7fffffff);
    4850}
    4951
     
    7375uint32_t dorder_cpuid(void)
    7476{
    75         return *((volatile uint32_t *) MSIM_DORDER_ADDRESS);
     77        return pio_read_32((ioport32_t *) MSIM_DORDER_ADDRESS);
    7678}
    7779
    7880void dorder_ipi_ack(uint32_t mask)
    7981{
    80         *((volatile uint32_t *) (MSIM_DORDER_ADDRESS + 4)) = mask;
     82        pio_write_32((ioport32_t *) (MSIM_DORDER_ADDRESS + 4), mask);
    8183}
    8284
Note: See TracChangeset for help on using the changeset viewer.