Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
setup.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/stddef.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/utsname.h>
#include <linux/initrd.h>
#include <linux/console.h>
#include <linux/bootmem.h>
#include <linux/seq_file.h>
#include <linux/screen_info.h>
#include <linux/init.h>
#include <linux/root_dev.h>
#include <linux/cpu.h>
#include <linux/interrupt.h>
#include <linux/smp.h>
#include <linux/fs.h>
#include <linux/proc_fs.h>
#include <linux/memblock.h>
#include <linux/elf.h>
#include <linux/io.h>
#include <asm/cputype.h>
#include <asm/sections.h>
#include <asm/setup.h>
#include <asm/cacheflush.h>
#include <asm/tlbflush.h>
#include <asm/traps.h>
#include <asm/memblock.h>
#include "setup.h"

Go to the source code of this file.

Data Structures

struct  stack
 

Macros

#define MEM_SIZE   (16*1024*1024)
 
#define kernel_code   mem_res[0]
 
#define kernel_data   mem_res[1]
 

Functions

 EXPORT_SYMBOL (elf_platform)
 
void cpu_init (void)
 
 early_param ("mem", early_mem)
 
 arch_initcall (customize_machine)
 
void __init setup_arch (char **cmdline_p)
 
 subsys_initcall (topology_init)
 

Variables

struct stack ____cacheline_aligned
 
char elf_platform [ELF_PLATFORM_SIZE]
 
struct seq_operations cpuinfo_op
 

Macro Definition Documentation

#define kernel_code   mem_res[0]

Definition at line 81 of file setup.c.

#define kernel_data   mem_res[1]

Definition at line 82 of file setup.c.

#define MEM_SIZE   (16*1024*1024)

Definition at line 45 of file setup.c.

Function Documentation

arch_initcall ( customize_machine  )
void cpu_init ( void  )

cpu_init

This is our initial entry point for each CPU, and is invoked on the boot CPU prior to calling start_kernel(). For SMP, a combination of this and start_secondary() will bring up each processor to a ready state prior to hand forking the idle loop.

We do all of the basic processor init here, including setting up the caches, FPU, DSP, etc. By the time start_kernel() is hit (and subsequently platform_setup()) things like determining the CPU subtype and initial configuration will all be done.

Each processor family is still responsible for doing its own probing and cache configuration in cpu_probe().

Definition at line 102 of file setup.c.

early_param ( "mem"  ,
early_mem   
)
EXPORT_SYMBOL ( elf_platform  )
void __init setup_arch ( char **  cmdline_p)

Definition at line 234 of file setup.c.

subsys_initcall ( topology_init  )

Variable Documentation

struct seq_operations cpuinfo_op
Initial value:
= {
.start = c_start,
.next = c_next,
.stop = c_stop,
.show = c_show
}

Definition at line 345 of file setup.c.

char elf_platform[ELF_PLATFORM_SIZE]

Definition at line 56 of file setup.c.