8000 linux 内核1 完成一个简单的时间片轮转躲到程序内核代码 · Issue #64 · holdyounger/ScopeBlog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to co 8000 ntent
linux 内核1 完成一个简单的时间片轮转躲到程序内核代码 #64
Open
@holdyounger

Description

@holdyounger

linux 内核1 完成一个简单的时间片轮转躲到程序内核代码

使用实验楼的虚拟机打开 shell

# 注意路径是区分大小的
$ cd ~/LinuxKernel/linux-3.9.4

$ rm -rf mykernel

$ patch -p1 < ../mykernel_for_linux3.9.4sc.patch

$ make allnoconfig

# 编译内核请耐心等待
$ make

$ qemu -kernel arch/x86/boot/bzImage

然后 cd mykernel 您可以看到 qemu 窗口输出的内容的代码 mymain.cmyinterrupt.c

注意:修改代码后需要 make 重新编译之后才能生效哦。

使用自己的 Linux 系统环境搭建过程参见 mykernel,其中也可以找到一个简单的时间片轮转多道程序内核代码

blog link [linux 内核1 完成一个简单的时间片轮转躲到程序内核代码](https://holdyounger.github.io/OS/Linux/Linux内核分析配套实验/1 完成一个简单的时间片轮转躲到程序内核代码/)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0