Skip to content

Commit

Permalink
[feat]: finish lab2
Browse files Browse the repository at this point in the history
  • Loading branch information
wwyqianqian committed Aug 6, 2019
1 parent ff42699 commit f98e098
Show file tree
Hide file tree
Showing 80 changed files with 1,350 additions and 3 deletions.
337 changes: 337 additions & 0 deletions bochsout.txt

Large diffs are not rendered by default.

Binary file modified hdc-0.11.img
Binary file not shown.
Binary file added linux-0.11/Image
Binary file not shown.
505 changes: 505 additions & 0 deletions linux-0.11/System.map

Large diffs are not rendered by default.

Binary file added linux-0.11/boot/bootsect
Binary file not shown.
Binary file added linux-0.11/boot/bootsect.o
Binary file not shown.
Binary file added linux-0.11/boot/head.o
Binary file not shown.
Binary file added linux-0.11/boot/setup
Binary file not shown.
Binary file added linux-0.11/boot/setup.o
Binary file not shown.
Binary file added linux-0.11/fs/bitmap.o
Binary file not shown.
Binary file added linux-0.11/fs/block_dev.o
Binary file not shown.
Binary file added linux-0.11/fs/buffer.o
Binary file not shown.
Binary file added linux-0.11/fs/char_dev.o
Binary file not shown.
Binary file added linux-0.11/fs/exec.o
Binary file not shown.
Binary file added linux-0.11/fs/fcntl.o
Binary file not shown.
Binary file added linux-0.11/fs/file_dev.o
Binary file not shown.
Binary file added linux-0.11/fs/file_table.o
Binary file not shown.
Binary file added linux-0.11/fs/fs.o
Binary file not shown.
Binary file added linux-0.11/fs/inode.o
Binary file not shown.
Binary file added linux-0.11/fs/ioctl.o
Binary file not shown.
Binary file added linux-0.11/fs/namei.o
Binary file not shown.
Binary file added linux-0.11/fs/open.o
Binary file not shown.
Binary file added linux-0.11/fs/pipe.o
Binary file not shown.
Binary file added linux-0.11/fs/read_write.o
Binary file not shown.
Binary file added linux-0.11/fs/stat.o
Binary file not shown.
Binary file added linux-0.11/fs/super.o
Binary file not shown.
Binary file added linux-0.11/fs/truncate.o
Binary file not shown.
4 changes: 3 additions & 1 deletion linux-0.11/include/linux/sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ extern int sys_sgetmask();
extern int sys_ssetmask();
extern int sys_setreuid();
extern int sys_setregid();
extern int sys_iam();
extern int sys_whoami();

fn_ptr sys_call_table[] = { sys_setup, sys_exit, sys_fork, sys_read,
sys_write, sys_open, sys_close, sys_waitpid, sys_creat, sys_link,
Expand All @@ -83,4 +85,4 @@ sys_getgid, sys_signal, sys_geteuid, sys_getegid, sys_acct, sys_phys,
sys_lock, sys_ioctl, sys_fcntl, sys_mpx, sys_setpgid, sys_ulimit,
sys_uname, sys_umask, sys_chroot, sys_ustat, sys_dup2, sys_getppid,
sys_getpgrp, sys_setsid, sys_sigaction, sys_sgetmask, sys_ssetmask,
sys_setreuid,sys_setregid };
sys_setreuid,sys_setregid, sys_iam, sys_whoami };
2 changes: 2 additions & 0 deletions linux-0.11/include/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@
#define __NR_ssetmask 69
#define __NR_setreuid 70
#define __NR_setregid 71
#define __NR_iam 72
#define __NR_whoami 73

#define _syscall0(type,name) \
type name(void) \
Expand Down
Binary file added linux-0.11/init/main.o
Binary file not shown.
3 changes: 2 additions & 1 deletion linux-0.11/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ CPP =gcc-3.4 -E -nostdinc -I../include

OBJS = sched.o system_call.o traps.o asm.o fork.o \
panic.o printk.o vsprintf.o sys.o exit.o \
signal.o mktime.o
signal.o mktime.o who.o

kernel.o: $(OBJS)
$(LD) -m elf_i386 -r -o kernel.o $(OBJS)
Expand Down Expand Up @@ -81,3 +81,4 @@ traps.s traps.o: traps.c ../include/string.h ../include/linux/head.h \
../include/linux/mm.h ../include/signal.h ../include/linux/kernel.h \
../include/asm/system.h ../include/asm/segment.h ../include/asm/io.h
vsprintf.s vsprintf.o: vsprintf.c ../include/stdarg.h ../include/string.h
who.s who.o: who.c ../include/asm/segment.h ../include/string.h ../include/errno.h
Binary file added linux-0.11/kernel/asm.o
Binary file not shown.
Binary file added linux-0.11/kernel/blk_drv/blk_drv.a
Binary file not shown.
Binary file added linux-0.11/kernel/blk_drv/floppy.o
Binary file not shown.
Binary file added linux-0.11/kernel/blk_drv/hd.o
Binary file not shown.
Binary file added linux-0.11/kernel/blk_drv/ll_rw_blk.o
Binary file not shown.
Binary file added linux-0.11/kernel/blk_drv/ramdisk.o
Binary file not shown.
Binary file added linux-0.11/kernel/chr_drv/chr_drv.a
Binary file not shown.
Binary file added linux-0.11/kernel/chr_drv/console.o
Binary file not shown.
Binary file added linux-0.11/kernel/chr_drv/keyboard.o
Binary file not shown.
Loading

0 comments on commit f98e098

Please sign in to comment.