zephyr/scripts
Benjamin Walsh 456c6daa9f unified: initial unified kernel implementation
Summary of what this includes:

    initialization:

    Copy from nano_init.c, with the following changes:

    - the main thread is the continuation of the init thread, but an idle
      thread is created as well

    - _main() initializes threads in groups and starts the EXE group

    - the ready queues are initialized

    - the main thread is marked as non-essential once the system init is
      done

    - a weak main() symbol is provided if the application does not provide a
      main() function

    scheduler:

    Not an exhaustive list, but basically provide primitives for:

    - adding/removing a thread to/from a wait queue
    - adding/removing a thread to/from the ready queue
    - marking thread as ready
    - locking/unlocking the scheduler
      - instead of locking interrupts
    - getting/setting thread priority
      - checking what state (coop/preempt) a thread is currenlty running in
    - rescheduling threads
    - finding what thread is the next to run
    - yielding/sleeping/aborting sleep
    - finding the current thread

    threads:

    - Add operationns on threads, such as creating and starting them.

    standardized handling of kernel object return codes:

    - Kernel objects now cause _Swap() to return the following values:
         0      => operation successful
        -EAGAIN => operation timed out
        -Exxxxx => operation failed for another reason

    - The thread's swap_data field can be used to return any additional
    information required to complete the operation, such as the actual
    result of a successful operation.

    timeouts:

    - same as nano timeouts, renamed to simply 'timeouts'
    - the kernel is still tick-based, but objects take timeout values in
      ms for forward compatibility with a tickless kernel.

    semaphores:

      - Port of the nanokernel semaphores, which have the same basic behaviour
      as the microkernel ones. Semaphore groups are not yet implemented.

      - These semaphores are enhanced in that they accept an initial count and a
      count limit. This allows configuring them as binary semaphores, and also
      provisioning them without having to "give" the semaphore multiple times
      before using them.

    mutexes:

    - Straight port of the microkernel mutexes. An init function is added to
    allow defining them at runtime.

    pipes:

    - straight port

    timers:

    - amalgamation of nano and micro timers, with all functionalities
      intact.

    events:

    - re-implementation, using semaphores and workqueues.

    mailboxes:

    - straight port

    message queues:

    - straight port of  microkernel FIFOs

    memory maps:

    - straight port

    workqueues:

    - Basically, have all APIs follow the k_ naming rule, and use the _timeout
    subsystem from the unified kernel directory, and not the _nano_timeout
    one.

    stacks:

    - Port of the nanokernel stacks. They can now have multiple threads
    pending on them and threads can wait with a timeout.

    LIFOs:

    - Straight port of the nanokernel LIFOs.

    FIFOs:

    - Straight port of the nanokernel FIFOs.

Work by: Dmitriy Korovkin <dmitriy.korovkin@windriver.com>
         Peter Mitsis <peter.mitsis@windriver.com>
         Allan Stephens <allan.stephens@windriver.com>
         Benjamin Walsh <benjamin.walsh@windriver.com>

Change-Id: Id3cadb3694484ab2ca467889cfb029be3cd3a7d6
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-09-13 17:12:55 -04:00
..
basic build: fix fixdep warning. 2016-02-05 20:25:31 -05:00
cross_compiler build: update xtools configurations 2016-02-05 20:25:13 -05:00
gen_idt gen_idt: validate IRQ line before vector assignment 2016-09-12 17:53:22 +00:00
gen_offset_header gen_offset_header: don't force 32-bit build 2016-07-08 20:31:02 +00:00
kconfig kconfig: Specify ncurses explicitely 2016-09-07 12:58:29 +00:00
patches move qemu patch to script/patches 2016-02-05 20:15:21 -05:00
sanity_chk add ARM GCC embedded toolchain to the list of supported toolchains 2016-09-06 21:38:38 +00:00
support altera_max10: default to UFM flashing 2016-07-28 22:25:48 +00:00
.gitignore expr_parser.py: simple expression language 2016-05-04 22:57:39 +00:00
build_grub.sh grub: Tweak build_grub.sh for proxy issues 2016-08-23 13:20:52 +00:00
check_known_checkpatch_issues.sh Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -05:00
checkconfig.py scripts: Check all CONFIG_* in the code are defined into a Kconfig file 2016-07-22 23:27:08 +00:00
checkpatch.pl checkpatch: kconfig: warn about spaces instead of tabs 2016-06-21 19:50:59 +00:00
checkstack.pl First commit 2015-04-10 16:44:37 -07:00
compare_footprint compare_footprint: Python 3 compatibility 2016-03-29 11:06:01 +00:00
config First commit 2015-04-10 16:44:37 -07:00
diffconfig First commit 2015-04-10 16:44:37 -07:00
do_checkpatch.sh Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -05:00
expr_parser.py expr_parser: support ':' operator 2016-06-02 23:10:07 +00:00
filter-known-issues.py build: script to filter known issues 2016-07-01 21:53:44 +00:00
gcc-version.sh First commit 2015-04-10 16:44:37 -07:00
get_maintainer.pl scripts: Port get_maintainer.pl to Zephyr 2016-09-12 00:24:13 +00:00
headerdep.pl First commit 2015-04-10 16:44:37 -07:00
Kbuild.include RFC: fix to build issue with subdirs 2016-07-08 17:09:05 +00:00
maintainer-checkpatch.bash Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -05:00
make-ll Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -05:00
Makefile build: remove unused linux related code 2016-02-05 20:25:15 -05:00
Makefile.build build: Add C++ support 2016-02-05 20:25:23 -05:00
Makefile.clean First commit 2015-04-10 16:44:37 -07:00
Makefile.extrawarn First commit 2015-04-10 16:44:37 -07:00
Makefile.headersinst First commit 2015-04-10 16:44:37 -07:00
Makefile.help First commit 2015-04-10 16:44:37 -07:00
Makefile.host First commit 2015-04-10 16:44:37 -07:00
Makefile.lib build: Add C++ support 2016-02-05 20:25:23 -05:00
Makefile.modbuiltin First commit 2015-04-10 16:44:37 -07:00
Makefile.toolchain.gccarmemb toolchain.gccarmemb: Cleanup Makefile 2016-07-28 14:08:49 +00:00
Makefile.toolchain.issm build: Improve usage of the ISSM toolchain 2016-07-21 02:48:03 +00:00
Makefile.toolchain.xtools build: Make QEMU_BIN_PATH optional 2016-09-12 02:35:20 +00:00
Makefile.toolchain.zephyr build: zephyr: Remove unused QEMU variable 2016-09-12 02:35:20 +00:00
mkmakefile First commit 2015-04-10 16:44:37 -07:00
mksysmap First commit 2015-04-10 16:44:37 -07:00
qemu-machine-hack.py HACK: qemu: change e_machine for IAMCU binaries 2016-03-12 02:24:46 +00:00
sanitycheck sanitycheck: allow extra arguments to be passed to the build 2016-09-06 22:44:20 +00:00
size_report scripts: add a script to report RAM/ROM usage 2016-05-26 15:19:15 +00:00
spelling.txt First commit 2015-04-10 16:44:37 -07:00
sysgen unified: initial unified kernel implementation 2016-09-13 17:12:55 -04:00
tags.sh build: Add tags.sh to enable tagging targets 2016-02-05 20:24:36 -05:00
timestamp Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -05:00