Commit Graph

25543 Commits

Author SHA1 Message Date
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
Vipul Nayyar
e183211be1 Updated Legacy code in arm gumstix 2013-07-10 12:26:25 -05:00
Vipul Nayyar
893d66937a Updated Legacy code in arm edb7312 2013-07-10 12:23:50 -05:00
Sebastian Huber
26c093e556 bsp/virtex: Use #if instead of #ifdef
This allows VIRTEX_CONSOLE_USE_INTERRUPTS=0 on the configure command
line to disable the interrupt mode.
2013-07-10 14:37:14 +02:00
Vipul Nayyar
52e44630e5 bsp/csb336: Use IRQ extensions API
Fix warnings.
2013-07-10 10:10:42 +02:00
Joel Sherrill
48a22edb4a libchip ns16550.c: Improve comment 2013-07-09 12:40:51 -05:00
Joel Sherrill
155ea78d9f threadhandler.c: Add comments 2013-07-09 12:40:51 -05:00
Sebastian Huber
0a697dd92c bsp/virtex: Add VIRTEX_CONSOLE_USE_INTERRUPTS
Add interrupt support for console driver.
2013-07-09 16:42:01 +02:00
Sebastian Huber
d168079cec bsp/virtex: Use ppc_count_leading_zeros()
Use ppc_count_leading_zeros() to optimize interrupt processing.
2013-07-09 16:42:00 +02:00
Sebastian Huber
296b60d72a bsp/virtex: Fix interrupt handling
Some modules like the XPS UART Lite use event triggered interrupts.  If
we acknowledge the interrupts after the interrupt service we may loose
these events.
2013-07-09 16:42:00 +02:00
Sebastian Huber
4fe3ad2f99 bsps/powerpc: Add ppc_count_leading_zeros() 2013-07-09 16:42:00 +02:00
Vipul Nayyar
6886a48530 bsp/csb337: Use IRQ extensions API
Fix warnings.
2013-07-07 15:02:02 +02:00
Sebastian Huber
ad83ea03eb mouse: Add shared bsp_get_serial_mouse_device() 2013-07-07 14:44:47 +02:00
Sebastian Huber
0d01826880 psxtests/psxcleanup: Fix cleanup push/pop test
The pthread_cleanup_push() and pthread_cleanup_pop() statements must
appear as a pair in the same lexical scope as required by POSIX.
2013-07-05 16:01:04 +02:00
Sebastian Huber
5e2a66d5c9 psxtests/psxhdrs: Fix cleanup push/pop test
The pthread_cleanup_push() and pthread_cleanup_pop() statements must
appear as a pair in the same lexical scope as required by POSIX.
2013-07-05 16:01:04 +02:00
Sebastian Huber
6009da1d2b posix: Add comment 2013-07-05 16:01:04 +02:00
Sebastian Huber
818edbd067 bsp/mpc55xx: Update due to API changes
Termios notifies now the driver about an inactive transmit with the
length argument set to zero.
2013-07-05 16:01:04 +02:00
Sebastian Huber
d91d50f638 bsp/mpc55xx: Avoid integer overflow 2013-07-05 16:01:03 +02:00