summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/i386/cpu_asm.S (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-02-14i386: Restore SMP functionalityKinsey Moore1-0/+2
When the switch to waf occurred, the SMP support in i386 was left out causing it to accumulate a minor amount of cruft. This enables SMP for the i386 BSPs that support it and updates them for the API drift that has occurred since the change.
2022-02-28score/cpu/i386: Change license to BSD-2Joel Sherrill1-3/+22
sse_test.c was deliberarely NOT changed. Updates #3053.
2022-02-23score/cpu/i386: Clean up file headers in prep for license change.Joel Sherrill1-2/+5
2020-07-29i386: Fix possible race condition on first context restoreJan Sommer1-1/+1
Make sure that the esp is restored before the eflags register. When the init task is initially restored, system interrupts are activated when the eflags register is loaded. If the esp register still points to an address in the interrupt stack area (from early system initlization) the ISR might overwrite its own stack. Closes #4031
2020-06-11bsp/pc386: Update context switch and restoreJan Sommer1-15/+48
Uses similar flow in cpu_asm.S for i386 as for arm.
2020-06-11bsp/pc386: Update GDT to work for SMPJan Sommer1-5/+6
Create a GS segment in the GDT for each processor for storing TLS. This makes the GDT in startAP.S obsolete as all processors now share the same GDT, which is passed to each AP at startup. The correct segment for each processor is calculated in cpu_asm.S. Update #3335
2017-06-12i386: Support thread-local storage (TLS)Sebastian Huber1-0/+8
Update #2468.
2014-12-04i386: doxygen and comments related to VESA real mode framebufferJan Dolezal1-2/+2
2014-11-20score: i386: functions converting real mode pointer to physical address and backJan Dolezal1-0/+43
2014-05-08score: Fix CPU context usage on SMPSebastian Huber1-4/+4
We must not alter the is executing indicator in _CPU_Context_Initialize() since this would cause an invalid state during a self restart. The is executing indicator must be valid at creation time since otherwise _Thread_Kill_zombies() uses an undefined value for not started threads. This could result in a system life lock.
2014-05-07score: Implement forced thread migrationSebastian Huber1-7/+22
The current implementation of task migration in RTEMS has some implications with respect to the interrupt latency. It is crucial to preserve the system invariant that a task can execute on at most one processor in the system at a time. This is accomplished with a boolean indicator in the task context. The processor architecture specific low-level task context switch code will mark that a task context is no longer executing and waits that the heir context stopped execution before it restores the heir context and resumes execution of the heir task. So there is one point in time in which a processor is without a task. This is essential to avoid cyclic dependencies in case multiple tasks migrate at once. Otherwise some supervising entity is necessary to prevent life-locks. Such a global supervisor would lead to scalability problems so this approach is not used. Currently the thread dispatch is performed with interrupts disabled. So in case the heir task is currently executing on another processor then this prolongs the time of disabled interrupts since one processor has to wait for another processor to make progress. It is difficult to avoid this issue with the interrupt latency since interrupts normally store the context of the interrupted task on its stack. In case a task is marked as not executing we must not use its task stack to store such an interrupt context. We cannot use the heir stack before it stopped execution on another processor. So if we enable interrupts during this transition we have to provide an alternative task independent stack for this time frame. This issue needs further investigation.
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-2/+0
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2011-07-242011-07-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-2/+1
* cpu.c, cpu_asm.S: Remove /*PAGE markers which were interpreted by a long dead print script.
2010-06-152010-06-15 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+0
* cpu_asm.S: Formatting.
2010-03-272010-03-27 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-0/+4
* cpu.c, cpu_asm.S, sse_test.c: Add include of config.h
2009-11-102009-11-09 Till Straumann <strauman@slac.stanford.edu>Till Straumann1-0/+34
* cpu.c, cpu_asm.S, rtems/score/cpu.h, sse_test.c: Added experimental SSE support.
2009-10-292009-10-28 Till Straumann <strauman@slac.stanford.edu>Till Straumann1-6/+15
* score/cpu/i386/rtems/score/cpu.h: Added #ifdef ASM constructs so that this header can be included from assembly code. Increased CPU_STACK_ALIGNMENT to 16 bytes. Gcc maintains 16-byte alignment and it may be a advantageous to provide initial 16-byte alignment. When using SSE some gcc versions may produce code that crashes if the stack is not 16-byte aligned. Make sure _CPU_Context_Initialize() sets the thread stack up so that it is aligned to CPU_CACHE_ALIGNMENT. * score/cpu/i386/cpu_asm.S: Align stack to CPU_CACHE_ALIGNMENT before calling C-code.
2004-04-16Remove stray white spaces.Ralf Corsepius1-20/+20
2004-04-092004-04-09 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-54/+54
* cpu_asm.S: Convert asm comments to C-comments to prevent gcc-3.4.0pre from choking on them.
2004-04-012004-04-01 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-1/+1
* cpu_asm.S: Include <rtems/asm.h> instead of <asm.h>.
2004-03-302004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-2/+2
* cpu.c, cpu_asm.S, rtems/score/cpu.h, rtems/score/interrupts.h: Convert to using c99 fixed size types.
2003-09-042003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* cpu.c, cpu_asm.S, rtems/score/cpu.h, rtems/score/i386.h, rtems/score/idtr.h, rtems/score/interrupts.h, rtems/score/registers.h, rtems/score/types.h: URL for license changed.
1999-11-17Updated copyright notice.Joel Sherrill1-2/+1
1999-10-05Removed targets and configurations that are no longer functionalJoel Sherrill1-7/+0
and not likely to become so. Comments on each configuration are below. + Force CPU386 - This BSP was developed as part of the initial port of RTEMS to the i386. This board has been unavailable for a long time now. + GO32 - This BSP and some CPU code supported djgpp v1.x. This version is now quite old. No one has stepped forward to update the code to v2.x which may be technically impossible anyway. More importantly, go32 has been superceded by the pc386 BSP.
1998-12-14Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to rename allJoel Sherrill1-0/+0
.s files to .S in conformance with GNU conventions. This is a minor step along the way to supporting automake.
1998-12-03Patch from Emmanuel Raguet <raguet@crf.canon.fr> to add remote debug serverJoel Sherrill1-0/+1
and RPC support to RTEMS. Thanks. :) Email follows: Hello, For Xmas, here is the Remote Debugger on RTEMS ! Here are 2 patches for the Remote Debugger on RTEMS for pc386 from Linux host : - one for RTEMS it self, - one for GDB-4.17. 1/ RTEMS patch -------------- This patch adds 2 libraries : - a simplified SUN RPC library - the Remote Debugger library The configuration command is the following : ../rtems4/configure --target=i386-rtemself --enable-rtemsbsp=pc386 --enable-rdbg The SUN RPC library is built only if networking is set. The RDBG library is built if networking and enable-rdbg are set. The function used to initialize the debugger is : rtems_rdbg_initialize (); A special function has been created to force a task to be in a "debug" state : enterRdbg(). The use of this function is not mandatory. 2/ GDB-4.17 patch ----------------- This patch create a new RTEMS target for GDB-4.17. The configuration command is the following : ./configure --enable-shared --target=i386RTEMS To connect to a target, use : target rtems [your_site_address] Then, attach the target using : attach 1 And... Debug ;) You can obtain the original GDB-4.17 on ftp://ftp.debian.org/debian/dists/stable/main/source/devel/gdb_4.17.orig.tar.gz This has been tested from a Debian 2.0.1 linux host.
1998-08-21Patch from Eric Valette <valette@crf.canon.fr>:Joel Sherrill1-0/+99
Here is a patch that enables to catch exception and get message before crashing RTEMS :) It should be generic to any Intel port although enabled only for pc386 BSP... [Joel] I fixed the bug I introduced in irq_asm.s...
1998-08-05Patch from Eric Valette <valette@crf.canon.fr> which brings the i386ex BSPJoel Sherrill1-438/+0
inline with the new IRQ structure.
1998-07-23Patch from Eric VALETTE <valette@crf.canon.fr>:Joel Sherrill1-40/+0
Here is a enhanced version of my previous patch. This patch enables to potentially share the new interrupt management code for all Intel targets (pc386, go32 and force386) bsp. Note : this patch is complete only for pc386. It still needs to be completed for go32 and force386. I carrefully checked that anything needed is in for force386 (only some function name changes for IDT manipulation and GDT segment manipulation). But anyway I will not be able to test any of theses targets...
1998-02-17updated copyright to 1998Joel Sherrill1-1/+1
1997-12-22Changed from .align to .p2align to avoid differences in meaning ofJoel Sherrill1-6/+6
.align between i386-rtems (real number on .align) and i386-go32-rtems (power of 2).
1997-10-08Fixed typo in the pointer to the license terms.Joel Sherrill1-2/+2
1997-04-22headers updated to reflect new style copyright notice as partJoel Sherrill1-5/+5
of switching to the modified GNU GPL.
1995-07-12Ada95, gnat, go32Joel Sherrill1-0/+6