disable all interrupts when acquiring lock
user program that makes a blocking system call
This commit is contained in:
parent
b22d898297
commit
7837c71b32
10 changed files with 58 additions and 14 deletions
9
Makefile
9
Makefile
|
@ -20,12 +20,12 @@ bootblock : bootasm.S bootmain.c
|
|||
$(OBJCOPY) -S -O binary bootblock.o bootblock
|
||||
./sign.pl bootblock
|
||||
|
||||
kernel : $(OBJS) bootother.S user1 usertests
|
||||
kernel : $(OBJS) bootother.S user1 usertests userfs
|
||||
$(CC) -nostdinc -I. -c bootother.S
|
||||
$(LD) -N -e start -Ttext 0x7000 -o bootother.out bootother.o
|
||||
$(OBJCOPY) -S -O binary bootother.out bootother
|
||||
$(OBJDUMP) -S bootother.o > bootother.asm
|
||||
$(LD) -Ttext 0x100000 -e main -o kernel $(OBJS) -b binary bootother user1 usertests
|
||||
$(LD) -Ttext 0x100000 -e main -o kernel $(OBJS) -b binary bootother user1 usertests userfs
|
||||
$(OBJDUMP) -S kernel > kernel.asm
|
||||
|
||||
vectors.S : vectors.pl
|
||||
|
@ -41,6 +41,11 @@ usertests : usertests.c ulib.o
|
|||
$(LD) -N -e main -Ttext 0 -o usertests usertests.o ulib.o
|
||||
$(OBJDUMP) -S usertests > usertests.asm
|
||||
|
||||
userfs : userfs.c ulib.o
|
||||
$(CC) -nostdinc -I. -c userfs.c
|
||||
$(LD) -N -e main -Ttext 0 -o userfs userfs.o ulib.o
|
||||
$(OBJDUMP) -S userfs > userfs.asm
|
||||
|
||||
ulib.o : ulib.c
|
||||
$(CC) -nostdinc -I. -c ulib.c
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue