Main Page | Directories | File List | Globals

init.c File Reference

#include <agnix/agnix.h>
#include <asm/core.h>
#include <agnix/config.h>
#include <agnix/sched.h>
#include <agnix/console.h>
#include <agnix/ioport.h>
#include <agnix/adi/adi.h>
#include <agnix/net/net.h>
#include <agnix/crypt.h>
#include <agnix/syscalls.h>
#include <agnix/threads.h>
#include <agnix/tasks.h>
#include <agnix/queues.h>
#include <agnix/memory.h>
#include <agnix/resources.h>
#include <agnix/data_structures.h>
#include <asm/memtests.h>
#include <agnix/counters.h>
#include <agnix/timers.h>
#include <agnix/terminal.h>
#include <agnix/pm.h>
#include <agnix/fastirq.h>
#include <agnix/agnix_console.h>

Include dependency graph for init.c:

Go to the source code of this file.

Functions

void init_thread (void *data)
void init_start (void)
int clean_kernel (void)
void start_kernel (void)

Variables

int errno
char * agnix_banner
char * agnix_version
char * agnix_license
char _text
char _end


Function Documentation

int clean_kernel void   ) 
 

Definition at line 54 of file init.c.

References bootmem_free_init(), and printk().

Referenced by start_kernel().

00055 {
00056     printk("Cleaning kernel ...\n");
00057     
00058     bootmem_free_init();
00059 
00060     return 0;
00061 }

Here is the call graph for this function:

void init_start void   ) 
 

Definition at line 49 of file init.c.

Referenced by bootmem_free_init(), and start_kernel().

00050 {
00051 //    create_kernel_thread("init", init_thread, (void *)2);
00052 }

void init_thread void *  data  ) 
 

Definition at line 44 of file init.c.

00045 {
00046     /* TODO */
00047 }

void start_kernel void   ) 
 

Definition at line 63 of file init.c.

References adi_chips_init(), adi_console_init(), adi_drivers_init(), agnix_banner, agnix_console_start(), agnix_license, agnix_version, clean_kernel(), counters_init(), cpu_calibrate_delay(), crypt_init(), data_structures_init(), fastirq_init(), fork_init(), i386_init(), init_start(), memalloc_init(), network_init(), pm_init(), printk(), queues_init(), resources_init(), scheduler_init(), tasks_init(), terminals_init(), and timers_init().

00064 {
00065     terminals_init();
00066 
00067 #if CONFIG_DRIVERS_CHAR
00068     adi_console_init();
00069 #endif
00070 
00071     memalloc_init();
00072     resources_init();
00073     counters_init();
00074     data_structures_init();
00075     queues_init();
00076     adi_chips_init();
00077         
00078     i386_init();
00079 #if CONFIG_MEMTESTS
00080 //    do_memtests();
00081 #endif
00082     network_init();
00083     adi_drivers_init();
00084     fork_init();
00085     tasks_init();
00086     scheduler_init();
00087 
00088     __sti();
00089     cpu_calibrate_delay();
00090     __cli();
00091 
00092     fastirq_init();
00093     timers_init();
00094     crypt_init();
00095 
00096     init_start();
00097     pm_init();
00098     clean_kernel();
00099 
00100     printk(NEW_LINE);
00101     printk(agnix_banner);
00102     printk(agnix_version);
00103     printk(agnix_license);
00104     printk(NEW_LINE);
00105 
00106     agnix_console_start();
00107 
00108     __sti();
00109 
00110     for(;;);
00111 }

Here is the call graph for this function:


Variable Documentation

char _end
 

Referenced by bin_reserve_system_pages(), and memalloc_init().

char _text
 

Referenced by bin_reserve_system_pages().

char* agnix_banner
 

Definition at line 20 of file version.c.

Referenced by start_kernel().

char* agnix_license
 

Definition at line 27 of file version.c.

Referenced by start_kernel().

char* agnix_version
 

Definition at line 24 of file version.c.

Referenced by start_kernel().

int errno
 

Definition at line 37 of file init.c.

Dokumentacje wygenerowano programem Doxygen 1.4.2 dla projektu Agnix