Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
我在调用athread_get/put接口在主存和局存之间传递数据时,报出warning: passing argument 5 of 'athread_get' discards qualifiers from pointer target type这样的警告,然后函数的返回值并非0,(手册中说返回值非0都是有问题),结果我分析,返回值是我传递的数据量的大小,请问这是什么原因造成的呢?
athread_get成功后,回答字get_reply会加1
警告是实参和形参的类型不匹配,将实参转换成void类型可以消除警告,另外警告不影响程序