This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

64+ DSP/BIOS 5.4x OBJ module?

Hello,

A customer has a question regarding some 64+ DSP/BIOS code snippet that someone else wrote once upon a time.

In the below snippet, OBJ_table[] is used.

 Where is the OBJ module described? I cannot find it anywhere in the 6000 DSP/BIOS API doc. 

Can someone shed some light on this module & how it is used?

 

   queue = &OBJ_table[OBJ_TSK];     

   elem=QUE_head(queue);

   while (elem != queue)

   {

      dummy_task = &((Task_List_T*)elem)->my_task_obj;

      {

            TSK_stat(dummy_task, &stat);

              if (*((Uint32*)stat.attrs.stack) != STACK_STAMP) 

               {

                     Force_Watch_Dog_Reset();

              }

         }

         elem = QUE_next(elem);                      

 

   }

 

Regards,
Mark

  • Mark,

    Do you know from which version of DSPBIOS did the code snippet come?

    My recollection is that the OBJ module is an internal helper module used by other BIOS modules like TSK, SWI, HWI.  So when you created a TSK it actually uses the OBJ module for allocating the memory and putting it on a link lists.

    The code above looks like its looping through the TSK objects.

    Judah 

  • We are using DSP/BIOS 5.41.03.17.

    The sample code is looping through TSK objects to check the stack. This code was written long ago and the real question is what documentation exists so I know how to use the OBJ module.

    OBJ_table[] seems to be created on obj.h. But I want to understand how the person who originally wrote this code knew about OBJ_table[] and it's format. We can't seem to be able to find documentation that describes how to use it.

  • David,

    I don't know how that person would have known to use OBJ_table.  Perhaps they had some DSP/BIOS source?  Or worked with someone directly?  Unfortunately I do not have any documentation for you.

    Judah

  • As far as I know we don't have DSP/BIOS source.