473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Oops in fault.c, Unable to handle kernel paging request at virtualaddress 00000004

Hi,

I am trying to typecast a void* pointer to a structure I defined
called _sfrdm336_mdb. However, when I try, I get the following error:
Oops in fault.c, Unable to handle kernel paging request at virtual
address 00000004 .

Could you please help me? I'm very stuck! I even tried ioremap() to
map the physical address kmalloc returns to a virtual address. The
problem occurs when I try to do the typecast (sFRDM336_MDB *) below:

/
************************************************** ****************************/
typedef struct _sfrdm336_mdb
{
INT4 errModule; /* Global error Indicator for
module
calls */
UINT2 valid; /* Indicates that this structure
has been
initialized */
eFRDM336_MOD_STATE stateModule; /* Module state; can be one of
the following
FRDM336_MOD_START,
FRDM336_MOD_IDLE or
FRDM336_MOD_READY */
UINT2 maxDevs; /* Maximum number of devices
supported */
UINT2 numDevs; /* Number of devices currently
registered */
UINT2 maxInitProfs; /* Maximum number of
initialization
profiles */
sFRDM336_DDB *pddb; /* (array of) Device Data Blocks
(DDB) in
context memory */
sFRDM336_DIV *pinitProfs; /* (array of) Initialization
profiles in
context memory */
} sFRDM336_MDB;
sFRDM336_MDB *frdm336Mdb; // TOP OF FILE, public variable

INT4 frdm336ModuleOpen ()
{

frdm336Mdb = (sFRDM336_MDB *) kmalloc(sizeof(sFRDM336_MDB),
GFP_KERNEL);

sysFrdm336MemSet(frdm336Mdb, 0, size);

return 0;

} /* frdm336ModuleOpen */
/
************************************************** ****************************/
Thanks in advance for your help!
Matt
Nov 23 '07 #1
0 1468

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ross Dempster | last post by:
Hi everyone, this is quite involved but if anyone can help (or just likes a challenge!) i would very much appreciate it. Quick intro : I have forms based authentication (though i do it manually...
2
by: cmay | last post by:
I have changed my config files to set the limit for files being uploaded to 30 MB, but every now and then someone tries to upload a file larger than this. All I want, is to be able to trap the...
2
by: | last post by:
Hello, I have a GridView in my ASP.NET 2.0 application that performs the paging feature perfect when I have it bound to a data source. But now I have it bound to a dataset and the paging...
0
by: tarun_jwalia | last post by:
server was unable to process the request.....the root element missing.. system.web.services.protocols.soapexceptions: server was unable to process the request.....the root element missing... i...
1
by: srinu | last post by:
Hello, We had one webserver based on a linux machine. The website is fully function and designed by a different person. Now we moved the machine from one IP to another one. I changed the...
2
by: antonyliu2002 | last post by:
I've been googling for some time, and could not find the solution to this problem. I am testing the paging feature of gridview. I have a very simple web form on which the user can select a few...
7
by: AboutJAV | last post by:
Hi, I was thinking of using MSMQ to handling multiple simultaneous database request to update or insert records to table. There could be hundreds of database existing connections trying to...
0
by: mohamed82 | last post by:
Hi all. in my project using the inet controls for down loading zip file from site at the time error will occur for "unable to complete ur request" i think it will happening for the download more than...
1
by: John Mott | last post by:
Hi All, I recently read a post that said that google and other spiders are unable to navigate paging in the GridView control because it uses postbacks and it can't determine the url. I've...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.