Changeset 463

Show
Ignore:
Timestamp:
05/08/08 10:02:28 (7 months ago)
Author:
mwhitworth
Message:

Define CoreInit, FsInit, ..., to correspond to ModuleInit if a module.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/hybrid/include/init.h

    r237 r463  
    2020#define INIT_H 
    2121 
     22#include <module.h> 
    2223#include <typedefs.h> 
     24 
     25#ifndef MODULE 
    2326 
    2427#define __init __attribute__ ((section (".init.text"))) 
     
    4144#define SubSysInit(func) DeclareInitCall("4", func) 
    4245 
     46#else 
     47 
     48/* If the file is a module, its Init function is equivalent to a ModuleInit. */ 
     49#define CoreInit(func) ModuleInit(func) 
     50#define FsInit(func) ModuleInit(func) 
     51#define NetInit(func) ModuleInit(func) 
     52#define DeviceInit(func) ModuleInit(func) 
     53#define SubSysInit(func) ModuleInit(func) 
     54 
    4355#endif 
     56 
     57#endif