Warren Toomey
fed6525853
I've converted all the man pages so far into roff format.
2016-03-28 13:24:27 +10:00
Warren Toomey
dfb61a274f
I've brought in and modified a roff so that it should be translatable into B.
...
I've started work on writing the man pages in this version of roff.
2016-03-28 12:18:10 +10:00
Warren Toomey
a593b1104f
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-26 09:21:14 +10:00
Warren Toomey
193338dd4f
Fixed up some more errors, it now assembles with as7.
2016-03-26 09:20:46 +10:00
Warren Toomey
1ecd4e0d2e
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-26 09:08:17 +10:00
Warren Toomey
2071d65404
Some transcription errors in db.s fixed.
2016-03-26 09:07:57 +10:00
Warren Toomey
9ed84f4e85
More notes on the current build.
2016-03-24 17:57:56 +10:00
Warren Toomey
9f30359c56
Added some code to print out ASCIi characters in each word.
2016-03-24 17:50:47 +10:00
Warren Toomey
b234e2ad81
Also fixed the alt system to use Phil's bootstrap code.
2016-03-24 17:42:06 +10:00
Warren Toomey
8d69dd6d13
Changed the build so that we boot via Phil's bootstrap code.
2016-03-24 17:38:27 +10:00
Warren Toomey
bd13e31f4e
Added a -k option to mkfs7 so that it can write a kernel image in PTR
...
format to track 80 on the disk.
2016-03-24 17:24:48 +10:00
Warren Toomey
70d3f91e64
Import the new ed*.s source code from scans.
2016-03-24 09:20:27 +10:00
Warren Toomey
a676ccee69
Duplicate rule in the Makefile, fixed.
2016-03-24 09:20:04 +10:00
Warren Toomey
441fe12b0a
Fall into single-step mode if we see a low memory write.
2016-03-24 08:57:51 +10:00
Warren Toomey
4f491ba4f9
More transcription errors picked up using the assembler.
2016-03-24 08:49:50 +10:00
Warren Toomey
023f80a6eb
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-24 08:41:16 +10:00
Warren Toomey
7599646c78
Updated from the new scan that Norman has provided.
2016-03-24 08:40:52 +10:00
Warren Toomey
4fe4d7a047
Updated ed2.s based on the new scans from Norman.
2016-03-24 08:23:00 +10:00
Warren Toomey
ce0a5401a9
Add trysys.s to src/sys.
2016-03-24 06:20:38 +10:00
Warren Toomey
945fa20bae
Added rules to build the B compiler and modified proto to install it
...
as system/bc. Added a b_readme in dmr's home directory to explain
how to compile hello.b.
2016-03-23 22:45:53 +10:00
Warren Toomey
2cc1097593
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-23 22:28:36 +10:00
Warren Toomey
d5eb2a6b96
Removed ctrl-Ms and added a newline at the end.
2016-03-23 22:27:36 +10:00
Warren Toomey
851f03a50a
mkfs7: Fixed a bug in indirect blocks.
2016-03-23 21:15:07 +10:00
Warren Toomey
99a33c8dde
Add check to the filesystem.
2016-03-23 15:22:10 +10:00
Warren Toomey
76bea543a2
Added od and core to the alt/proto file.
2016-03-23 14:21:54 +10:00
Warren Toomey
24e25b765c
More build notes.
2016-03-23 14:20:34 +10:00
Warren Toomey
680662bdf0
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-23 13:41:53 +10:00
Warren Toomey
c2cbf1ff3c
Oops, don't print out allocated blocks in mkfs7 if we didn't allocate any.
2016-03-23 13:41:17 +10:00
Warren Toomey
7fcf1d230c
I added a way for a file to be given a specific i-number, needed for i-num 1.
2016-03-23 11:25:22 +10:00
Warren Toomey
42c7a240ed
I wrote a version of od.
2016-03-23 11:14:01 +10:00
Warren Toomey
58ea0b0b2c
I'm working on a better ls for the alt system, but a few bugs.
2016-03-23 10:13:01 +10:00
Warren Toomey
253d9f0997
Some files don't need to be in build/alt
2016-03-23 10:10:54 +10:00
Warren Toomey
8dafe1706a
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-23 09:58:36 +10:00
Warren Toomey
3a52b3d74b
I've got mkdir working in the alt system. I had to allow the dir bit
...
in the permissions mask in creat, through.
2016-03-23 09:57:20 +10:00
Warren Toomey
5f4e420e63
I converted some of the ls code into routines. No change in functionality.
...
I updated a7out with better sys status handling.
2016-03-22 09:19:30 +10:00
Warren Toomey
59bde619e5
Here is a simple code coverage tool for the kernel, so that we can see
...
what code is not being used at present. Instruction for use are given
as comments at the top of the file.
2016-03-22 06:23:17 +10:00
Warren Toomey
dee1695759
Hmm, not sure why these didn't get added before ...
2016-03-21 16:39:52 +10:00
Warren Toomey
b001734e8f
I've moved a copy of my ls.s into alt, so there are no files left with
2016-03-21 16:37:26 +10:00
Warren Toomey
94fd5d49e0
I've restructured the alternative version of PDP-7 Unix so that the
...
source code is now in src/alt. All the files in src/sys and src/cmd
are only annotated versions of the files in scans/.
The build/Makefile has been updated so that it can build the
original PDP-7 Unix or the alternative version.
Phil has fixed the Graphics-2 code, so that there is no need to
have any #ifdef code in the original kernel.
2016-03-21 16:01:36 +10:00
Warren Toomey
f63ad33d10
This is the beginnings of a alternative version of the PDP-7 Unix
...
system which corresponds to a later development point, around mid-1971,
where the system had lost the "dd" directory and gained . and ..
entries. This is close to the system as described in
http://www.tuhs.org/Archive/PDP-11/Distributions/research/McIlroy_v0/UnixEditionZero.txt
except there are no pathnames.
To use this version: cd build; make alt; make altrun
2016-03-21 14:28:50 +10:00
Warren Toomey
098c8a9e28
I've split the cmd and others Makefile rules out to individual utility rules,
...
so that we don't keep building binaries for sources that have not changed.
2016-03-21 06:51:00 +10:00
Warren Toomey
4a7752d637
More comments to top-level README.md
2016-03-20 22:17:04 +10:00
Warren Toomey
91e2f4dd1a
Add details about the mailing list.
2016-03-20 22:07:54 +10:00
Warren Toomey
6b9151d3e3
Print out an error message if ls is given a name that doesn't exist.
2016-03-20 21:03:53 +10:00
Warren Toomey
acf853d1a3
I changed the Makefiles so that I could make run without rebuilding
...
everything. This is mainly because I often boot the system several times
in a row when debugging, and I didn't want to have to build everything
just to reboot the system :-)
2016-03-20 20:55:43 +10:00
Warren Toomey
f1629e9891
A few discrepancies fixed up.
2016-03-20 20:49:03 +10:00
Warren Toomey
d1885214ce
Fixed a bug when we had to skip a direntry with a zero i-num.
2016-03-20 09:26:55 +10:00
Warren Toomey
520478a3e4
I moved most of the building code into the build/Makefile.
2016-03-20 09:14:47 +10:00
Warren Toomey
2409028f15
Put back the original code from scans.
2016-03-20 08:42:26 +10:00
Warren Toomey
b9fa7fb4fb
Fix up the link count code.
2016-03-19 14:37:23 +10:00
Warren Toomey
64a118cb4a
More kernel notes.
2016-03-19 11:05:37 +10:00
Warren Toomey
6d15e6f29a
Slight changes to the top-level Readme.
2016-03-19 10:54:40 +10:00
Warren Toomey
e44bc6daa3
Added note about fsck7.
2016-03-19 07:27:18 +10:00
Warren Toomey
b232a4b1a6
Added simple code coverage output to a7out. Added a few ed comments.
2016-03-19 07:25:07 +10:00
Warren Toomey
bc189fa861
More kernel comments.
2016-03-19 06:33:00 +10:00
Warren Toomey
0eb720f3ab
It's time we had ed as a binary, so we have another goal to reach: making ed work.
2016-03-19 06:30:31 +10:00
Warren Toomey
17a828cfcd
mkfs: I moved the order of ., .. and dd around to me more pleasing to the eye. I also
...
added some simple link count code.
2016-03-19 06:25:20 +10:00
Warren Toomey
956bd28ac1
Added the inum field. No idea why it didn't get picked up in the previous
...
two commits.
2016-03-18 19:55:33 +10:00
Warren Toomey
72322c23b2
A few more ls comments.
2016-03-18 19:53:47 +10:00
Warren Toomey
9483300758
sys status returns 13 words, the last one holds the i-number.
2016-03-18 19:47:05 +10:00
Warren Toomey
b8b1ac5d95
I changed ls to have a directory as an optional argument.
...
This allows it to work when we don't have .
2016-03-18 10:25:45 +10:00
Warren Toomey
fbbe0c6729
Added command line options to enable . and ..
2016-03-17 09:08:37 +10:00
Warren Toomey
3c3f946794
Added hello to the proto file.
2016-03-16 11:38:09 +10:00
Warren Toomey
320dd0418f
Add missing dput to .rename
2016-03-16 11:24:56 +10:00
Warren Toomey
bb0a7084b3
More kernel build comments.
2016-03-16 09:52:16 +10:00
Warren Toomey
248dfafe0d
Change tti to the new unix format, and let the kernel boot up.
2016-03-16 09:48:10 +10:00
Warren Toomey
9f536032b0
Fixed stat so it works.
2016-03-16 09:42:44 +10:00
Warren Toomey
202fbcefb6
Fixed ln to have three arguments. Use stdout not stderr.
2016-03-16 09:22:06 +10:00
Warren Toomey
5f1229cb9c
Tidy up.
2016-03-16 06:55:09 +10:00
Warren Toomey
6c5b207aba
I uncommented Phil's code so that we can run binaries from system now.
2016-03-16 06:38:56 +10:00
Warren Toomey
e5bcd5c264
More comments
2016-03-16 06:22:12 +10:00
Warren Toomey
1bee26fba1
Fixed the daynum value in the date output.
2016-03-16 06:17:39 +10:00
Warren Toomey
f64b3f0799
Added code to skip over directory entries with i-num zero.
2016-03-16 06:08:53 +10:00
Warren Toomey
b4891828de
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-16 05:37:25 +10:00
Warren Toomey
00c2de0292
I bit the bullet and implemented "." in the filesystem. I've changed the proto
...
file to put the binaries in system. I added a few more checks to fsck, and I fixed
a few bugs in src/other/wktls.s.
2016-03-16 05:36:22 +10:00
Warren Toomey
56f6da9cd8
New tool fsck7
2016-03-15 15:49:40 +10:00
Warren Toomey
fe6c5cc8eb
Updated the top-level Readme.
2016-03-14 21:52:25 +10:00
Warren Toomey
f3519fc34b
More build notes.
2016-03-14 21:24:13 +10:00
Warren Toomey
624776e0f3
Argh. A real dumb bug in mkfs7 that stopped us getting a shell. Fixed.
2016-03-14 21:22:29 +10:00
Warren Toomey
5f55b5dc79
More notes on bringing up the kernel.
2016-03-14 21:04:57 +10:00
Warren Toomey
4073baba05
Fix transcription error in s2.s link.
2016-03-14 20:19:48 +10:00
Warren Toomey
cbdcf268f7
More kernel notes.
2016-03-14 19:53:00 +10:00
Warren Toomey
9da0484a39
I've got init past the link, but it then dies on the open("sh") immediately
...
after that. Yes, dd has to be i-num 4. I've modified mkfs7 and the proto
file to allow this to occur. I've also make link counts negative.
2016-03-14 19:49:37 +10:00
Warren Toomey
cd7befb2de
More kernel comments: link.
2016-03-14 18:26:36 +10:00
Warren Toomey
cfa57f16b3
More kernel comments: partial comments for namei.
2016-03-14 17:50:13 +10:00
Warren Toomey
6ffdf4076d
More kernel comments: iget
2016-03-14 17:40:46 +10:00
Warren Toomey
77c30047e9
Get the build Makefile to output a kernel symbol table.
2016-03-14 16:51:25 +10:00
Warren Toomey
7b5cd4a135
Changed init.s so that the new as7+cpp can process it.
2016-03-14 10:54:06 +10:00
Warren Toomey
588e2a30b8
More kernel notes.
2016-03-13 21:14:16 +10:00
Warren Toomey
3629461a20
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-13 21:09:33 +10:00
Warren Toomey
8b421eb27b
I've commited a change to as7 to use the C pre-processor. Not sure if it's
...
to everybody's taste.
2016-03-13 21:08:43 +10:00
Warren Toomey
98145f562a
More kernel notes.
2016-03-13 15:11:19 +10:00
Warren Toomey
d4e01c7da6
More kernel notes.
2016-03-13 14:43:38 +10:00
Warren Toomey
4860c0a8b0
I've commented out some of the code in s7.s to try and disable the
...
Graphics-2 I/O operations.
2016-03-13 14:36:33 +10:00
Warren Toomey
ba3b33d7da
There seems to be a transcription error in s7.s, I fixed by eyeballing
...
the scans.
2016-03-13 13:21:25 +10:00
Warren Toomey
4a51b4e6bb
Added a notes file to store details of the attempts to bring up
...
the kernel.
2016-03-13 13:14:11 +10:00
Warren Toomey
cff237d445
Added dir.5 and filesys.5 manuals.
2016-03-13 09:58:18 +10:00
Warren Toomey
1829f8577f
Added graphviz output to xref7 so that we can see the call graph.
2016-03-13 07:27:29 +10:00
Warren Toomey
abf5ae6149
Also print out the routine's filename in xref7.
2016-03-12 22:53:33 +10:00
Warren Toomey
ffb6676a39
I wrote a very simplistic tool to generate kernel cross references.
2016-03-12 22:37:37 +10:00