📄 init.c
字号:
/* * FILE NAME * arch/mips/vr41xx/zao-capcella/init.c * * BRIEF MODULE DESCRIPTION * Initialisation code for the ZAO Networks Capcella. * * Copyright 2002 Yoichi Yuasa * yuasa@hh.iij4u.or.jp * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. */#include <linux/config.h>#include <linux/init.h>#include <linux/kernel.h>#include <linux/string.h>#include <asm/bootinfo.h>#include <asm/cpu.h>#include <asm/mipsregs.h>#include <asm/vr41xx/vr41xx.h>char arcs_cmdline[CL_SIZE];const char *get_system_type(void){ return "ZAO Networks Capcella";}void __init bus_error_init(void){}void __init prom_init(int argc, char **argv, unsigned long magic, int *prom_vec){ u32 config; int i; /* * collect args and prepare cmd_line */ for (i = 1; i < argc; i++) { strcat(arcs_cmdline, argv[i]); if (i < (argc - 1)) strcat(arcs_cmdline, " "); } mips_machgroup = MACH_GROUP_NEC_VR41XX; mips_machtype = MACH_ZAO_CAPCELLA; switch (mips_cpu.processor_id) { case PRID_VR4131_REV1_2: config = read_32bit_cp0_register(CP0_CONFIG); config &= ~0x00000030UL; config |= 0x00410000UL; write_32bit_cp0_register(CP0_CONFIG, config); break; default: break; }}void __init prom_free_prom_memory (void){}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -