Changeset a1b4af4b in rtems


Ignore:
Timestamp:
Jul 20, 2015, 7:05:30 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
9e9e61d
Parents:
40188718
git-author:
Sebastian Huber <sebastian.huber@…> (07/20/15 07:05:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/30/15 07:11:18)
Message:

score: Add scheduler <sys/lock.h> support

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/Makefile.am

    r40188718 ra1b4af4b  
    351351libscore_a_SOURCES += src/once.c
    352352libscore_a_SOURCES += src/resourceiterate.c
     353libscore_a_SOURCES += src/sched.c
    353354libscore_a_SOURCES += src/semaphore.c
    354355libscore_a_SOURCES += src/smpbarrierwait.c
  • testsuites/sptests/spsyslock01/init.c

    r40188718 ra1b4af4b  
    390390}
    391391
     392static void test_sched(void)
     393{
     394  rtems_test_assert(_Sched_Index() == 0);
     395  rtems_test_assert(_Sched_Name_to_index("", 0) == -1);
     396  rtems_test_assert(_Sched_Name_to_index("b", 1) == -1);
     397  rtems_test_assert(_Sched_Name_to_index("bl", 2) == -1);
     398  rtems_test_assert(_Sched_Name_to_index("blu", 3) == -1);
     399  rtems_test_assert(_Sched_Name_to_index("blue", 4) == 0);
     400  rtems_test_assert(_Sched_Name_to_index("blueX", 5) == 0);
     401  rtems_test_assert(_Sched_Processor_count(-1) == 0);
     402  rtems_test_assert(_Sched_Processor_count(0) == 1);
     403  rtems_test_assert(_Sched_Processor_count(1) == 0);
     404}
     405
    392406static void mid_task(rtems_task_argument arg)
    393407{
     
    533547  test_sem_prio_wait_order(ctx);
    534548  test_futex(ctx);
     549  test_sched();
    535550
    536551  send_event(ctx, 0, EVENT_MTX_DEADLOCK);
     
    568583#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    569584
     585#define CONFIGURE_SCHEDULER_NAME rtems_build_name('b', 'l', 'u', 'e')
     586
    570587#define CONFIGURE_INIT
    571588
Note: See TracChangeset for help on using the changeset viewer.