syscall: imeplement basic file IO syscalls
also fix a bug where the RAX register would be restored to its initial state instead of carrying the syscall return value
This commit is contained in:
parent
bd9786cbe0
commit
0297f4a34c
9 changed files with 209 additions and 18 deletions
|
|
@ -4,13 +4,12 @@
|
|||
#
|
||||
# Compile all user programs.
|
||||
|
||||
UPRG := test1
|
||||
UPRG := test1 ftest
|
||||
UPRGCLEAN := $(addsuffix clean,$(UPRG))
|
||||
UPRGBUILD := $(addsuffix build,$(UPRG))
|
||||
UPRGINSTALL := $(addsuffix install,$(UPRG))
|
||||
|
||||
|
||||
.PHONY: all
|
||||
all: $(UPRGBUILD)
|
||||
all: $(UPRGBUILD) $(UPRGINSTALL)
|
||||
|
||||
%build: %
|
||||
@$(MAKE) --no-print-directory -C $<
|
||||
|
|
@ -19,3 +18,7 @@ clean: $(UPRGCLEAN)
|
|||
%clean: %
|
||||
@$(MAKE) -C $< clean
|
||||
@echo " CLEAN usr.bin/$<"
|
||||
|
||||
%install: %
|
||||
@mkdir -p ../bin
|
||||
@$(MAKE) --no-print-directory -C $< install
|
||||
|
|
|
|||
Loading…
Reference in a new issue