[pok-devel] do you know about error code 500?

[ Thread Index | Date Index | More lists.tuxfamily.org/pok-devel Archives ]


first of  all, thank you for your kind favors

 

and i have some questions.

i tried to excute the semaphore in my application.

but i received error number 500.

 

error 500 = POK_ERRNO_LOCKOBJ_UNAVAILABLE

 

can u tell me about lockobject setting method.

i had to change lockobject setting  many times in deployment.h of my program. 

but i'm still received error code 500.

so i red the pok user mannual , but this mannual wasn't written lockobject setting in detail. 

 

this is my deployment.h in kernel folder.

 

/////////////////////////////////////////////////////////////////////////////////////////////

#define POK_NEEDS_CONSOLE 1

#define POK_CONFIG_LOCAL_NODE 0

#define POK_GENERATED_CODE 1

\#define POK_NEEDS_THREADS 1

#define POK_NEEDS_PARTITIONS 1

#define POK_NEEDS_SCHED 1

#define POK_NEEDS_PRINTF 1
#define POK_NEEDS_BUFFER

#define POK_NEEDS_LOCKOBJECTS 1
#define POK_NEEDS_SEMAPHORES 1
#define POK_CONFIG_NB_LOCKOBJECTS 1
#define POK_CONFIG_PARTITIONS_NLOCKOBJECTS {1,0}
#define POK_NEEDS_THREAD_SUSPEND 1
#define POK_NEEDS_THREAD_SLEEP 1

#define POK_CONFIG_NB_ALLPORTS 0

#define POK_NEEDS_DEBUG 1
#define POK_NEEDS_INSTRUMENTATION 1

#define POK_CONFIG_PARTITIONS_SCHEDULER {POK_SCHED_RMS,POK_SCHED_RR}

#define POK_CONFIG_NB_PARTITIONS 2

#define POK_CONFIG_NB_THREADS 8

#define POK_CONFIG_PARTITIONS_NTHREADS {3,3}

#define POK_NEEDS_SCHED_RMS 1

#define POK_NEEDS_SCHED_RR 1

#define POK_CONFIG_PARTITIONS_SIZE {150000,150000}
#define POK_CONFIG_SCHEDULING_SLOTS {2000,2000}

#define POK_CONFIG_SCHEDULING_SLOTS_ALLOCATION {0,1}

#define POK_CONFIG_SCHEDULING_NBSLOTS 2

#define POK_CONFIG_SCHEDULING_MAJOR_FRAME 4000

#define POK_CONFIG_STACKS_SIZE 32768

#define POK_CONFIG_NB_BUSES 0

typedef enum
{
  invalid_bus = 0
} pok_bus_identifier_t;

#define POK_CONFIG_NB_NODES 1
/////////////////////////////////////////////////////////////////////////////////////////////

 

i want to listen your advices.

 

 

best regards.

 

 

 

 



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/