From 14354979dfb8c4fc947cd245e65396d68508271f Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Tue, 19 Mar 1991 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1991-03-19 --- gnot/boot.h | 380 +++++++++++++++++++++++++---------------------- gnot/errno.h | 1 + gnot/l.s | 27 ++-- gnot/mem.h | 2 +- gnot/ureg.h | 1 + port/stnoether.c | 2 +- port/sysfile.c | 2 + power/errno.h | 1 + 8 files changed, 229 insertions(+), 187 deletions(-) diff --git a/gnot/boot.h b/gnot/boot.h index ae25d8c1caef3f113b3604768be155d39df3c6e0..c24cba1ba039d0edebd829d25b8cac6d5edce477 100644 --- a/gnot/boot.h +++ b/gnot/boot.h @@ -1,7 +1,7 @@ ulong bootcode[]={ 0x000000107, - 0x00000281c, - 0x0000004f4, + 0x00000286c, + 0x00000051c, 0x0000001e4, 0x000000000, 0x000002020, @@ -17,13 +17,13 @@ ulong bootcode[]={ 0x0001c4e75, 0x04feffe84, 0x042a7486e, - 0x081e66100, + 0x0820e6100, 0x00a6e4878, 0x00001486e, - 0x081ee6100, + 0x082166100, 0x00a624878, 0x00001486e, - 0x081f66100, + 0x0821e6100, 0x00a566100, 0x004266100, 0x002446100, @@ -35,10 +35,10 @@ ulong bootcode[]={ 0x02f2f0198, 0x0610006bc, 0x02f40019c, - 0x0486e81fe, + 0x0486e8226, 0x06100088c, - 0x0486e820c, - 0x0486e8206, + 0x0486e8234, + 0x0486e822e, 0x0486f00a4, 0x06100094c, 0x0487801b6, @@ -48,11 +48,11 @@ ulong bootcode[]={ 0x04a8042e7, 0x02f4001b6, 0x044df6c0a, - 0x0486e8213, + 0x0486e823b, 0x06100078a, 0x0588f2f2f, 0x001b8486e, - 0x0821a486f, + 0x08242486f, 0x000bc6100, 0x00916486f, 0x000c06100, @@ -65,26 +65,26 @@ ulong bootcode[]={ 0x06100096e, 0x0588f221f, 0x0b280670a, - 0x0486e821d, + 0x0486e8245, 0x061000746, 0x0588f2f2f, 0x001cc6100, 0x0097e486e, - 0x08229486e, - 0x08223486f, + 0x08251486e, + 0x0824b486f, 0x000d86100, 0x008ca4878, 0x001b64878, 0x00001486e, - 0x082306100, + 0x082586100, 0x009644a80, 0x042e72f40, 0x001ea44df, 0x06c0a486e, - 0x082386100, + 0x082606100, 0x00708588f, 0x02f2f01ec, - 0x0486e823f, + 0x0486e8267, 0x0486f00f0, 0x061000894, 0x0486f00f4, @@ -98,46 +98,46 @@ ulong bootcode[]={ 0x008ec588f, 0x0221fb280, 0x0670a486e, - 0x082426100, + 0x0826a6100, 0x006c4588f, 0x02f2f0200, 0x0610008fc, 0x042a7486e, - 0x0824a486e, - 0x082486100, + 0x08272486e, + 0x082706100, 0x008dc4a80, 0x06c0a486e, - 0x0824c6100, + 0x082746100, 0x006a0588f, - 0x0486e8251, + 0x0486e8279, 0x061000764, - 0x0486e825d, - 0x0486e825c, + 0x0486e8285, + 0x0486e8284, 0x048780006, - 0x0486e825a, + 0x0486e8282, 0x02f2f0228, 0x0610008de, 0x04a806c0a, - 0x0486e825e, + 0x0486e8286, 0x061000672, 0x0588f486e, - 0x082646100, + 0x0828c6100, 0x00736486f, 0x0012c486e, - 0x0826c6100, + 0x082946100, 0x008d44a80, 0x06c0a486e, - 0x082706100, + 0x082986100, 0x00650588f, 0x0486f00c0, 0x0486f0138, 0x061001728, 0x048780001, - 0x0486e8275, + 0x0486e829d, 0x06100089c, 0x02f400244, 0x02f2f0130, - 0x0486e827d, + 0x0486e82a5, 0x0486f014c, 0x0610007c0, 0x0486f0150, @@ -148,27 +148,27 @@ ulong bootcode[]={ 0x061000888, 0x02f2f025c, 0x061000844, - 0x0486e8281, + 0x0486e82a9, 0x0610006c8, 0x042a7486e, - 0x0828d486e, - 0x0828a6100, + 0x082b5486e, + 0x082b26100, 0x0081c42a7, - 0x0486e8299, - 0x0486e8296, + 0x0486e82c1, + 0x0486e82be, 0x06100080e, 0x04aae801e, 0x0672042a7, - 0x0486e82b2, - 0x0486e82ad, - 0x0486e82a1, + 0x0486e82da, + 0x0486e82d5, + 0x0486e82c9, 0x061000794, - 0x0486e82c6, + 0x0486e82ee, 0x0610005be, 0x04fef0298, 0x04e7542a7, - 0x0486e82c1, - 0x0486e82b5, + 0x0486e82e9, + 0x0486e82dd, 0x061000778, 0x0598f60e0, 0x0598f102e, @@ -180,17 +180,17 @@ ulong bootcode[]={ 0x07273b200, 0x0676a4878, 0x00002486e, - 0x083356100, + 0x0835d6100, 0x007e22f40, 0x000084aaf, 0x00008508f, 0x06c0a486e, - 0x0833c6100, + 0x083646100, 0x00568588f, - 0x0486e834b, + 0x0486e8373, 0x02f2f0004, 0x06100052a, - 0x0486e8356, + 0x0486e837e, 0x02f2f000c, 0x06100051e, 0x0610007a4, @@ -206,34 +206,34 @@ ulong bootcode[]={ 0x00796588f, 0x060f260ec, 0x048780002, - 0x0486e8303, + 0x0486e832b, 0x061000778, 0x02f400008, 0x04aaf0008, 0x06c0a486e, - 0x0830f6100, + 0x083376100, 0x00500588f, - 0x0486e8323, + 0x0486e834b, 0x02f2f000c, 0x0610004c2, - 0x0486e832a, + 0x0486e8352, 0x02f2f0014, 0x0610004b6, 0x04fef0018, 0x06000ff7a, 0x060be4878, 0x00002486e, - 0x082d26100, + 0x082fa6100, 0x007362f40, 0x000084aaf, 0x000086c0a, - 0x0486e82de, + 0x0486e8306, 0x0610004be, 0x0588f486e, - 0x082f22f2f, + 0x0831a2f2f, 0x0000c6100, 0x00480486e, - 0x082f82f2f, + 0x083202f2f, 0x000146100, 0x004744fef, 0x000186000, @@ -241,36 +241,36 @@ ulong bootcode[]={ 0x0fff042af, 0x000044878, 0x00002486e, - 0x0836c6100, + 0x083946100, 0x006ee4a80, 0x042e72f40, 0x0001644df, 0x06c0a486e, - 0x083766100, + 0x0839e6100, 0x00474588f, 0x048780002, - 0x0486e8388, + 0x0486e83b0, 0x0610006cc, 0x04a8042e7, 0x02f40001a, 0x044df6c0a, - 0x0486e8391, + 0x0486e83b9, 0x061000452, 0x0588f486e, - 0x085d6486e, - 0x083a2486e, - 0x084f66100, + 0x085fe486e, + 0x083ca486e, + 0x0851e6100, 0x005de486e, - 0x084f66100, + 0x0851e6100, 0x006502f00, 0x02f400024, - 0x0486e84f6, + 0x0486e851e, 0x02f2f0030, 0x0610006a4, 0x0b0af002c, 0x0661e486e, - 0x085d6486e, - 0x083d56100, + 0x085fe486e, + 0x083fd6100, 0x004e22f2f, 0x0003c6100, 0x0064e202f, @@ -278,11 +278,11 @@ ulong bootcode[]={ 0x000484e75, 0x07005b0af, 0x00030660a, - 0x0486e83ad, + 0x0486e83d5, 0x0610003f2, 0x0588f486e, - 0x085d6486e, - 0x083b56100, + 0x085fe486e, + 0x083dd6100, 0x004b22f2f, 0x000406100, 0x0061e2f2f, @@ -294,17 +294,17 @@ ulong bootcode[]={ 0x042ae801a, 0x042ae801e, 0x042a7486e, - 0x083e66100, + 0x0840e6100, 0x0061a4a80, 0x06d744878, 0x0003f486e, - 0x0869a2f00, + 0x086c22f00, 0x02f400018, 0x06100060a, 0x02f2f0018, 0x0610005d8, 0x0207c0000, - 0x066984878, + 0x066c04878, 0x000202f08, 0x061000566, 0x020404a80, @@ -326,7 +326,7 @@ ulong bootcode[]={ 0x060f27001, 0x02d40801a, 0x060ea42a7, - 0x0486e83f2, + 0x0486e841a, 0x061000598, 0x04a806d1e, 0x048780001, @@ -337,147 +337,147 @@ ulong bootcode[]={ 0x000206100, 0x005564fef, 0x0001042a7, - 0x0486e8400, + 0x0486e8428, 0x06100056c, 0x04a806d20, 0x048780040, - 0x0486e85d6, + 0x0486e85fe, 0x02f002f40, 0x000286100, 0x0055c2f2f, 0x000286100, 0x0052a4fef, 0x000304e75, - 0x0486e840e, - 0x0486e85d6, + 0x0486e8436, + 0x0486e85fe, 0x0610004dc, 0x0518f60ea, 0x0598f486e, - 0x084126100, + 0x0843a6100, 0x003961d7c, - 0x00032855a, + 0x000328582, 0x03d7cffff, - 0x0855e486e, - 0x084f6486e, - 0x0855a6100, + 0x08586486e, + 0x0851e486e, + 0x085826100, 0x0053a2f00, 0x02f400010, - 0x0486e84f6, + 0x0486e851e, 0x02f2f001c, 0x06100051c, 0x0b0af0018, 0x0670a486e, - 0x084196100, + 0x084416100, 0x00290588f, 0x048780064, - 0x0486e84f6, + 0x0486e851e, 0x02f2f0028, 0x0610004ea, 0x022007002, 0x0b0816608, 0x00c2e004f, - 0x084f6677c, + 0x0851e677c, 0x04a8142e7, 0x02f410026, 0x044df6e0e, - 0x0486e8423, + 0x0486e844b, 0x06100025a, 0x0222f0028, 0x0588f2f01, - 0x0486e855a, - 0x0486e84f6, + 0x0486e8582, + 0x0486e851e, 0x061000cdc, 0x04a806638, - 0x0102e84f9, + 0x0102e8521, 0x049c02f00, - 0x0102e84f8, + 0x0102e8520, 0x049c02f00, - 0x0102e84f7, + 0x0102e851f, 0x049c02f00, - 0x0102e84f6, + 0x0102e851e, 0x049c02f00, 0x02f2f0040, - 0x0486e842c, + 0x0486e8454, 0x0610002e4, - 0x0486e844f, + 0x0486e8477, 0x06100020e, 0x04fef001c, 0x00c2e0033, - 0x0855a670a, - 0x0486e845a, + 0x08582670a, + 0x0486e8482, 0x0610001fa, 0x0588f4fef, 0x000344e75, 0x00c2e004b, - 0x084f76600, + 0x0851f6600, 0x0ff7c4878, 0x00064486e, - 0x084f62f2f, + 0x0851e2f2f, 0x000346100, 0x004442200, 0x04fef000c, 0x06000ff62, 0x0598f486e, - 0x084636100, + 0x0848b6100, 0x002921d7c, - 0x00034855a, + 0x000348582, 0x03d7cffff, - 0x0855e486e, - 0x084f6486e, - 0x0855a6100, + 0x08586486e, + 0x0851e486e, + 0x085826100, 0x004362f00, 0x02f400010, - 0x0486e84f6, + 0x0486e851e, 0x02f2f001c, 0x061000418, 0x0b0af0018, 0x0670a486e, - 0x0846e6100, + 0x084966100, 0x0018c588f, 0x048780064, - 0x0486e84f6, + 0x0486e851e, 0x02f2f0028, 0x0610003e6, 0x02f400024, 0x04aaf0024, 0x06e0a486e, - 0x0847c6100, + 0x084a46100, 0x00168588f, 0x02f2f0024, - 0x0486e855a, - 0x0486e84f6, + 0x0486e8582, + 0x0486e851e, 0x061000bec, 0x04a80660a, - 0x0486e8489, + 0x0486e84b1, 0x06100014a, 0x0588f0c2e, - 0x00037855a, + 0x000378582, 0x06618486e, - 0x08560486e, - 0x084986100, + 0x08588486e, + 0x084c06100, 0x00202486e, - 0x085606100, + 0x085886100, 0x0012c4fef, 0x0000c0c2e, - 0x00035855a, + 0x000358582, 0x0670a486e, - 0x084a26100, + 0x084ca6100, 0x00118588f, 0x04fef0034, 0x04e754fef, 0x0fff042a7, - 0x0486e84af, + 0x0486e84d7, 0x061000368, 0x04a806c0a, 0x0202f001c, 0x04fef0018, 0x04e75486e, - 0x084b46100, + 0x084dc6100, 0x001ba486f, 0x0000c6100, 0x0031a4a80, 0x06c0a486e, - 0x084bb6100, + 0x084e36100, 0x000d8588f, 0x06100032c, 0x04fef0010, @@ -506,19 +506,19 @@ ulong bootcode[]={ 0x0610002b4, 0x04aae801a, 0x0671842a7, - 0x0486e84d2, - 0x0486e84ca, - 0x0486e84c5, + 0x0486e84fa, + 0x0486e84f2, + 0x0486e84ed, 0x061000228, 0x04fef002c, 0x060aa42a7, - 0x0486e84e3, - 0x0486e84db, - 0x0486e84d6, + 0x0486e850b, + 0x0486e8503, + 0x0486e84fe, 0x061000210, 0x04fef002c, 0x06092486e, - 0x084c06134, + 0x084e86134, 0x0588f6092, 0x0598f2f2f, 0x0000c6100, @@ -537,7 +537,7 @@ ulong bootcode[]={ 0x0027c486f, 0x000042f2f, 0x0004c486e, - 0x084e64878, + 0x0850e4878, 0x000026100, 0x0011a42a7, 0x061744fef, @@ -545,10 +545,10 @@ ulong bootcode[]={ 0x0598f4281, 0x07021b081, 0x06f1e4ab6, - 0x01d208616, + 0x01d20863e, 0x0660e2daf, 0x000081d20, - 0x086167001, + 0x0863e7001, 0x0588f4e75, 0x052817021, 0x0b0816ee2, @@ -558,9 +558,9 @@ ulong bootcode[]={ 0x042827021, 0x0b0826f18, 0x020362d20, - 0x08616b088, + 0x0863eb088, 0x0660642b6, - 0x02d208616, + 0x02d20863e, 0x052827021, 0x0b0826ee8, 0x0588f4e75, @@ -572,11 +572,11 @@ ulong bootcode[]={ 0x04e75518f, 0x072204a81, 0x06d222eb6, - 0x01d208616, + 0x01d20863e, 0x04a976712, 0x02f410004, 0x042b61d20, - 0x086164eb7, + 0x0863e4eb7, 0x00151222f, 0x000045381, 0x04a816cde, @@ -708,7 +708,7 @@ ulong bootcode[]={ 0x006247251, 0x0b0016e00, 0x0061c3036, - 0x00b20806a, + 0x00b208092, 0x04efb0000, 0x0200890af, 0x0000c588f, @@ -753,7 +753,7 @@ ulong bootcode[]={ 0x04869000c, 0x02f082f48, 0x0000c6100, - 0x01bd6206f, + 0x01c26206f, 0x0000c701c, 0x0d1c04fef, 0x0000c6000, @@ -772,7 +772,7 @@ ulong bootcode[]={ 0x000744869, 0x000062f08, 0x02f48000c, - 0x061001b88, + 0x061001bd8, 0x0206f000c, 0x07074d1c0, 0x04fef000c, @@ -786,7 +786,7 @@ ulong bootcode[]={ 0x048690006, 0x02f082f48, 0x0000c6100, - 0x01b52206f, + 0x01ba2206f, 0x0000c7074, 0x0d1c04fef, 0x0000c6000, @@ -859,7 +859,7 @@ ulong bootcode[]={ 0x0000a2f29, 0x0000e2f08, 0x02f48000c, - 0x061001a2c, + 0x061001a7c, 0x0206f000c, 0x020370162, 0x00014000a, @@ -879,7 +879,7 @@ ulong bootcode[]={ 0x0000a2f29, 0x0000e2f08, 0x02f48000c, - 0x0610019dc, + 0x061001a2c, 0x0206f000c, 0x020370162, 0x00014000a, @@ -946,7 +946,7 @@ ulong bootcode[]={ 0x0001c4869, 0x0000c2f08, 0x02f48000c, - 0x0610018d0, + 0x061001920, 0x0226f0014, 0x0206f000c, 0x0701cd1c0, @@ -1007,7 +1007,7 @@ ulong bootcode[]={ 0x0001c4869, 0x0000c2f08, 0x02f48000c, - 0x0610017dc, + 0x06100182c, 0x0206f000c, 0x0701cd1c0, 0x04fef000c, @@ -1065,20 +1065,20 @@ ulong bootcode[]={ 0x048690006, 0x02f082f48, 0x0000c6100, - 0x016f6701c, + 0x01746701c, 0x0d1af000c, 0x04878001c, 0x048770162, 0x000180022, 0x02f2f0014, - 0x0610016dc, + 0x06100172c, 0x0701cd1af, 0x000184878, 0x0001c4877, 0x001620024, 0x0003e2f2f, 0x000206100, - 0x016c2206f, + 0x01712206f, 0x00024701c, 0x0d1c04fef, 0x000246000, @@ -1093,14 +1093,14 @@ ulong bootcode[]={ 0x000404869, 0x000062f08, 0x02f48000c, - 0x061001684, + 0x0610016d4, 0x0206f000c, 0x07040d1c0, 0x04fef000c, 0x06000f9f2, 0x0101149c0, 0x02f00486e, - 0x0814e6100, + 0x081766100, 0x0f7ea4280, 0x04fef000c, 0x04e756000, @@ -1113,20 +1113,20 @@ ulong bootcode[]={ 0x02f2f000c, 0x02f082f48, 0x0000c6100, - 0x01636701c, + 0x01686701c, 0x0d1af000c, 0x04878001c, 0x048770162, 0x00018001c, 0x02f2f0014, - 0x06100161c, + 0x06100166c, 0x0701cd1af, 0x000184878, 0x0001c4877, 0x001620024, 0x000382f2f, 0x000206100, - 0x01602226f, + 0x01652226f, 0x0002c206f, 0x00024701c, 0x0d1c02029, @@ -1223,7 +1223,7 @@ ulong bootcode[]={ 0x006007251, 0x0b0016e00, 0x005f83036, - 0x00b2080aa, + 0x00b2080d2, 0x04efb0000, 0x0202f0008, 0x0d0af0010, @@ -1273,7 +1273,7 @@ ulong bootcode[]={ 0x0001c2f08, 0x02f480008, 0x04869000c, - 0x0610013b4, + 0x061001404, 0x0206f000c, 0x0701cd1c0, 0x04fef000c, @@ -1293,7 +1293,7 @@ ulong bootcode[]={ 0x02f082f48, 0x000084869, 0x000066100, - 0x01366206f, + 0x013b6206f, 0x0000c7074, 0x0d1c04fef, 0x0000c6000, @@ -1306,7 +1306,7 @@ ulong bootcode[]={ 0x000742f08, 0x02f480008, 0x048690006, - 0x061001330, + 0x061001380, 0x0206f000c, 0x07074d1c0, 0x04fef000c, @@ -1450,7 +1450,7 @@ ulong bootcode[]={ 0x02f082f48, 0x000084869, 0x0000c6100, - 0x010f2226f, + 0x01142226f, 0x00018206f, 0x0000c701c, 0x0d1c04280, @@ -1512,7 +1512,7 @@ ulong bootcode[]={ 0x0001c2f08, 0x02f480008, 0x04869000c, - 0x061000ff8, + 0x061001048, 0x0206f000c, 0x0701cd1c0, 0x04fef000c, @@ -1571,20 +1571,20 @@ ulong bootcode[]={ 0x02f082f48, 0x000084869, 0x000066100, - 0x00f0e701c, + 0x00f5e701c, 0x0d1af000c, 0x04878001c, 0x02f2f0010, 0x048770162, 0x000200022, - 0x061000ef4, + 0x061000f44, 0x0701cd1af, 0x000184878, 0x0001c2f2f, 0x0001c4877, 0x00162002c, 0x0003e6100, - 0x00eda206f, + 0x00f2a206f, 0x00024701c, 0x0d1c04fef, 0x000246000, @@ -1599,14 +1599,14 @@ ulong bootcode[]={ 0x000402f08, 0x02f480008, 0x048690006, - 0x061000e9c, + 0x061000eec, 0x0206f000c, 0x07040d1c0, 0x04fef000c, 0x06000fa16, 0x0101149c0, 0x02f00486e, - 0x0815c6100, + 0x081846100, 0x0f0024280, 0x04fef000c, 0x04e756000, @@ -1619,20 +1619,20 @@ ulong bootcode[]={ 0x02f082f48, 0x000082f2f, 0x000146100, - 0x00e4e701c, + 0x00e9e701c, 0x0d1af000c, 0x04878001c, 0x02f2f0010, 0x048770162, 0x00020001c, - 0x061000e34, + 0x061000e84, 0x0701cd1af, 0x000184878, 0x0001c2f2f, 0x0001c4877, 0x00162002c, 0x000386100, - 0x00e1a226f, + 0x00e6a226f, 0x00030206f, 0x00024701c, 0x0d1c04280, @@ -1722,13 +1722,13 @@ ulong bootcode[]={ 0x04e75202e, 0x0800e1202, 0x049c11d80, - 0x01920804e, + 0x019208076, 0x052ae800e, 0x0120249c1, 0x010361920, - 0x0804e49c0, + 0x0807649c0, 0x02daf0008, - 0x00d20816e, + 0x00d208196, 0x042804e75, 0x04fefffe4, 0x0282f002c, @@ -1821,9 +1821,9 @@ ulong bootcode[]={ 0x02f490028, 0x02f042f44, 0x000401036, - 0x02920804e, + 0x029208076, 0x049c02076, - 0x00d20816e, + 0x00d208196, 0x04e90282f, 0x00040246f, 0x0003c226f, @@ -2218,7 +2218,7 @@ ulong bootcode[]={ 0x000a0f22f, 0x074000028, 0x0f2277480, - 0x061000464, + 0x0610004b4, 0x0262f0024, 0x0282f0020, 0x0f2026000, @@ -2397,7 +2397,7 @@ ulong bootcode[]={ 0x0000af22f, 0x07400002c, 0x0f2277400, - 0x061000198, + 0x0610001e8, 0x0262f0020, 0x0282f001c, 0x0f2026000, @@ -2497,8 +2497,28 @@ ulong bootcode[]={ 0x07fffffff, 0x0e2a04680, 0x0c1af0008, - 0x060ccf22f, - 0x040120004, + 0x060cc598f, + 0x0222f0008, + 0x06c1c2001, + 0x044802f00, + 0x061f0f200, + 0x00080f23c, + 0x040000000, + 0x00001f200, + 0x00420508f, + 0x04e75700a, + 0x0b0816f0c, + 0x0f2364000, + 0x01d20804e, + 0x0588f4e75, + 0x02401e282, + 0x020019082, + 0x02e822f00, + 0x061bcf227, + 0x074002f2f, + 0x0000c61b2, + 0x0588ff21f, + 0x05423508f, 0x04e75518f, 0x0f22f543a, 0x0000cf293, @@ -2507,7 +2527,7 @@ ulong bootcode[]={ 0x054000010, 0x0f200001a, 0x0f2277400, - 0x06100ff3e, + 0x06100feee, 0x0f2000100, 0x0f200003a, 0x0f2810016, @@ -2527,7 +2547,7 @@ ulong bootcode[]={ 0x0f22f5400, 0x00010f227, 0x074006100, - 0x0fef060e0, + 0x0fea060e0, 0x0f22f5480, 0x00004f200, 0x0049af227, @@ -2593,6 +2613,16 @@ ulong bootcode[]={ 0x074207374, 0x061747573, 0x000000000, + 0x000000001, + 0x00000000a, + 0x000000064, + 0x0000003e8, + 0x000002710, + 0x0000186a0, + 0x0000f4240, + 0x000989680, + 0x005f5e100, + 0x03b9aca00, 0x000000000, 0x000000000, 0x000000000, @@ -2891,8 +2921,6 @@ ulong bootcode[]={ 0x03a202573, 0x03a202573, 0x00a000000, - 0x00002d30, - 0x0, - 0x00002d30, + 0x00002da8, 0x0, }; diff --git a/gnot/errno.h b/gnot/errno.h index d4d38c70c104e656ff543b901ee2290f7508c301..77dba6e66fe0e343de6a731260f4aab29321d431 100644 --- a/gnot/errno.h +++ b/gnot/errno.h @@ -59,5 +59,6 @@ enum{ Enoasync, /* out of async stream modules */ Enopipe, /* out of pipes */ Enofilsys, /* out of filsys resources */ + Eisstream, /* seek on a stream */ Egreg, /* ken has implemented datakit */ }; diff --git a/gnot/l.s b/gnot/l.s index 1679666764652564eb0ebb586d7efb76f2d32827..cd4f693e3e1a07b6ff887a6a6d8626ddea25801c 100644 --- a/gnot/l.s +++ b/gnot/l.s @@ -1,5 +1,7 @@ #include "mem.h" +#define DBMAGIC 0xBADC0C0A + /* * Boot first processor */ @@ -155,12 +157,13 @@ TEXT rfnote(SB), $0 MOVL ((8+8)*BY2WD)(A7), A0 MOVL A0, USP MOVEM (A7), $0x7FFF - ADDL $((8+8+1)*BY2WD), A7 + ADDL $((8+8+1)*BY2WD+BY2WD), A7 MOVL $-1, R0 /* note causes error in sys call */ RTE TEXT illegal(SB), $0 + MOVL $DBMAGIC, -(A7) SUBL $((8+8+1)*BY2WD), A7 MOVEM $0x7FFF, (A7) MOVL $a6base(SB), A6 @@ -172,11 +175,12 @@ TEXT illegal(SB), $0 MOVL ((8+8)*BY2WD)(A7), A0 MOVL A0, USP MOVEM (A7), $0x7FFF - ADDL $((8+8+1)*BY2WD), A7 + ADDL $((8+8+1)*BY2WD+BY2WD), A7 RTE TEXT systrap(SB), $0 + MOVL $DBMAGIC, -(A7) SUBL $((8+8+1)*BY2WD), A7 MOVL A6, ((8+6)*BY2WD)(A7) MOVL R0, (A7) @@ -188,24 +192,25 @@ TEXT systrap(SB), $0 MOVL ((1+8+8)*BY2WD)(A7), A0 MOVL A0, USP MOVL ((1+8+6)*BY2WD)(A7), A6 - ADDL $((1+8+8+1)*4), A7 + ADDL $((1+8+8+1)*BY2WD+BY2WD), A7 RTE TEXT buserror(SB), $0 + MOVL $DBMAGIC, -(A7) SUBL $((8+8+1)*BY2WD), A7 MOVEM $0x7FFF, (A7) MOVL $a6base(SB), A6 MOVL USP, A0 MOVL A0, ((8+8)*BY2WD)(A7) - PEA ((8+8+1+2)*BY2WD)(A7) + PEA ((8+8+1+3)*BY2WD)(A7) PEA 4(A7) BSR fault68020(SB) ADDL $8, A7 MOVL ((8+8)*BY2WD)(A7), A0 MOVL A0, USP MOVEM (A7), $0x7FFF - ADDL $((8+8+1)*4), A7 + ADDL $((8+8+1)*BY2WD+BY2WD), A7 RTE TEXT tacintr(SB), $0 /* level 1 */ @@ -217,6 +222,7 @@ TEXT tacintr(SB), $0 /* level 1 */ TEXT portintr(SB), $0 /* level 2 */ + MOVL $DBMAGIC, -(A7) SUBL $((8+8+1)*BY2WD), A7 MOVEM $0x7FFF, (A7) MOVL $a6base(SB), A6 @@ -228,11 +234,12 @@ TEXT portintr(SB), $0 /* level 2 */ MOVL ((8+8)*BY2WD)(A7), A0 MOVL A0, USP MOVEM (A7), $0x7FFF - ADDL $((8+8+1)*BY2WD), A7 + ADDL $((8+8+1)*BY2WD+BY2WD), A7 RTE TEXT dkintr(SB), $0 /* level 2 */ + MOVL $DBMAGIC, -(A7) SUBL $((8+8+1)*BY2WD), A7 MOVEM $0x7FFF, (A7) MOVL $a6base(SB), A6 @@ -244,7 +251,7 @@ TEXT dkintr(SB), $0 /* level 2 */ MOVL ((8+8)*BY2WD)(A7), A0 MOVL A0, USP MOVEM (A7), $0x77FFF - ADDL $((8+8+1)*4), A7 + ADDL $((8+8+1)*BY2WD+BY2WD), A7 RTE TEXT mouseintr(SB), $0 /* level 4 */ @@ -265,6 +272,7 @@ TEXT mouseintr(SB), $0 /* level 4 */ TEXT uartintr(SB), $0 /* level 5 */ + MOVL $DBMAGIC, -(A7) SUBL $((8+8+1)*BY2WD), A7 MOVEM $0x7FFF, (A7) MOVL $a6base(SB), A6 @@ -276,11 +284,12 @@ TEXT uartintr(SB), $0 /* level 5 */ MOVL ((8+8)*BY2WD)(A7), A0 MOVL A0, USP MOVEM (A7), $0x7FFF - ADDL $((8+8+1)*4), A7 + ADDL $((8+8+1)*BY2WD+BY2WD), A7 RTE TEXT syncintr(SB), $0 /* level 6 */ + MOVL $DBMAGIC, -(A7) SUBL $((8+8+1)*BY2WD), A7 MOVEM $0x7FFF, (A7) MOVL $a6base(SB), A6 @@ -292,7 +301,7 @@ TEXT syncintr(SB), $0 /* level 6 */ MOVL ((8+8)*BY2WD)(A7), A0 MOVL A0, USP MOVEM (A7), $0x7FFF - ADDL $((8+8+1)*4), A7 + ADDL $((8+8+1)*BY2WD+BY2WD), A7 RTE GLOBL mousetab(SB), $128 diff --git a/gnot/mem.h b/gnot/mem.h index 0a10891a08d8fbc2c630e8ffa6a7bd905ae0d83f..31f0783d7089f951d8ca80e099275f58be24c0c6 100644 --- a/gnot/mem.h +++ b/gnot/mem.h @@ -48,7 +48,7 @@ */ #define USERADDR 0x80000000 -#define UREGADDR (USERADDR+BY2PG-(2+4+2+(8+8+1)*BY2WD)) +#define UREGADDR (USERADDR+BY2PG-(2+4+2+(8+8+1+1)*BY2WD)) /* * Devices poked during bootstrap diff --git a/gnot/ureg.h b/gnot/ureg.h index e6a9c2271029a74976b9515f582b047e38db5b40..f3ad7e1fe8243e0685857735a23a0957e1be4f77 100644 --- a/gnot/ureg.h +++ b/gnot/ureg.h @@ -17,6 +17,7 @@ struct Ureg ulong a6; ulong sp; ulong usp; + ulong magic; /* for db to find bottom of ureg */ ushort sr; ulong pc; ushort vo; diff --git a/port/stnoether.c b/port/stnoether.c index 652e4514260996e7ccda7ce4a0c4411f097da6f1..62f0875b42544c2e784cc58547ff1fe49c9e6fac 100644 --- a/port/stnoether.c +++ b/port/stnoether.c @@ -193,7 +193,7 @@ noetheriput(Queue *q, Block *bp) circuit = (h->circuit[2]<<16) | (h->circuit[1]<<8) | h->circuit[0]; s = (h->sum[1]<<8) | h->sum[0]; if(s && s!=nonetcksum(bp, 14)){ - print("checksum error %ux %ux\n", s, (h->sum[1]<<8) | h->sum[0]); +/* print("checksum error %ux %ux\n", s, (h->sum[1]<<8) | h->sum[0]); /**/ freeb(bp); return; } diff --git a/port/sysfile.c b/port/sysfile.c index c1bce311a931d64330add15e9297c6f5fe8f6cc9..2f7e60e65827bd95f78b2abeaf35e2493a6ca210 100644 --- a/port/sysfile.c +++ b/port/sysfile.c @@ -278,6 +278,8 @@ sysseek(ulong *arg) c = fdtochan(arg[0], -1); if(c->qid.path & CHDIR) error(Eisdir); + if(devchar[c->type] == '|') + error(Eisstream); qlock(c); if(waserror()){ qunlock(c); diff --git a/power/errno.h b/power/errno.h index d08f9eb91ac185c93575ed9ec760d44f7011ea6b..a233cab1fc0dc3b810e7fc1a1f2028bb20e894a1 100644 --- a/power/errno.h +++ b/power/errno.h @@ -53,5 +53,6 @@ enum{ Enovmem, /* virtual memory allocation failed */ Enoasync, /* out of async stream modules */ Enopipe, /* out of pipes */ + Eisstream, /* seek on a stream */ Egreg, /* ken has implemented datakit */ };