Hi guys,

I am writing a toy syscall to test kernel code, and I use
something like the following code:

int
syskiconv(long *lp, rval_t *rp)
{
size_t ret;

...

ret = kiconvstr(...); //kiconvstr require 8 parameters
...

rp->r_vals = (int64_t)ret;

return (0);
}

and I use the following entry as sysent in sysent.c

/* 65 */ SYSENT_AP("syskiconvstr", syskiconvstr, 8),


The above code return correct value to user level function if
I use -xarch=v9 compiler option, but always return '0' if
without -xarch=v9 option. Why? (syscall_ap should return correct
int64_t value to user level from my understanding) any suggestions?

Thank you in advance!

Regards,
Yandong



_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to