Sebastian Huber
be6c4611ac
score: _CORE_mutex_Seize_interrupt_blocking()
...
Move some code into _CORE_mutex_Seize_interrupt_blocking() so that the
thread queue handling is in one place.
2015-04-23 10:28:52 +02:00
Sebastian Huber
9f10911d2b
score: Delete Thread_queue_Control::state
...
Use a parameter for _Thread_queue_Enqueue() instead to reduce memory
usage.
2015-04-23 08:55:43 +02:00
Sebastian Huber
d349e8a439
score: Fix priority message queue insert
...
Move the linear search into a critical section to avoid corruption due
to higher priority interrupts. The interrupt disable time depends now
on the count of pending messages.
Close #2328 .
2015-04-23 08:54:09 +02:00
Sebastian Huber
b0686b473d
score: Delete _CORE_RWLock_Timeout()
...
This function was identical to _Thread_queue_Timeout(). This makes
_Thread_queue_Enqueue_with_handler() obsolete.
2015-04-22 13:58:32 +02:00
Sebastian Huber
49d436497e
score: Delete bogus THREAD_QUEUE_WAIT_FOREVER
...
It makes no sense to use this indirection since the type for timeout
values is Watchdog_Interval.
2015-04-22 11:38:57 +02:00
Daniel Cederman
3641320161
smptests/smpcache01: Enable interrupts before waiting for other CPUs
...
Otherwise there is a risk that a CPU misses a cache manager message
from another CPU and the test hangs.
2015-04-22 09:29:56 +02:00
Sebastian Huber
d3802bb5d7
score: Delete object control block ISR lock
...
The Objects_Control::Lock was a software layer violation. It worked
only for the threads since they are somewhat special.
Update #2273 .
2015-04-21 08:25:32 +02:00
Sebastian Huber
1041de1ab0
score: Add _Thread_Get_interrupt_disable()
...
Remove _Thread_Acquire() and _Thread_Acquire_for_executing(). Add
utility functions for the default thread lock. Use the default thread
lock for the RTEMS events. There is no need to disable thread
dispatching and a Giant acquire in _Event_Timeout() since this was
already done by the caller.
Update #2273 .
2015-04-21 08:25:32 +02:00
Sebastian Huber
413b9e286d
score: Modify _Thread_Dispatch_disable_critical()
...
Return the current processor to be in line with
_Thread_Disable_dispatch().
2015-04-21 08:25:31 +02:00
Sebastian Huber
3bf4a9fac4
score: _Objects_Get_isr_disable()
...
Do not disable thread dispatching and do not acquire the Giant lock.
This makes it possible to use this object get variant for fine grained
locking.
Update #2273 .
2015-04-21 08:25:31 +02:00
Sebastian Huber
4db0ae8e07
score: _Objects_Get_isr_disable()
...
Use ISR_lock_Context instead of ISR_Level to allow use of ISR locks for
low-level locking.
Update #2273 .
2015-04-21 08:25:31 +02:00
Sebastian Huber
1981b4697e
score: Add _ISR_lock_ISR_disable/enable()
2015-04-20 08:23:26 +02:00
Sebastian Huber
26c142e5ad
score: Refactor SMP cache manager support
2015-04-20 08:23:25 +02:00
Hesham ALMatary
3d597c04ed
Rename or1ksim BSP to generic_or1k
...
or1ksim BSP was initially named after or1ksim simulator, and it was
intented to only run there. But now it can also run on QEMU, jor1k and
real FPGA boards without modifications. It makes more sense to give
it a new generic name like generic_or1k.
2015-04-19 06:26:36 -04:00
Joel Sherrill
491434cd7c
sp13: Document message buffer usage and adjust configuration
2015-04-17 09:49:45 -05:00
Joel Sherrill
3985e75803
user/libpci.t: Make it build and clean up
2015-04-17 09:46:08 -05:00
Joel Sherrill
c5d86ec0c9
or1k-utility.h: Add missing end of C++ header pattern
...
closes 2326.
2015-04-17 09:45:05 -05:00
Martin Galvan
41b37e0073
score: Improve assert
...
While cpu_self->thread_dispatch_disable_level shouldn't ever be zero, it
would be better to check it before doing the decrement.
2015-04-17 11:03:02 +02:00
Sebastian Huber
b8cdc38b2f
sptests/sp52: Reduce clock tick interval
...
This helps on slow simulators.
2015-04-17 10:47:21 +02:00
Sebastian Huber
c7a65085d2
Fix build for non-SPARC targets
2015-04-17 09:19:03 +02:00
Sebastian Huber
8d6fd40592
sapi: Avoid declaration in source, fix type
2015-04-17 08:46:33 +02:00
Sebastian Huber
a211a732fd
score: Fix _TOD_Set_with_timestamp()
...
Update the current time before the watchdog adjust so that timer
routines observe the new time.
2015-04-17 08:38:09 +02:00
Daniel Hellstrom
c77e3cb1b0
LEON3: gptimer drvmgr init simplified wrt boot
2015-04-17 01:10:30 +02:00
Daniel Hellstrom
9fe249d032
LEON3: move timer variable to where initialized
2015-04-17 01:10:30 +02:00
Daniel Hellstrom
efd43ad162
LEON3: simplify amba initialization
2015-04-17 01:10:30 +02:00
Daniel Hellstrom
628e739368
LEON3: clock irq always same as timer instance
...
The leon.h already contains the definition of LEON3_CLOCK_INDEX
and irq must always follow that when separate IRQ is supported by
the HW. The definitions are resued from leon.h.
2015-04-17 01:10:30 +02:00
Daniel Hellstrom
291c53917d
DRVMGR: remove struct driver registration func
2015-04-17 01:10:30 +02:00
Daniel Hellstrom
4c9c46df76
DRVMGR: clean-up DRV_OPS_NUM
2015-04-17 01:10:30 +02:00
Daniel Hellstrom
bef5e23ef6
DRVMGR: renamed RES_EMPTY to DRVMGR_RES_EMPTY
2015-04-17 01:10:30 +02:00
Daniel Hellstrom
4d3e70f4a6
DRVMGR: KEY_TYPE now a enum drvmgr_kt
2015-04-17 01:10:30 +02:00
Daniel Hellstrom
14d55debf1
DRVMGR: renamed info_dev to get_info_dev
2015-04-17 01:10:30 +02:00
Daniel Hellstrom
246fe225f1
DRVMGR: change name of freq_get to get_freq
2015-04-17 01:10:29 +02:00
Daniel Hellstrom
bb2f2200aa
DRVMGR: renamed private drv_mgr and its struct name
2015-04-17 01:10:29 +02:00
Daniel Hellstrom
bf2c3f8baf
DRVMGR: updated README
2015-04-17 01:10:29 +02:00
Daniel Hellstrom
4f0906080d
DRVMGR: only build on SPARC platform
2015-04-17 01:10:28 +02:00
Daniel Hellstrom
4a7d1026ec
sparc bsps: updated license to rtems.org
2015-04-17 01:10:28 +02:00
Daniel Hellstrom
e53daed25e
LIBPCI: updated license to rtems.org
2015-04-17 01:10:28 +02:00
Daniel Hellstrom
0decc80664
DRVMGR: updated license to rtems.org
2015-04-17 01:10:28 +02:00
Daniel Hellstrom
cc3f87c0c7
DRVMGR: removed a goto and added comments
2015-04-17 01:10:28 +02:00
Daniel Hellstrom
1b645c3f4c
LIBPCI: corrected documentation
2015-04-17 01:10:28 +02:00
Daniel Hellstrom
f4bf22c8e5
LIBPCI: new implementation private header file
...
- new implementation private header file
- moved double implementation of pci_dev_create used by read & auto cfg
libraries to common pci_dev_create.c
- moved declaration of pci_bus_cnt to private header file so avoid extern
in .c files
2015-04-17 01:10:28 +02:00
Daniel Hellstrom
1f4f1e2e12
LIBPCI: various comment/unsed clean-ups
2015-04-17 01:10:28 +02:00
Daniel Hellstrom
346a9a5739
LIBPCI: use enum with pci_system_type
2015-04-17 01:10:28 +02:00
Daniel Hellstrom
15620f5b6b
LIBPCI: use RTEMS_INLINE_ROUTINE
2015-04-17 01:10:28 +02:00
Daniel Hellstrom
dc623099ca
LIBPCI: moved comment out of license header
2015-04-17 01:10:27 +02:00
Daniel Hellstrom
e189f24186
PCI BUS: moved comment out of license header
2015-04-17 01:10:27 +02:00
Daniel Hellstrom
2fb09129dd
DRVMGR: clean-up Makefile.am
2015-04-17 01:10:27 +02:00
Daniel Hellstrom
eff698916c
DRVMGR: use RTEMS_INLINE_ROUTINE
2015-04-17 01:10:27 +02:00
Daniel Hellstrom
39937b6c85
LIBPCI: added license and auto-gen comment to pci/ids.h
...
To be Merged.
2015-04-17 01:10:27 +02:00
Daniel Hellstrom
07e5a0e884
LIBPCI: clean-up pci_for_each_child() search arg
2015-04-17 01:10:27 +02:00