Commit Graph

25160 Commits

Author SHA1 Message Date
Sebastian Huber
f2d9fda780 shell: Include missing header file 2013-07-22 16:45:58 +02:00
Sebastian Huber
ca1d84efb8 network: Include missing header file 2013-07-22 16:45:58 +02:00
Sebastian Huber
a1b4752869 posix: Include missing header files 2013-07-22 16:45:58 +02:00
Sebastian Huber
1e4f08b412 score: Include missing header files 2013-07-22 16:45:58 +02:00
Sebastian Huber
57c8805648 smptests: Be successful on one processor 2013-07-22 16:45:58 +02:00
Ralf Kirchner
2f589cccae bsp/gen83xx: Fix BSP options for MPC8348EAMDS 2013-07-18 10:19:38 +02:00
Sebastian Huber
e7ce41bb6d libcsupport: Do not use _ISR_Nest_level
The _Thread_Dispatch_is_enabled() is false if _ISR_Nest_level is not
equal to zero.
2013-07-18 09:58:58 +02:00
Sebastian Huber
401f1b9d56 rtems, posix: Use _Thread_Get_executing() 2013-07-18 09:58:58 +02:00
Sebastian Huber
95e09afa92 score: Avoid direct usage of _Thread_Executing
Pass the executing thread as a function parameter.  Obtain the executing
thread inside a thread dispatch critical section to avoid problems on
SMP.
2013-07-18 09:58:58 +02:00
Sebastian Huber
ac15b0716a score: Convert to inline function 2013-07-18 09:58:58 +02:00
Sebastian Huber
9728ef357f posix: Convert to inline function 2013-07-18 09:58:57 +02:00
Sebastian Huber
15462a6f1c rtems: Convert to inline functions 2013-07-18 09:58:57 +02:00
Sebastian Huber
20e239c2f0 score: Create mutex implementation header
Move implementation specific parts of coremutex.h and coremutex.inl into
new header file coremuteximpl.h.  The coremutex.h contains now only the
application visible API.
2013-07-18 09:58:57 +02:00
Sebastian Huber
f9d533a5f3 posix: Create mutex implementation header
Move implementation specific parts of mutex.h and mutex.inl into new
header file muteximpl.h.  The mutex.h contains now only the application
visible API.
2013-07-18 09:58:57 +02:00
Sebastian Huber
2bbea657ae rtems: Create semaphore implementation header
Move implementation specific parts of sem.h and sem.inl into new header
file semimpl.h.  The sem.h contains now only the application visible
API.
2013-07-18 09:58:56 +02:00
Sebastian Huber
0dd262d33d libtests/gxx01: Avoid random memory read/write 2013-07-18 09:58:56 +02:00
Sebastian Huber
cbfe05c95a score: Update due to API changes 2013-07-18 09:58:56 +02:00
Sebastian Huber
f7740e97a2 smp: Rename _CPU_Processor_event_receive()
Rename to _CPU_SMP_Processor_event_receive().
2013-07-17 13:09:50 +02:00
Sebastian Huber
07f6e4193e smp: Rename _CPU_Processor_event_broadcast()
Rename to _CPU_SMP_Processor_event_broadcast().
2013-07-17 13:09:50 +02:00
Sebastian Huber
ca63ae2ec0 smp: Add and use _CPU_SMP_Send_interrupt()
Delete bsp_smp_interrupt_cpu().
2013-07-17 13:09:50 +02:00
Sebastian Huber
39e51758c8 smp: Add and use _CPU_SMP_Get_current_processor()
Add and use _SMP_Get_current_processor() and
rtems_smp_get_current_processor().

Delete bsp_smp_interrupt_cpu().

Change type of current processor index from int to uint32_t to match
_SMP_Processor_count type.
2013-07-17 13:09:49 +02:00
Sebastian Huber
a7ce0cec5d smp: Delete RTEMS_BSP_SMP_CONTEXT_SWITCH_NECESSARY
The thread dispatch is a side-effect of interrupt processing, thus there
is no need to send an explicit message.
2013-07-17 13:09:49 +02:00
Sebastian Huber
9c9b62d8dd score: Changes due to Newlib __DYNAMIC_REENT__
Delete _Thread_libc_reent and add __getreent() instead according to
__DYNAMIC_REENT__ define.

For SMP configurations __DYNAMIC_REENT__ must be defined.

A Newlib including the following patch is required:

2013-07-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	* libc/include/sys/config.h (__DYNAMIC_REENT__): Define for RTEMS.
2013-07-17 13:09:49 +02:00
Sebastian Huber
f74d9496ee score: Add _Thread_Get_executing() 2013-07-17 13:09:49 +02:00
Sebastian Huber
8b721d5e11 libcsupport: Use _reclaim_reent()
A Newlib including the following patch is required:

2013-04-25  Sebastian Huber <sebastian.huber@embedded-brains.de>

	* libc/stdio/local.h (_STDIO_CLOSE_PER_REENT_STD_STREAMS): New define.
	* libc/stdio/findfp.c (_STDIO_CLOSE_PER_REENT_STD_STREAMS): Use define.
2013-07-17 13:09:49 +02:00
WeiY
a04182c608 clean up old atomic related files 2013-07-17 13:07:34 +02:00
WeiY
2e7f579865 stdatomic.h support check when configure 2013-07-17 13:07:33 +02:00
WeiY
5186b55180 smpatomic test case update 2013-07-17 13:07:33 +02:00
WeiY
a3e9c228f9 spatomic test case update 2013-07-17 13:07:33 +02:00
WeiY
d61e54c2e0 update-all-architectures-to-new-atomic-implementation 2013-07-17 13:07:33 +02:00
WeiY
34229d5285 A generic atomic implementation for smp architectures 2013-07-17 13:07:33 +02:00
WeiY
1180099ed9 New atomic API definition based on C11 atomic 2013-07-17 13:07:32 +02:00
Ric Claus
3923472555 bsps/arm: Fix for top of the address space 2013-07-17 10:13:34 +02:00
Ric Claus
691e0eff5d bsp/xilinx-zynq: Provide BSP variants 2013-07-17 10:13:31 +02:00
Sebastian Huber
51a58e0c83 bsp/xilinx-zynq: Use bsp_console_select() 2013-07-17 10:13:27 +02:00
Sebastian Huber
7306578c42 bsps/serial: Move bsp_console_select() declaration 2013-07-17 08:19:59 +02:00
Sebastian Huber
7a7f0719d9 posix: Delete unused functions 2013-07-16 19:09:26 +02:00
Sebastian Huber
b71cdd2583 rtems: Delete unused functions 2013-07-16 19:09:26 +02:00
Sebastian Huber
3ccaf3c9f3 bsps: Use rtems_task_self() 2013-07-16 19:09:25 +02:00
Sebastian Huber
85d2e4b58f libchip/ata: Remove dead code 2013-07-16 19:09:25 +02:00
Vipul Nayyar
ad4ce28ba8 Updated legacy code in arm edb7312 2013-07-16 08:30:13 +02:00
Sebastian Huber
4e5608dd4d arm: Fix exception frame information
Use the right stack pointer value for the exception frame.  Assume that
we do not have a double abort exception.
2013-07-16 08:25:41 +02:00
Sebastian Huber
06adfae309 bsps/arm: Disable alignment exceptions 2013-07-16 08:25:26 +02:00
Sebastian Huber
c8d78ee510 bsp/mpc55xx: Add MPC5668G support 2013-07-15 11:57:13 +02:00
Vipul Nayyar
583eb4588f bsp/rtl22xx: Use IRQ extensions API 2013-07-15 11:51:50 +02:00
Ric Claus
818d4b090f bsps/arm: Fix printk args to match format 2013-07-15 09:40:59 +02:00
Vipul Nayyar
163e88a8c3 bsp/gumstix: Fix warnings 2013-07-12 21:58:13 +02:00
Vipul Nayyar
9b6add418c Updated Legacy code in arm gba 2013-07-12 14:01:20 +02:00
Sebastian Huber
5252822cb4 bsps: Simplify bsp_generic_fatal() declaration 2013-07-11 10:07:39 +02:00
Joel Sherrill
79363a1d56 libbsp/shared/generic-fatal.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to bsp_f 2013-07-10 12:38:12 -05:00