hi, zhangfx
thank you for your tips. By implementing a compact_ioctl function, I
have succeed solved this problem(At least not reporting error if not
solved it).

On 12月11日, 下午11时37分, zhangfx <zhan...@lemote.com> wrote:
> If you are using 64bit kernel,you need to handle the 32 bit ioctl. Ioctl 
> number often related to a type size,while the same type might have different 
> size for 32bit usrrland and 64bit kernal,so we often need compact_ioctl to 
> translate. Lots of samples in drivers.
> 李晖 <lihui205...@gmail.com>编写:
> hi,all I am porting android to loongson2f, but when I boot the system, the 
> kernel panic, by adding printf statement, I found that when the android file 
> system init the ashmem failed. The following is the calling path of init 
> program: main ->property_ini t->init_property_area ->init_workspace -> 
> ashmem_create_region ->ioctl(fd, ASHMEM_SET_SIZE, size) the implementation of 
> ashmem_create_region function is in system/core/ libcutils/ashmem-dev.c the 
> default size param of ioctl is 32768, and the linux kernel page size is 16k 
> (16384), so, I change the size param to 16384, but this function failed 
> again. did anyone come across this problem, any idea or information is 
> appreciated! andy -- You received this message because you are subscribed to 
> the Google Groups "loongson-dev" group. To post to this group, send email to 
> loongson-dev@googlegroups.com. To unsubscribe from this group, send email to 
> loongson-dev+unsubscr...@googlegroups.com. For more options, visit this group 
> at http://groups.google.com/group/loongson-dev?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"loongson-dev" group.
To post to this group, send email to loongson-dev@googlegroups.com.
To unsubscribe from this group, send email to 
loongson-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/loongson-dev?hl=en.

Reply via email to