Changeset b0f00a9 in mainline for kernel/arch/mips64/src/smp/dorder.c
- Timestamp:
- 2011-11-06T22:21:05Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 898e847
- Parents:
- 2bdf8313 (diff), 7b5f4c9 (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. - File:
-
- 1 moved
-
kernel/arch/mips64/src/smp/dorder.c (moved) (moved from uspace/lib/c/generic/ipc/ns.c ) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips64/src/smp/dorder.c
r2bdf8313 rb0f00a9 1 1 /* 2 * Copyright (c) 20 11Martin Decky2 * Copyright (c) 2007 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup libc29 /** @addtogroup mips64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #include <async.h> 36 #include <ipc/ns.h> 35 #include <typedefs.h> 36 #include <smp/ipi.h> 37 #include <arch/smp/dorder.h> 37 38 38 int service_register(sysarg_t service) 39 #define MSIM_DORDER_ADDRESS 0xffffffffb0000100 40 41 #ifdef CONFIG_SMP 42 43 void ipi_broadcast_arch(int ipi) 39 44 { 40 return async_connect_to_me(PHONE_NS, service, 0, 0, NULL);45 *((volatile uint32_t *) MSIM_DORDER_ADDRESS) = 0x7fffffff; 41 46 } 42 47 43 int service_connect(sysarg_t service, sysarg_t arg2, sysarg_t arg3) 48 #endif 49 50 uint32_t dorder_cpuid(void) 44 51 { 45 return async_connect_me_to(PHONE_NS, service, arg2, arg3);52 return *((volatile uint32_t *) MSIM_DORDER_ADDRESS); 46 53 } 47 54 48 int service_connect_blocking(sysarg_t service, sysarg_t arg2, sysarg_t arg3)55 void dorder_ipi_ack(uint32_t mask) 49 56 { 50 return async_connect_me_to_blocking(PHONE_NS, service, arg2, arg3);57 *((volatile uint32_t *) (MSIM_DORDER_ADDRESS + 4)) = mask; 51 58 } 52 59
Note:
See TracChangeset
for help on using the changeset viewer.
