[uClinux-dev] kmalloc() failed.

From: aavan@263.net
Date: Mon Jul 09 2001 - 23:36:20 EDT


Hi, all

I encounter a problem when I using kmalloc() to allocate memory. I want to add some code to mc68328fb_init() that in 68328fb.c for initialize the LCD controller on mc68vz328 CPU. first, I wanna allocate memory for displaying and store it into LSSA register(0xfffffa00). But I get a failed when I using the kmalloc() funciton. I call kmalloc like this:
  scr_buf = (char *)kmalloc(_size, GFP_KERNEL);

Pls give me a hint, thanks a lot!

Aavan

_____________________________________________
IP卡、上网卡三折抢购  http://shopping.263.net/category08.htm
花580元买数码相机,送100元IP卡 http://shopping.263.net/category21.htm
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:55 EDT