1
0
mirror of https://github.com/DoctorWkt/unix-jun72.git synced 2026-01-11 23:53:34 +00:00

81 Commits

Author SHA1 Message Date
warren.toomey
475017c951 Ensure that we keep to evenly-aligned instructions: helps with jsr r5.
Ensure that function symbols overrride branch symbols.
2008-05-23 00:21:50 +00:00
warren.toomey
8e85a3e190 minor patch to the disassembler from Tim: correct printing of strings. 2008-05-20 07:43:57 +00:00
warren.toomey
133fc4d8a8 From Russ Cox:
In v7trap.c, the case S_BREAK body is wrong:

<       i=0; break;
---
>       i=sarg1; break;

since (in V6 at least) the break system  
call does not return anything -- it leaves r0
untouched.  If break zeros r0, then db mysteriously
fails to load the symbols from binaries.
2008-05-19 13:46:53 +00:00
warren.toomey
b51690ad06 Another patch from Sergey Poznyakoff. A compile-time define allows Apout
to run V1 binaries which do not have 0407 nor 0405 headers; this includes
chmod, rm, ln.
2008-05-19 13:45:10 +00:00
warren.toomey
2547b87ec7 Remove all of the Apout compile warnings on Ubuntu and FreeBSD. 2008-05-19 13:27:35 +00:00
warren.toomey
0a1bda9a62 We can now create directories recursively. Not tested fully yet, but
seems to work.
2008-05-17 07:39:16 +00:00
warren.toomey
c014639d94 Patches from Sergey Poznyakoff, way back in 2001. powf() function may not be
present. struct termios may lack c_ispeed, c_ospeed members.
2008-05-17 02:37:44 +00:00
warren.toomey
27f2a0aa1f Added definitions for NPROC and SWPSIZ, so that we can tweak the number
of blocks reserved for swap at the end of the RF11. This goes with the
change to the ecore.patch, so that we can swap up to 16K of process
address space out to disk.
2008-05-17 02:31:35 +00:00
warren.toomey
66655be6e2 I added the APOUT_UNIX_VERSION variable, so we can recompile/reassemble
V2 source code and then run it, without having to muck with the magic.c.
2008-05-15 03:21:46 +00:00
tim.newsham
161b1b66a3 - mktape is kind of loud. tone it down a little. 2008-05-11 23:45:37 +00:00
tim.newsham
f72a89e9b8 - ml takes optional command line arguments. 2008-05-11 23:19:58 +00:00
tim.newsham
c5bc1102dc - fixaout.py overwrites a.out now instead of writing b.out. 2008-05-11 22:48:25 +00:00
tim.newsham
9005bfe4ea - added top level "clean" and "clobber" rules.
- clean doesnt clean out tools, just intermediate build files.
    We can change this if people disagree with this approach.
2008-05-11 20:50:00 +00:00
tim.newsham
df671333ca - oops, wrong text size in fixaout.py. Needs to accomodate the
extra 12 bytes of the a.out header that werent part of the text
  size before.
2008-05-10 18:33:06 +00:00
warren.toomey
4d820ab2f3 Add __APPLE__ for OS X. Remove -static for OS X. 2008-05-09 14:05:29 +00:00
tim.newsham
1fa609991b - trying out a new build style. 2008-05-08 03:01:00 +00:00
warren.toomey
9d231d4aa7 Added nopatch command line arg so we can re-assemble without repatching. 2008-05-07 02:55:32 +00:00
warren.toomey
b5a8011b93 Made core patches and optional patches. Modified tools/rebuild to deal with
these. Modified patches/core/v2_as.patch so that we no longer need sys1.s,
and changed tools/assemv2 to no longer create sys1.s.
2008-05-07 02:44:19 +00:00
warren.toomey
65419678e6 Makefile now builds apout. 2008-05-07 01:02:35 +00:00
warren.toomey
7cbe3f57f5 also added a check that apout binary exists. 2008-05-07 00:30:06 +00:00
warren.toomey
dee768093b Make sure user has built and installed pdp11. 2008-05-07 00:28:30 +00:00
tim.newsham
3dbcf2df9a - the divide workaround for v7 "as" is no longer required now that
we're using the v2 "as".
2008-05-07 00:27:09 +00:00
tim.newsham
63bcc8b6ad - got rid of assemv2.cfg now that we have fixed paths. 2008-05-07 00:16:04 +00:00
warren.toomey
6c4d4c3489 added warning about missing assemv2.cfg file. 2008-05-07 00:04:23 +00:00
warren.toomey
cb4ff68ce4 Create build/ if it doesn't exist. 2008-05-07 00:03:43 +00:00
tim.newsham
181683935c - oops, outdated comments, updated. 2008-05-06 23:55:11 +00:00
warren.toomey
fc92776990 Just so we can build mkfs and ml easily. We can add it to docos later on. 2008-05-06 23:45:15 +00:00
warren.toomey
b4c3cdca38 Add V2 bin/strip to list. 2008-05-06 23:32:26 +00:00
warren.toomey
896dbd998a Import of wkt's apout src tree into svn. 2008-05-06 23:25:22 +00:00
tim.newsham
7c98a7ab7d - remove old tool. use ml.c instead. 2008-05-06 23:12:09 +00:00
tim.newsham
e9718f569f - get rid of dated tools.
sys1.s was needed only for assemv7.
  use assemv2 instead of assemv7 or assem.
2008-05-06 23:10:54 +00:00
tim.newsham
92b192ed1e - Fixed tools/as to use the v2 assembler instead of the v7 assembler,
which also required some tweaks to tools/fixaout.py
- update init patch to use v2 assembler and also added my patch to
  use tty8.
2008-05-06 23:09:07 +00:00
warren.toomey
81acfd9158 We can now use the v2 assembler to build the kernel. 2008-05-06 15:31:54 +00:00
warren.toomey
4708ab7582 When I turn on I_SETUID I also need to enable I_EXEC! 2008-05-06 09:22:51 +00:00
warren.toomey
29bef31630 Added debug argument. Added code to parse a file with V1 permissions.
I can't work out why ls -l isn't showing the timestamp yet.
2008-05-06 08:57:25 +00:00
warren.toomey
d7e79605d4 Added a quick check that we are running this in the correct directory. 2008-05-06 07:12:18 +00:00
warren.toomey
9d6a94647e Initial version of script to build rf0.dsk and rk0.dsk images. 2008-05-06 07:10:21 +00:00
warren.toomey
0d0f25004d Added initial support for loading symbol table from 0407 binary. 2008-05-06 01:09:49 +00:00
warren.toomey
b92faa0a87 Adjustments to the # of arguments to certain syscalls. 2008-05-06 00:04:55 +00:00
warren.toomey
89310bf9c8 Added my half-written disassembler, in case someone else can help finish it. 2008-05-05 05:01:27 +00:00
warren.toomey
e04b1ad0d0 Added <stdint.h> to keep Linux happy. Don't make /dev/ on rk images.
Initial support for large files, up to 1 indirect block only, i.e. up
to 128K filesize.
2008-05-05 00:09:14 +00:00
tim.newsham
3a86623164 - getting closer to building our own init. 2008-05-04 23:11:06 +00:00
tim.newsham
73628d7ea4 - initial import for OCR of section e12 -- init.s 2008-05-04 23:04:27 +00:00
tim.newsham
ae27d1b693 - some more instructions. 2008-05-04 22:22:20 +00:00
tim.newsham
c0adf32ada - some helpers for building userland code. Very hacky at the moment but
should work until something better comes along.
2008-05-04 22:20:08 +00:00
tim.newsham
5ed8f7c3ae - added an optional patch for running 0407 a.out binaries
- fixed "rebuild" to take a list of optional patches.
2008-05-04 20:14:47 +00:00
tim.newsham
75d9e5ad52 - cleaned up the build process some
- use patches instead of sed hacks.  
  - comments for all patches, and each one separated.
  - apply patches as part of "rebuild" instead of in assemv7.
2008-05-04 18:52:38 +00:00
warren.toomey
881021aa25 Made cosmetic changes to get ml.c to compile with gcc -Wall 2008-05-04 14:59:00 +00:00
warren.toomey
6ff6ad4df2 Changed the TODO comments; allow more than RF_INODES on the RK image. 2008-05-04 14:56:12 +00:00
warren.toomey
2ff30c5f24 We can finally mount the images on warm V1 UNIX! A directory's size
is not the size of the allocated blocks, but the size in bytes of the
number of entries currently in-use.
2008-05-04 14:22:40 +00:00