Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1802222
  • 博文数量: 286
  • 博客积分: 3713
  • 博客等级: 少校
  • 技术积分: 2275
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-11 09:47
个人简介

http://blog.chinaunix.net/uid/16979052.html

文章分类

全部博文(286)

文章存档

2018年(1)

2017年(16)

2016年(9)

2015年(17)

2014年(15)

2013年(112)

2012年(116)

发布时间:2012-06-28 08:14:05

KERNELC := $(shell find kernel libc boot dev -name "*.c")KERNELASM := $(shell find kernel boot -name "*.S")EXE=vmlinuxCC = gccLD = ldRM = rm######################################################################KERNELOBJ= $(KERNELASM:.S=.o) $(KERNELC:.c=.o).........【阅读全文】

阅读(1150) | 评论(0) | 转发(0)

发布时间:2012-06-28 08:12:59

ENTRY(multiboot_entry)OUTPUT_FORMAT("elf32-i386")phys = 0x00100000; /*1 meg*/virt = 0;SECTIONS{ . = virt + phys; kernelStart = .; .text : { *(.boot) *(.task0) *(.text) *(.rdata) *(.rodata .rodata.*) kernel_size = .; LONG(kernelE.........【阅读全文】

阅读(1046) | 评论(0) | 转发(0)

发布时间:2012-06-28 08:12:11

#include .text.global wrappers.macro ISRNOERROR func,nr.align 4 \func: pushl $0 pushl $\nr jmp error_code.endm.macro ISR__ERROR func,nr.align 4 \func: pushl $\nr jmp error_code.endm.align 4error_code: pusha.........【阅读全文】

阅读(954) | 评论(0) | 转发(0)

发布时间:2012-06-28 08:11:11

#ifndef KERNAL_TYPES_INCLUDED#define KERNAL_TYPES_INCLUDEDtypedef unsigned char uint8_t;typedef char int8_t;typedef unsigned short uint16_t;typedef short int16_t;typedef unsigned int uint32_t;typedef int int32_t;typedef unsigned long long uint64_t;typedef l.........【阅读全文】

阅读(978) | 评论(0) | 转发(0)

发布时间:2012-06-28 08:09:17

#ifndef __KERNEL_PRINTK_INCLUDED__#define __KERNEL_PRINTK_INCLUDED__#include <types.h>#include <platform.h>int __printk(const char *file, int line, const char *fmt, ...);#define printk(fmt, ...) __printk(__FUNCTION__, __LINE__, fmt, ## __VA_ARGS__)#ifdef.........【阅读全文】

阅读(1182) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册