来了!Linux内核第一版(v0.01)代码解读

2023-08-21 09:33:43    来源 : 面包芯语

v0.01 总共包含 66 个 system call,如下:


(资料图片仅供参考)

access acct alarm break brk chdir chmodchown chroot close creat dup dup2 execveexit fcntl fork fstat ftime getegid geteuidgetgid getpgrp setsid getpid getppidgetuid gtty ioctl kill link lock lseekmkdir mknod mount mpx nice open pausephys pipe prof ptrace read rename rmdirsetgid setpgid setuid setup signal statstime stty sync time times ulimit umaskumount uname unlink ustat utime waitpid write

针对 i386 进行了深度硬编码

Linux 内核最初的名字为"FREAX"

# Makefile for the FREAX-kernel.
volatile void panic(const char * s){printk("Kernel panic: %s\n\r",s);for(;;);}

Linus 当时没有 8MB RAM 的机器

* For those with more memory than 8 Mb - tough luck. I"ve * not got it, why should you :-) The source is here. Change * it. (Seriously - it shouldn"t be too difficult. ...

Linux v0.01 源代码下载:https://cdn.kernel.org/pub/linux/kernel/Historic/linux-0.01.tar.gz

往期推荐

Linux 硬件环境和 BIOS

0x7c00 的历史根源

聊聊 Linux 中断机制

如何写好一篇技术文章?

在北美当程序员,也被裁了。。。

一不小心成了知乎大 V

在大厂做管理的窘境

标签:

相关推荐

x 广告

如有意见请与我们联系 邮箱:8 97 180 9 @qq.com

豫ICP备2021032478号-31

Copyright ©  2015-2022 元宇宙版权所有