Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

sparc/kernel/setup.c File Reference

#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/stddef.h>
#include <linux/unistd.h>
#include <linux/ptrace.h>
#include <linux/malloc.h>
#include <asm/smp.h>
#include <linux/user.h>
#include <linux/a.out.h>
#include <linux/tty.h>
#include <linux/delay.h>
#include <linux/config.h>
#include <linux/fs.h>
#include <linux/kdev_t.h>
#include <linux/major.h>
#include <linux/string.h>
#include <linux/blk.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/console.h>
#include <asm/segment.h>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/kgdb.h>
#include <asm/processor.h>
#include <asm/oplib.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/traps.h>
#include <asm/vaddrs.h>
#include <asm/kdebug.h>
#include <asm/mbus.h>
#include <asm/idprom.h>
#include <asm/spinlock.h>
#include <asm/softirq.h>
#include <asm/hardirq.h>
#include <asm/machines.h>

Include dependency graph for sparc/kernel/setup.c:

Go to the source code of this file.

Defines

#define BOOTME_DEBUG   0x1
#define BOOTME_SINGLE   0x2
#define BOOTME_KGDBA   0x4
#define BOOTME_KGDBB   0x8
#define BOOTME_KGDB   0xc
#define RAMDISK_IMAGE_START_MASK   0x07FF
#define RAMDISK_PROMPT_FLAG   0x8000
#define RAMDISK_LOAD_FLAG   0x4000

Functions

void breakpoint (void)
asmlinkage void sys_sync (void)
void prom_sync_me (void)
void rs_kgdb_hook (int tty_num)
void kernel_enter_debugger (void)
int obp_system_intr (void)
 __initfunc (static void process_switch(char c))
 __initfunc (static void boot_flags_init(char *commands))
int prom_probe_memory (void)
void sun4c_probe_vac (void)
void panic_setup (char *, int *)
void srmmu_end_memory (unsigned long, unsigned long *)
unsigned long sun_serial_setup (unsigned long)
static void prom_cons_write (struct console *con, const char *str, unsigned count)
 __initfunc (void setup_arch(char **cmdline_p, unsigned long *memory_start_p, unsigned long *memory_end_p))
asmlinkage int sys_ioperm (unsigned long from, unsigned long num, int on)
int get_cpuinfo (char *buffer)

Variables

screen_info screen_info
unsigned int phys_bytes_of_ram
unsigned int end_of_phys_memory
unsigned long trapbase
int serial_console
unsigned int boot_flags
static unsigned long memory_size __initdata = 0
char cputypval
unsigned long start
unsigned long end
unsigned short root_flags
unsigned short root_dev
unsigned short ram_flags
unsigned sparc_ramdisk_image
unsigned sparc_ramdisk_size
int root_mountflags
char saved_command_line [256]
char reboot_command [256]
enum sparc_cpu sparc_cpu_model
tt_entrysparc_ttable
pt_regs fake_swapper_regs = { 0, 0, 0, 0, { 0, } }
static struct console prom_console
char * sparc_cpu_type []
char * sparc_fpu_type []


Define Documentation

#define BOOTME_DEBUG   0x1
 

Definition at line 118 of file sparc/kernel/setup.c.

Referenced by __initfunc(), and obp_system_intr().

#define BOOTME_KGDB   0xc
 

Definition at line 122 of file sparc/kernel/setup.c.

Referenced by __initfunc(), kernel_enter_debugger(), and obp_system_intr().

#define BOOTME_KGDBA   0x4
 

Definition at line 120 of file sparc/kernel/setup.c.

Referenced by __initfunc().

#define BOOTME_KGDBB   0x8
 

Definition at line 121 of file sparc/kernel/setup.c.

Referenced by __initfunc().

#define BOOTME_SINGLE   0x2
 

Definition at line 119 of file sparc/kernel/setup.c.

Referenced by __initfunc().

#define RAMDISK_IMAGE_START_MASK   0x07FF
 

Definition at line 276 of file sparc/kernel/setup.c.

#define RAMDISK_LOAD_FLAG   0x4000
 

Definition at line 278 of file sparc/kernel/setup.c.

#define RAMDISK_PROMPT_FLAG   0x8000
 

Definition at line 277 of file sparc/kernel/setup.c.


Function Documentation

__initfunc void   setup_arch(char **cmdline_p, unsigned long *memory_start_p, unsigned long *memory_end_p)  ) 
 

Definition at line 300 of file sparc/kernel/setup.c.

References ap1000, ARCH_SUN4C_SUN4, boot_flags, BOOTME_DEBUG, BOOTME_KGDB, BOOTME_KGDBA, BOOTME_KGDBB, breakpoint(), conswitchp, dummy_con, end_of_phys_memory, i, idprom_init(), init_task, initrd_end, initrd_start, KERN_CRIT, KERNBASE, linux_dbvec, load_mmu(), memory_size, MS_RDONLY, NO_CONTEXT, NULL, PAGE_ALIGN, PAGE_SHARED, PAGE_SIZE, printk, prom_con, prom_getbootargs(), prom_halt(), prom_printf, prom_probe_memory(), prom_query_input_device(), prom_query_output_device(), prom_setsync(), prom_sync_me(), PROMDEV_I_UNK, PROMDEV_IKBD, PROMDEV_ITTYA, PROMDEV_ITTYB, PROMDEV_OSCREEN, PROMDEV_OTTYA, PROMDEV_OTTYB, RAMDISK_IMAGE_START_MASK, RAMDISK_LOAD_FLAG, RAMDISK_PROMPT_FLAG, rd_doload, rd_image_start, rd_prompt, register_console(), ROOT_DEV, rs_kgdb_hook(), serial_console, set_debug_traps(), sp_banks, srmmu_end_memory(), strcmp, strcpy, sun4, sun4c, sun4c_probe_vac(), sun4d, sun4e, sun4m, sun4u, sun_serial_setup(), sun_unknown, and kernel_debug::teach_debugger.

Here is the call graph for this function:

__initfunc static void   boot_flags_init(char *commands)  ) 
 

Definition at line 175 of file sparc/kernel/setup.c.

References boot_flags, BOOTME_KGDBA, BOOTME_KGDBB, conswitchp, memory_size, p, printk, prom_con, prom_printf, simple_strtoul(), strlen, and strncmp().

Here is the call graph for this function:

__initfunc static void   process_switch(char c)  ) 
 

Definition at line 156 of file sparc/kernel/setup.c.

References boot_flags, BOOTME_DEBUG, BOOTME_SINGLE, halt, printk, and prom_printf.

void breakpoint void   )  [inline]
 

Definition at line 693 of file ppc-stub.c.

int get_cpuinfo char *  buffer  ) 
 

Definition at line 512 of file sparc/kernel/setup.c.

References cpuid, hard_smp_processor_id, HZ, len, linux_num_cpus, loops_per_jiffy, mmu_info, prom_rev, linux_romvec::pv_printrev, linux_romvec::pv_romvers, romvec, smp_bogo_info(), smp_info(), smp_num_cpus, and sprintf().

Here is the call graph for this function:

void kernel_enter_debugger void   ) 
 

Definition at line 129 of file sparc/kernel/setup.c.

References boot_flags, BOOTME_KGDB, breakpoint(), and printk.

Referenced by prom_cmdline().

Here is the call graph for this function:

int obp_system_intr void   ) 
 

Definition at line 137 of file sparc/kernel/setup.c.

References boot_flags, BOOTME_DEBUG, BOOTME_KGDB, breakpoint(), printk, and prom_halt().

Referenced by boot_it().

Here is the call graph for this function:

void panic_setup char *  ,
int * 
 

Definition at line 27 of file panic.c.

static void prom_cons_write struct console con,
const char *  str,
unsigned  count
[static]
 

Definition at line 290 of file sparc/kernel/setup.c.

References prom_printf.

int prom_probe_memory void   ) 
 

Definition at line 56 of file sparc/mm/fault.c.

Referenced by __initfunc(), and probe_memory().

void prom_sync_me void   ) 
 

Definition at line 77 of file sparc/kernel/setup.c.

References __asm__(), __cli, __restore_flags, __save_and_cli, __sti, current, NO_PROC_ID, prom_palette, prom_printf, show_free_areas(), sys_sync, and trapbase.

Referenced by __initfunc().

Here is the call graph for this function:

void rs_kgdb_hook int  tty_num  ) 
 

Definition at line 1522 of file mac_SCC.c.

Referenced by __initfunc().

void srmmu_end_memory unsigned  long,
unsigned long
 

Referenced by __initfunc().

void sun4c_probe_vac void   ) 
 

Referenced by __initfunc().

unsigned long sun_serial_setup unsigned  long  ) 
 

Referenced by __initfunc().

asmlinkage int sys_ioperm unsigned long  from,
unsigned long  num,
int  on
 

Definition at line 502 of file sparc/kernel/setup.c.

References EIO.

asmlinkage void sys_sync void   ) 
 

Definition at line 305 of file buffer.c.


Variable Documentation

unsigned long memory_size __initdata = 0 [static]
 

Definition at line 127 of file sparc/kernel/setup.c.

unsigned int boot_flags
 

Definition at line 117 of file sparc/kernel/setup.c.

Referenced by __initfunc(), kernel_enter_debugger(), and obp_system_intr().

char cputypval
 

Referenced by irq_panic().

unsigned long end
 

Definition at line 26 of file alpha/lib/memset.S.

unsigned int end_of_phys_memory
 

Definition at line 60 of file sparc/kernel/setup.c.

Referenced by __initfunc(), and map_kernel().

struct pt_regs fake_swapper_regs = { 0, 0, 0, 0, { 0, } }
 

Definition at line 288 of file sparc/kernel/setup.c.

unsigned int phys_bytes_of_ram
 

Definition at line 60 of file sparc/kernel/setup.c.

struct console prom_console [static]
 

Initial value:

 {
        "PROM", prom_cons_write, 0, 0, 0, 0, 0, CON_PRINTBUFFER, 0, 0, 0
}

Definition at line 296 of file sparc/kernel/setup.c.

unsigned short ram_flags
 

Definition at line 35 of file sparc64/kernel/head.S.

char reboot_command[256]
 

Definition at line 283 of file sparc/kernel/setup.c.

unsigned short root_dev
 

Definition at line 370 of file skge.c.

Referenced by __initfunc(), ace_init(), ace_module_cleanup(), ace_module_init(), and proc_read().

unsigned short root_flags
 

Definition at line 35 of file sparc64/kernel/head.S.

int root_mountflags
 

Definition at line 435 of file init/main.c.

char saved_command_line[256]
 

Definition at line 282 of file sparc/kernel/setup.c.

struct screen_info screen_info
 

Initial value:

 {
        0, 0,                   
        0,                      
        0,                      
        0,                      
        128,                    
        0,0,0,                  
        54,                     
        0,                      
        16                      
}

Definition at line 48 of file sparc/kernel/setup.c.

int serial_console
 

Definition at line 21 of file sunserial.c.

enum sparc_cpu sparc_cpu_model
 

Definition at line 284 of file sparc/kernel/setup.c.

char* sparc_cpu_type[]
 

Definition at line 121 of file kernel/cpu.c.

char* sparc_fpu_type[]
 

Definition at line 122 of file kernel/cpu.c.

unsigned sparc_ramdisk_image
 

Definition at line 35 of file sparc64/kernel/head.S.

unsigned sparc_ramdisk_size
 

struct tt_entry* sparc_ttable
 

Definition at line 286 of file sparc/kernel/setup.c.

Referenced by __initfunc(), eh_init(), exceptionHandler(), and request_fast_irq().

unsigned long start
 

Definition at line 390 of file atari_pamsnet.c.

unsigned long trapbase
 

Referenced by prom_sync_me().