LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 06-19-2009, 08:08 AM   #1
LPo
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Behaviour of arch_initcall macro


Hi,
I always thought that the arch_initcall and the other *initcall stuff registered functions called at a startup of the kernel.

I have compiled my own kernel which contains certain driver (not compiled as a module). Source code of this driver (arch/powerpc/sysdev/ppc4xx_gpio.c) provides an initialization function (registered with arch_initcall) that must be called in order to work with the GPIO hardware. My problem is that this function isn't called at the start of the system. When I compile this driver as a module (*.ko file) and insert it to the kernel with insmod, everything is ok, the function is called properly and the hw gets initialized.

So, my question is - are there any situations (e.g. kernel configuration), when the macro arch_initcall is ignored?

Kernel: 2.6.30 from Denx distribution for powerpc. But I think this is not so important, because of character of my question.
 
Old 07-09-2010, 11:28 PM   #2
max21226
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
I have the exact same problem and does not know how to resolve it. Did you by any chance know the root cause for the problem and resolve it? Please let me know if you.

Thanks.

-Hin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
arch_initcall time ? kamou Programming 0 03-12-2009 04:00 AM
C macro basak Linux - General 1 03-13-2007 08:40 AM
OO 2.0 and macro LinxNew Suse/Novell 1 02-06-2006 10:24 PM
#defining a macro inside a macro? saravkrish Programming 1 05-24-2005 09:48 PM
macro linuxanswer Programming 1 11-17-2003 03:58 PM


All times are GMT -5. The time now is 02:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration