summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src (unfollow)
Commit message (Collapse)AuthorFilesLines
1999-03-31Patch from Chris Johns <ccj@acm.org>:Joel Sherrill1-5/+13
joel@OARcorp.com wrote: > > Chris, > > sp09 fails on the rtems_port_delete(0) call. This is supposed to give an > invalid id error. I can't find any changes other than the unlimited > objects patch which would have tripped this so would appreciate it if you > could look into it. I suspect that this is a side-effect of the unlimited > objects patch. > It is me. > > Basically, there are 0 ports configured in sp09. The test ends up > dereferecing NULL in local_table[0] and comes up with a non-NULL invalid > pointer. > The issue is not actually allocating a local_table for an object type which has a maximum value of 0. I cannot remember the exact workings of the id values and the local_table. I might have changed the nature from the pre-unlimited change. As you know the id's are an interesting game where performance is most important. > > I know the problem could be solved by adding a check for index == 0. But > I hate to slow this path down. I think you may have changed the way the > object information structure gets initialized. > ---- CVS log ---- This change lets the unlimited and sp09 tests run on the posix Linux BSP. A static local variable `null_local_table' has been added. This variable is always set to NULL. The `**local_table' element of the information structure is set to point to this variable earily in the initialisation. If the object type has more than 0 elements the `local_table' element is updated. All object types which have 0 elements reference `null_local_table'. This change fixes the problem sp09 found yet does not add any extra processing to the critical `_Objects_Get_local_object' function. ---- CVS log ----
1999-03-17Unlimited objects patch from Chris Johns <ccj@acm.org>. Email follows:Joel Sherrill1-81/+483
First, the unlimited patch. I have compiled the unlmited patch for the Linux posix BSP only and it seems to work cleanly. I would like a really major application run on this change before commiting as the changes are very core and significant. I am currently building all the tests to run. I have no targets suitable to test on at the moment. I have tested the patch for inline functions and macros. Turning macros on has found some core bugs. I have fixed these but have not run all the tests. Please review the patch for these changes. They are: 1) The conditional compilation for MP support broke the core messages code. You cannot embed a conditional macro in another macro. The Send and Urgent Send calls are macros. 2) User extensions handler initialisation now has two parameters. I have updated the macros to support the extra parameter. The patch also contains the gcc-target-default.cfg fix required to build the kernel. More of a by product than a fix for you.
1998-12-03Corrected spacing.Joel Sherrill1-1/+1
1998-11-23Added --disable-multiprocessing flag and modified a lot of files to makeJoel Sherrill7-4/+47
it work.
1998-11-19Patch from Eric Norum <eric@skatter.usask.ca>:Joel Sherrill1-0/+8
1) Socket timeout field changed from `short' to `long'. This makes longer timeouts possible. With a 1 kHz system clock the old system allowed timeouts only up to a little over 30 seconds! This change is a slightly cleaned-up version of the patch proposed by Ian Lance Taylor. 2) Major changes to BOOTP/DHCP reply handling. Now supports much of RFC2132. These changes were done at the request of, and with the assistance of, Erik Ivanenko. If you're making changes, you might want to change the network supplement Essentially just do a global search and replace of BOOTP with BOOTP/DHCP.
1998-09-23IDLE task stack size now specified as a field in the CPU Table for allJoel Sherrill1-2/+7
ports.
1998-02-20Modified to make it possible for an ISR to return a mutex which didJoel Sherrill1-2/+20
not use priority ceiling or priority inheritance protocols.
1998-02-18Ralf Corsepius noted that there was a dead path in _Thread_Initialize.Joel Sherrill1-6/+2
1998-02-17updated copyright to 1998Joel Sherrill18-18/+18
1998-01-06Fixed spacing.Joel Sherrill1-2/+2
1997-10-08Fixed typo in the pointer to the license terms.Joel Sherrill18-36/+36
1997-05-28Added support for context switching the data used by the gcc m68kJoel Sherrill1-1/+1
software floating point emulation code. Code implemented by Karen Sara Looney <Karen.Looney@colorado.edu> with much email assistance from Joel.
1997-04-22headers updated to reflect new style copyright notice as partJoel Sherrill18-90/+90
of switching to the modified GNU GPL.
1997-04-09added support for tracking thread cpu usage.Joel Sherrill1-0/+2
1997-04-09enhanced printf statementsJoel Sherrill1-4/+4
1997-03-08Modified calls to _Thread_Change_priority to take a third argument. The newJoel Sherrill2-10/+39
argument indicates whether the task is to be placed at the head or tail of its priority fifo when it is lowering its own priority. POSIX normally follows the RTEMS API conventions but GNAT expects that all lowering of a task's priority by the task itself will result in being placed at the head of the priority FIFO. Normally, this would only occur as the result of lose of inherited priority.
1997-01-08added some casts to reduce warnings reported by users with Microtec C++Joel Sherrill4-28/+35
compiler.
1996-10-15added support for cpu time used field in tcbJoel Sherrill1-0/+16
1996-09-18loop to clear workspace memory changed to use sizeof rather thanJoel Sherrill1-1/+1
hardcoded 4 to be compatible with CPUs with 64-bit ints
1996-09-18corrected prototype of _Objects_Get_nextJoel Sherrill1-1/+1
1996-09-18uses address object rather than direct pointer arithmeticJoel Sherrill1-2/+3
1996-09-17Reversed logic in conditional to correctly distinguish betweenJoel Sherrill1-2/+2
FIFO and priority disciplines.
1996-09-06changed _TOD_Is_set from a function to a boolean variableJoel Sherrill1-0/+4
1996-08-15_Thread_Start_multitasking: added code to initialize the floating pointJoel Sherrill1-1/+25
context of the first thread to execute.
1996-08-13fixed spacingJoel Sherrill1-2/+2
1996-08-08_MPCI_Register_packet_processor: changes first parameter type to ↵Mark Johannes1-1/+1
MP_packet_Classes
1996-08-07_CORE_Mutex_seize: added checks for priority ceiling violation, also addedMark Johannes1-6/+24
checks to ensure priority was not lowered.
1996-08-06_CORE_mutex_Seize: added change priority case if the mutex was obtained.Mark Johannes1-0/+12
1996-06-13Added code so post context switch extensions can be run on every contextJoel Sherrill1-2/+5
switch. This was needed to support process wide signals.
1996-06-10added code to _Thread_Clear_state to check if the state was not currently set.Joel Sherrill1-13/+19
1996-06-06Added Sporadic Server support to posix threads which required changesJoel Sherrill2-27/+51
in the core to support multiple algorithms to handle cpu time budgetting which resulted in a change to the calling sequence of _Thread_Initialize.
1996-06-05added cpu_time_budget field to Thread_Control and removed the global variableJoel Sherrill1-4/+3
_Thread_Ticks_remaining_in_timeslice.
1996-06-05fixed spacingJoel Sherrill1-1/+1
1996-06-05added support for the api providing the thread stack areaJoel Sherrill1-23/+33
1996-06-03added priority ceiling supportJoel Sherrill1-32/+61
1996-05-31renamed _TOD_Ticks_since_boot as _Watchdog_Ticks_since_boot so the WatchdogJoel Sherrill2-1/+6
Handler could timestamp the starting and stopping of timers. Since TOD is built on top of Watchdog, this avoided a circular dependency.
1996-05-29spacingJoel Sherrill1-0/+1
1996-05-28changed call to _ISR_Enable() to _ISR_Set_level() in _Thread_Handler.Joel Sherrill1-1/+1
_ISR_Enable() takes the magic cookie expected by the cpu's status register instead of a simple isr level.
1996-05-23invoke thread stack free routine instead of Workspace free.Joel Sherrill1-2/+26
1996-04-24added comment regarding stack alignment issues to thread stack allocationJoel Sherrill1-0/+14
routine.
1996-04-22thread.c: added support for optional user provided stack allocatorJoel Sherrill2-8/+123
wkspace.c: made initialization routine a regular subroutine
1996-03-21*** empty log message ***Joel Sherrill1-4/+4
1996-02-21Removed the internal thread objects and dispersed its contents toJoel Sherrill2-7/+286
the thread handler (IDLE), MPCI object (SYSI now MP Receive) and initialize_executive_early (IO initialization). The SYSI task no longer exists in a single processor configuration. This reduces single processor Workspace requirements by a TCB and a stack which is often larger than the minimum stack size. Moving the IO initialization plus accompanying BSP hooks eliminated an initialization ordering problem in which a global task could be created before the MPCI was initialized.
1996-02-14removed arguments from _Thread_Start_multitaskingJoel Sherrill1-12/+10
1996-02-14white space problemJoel Sherrill1-1/+0
1996-02-13changed post task extension from user set to api set and added flagJoel Sherrill2-1/+27
in each thread which must be set when the post switch extension is to be run.
1996-02-13more comments added and existing ones cleaned up in synchronization pathsJoel Sherrill1-1/+13
1996-02-09new isr synchronization algorithm using a single enumerated set of states.Joel Sherrill1-42/+73
1996-02-01Swapped order of nested acquisition check and check for returning unsatisfied.Joel Sherrill1-6/+6
1996-02-01synchronization state bugs addressJoel Sherrill1-7/+12