From 853318f48db91f1173ab443e733ff770545d2069 Mon Sep 17 00:00:00 2001 From: Phil Budne Date: Thu, 24 Mar 2016 12:23:45 -0400 Subject: [PATCH] confusion reduction: rename bootstrap file to boot.rim, kernel to a.out --- .gitignore | 4 +++- build/Makefile | 32 ++++++++++++++++---------------- build/alt/unixv0.simh | 2 +- build/unixv0.simh | 5 +++-- 4 files changed, 23 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index fdd1ee7..c135018 100644 --- a/.gitignore +++ b/.gitignore @@ -2,8 +2,10 @@ /sys /tests +*~ build/a.lst -build/a.rim +build/a.out +build/boot.rim build/image.fs build/bin build/n.out diff --git a/build/Makefile b/build/Makefile index 056f2a0..8d9af81 100644 --- a/build/Makefile +++ b/build/Makefile @@ -22,10 +22,10 @@ TESTDIR=tests BINARIES=../binaries/ -all: cmd others a.ptr a.rim image.fs +all: cmd others a.out boot.rim image.fs # Make alternative everything: no dd but . and .. -alt: altcmd altothers a.rim alt/a.ptr alt/image.fs +alt: altcmd altothers boot.rim alt/a.out alt/image.fs # The run rule has no dependencies so that the system can be booted easily # and frequently with make run. However, you have to manually make all first! @@ -41,48 +41,48 @@ dist: all alt mkdir -p $(BINARIES)/orig mkdir -p $(BINARIES)/alt cp image.fs $(BINARIES)/orig - cp a.rim $(BINARIES)/orig - cp a.ptr $(BINARIES)/orig + cp boot.rim $(BINARIES)/orig + cp a.out $(BINARIES)/orig cp unixv0.simh $(BINARIES)/orig cp alt/image.fs $(BINARIES)/alt - cp alt/a.ptr $(BINARIES)/alt + cp alt/a.out $(BINARIES)/alt cp alt/unixv0.simh $(BINARIES)/alt # Warm boot Unix kernel: boots into init and a login prompt -a.ptr: - $(AS) -f ptr -o a.ptr $(SYSSRC)/sop.s $(SYSSRC)/s[1-8].s +a.out: + $(AS) -f ptr -o a.out $(SYSSRC)/sop.s $(SYSSRC)/s[1-8].s $(AS) -n -f list -o a.lst $(SYSSRC)/sop.s $(SYSSRC)/s[1-8].s # Alternative kernel: no dd, but . and .. -alt/a.ptr: - $(AS) -f ptr -o alt/a.ptr $(SYSSRC)/sop.s $(SYSSRC)/s1.s \ +alt/a.out: + $(AS) -f ptr -o alt/a.out $(SYSSRC)/sop.s $(SYSSRC)/s1.s \ $(ALTSRC)/s2.s $(SYSSRC)/s[3-8].s $(AS) -n -f list -o alt/a.lst $(SYSSRC)/sop.s $(SYSSRC)/s1.s \ $(ALTSRC)/s2.s $(SYSSRC)/s[3-8].s # Phil's bootstrap code -a.rim: $(SYSSRC)/sop.s $(OTHERSRC)/pbboot.s - $(AS) -f rim -o a.rim $(SYSSRC)/sop.s $(OTHERSRC)/pbboot.s +boot.rim: $(SYSSRC)/sop.s $(OTHERSRC)/pbboot.s + $(AS) -f rim -o boot.rim $(SYSSRC)/sop.s $(OTHERSRC)/pbboot.s # Cold boot Unix kernel: attempts to build a minimal filesystem. # Don't use this one! coldboot: - $(AS) -f rim -o a.rim $(SYSSRC)/sop.s $(SYSSRC)/s[1-9].s + $(AS) -f rim -o boot.rim $(SYSSRC)/sop.s $(SYSSRC)/s[1-9].s $(AS) -n -f list -o a.lst $(SYSSRC)/sop.s $(SYSSRC)/s[1-9].s # Filesystem image image.fs: cmd others - $(MKFS) -k a.ptr proto + $(MKFS) -k a.out proto $(FSCK) image.fs # Alternate filesystem image: . and .. but no dd alt/image.fs: altcmd altothers - $(MKFS) -1 -2 -3 -o alt/image.fs -k alt/a.ptr alt/proto + $(MKFS) -1 -2 -3 -o alt/image.fs -k alt/a.out alt/proto $(FSCK) -3 alt/image.fs clean: - rm -f a.rim image.fs a.lst n.out a.ptr - rm -f alt/image.fs alt/a.ptr alt/a.lst + rm -f boot.rim image.fs a.lst n.out a.out + rm -f alt/image.fs alt/a.out alt/a.lst rm -rf $(BINDIR) $(TESTDIR) rm -rf $(BINARIES) diff --git a/build/alt/unixv0.simh b/build/alt/unixv0.simh index 4f209fc..e89dd46 100644 --- a/build/alt/unixv0.simh +++ b/build/alt/unixv0.simh @@ -26,6 +26,6 @@ set dt disa show dev # load and run the bootstrap code -load -S a.rim +load -S boot.rim dep pc 010000 go diff --git a/build/unixv0.simh b/build/unixv0.simh index 22271ed..8cc986e 100644 --- a/build/unixv0.simh +++ b/build/unixv0.simh @@ -25,7 +25,8 @@ set dt disa # show device settings: show dev -# load and run the bootstrap code -load -S a.rim +# load and run the paper tape bootstrap +# (loads system from disk) +load -S boot.rim dep pc 010000 go