_勇
发布时间:2013-10-30 16:02:50
#define typecheck(type,x) \({type __dummy; \typeof(x) __dummy2; \(void)(&__dummy == &__dummy2); \1; \})展开宏:unsigned long __dummy; //定义__dummytypeof(flags) __dummy2; //定义__dummy2(void)(&__dummy == &__dummy2); //类型不一致会警告1; //似乎只.........【阅读全文】
发布时间:2013-10-25 15:58:05
asmlinkage void __init start_kernel(void){char * command_line;extern const struct kernel_param __start___param[], __stop___param[];smp_setup_processor_id();lockdep_init();debug_objects_early_init();boot_init_stack_canary();cgroup_init_early();local_irq_disable();early_boot_irqs_disable.........【阅读全文】
发布时间:2013-10-16 17:53:58
linux内核运行前先运行bootloader。龙芯启动时,是从地址0xbfc00000处开始执行,bootloader就是位于此处。bootloader将内核文件(例如,zImage)拷贝到内存,然后跳转到内存中zImage开始的地方运行。......【阅读全文】