Changeset 46c20c8 in mainline for kernel/arch/mips32/src/smp/dorder.c


Ignore:
Timestamp:
2010-11-26T20:08:10Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
45df59a
Parents:
fb150d78 (diff), ffdd2b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    rfb150d78 r46c20c8  
    3333 */
    3434
     35#include <typedefs.h>
     36#include <smp/ipi.h>
    3537#include <arch/smp/dorder.h>
    3638
    3739#define MSIM_DORDER_ADDRESS  0xB0000004
    3840
     41#ifdef CONFIG_SMP
     42
    3943void ipi_broadcast_arch(int ipi)
    4044{
    41 #ifdef CONFIG_SMP
    42         *((volatile unsigned int *) MSIM_DORDER_ADDRESS) = 0x7FFFFFFF;
     45        *((volatile uint32_t *) MSIM_DORDER_ADDRESS) = 0x7fffffff;
     46}
     47
    4348#endif
     49
     50uint32_t dorder_cpuid(void)
     51{
     52        return *((volatile uint32_t *) MSIM_DORDER_ADDRESS);
     53}
     54
     55void dorder_ipi_ack(uint32_t mask)
     56{
     57        *((volatile uint32_t *) (MSIM_DORDER_ADDRESS + 4)) = mask;
    4458}
    4559
Note: See TracChangeset for help on using the changeset viewer.