Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


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

Rep: Reputation: 0
Behaviour of arch_initcall macro

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-10-2010, 12:28 AM   #2
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.




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 05:00 AM
C macro basak Linux - General 1 03-13-2007 09:40 AM
OO 2.0 and macro LinxNew SUSE / openSUSE 1 02-06-2006 11:24 PM
#defining a macro inside a macro? saravkrish Programming 1 05-24-2005 10:48 PM
macro linuxanswer Programming 1 11-17-2003 04:58 PM

All times are GMT -5. The time now is 06:59 AM.

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