[pok-devel] i received error number (=1) from pok_do_syscall

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


[in example/network]

i received error number (=1) from pok_do_syscall

 

this number means POK_ERRNO_EINVAL(=1) // this mean is 'invalid argument' ??

 

1.  

// rtl8029_init()

if (pci_register(&(dev.pci)) != 0)
  {
    printf("rtl8029: PCI init failed!\n");
    return;
  }

 

 

2 .pok_ret_t pok_do_syscall (pok_syscall_id_t syscall_id, pok_syscall_args_t* args)

{

   pok_ret_t   ret;

   uint32_t    args_addr;

   uint32_t    id;

 

   args_addr = (uint32_t) args;

   id        = (uint32_t) syscall_id;

 

   asm volatile ( "movl %1,%%eax \n\t"

                  "movl %2,%%ebx \n\t"

                  "int  $42 \n\t"

                  "movl %%eax, %0"

                  :"=g"(ret)

                  :"g"(id), "g"(args_addr)

                  : "%eax" , "%ebx"

                  );

   return ret;

}

 

// return value is "1"

so this example network program didn't work.

 

is there a way to fix ??

 

give me a tip please.

 

best regards.

 



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