User Profile

Collapse

Profile Sidebar

Collapse
antoine
antoine
Last Activity: Jun 30 '10, 07:16 PM
Joined: Jul 6 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi. I think I've found were threadid_t is defined. Here is the code :
    Code:
    private:
        union {
    	word_t raw;
    
    	struct {
    	    BITFIELD2( word_t,
    		       zero	: TID_LOCAL_ID_ZERO_BITS,
    		       id	: TID_LOCAL_ID_BITS );
    	} local;
    
    	struct {
    	    BITFIELD2( word_t,
    		       version	: TID_GLOBAL_VERSION_BITS,
    		       threadno	: TID_GLOBAL_THREADNO_BITS
    ...
    See more | Go to post

    Leave a comment:


  • Hi thank you for your help. Here is how threadid_t is defined :

    public:
    042 static threadid_t anythread() {
    043 threadid_t tid;
    044 tid.raw = (word_t)-1UL;
    045 return tid;
    046 };
    047
    048 static threadid_t waitnotify() {
    049 threadid_t tid;
    050 tid.raw = (word_t)-2UL;
    051 return tid;
    052 };...
    See more | Go to post

    Leave a comment:


  • In fact I've continued to search and i ve found this portion of code in an included file :

    Code:
    #define return_exchange_registers(result, control, sp, ip, flags, pager, handle)    \
    {								\
        register word_t ctrl asm("$4") = control;	/* a0 */	\
        register word_t sp_r asm("$5") = sp;	/* a1 */	\
        register word_t ip_r asm("$6") = ip;	/* a2 */	\
        register
    ...
    See more | Go to post

    Leave a comment:


  • antoine
    started a topic Data type and register location errors on compilation
    in C

    Data type and register location errors on compilation

    Hi all! I'm a French student currently doing an internship in Beijing. I have to simulate a mips machine running with the micro kernel l4. When i compile the kernel i got some compilation errors. I solved most of them but here I'm stuck and I hope you could help me.
    Here is the error message :

    /home/antoine/Final/pistachio/kernel/src/api/v4/exregs.cc:233:2 : warning: #warning VU: do we have to preserve prios on ex-regs?
    /home/antoine/Final/pistachio/kernel/src/api/v4/exregs.cc:248:2 :...
    See more | Go to post
    Last edited by r035198x; Jul 6 '07, 06:45 AM. Reason: added code tags
No activity results to display
Show More
Working...