Commit Graph

259 Commits (5e2b419e9e7a4a803dde7d9729bb48661ce9a23d)

Author SHA1 Message Date
Christian Mehlis 67d7d1fa96 core: improved doxygen documentation 10 years ago
Christian Mehlis 7b91ea9349 core: fix warning about discarding volatile 10 years ago
Thomas Eichinger 082a583ec6 Merge pull request #955 from thomaseichinger/fix_doc
core: documentation: fix doxygen documentation in cib.h clist.h config.h tcb.h
10 years ago
Thomas Eichinger d566ae9a28 fix doxygen documentation for clist.h, config.h, tcb.h and cib.h 10 years ago
Kévin Roussel 24f5cfafbb Add the ability to send a message to the current thread's message queue
(without raising an error)
10 years ago
Martin Lenders 8d1537a99c Remove duplicate function definition in queue.h 10 years ago
Hauke Petersen 8a937e1a1c hwtimer: clean up of interfaces to board/cpu 10 years ago
Oleg Hahm 85bd8cae17 check for existence of active_thread 10 years ago
Oleg Hahm 20b5230466 additional debug macro 10 years ago
Oleg Hahm 2ef9b78ccf add stacksize checker for DEBUG macro 10 years ago
Oleg Hahm 58aa0da315 added missing ENABLE_DEBUG define in mutex.c 10 years ago
René Kijewski e6d8c6bb99 Merge pull request #859 from Kijewski/mutex-trylock-error
core:mutex: allow idle thread to use mutexes
10 years ago
Ludwig Ortmann e688efdfcf core: kernel_init: call config_load in kernel_init 10 years ago
Ludwig Ortmann 063a15ce9b Change reboot signature.
Change from `void reboot(void)` to `int reboot(int mode)`.
Move reboot definition to core, rename architecture implementations
from reboot to reboot_arch.
Declare reboot mode(s) in kernel.h, reboot_arch in kernel_internal.h
Currently only one reboot mode is handled, its use is enforced.

Rationale:
A reboot function is already defined in <unistd.h> on BSD systems.
(See: http://www.openbsd.org/cgi-bin/man.cgi?query=reboot&sektion=2)
This patch not only allows native to build sensibly on these systems
but also streamlines RIOTs compatability with existing software.
10 years ago
René Kijewski 83988b2d03 Merge pull request #725 from kaspar030/optimize_thread_status_usage
core: sched: thread: optimize thread status field usage
10 years ago
René Kijewski 114eedd764 core:mutex: allow idle thread to use mutexes 10 years ago
René Kijewski 3c65b38881 core:mutex: remove refactor remnant 10 years ago
René Kijewski 80263b2fc0 Merge pull request #728 from BytesGalore/add_unlock_mutex_and_sleep
core:mutex: enable atomic execution of unlock a mutex and sleep for a thread
10 years ago
Martin 35106e3391 add test for mutex_unlock_and_sleep() 10 years ago
Martin 05f085d51a add mutex_unlock_and_sleep() 10 years ago
Kaspar Schleiser 402fae5bbe Merge pull request #698 from Kijewski/thread_wakeup-dint
Changes to `thread_wakeup`
10 years ago
Ludwig Ortmann 470bd7f17f Fixup for #685
- use DEVELHELP for native as well
- fix function name in documentation
- improve documentation language/spelling
10 years ago
Oleg Hahm 0c14597ec2 Merge pull request #685 from rousselk/panic
Panic
10 years ago
René Kijewski 791f1cb90f Changes to `thread_wakeup`
`thread_wakeup` did not check if target pid is invalid.

`thread_wakeup` used `dINT` and `eINT` directly.
It should use `disableIRQ` and `restoreIRQ` instead, because there might
be other (good) reasons why one might want to call `thread_wakeup` with
interrupts disabled.

`thread_wakeup` yielded even if the other thread had a lower priority
than the current thread.
10 years ago
Kaspar Schleiser cc0de63289 Merge pull request #713 from OlegHahm/sched_switch_simplification
core: move inISR check into sched_switch
10 years ago
Kévin Roussel d007207f3e Add a mechanism for handling fatal errors (and reboots) 10 years ago
Oleg Hahm 32f918abe8 simplified sched_switch
sched_switch can check ISR itself.
10 years ago
Oleg Hahm 24f5ec929c removed duplicate inISR prototype 10 years ago
Oleg Hahm 93e32953b3 always build and initialize hwtimer
Eliminates special treatment of the hwtimer module and makes it a
mandatory part of the kernel.
10 years ago
Christian Mehlis 6501707bcb core: lifo: added the right author 10 years ago
Christian Mehlis 0309fecc19 fix warning: invalid suffix on literal
C++11 requires a space between
literal and identifier [-Wliteral-suffix]
10 years ago
Oleg Hahm 7235f9e92c Merge pull request #729 from BytesGalore/remove_unnecessary_includes
core:mutex removed unnecessary includes
10 years ago
Martin ff36df6847 migrated tcb.h include to .c file 10 years ago
Martin 88c7c47c46 removed unnecessary includes 10 years ago
Kaspar Schleiser 36981c95b9 core: sched: thread: optimize thread status field usage
see PR #716 for discussion
10 years ago
Kévin Roussel dc6f920f33 Merge remote-tracking branch 'origin/reboot' into reboot 10 years ago
Christian Mehlis 3dce0cbb97 Merge pull request #662 from Kijewski/remove-sched_init
Do not zero out sched_threads needlessly
10 years ago
Kévin Roussel ca6db02530 Function attributes are now defined elsewhere ("attributes.h") 10 years ago
Kaspar Schleiser 622d473eb3 core: msg: yield after queueing of a message if REPLY_BLOCKED
When setting the running task reply_blocked, it is implicitly removed
from the runqueue. But if queueing of a msg is actually successful, the
thread exits msg_send without yielding, continuing to run even if it's
not supposed to.

Nice example of why multiple function exit points lead to weird
errors...
10 years ago
Kaspar Schleiser 8d07b131db core: msg: add some debug statements 10 years ago
Kaspar Schleiser 210a20b807 core: msg: don't wake up sender after receive if it's REPLY_BLOCKED
solves issue #100

If the sender is reply-blocked, waking it up after its message has been
delivered is wrong. It needs to stay reply-blocked until the reply has
been delivered.
10 years ago
Kévin Roussel e7d19fd2be Add a reboot() function to kernel.h definitions. 10 years ago
Kévin Roussel 8ca607bd70 Portable definition of function attributes 10 years ago
Ludwig Ortmann 2525920426 remove trailing whitespace and newlines 10 years ago
René Kijewski 7e685d6b36 Do not zero out sched_threads needlessly
The function sched_init() zeroes out sched_threads needlessly. All
static variables can be assumed to be initialized with zero, anyways.
The C standard mandates it, and all at other places in the code it is
assumed.
10 years ago
Benjamin Valentin bbe616f167 add name to sysconfig
there is still quite some space left on the persistent flash config area, make it possible to give nodes a name (e.g. hostname of the meshrouter) for nicer debugging
10 years ago
Christian Mehlis 8519dcceed added @author fields
authors found in:
https://github.com/RIOT-OS/RIOT/commits/master/core/cib.c
http://ukleos.org/projects/ukleos/repository/revisions/master/changes/core/cib.c
10 years ago
Kaspar Schleiser 56ee585c81 update Kaspar's email address
kaspar.schleiser@fu-berlin.de is obsolete.
(2nd try, first try was overwritten by some overzealous documenter)
10 years ago
Oleg Hahm d5fd29a658 created doxygen link to STATUS_STOPPED 10 years ago
Oleg Hahm 2cc01bab3f added documentation for scheduler statuses 10 years ago