[loongson-dev] ioctl(fd, ASHMEM_SET_SIZE, size) failed

2011-12-11 Thread 李晖
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_workspa

Re: [loongson-dev] ioctl(fd, ASHMEM_SET_SIZE, size) failed

2011-12-11 Thread zhangfx
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.李晖 编写:hi,all I am porting andr

Re: [loongson-dev] ioctl(fd, ASHMEM_SET_SIZE, size) failed

2011-12-11 Thread Zhen Xin
Android needs the kernel be 32bit. 在 2011年12月11日 下午11:37,zhangfx 写道: > 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

Re: [loongson-dev] ioctl(fd, ASHMEM_SET_SIZE, size) failed

2011-12-11 Thread Zhen Xin
Android needs the kernel be 32bit. 在 2011年12月11日 下午11:37,zhangfx 写道: > 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