From 29de0113e076b8554ae0b1cffaa9ae460f9f2ba1 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Wed, 18 Sep 1991 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1991-09-18 --- gnot/boot.h | 910 +++++++++++++++++++++++++++----------------------- port/devmnt.c | 7 +- 2 files changed, 495 insertions(+), 422 deletions(-) diff --git a/gnot/boot.h b/gnot/boot.h index ae83fcecc7593475aaddd487c2e64e397a52170c..4a3daab9ddbfb0e5168b698891271f2ba01d7401 100644 --- a/gnot/boot.h +++ b/gnot/boot.h @@ -1,7 +1,7 @@ ulong bootcode[]={ 0x000000107, - 0x000003096, - 0x0000006f8, + 0x0000031a6, + 0x000000700, 0x0000012b0, 0x000000000, 0x000002020, @@ -17,30 +17,30 @@ ulong bootcode[]={ 0x00f424fef, 0x0001c4e75, 0x0518f42a7, - 0x0486e811a, + 0x0486e8122, 0x06100117c, 0x048780001, - 0x0486e8122, + 0x0486e812a, 0x061001170, 0x048780001, - 0x0486e812a, + 0x0486e8132, 0x061001164, 0x0487803e8, 0x061001168, 0x0610000f6, - 0x0486e8132, + 0x0486e813a, 0x06100021e, 0x04aae8006, 0x0660000d2, - 0x0486e813e, - 0x0486e990e, + 0x0486e8146, + 0x0486e9916, 0x06100109a, 0x04878001c, - 0x0486e990e, - 0x0486e8143, + 0x0486e9916, + 0x0486e814b, 0x061000be2, 0x061000da6, - 0x0486e990e, + 0x0486e9916, 0x06100024a, 0x06100029c, 0x04fef0038, @@ -52,57 +52,57 @@ ulong bootcode[]={ 0x06100032e, 0x024002f02, 0x0610003cc, - 0x0486e9776, + 0x0486e977e, 0x061000420, 0x04a806d3e, 0x02f006100, 0x0050e4aae, 0x0802e6720, 0x042a7486e, - 0x08182486e, - 0x0817d486e, - 0x081716100, + 0x0818a486e, + 0x08185486e, + 0x081796100, 0x00fd0486e, - 0x081966100, + 0x0819e6100, 0x00b524fef, 0x000284e75, 0x042a7486e, - 0x08191486e, - 0x081856100, + 0x08199486e, + 0x0818d6100, 0x00fb4598f, 0x060e0486e, - 0x081556100, + 0x0815d6100, 0x00ea84878, 0x003e86100, 0x010aa4fef, 0x0000c60a0, 0x06092486e, - 0x081486100, + 0x081506100, 0x002ec2400, 0x0588f608a, - 0x0486e814f, + 0x0486e8157, 0x0610002de, 0x02400588f, 0x06000ff7c, - 0x0486e98d6, - 0x0486e990e, + 0x0486e98de, + 0x0486e9916, 0x061000fca, 0x04feffff4, 0x06000ff3e, 0x0518f42ae, 0x0802a42ae, 0x0802e42a7, - 0x0486e81a2, + 0x0486e81aa, 0x061001050, 0x04a806d74, 0x04878003f, - 0x0486e9896, + 0x0486e989e, 0x02f002f40, 0x000186100, 0x010402f2f, 0x000186100, 0x0100e207c, - 0x000007894, + 0x00000789c, 0x048780020, 0x02f086100, 0x00f382040, @@ -125,7 +125,7 @@ ulong bootcode[]={ 0x070012d40, 0x0802a60ea, 0x042a7486e, - 0x081ae6100, + 0x081b66100, 0x00fce4a80, 0x06d1e4878, 0x00001486e, @@ -136,22 +136,22 @@ ulong bootcode[]={ 0x061000f8c, 0x04fef0010, 0x042a7486e, - 0x081bc6100, + 0x081c46100, 0x00fa24a80, 0x06d1e4878, 0x0001b486e, - 0x098d62f00, + 0x098de2f00, 0x02f400028, 0x061000f92, 0x02f2f0028, 0x061000f60, 0x04fef0010, 0x042a7486e, - 0x081c86100, + 0x081d06100, 0x00f764a80, 0x06d2e4878, 0x0001b486e, - 0x097762f00, + 0x0977e2f00, 0x02f400030, 0x061000f66, 0x02f2f0030, @@ -161,19 +161,19 @@ ulong bootcode[]={ 0x070012d40, 0x080064fef, 0x000384e75, - 0x0486e81d6, - 0x0486e9776, + 0x0486e81de, + 0x0486e977e, 0x061000e96, 0x0518f60dc, 0x0598f4878, 0x001b64878, 0x00001486e, - 0x081da6100, + 0x081e26100, 0x00f044a80, 0x042e72f40, 0x0000e44df, 0x06c0a486e, - 0x081e66100, + 0x081ee6100, 0x0099a588f, 0x02f2f0014, 0x061000e74, @@ -182,7 +182,7 @@ ulong bootcode[]={ 0x02f2f0014, 0x061000f0c, 0x04a806c0a, - 0x0486e81ef, + 0x0486e81f7, 0x061000974, 0x0588f2f2f, 0x000186100, @@ -190,20 +190,20 @@ ulong bootcode[]={ 0x000204e75, 0x0598f4878, 0x00011486e, - 0x081f86100, + 0x082006100, 0x00eca4a80, 0x042e72f40, 0x0000a44df, 0x06d36486e, - 0x0990e6100, + 0x099166100, 0x00e26588f, 0x02f00486e, - 0x0990e2f2f, + 0x099162f2f, 0x000106100, 0x00ebe4a80, 0x06e0e486e, - 0x0990e486e, - 0x082006100, + 0x09916486e, + 0x082086100, 0x00c98508f, 0x02f2f0014, 0x061000e68, @@ -215,15 +215,15 @@ ulong bootcode[]={ 0x067081002, 0x049c0588f, 0x04e75486e, - 0x0821f486f, + 0x08227486f, 0x000046100, 0x00dc0486e, - 0x08221486e, - 0x097766100, + 0x08229486e, + 0x0977e6100, 0x00db44878, 0x00004486f, 0x00014486e, - 0x082256100, + 0x0822d6100, 0x008fc102f, 0x0001c49c0, 0x04fef001c, @@ -236,71 +236,71 @@ ulong bootcode[]={ 0x060b4706c, 0x0588f4e75, 0x04878001c, - 0x0486e9776, - 0x0486e824d, + 0x0486e977e, + 0x0486e8255, 0x0610008c2, 0x070694fef, 0x000104e75, 0x04878001c, - 0x0486e9776, - 0x0486e825b, + 0x0486e977e, + 0x0486e8263, 0x0610008aa, 0x070414fef, 0x000104e75, 0x04878001c, - 0x0486e9776, - 0x0486e8254, + 0x0486e977e, + 0x0486e825c, 0x061000892, 0x070614fef, 0x000104e75, 0x0598f4878, 0x00002486e, - 0x082626100, + 0x0826a6100, 0x00dc62200, 0x042e72f40, 0x0000a44df, 0x06c0e486e, - 0x082696100, + 0x082716100, 0x0083e222f, 0x0000c588f, 0x020014fef, 0x0000c4e75, 0x04feffff4, 0x048780002, - 0x0486e8278, + 0x0486e8280, 0x061000d94, 0x02f400010, 0x04aaf0010, 0x06c0a486e, - 0x082836100, + 0x0828b6100, 0x0080e588f, 0x02f2f0018, 0x02f2f0014, 0x0610007ac, 0x048780002, - 0x0486e8296, + 0x0486e829e, 0x061000d68, 0x02f40001c, 0x04aaf001c, 0x06c0a486e, - 0x0829e6100, + 0x082a66100, 0x007e2588f, 0x02f2f001c, 0x061000866, 0x02f2f0020, 0x061000d20, - 0x0486e82ae, + 0x0486e82b6, 0x02f2f002c, 0x061000770, 0x0202f0030, 0x04fef0034, 0x04e75486e, - 0x082b92f2f, + 0x082c12f2f, 0x000086100, 0x0075a206f, 0x0000c4aae, 0x08006673a, - 0x0486e82c4, + 0x0486e82cc, 0x02f086100, 0x007466100, 0x00cfe4fef, @@ -315,36 +315,36 @@ ulong bootcode[]={ 0x061000cf0, 0x0588f60f2, 0x060ee486e, - 0x082da2f08, + 0x082e22f08, 0x06100070c, 0x060c44fef, 0x0fff02f2f, 0x00014486e, - 0x082ee486e, - 0x086fa6100, + 0x082f6486e, + 0x087026100, 0x00b90486e, - 0x086fa6100, + 0x087026100, 0x00c262f40, 0x0001042af, 0x000144878, 0x00002486e, - 0x082f96100, + 0x083016100, 0x00ca24a80, 0x042e72f40, 0x0002644df, 0x06c0a486e, - 0x083036100, + 0x0830b6100, 0x0071a588f, 0x048780002, - 0x0486e8315, + 0x0486e831d, 0x061000c80, 0x02f400028, 0x04aaf0028, 0x06c0a486e, - 0x0831e6100, + 0x083266100, 0x006fa588f, 0x02f2f0020, - 0x0486e86fa, + 0x0486e8702, 0x02f2f0030, 0x061000c74, 0x0b0af002c, @@ -366,23 +366,23 @@ ulong bootcode[]={ 0x04fef0028, 0x06000ff68, 0x02f2f0040, - 0x0486e832f, + 0x0486e8337, 0x061000a0a, - 0x0486e8340, + 0x0486e8348, 0x02f2f0040, 0x061000634, 0x02f2f0044, 0x061000bd0, 0x02d7c0000, - 0x06343800a, + 0x0634b800a, 0x02d7c0000, - 0x063468032, + 0x0634e8032, 0x0202f004c, 0x04fef0050, 0x04e754fef, 0x0fecc4878, 0x0002f486e, - 0x097766100, + 0x0977e6100, 0x00b522400, 0x067000250, 0x052822f42, @@ -394,105 +394,105 @@ ulong bootcode[]={ 0x001486100, 0x004d42f40, 0x0014c486e, - 0x0834b6100, + 0x083536100, 0x0099c2f2f, 0x00140486e, - 0x08353486e, - 0x086fa6100, + 0x0835b486e, + 0x087026100, 0x00a5c4878, 0x001b64878, 0x00001486e, - 0x086fa6100, + 0x087026100, 0x00b5c4a80, 0x042e72f40, 0x0015e44df, 0x06c0a486e, - 0x083596100, + 0x083616100, 0x005f2588f, 0x02f2f0168, - 0x0486e8360, - 0x0486e86fa, + 0x0486e8368, + 0x0486e8702, 0x061000a26, - 0x0486e86fa, + 0x0486e8702, 0x061000abc, 0x0588f2f00, - 0x0486e86fa, + 0x0486e8702, 0x02f2f0170, 0x061000b54, 0x02f00486e, - 0x086fa6100, + 0x087026100, 0x00aa2588f, 0x0221fb280, 0x0670a486e, - 0x083636100, + 0x0836b6100, 0x005ae588f, 0x02f2f0174, 0x061000af4, 0x0487801b6, 0x048780001, - 0x0486e8369, + 0x0486e8371, 0x061000aea, 0x04a8042e7, 0x02f400186, 0x044df6c0a, - 0x0486e8371, + 0x0486e8379, 0x061000580, 0x0588f2f2f, 0x00190486e, - 0x08378486e, - 0x086fa6100, + 0x08380486e, + 0x087026100, 0x009b4486e, - 0x086fa6100, + 0x087026100, 0x00a4a588f, 0x02f00486e, - 0x086fa2f2f, + 0x087022f2f, 0x001986100, 0x00ae22f00, - 0x0486e86fa, + 0x0486e8702, 0x061000a30, 0x0588f221f, 0x0b280670a, - 0x0486e837b, + 0x0486e8383, 0x06100053c, 0x0588f2f2f, 0x0019c6100, 0x00a82486e, - 0x083816100, + 0x083896100, 0x008a042a7, - 0x0486e838c, - 0x0486e838a, + 0x0486e8394, + 0x0486e8392, 0x061000a5a, 0x04a806c0a, - 0x0486e838e, + 0x0486e8396, 0x061000510, 0x0588f486e, - 0x08396486e, - 0x083954878, + 0x0839e486e, + 0x0839d4878, 0x00006486e, - 0x083932f2f, + 0x0839b2f2f, 0x001cc6100, 0x00a644a80, 0x06c0a486e, - 0x083976100, + 0x0839f6100, 0x004ea588f, - 0x0486e839d, + 0x0486e83a5, 0x061000856, 0x0486f00dc, - 0x0486e83a5, + 0x0486e83ad, 0x061000a5a, 0x04a806c0a, - 0x0486e83a9, + 0x0486e83b1, 0x0610004c8, 0x0588f486f, 0x00158486f, 0x000e86100, 0x00a524878, 0x00001486e, - 0x083ae6100, + 0x083b66100, 0x00a222f40, 0x001e02f2f, 0x001c8486e, - 0x083b6486f, + 0x083be486f, 0x000fc6100, 0x008e0486f, 0x001006100, @@ -503,41 +503,41 @@ ulong bootcode[]={ 0x00a0e2f2f, 0x001f86100, 0x009ca486e, - 0x083ba6100, + 0x083c26100, 0x007e84aae, 0x080326730, 0x02f2e800a, - 0x0486e83c3, + 0x0486e83cb, 0x0486f00dc, 0x0610008a2, 0x042a7486f, 0x000e42f2e, 0x080326100, 0x0098c42a7, - 0x0486e83cb, + 0x0486e83d3, 0x02f2e8032, 0x06100097e, 0x04fef0024, 0x04aae800a, 0x0672e2f2e, 0x0800a486e, - 0x083d4486f, + 0x083dc486f, 0x000dc6100, 0x0086c486f, 0x000e0486e, - 0x083e46100, + 0x083ec6100, 0x0079042a7, - 0x0486e8406, + 0x0486e840e, 0x0486f00f0, 0x06100094a, 0x04fef0020, 0x04fef0208, 0x04e752f7c, - 0x000007774, + 0x00000777c, 0x001306000, 0x0fdae598f, 0x048781000, - 0x0486e86fa, + 0x0486e8702, 0x02f2f0010, 0x06100095e, 0x022007002, @@ -545,182 +545,182 @@ ulong bootcode[]={ 0x0610005ca, 0x070ff4fef, 0x000104e75, - 0x0422e86fc, - 0x0486e8417, - 0x0486e86fa, + 0x0422e8704, + 0x0486e841f, + 0x0486e8702, 0x061000870, 0x04a806608, 0x042804fef, 0x000184e75, - 0x0486e841a, - 0x0486e86fa, + 0x0486e8422, + 0x0486e8702, 0x061000858, 0x04a806634, - 0x0486e98f2, - 0x0486e990e, - 0x0486e841d, - 0x0486e86fa, + 0x0486e98fa, + 0x0486e9916, + 0x0486e8425, + 0x0486e8702, 0x0610007d6, - 0x0486e86fa, + 0x0486e8702, 0x06100086c, 0x0588f2f00, - 0x0486e86fa, + 0x0486e8702, 0x02f2f003c, 0x061000904, 0x04fef0038, 0x06000ff7e, - 0x0486e8424, - 0x0486e86fa, + 0x0486e842c, + 0x0486e8702, 0x061000814, 0x04a804fef, 0x000246600, 0x0ff686100, 0x00548486e, - 0x098f2486e, - 0x0990e486e, - 0x08427486e, - 0x086fa6100, + 0x098fa486e, + 0x09916486e, + 0x0842f486e, + 0x087026100, 0x00788486e, - 0x086fa6100, + 0x087026100, 0x0081e588f, 0x02f00486e, - 0x086fa2f2f, + 0x087022f2f, 0x000206100, 0x008b64fef, 0x0001c6000, 0x0ff30598f, - 0x0486e842e, + 0x0486e8436, 0x06100068e, 0x01d7c0032, - 0x096fa3d7c, - 0x0ffff96fe, - 0x0486e86fa, - 0x0486e96fa, - 0x061001060, + 0x097023d7c, + 0x0ffff9706, + 0x0486e8702, + 0x0486e9702, + 0x0610010e8, 0x02f002f40, 0x00010486e, - 0x086fa2f2f, + 0x087022f2f, 0x0001c6100, 0x0087ab0af, 0x00018670a, - 0x0486e8435, + 0x0486e843d, 0x0610002e0, 0x0588f4878, 0x01000486e, - 0x086fa2f2f, + 0x087022f2f, 0x000286100, 0x008482200, 0x07002b081, 0x066080c2e, - 0x0004f86fa, + 0x0004f8702, 0x0677c4a81, 0x042e72f41, 0x0002644df, 0x06e0e486e, - 0x0843f6100, + 0x084476100, 0x002aa222f, 0x00028588f, 0x02f01486e, - 0x096fa486e, - 0x086fa6100, + 0x09702486e, + 0x087026100, 0x009c24a80, 0x06638102e, - 0x086fd49c0, + 0x0870549c0, 0x02f00102e, - 0x086fc49c0, + 0x0870449c0, 0x02f00102e, - 0x086fb49c0, + 0x0870349c0, 0x02f00102e, - 0x086fa49c0, + 0x0870249c0, 0x02f002f2f, 0x00040486e, - 0x084486100, + 0x084506100, 0x005dc486e, - 0x0846f6100, + 0x084776100, 0x0025e4fef, 0x0001c0c2e, - 0x0003396fa, + 0x000339702, 0x0670a486e, - 0x0847a6100, + 0x084826100, 0x0024a588f, 0x04fef0034, 0x04e750c2e, - 0x0004b86fb, + 0x0004b8703, 0x06600ff7c, 0x048781000, - 0x0486e86fa, + 0x0486e8702, 0x02f2f0034, 0x0610007a2, 0x022004fef, 0x0000c6000, 0x0ff62598f, - 0x0486e8483, + 0x0486e848b, 0x06100058a, 0x01d7c0034, - 0x096fa3d7c, - 0x0ffff96fe, - 0x0486e86fa, - 0x0486e96fa, - 0x061000f5c, + 0x097023d7c, + 0x0ffff9706, + 0x0486e8702, + 0x0486e9702, + 0x061000fe4, 0x02f002f40, 0x00010486e, - 0x086fa2f2f, + 0x087022f2f, 0x0001c6100, 0x00776b0af, 0x00018670a, - 0x0486e848e, + 0x0486e8496, 0x0610001dc, 0x0588f4878, 0x01000486e, - 0x086fa2f2f, + 0x087022f2f, 0x000286100, 0x007442f40, 0x000244aaf, 0x000246e0a, - 0x0486e849c, + 0x0486e84a4, 0x0610001b8, 0x0588f2f2f, 0x00024486e, - 0x096fa486e, - 0x086fa6100, + 0x09702486e, + 0x087026100, 0x008d24a80, 0x0660a486e, - 0x084a96100, + 0x084b16100, 0x0019a588f, 0x00c2e0037, - 0x096fa6618, - 0x0486e9700, - 0x0486e84b8, + 0x097026618, + 0x0486e9708, + 0x0486e84c0, 0x0610004fa, - 0x0486e9700, + 0x0486e9708, 0x06100017c, 0x04fef000c, 0x00c2e0035, - 0x096fa670a, - 0x0486e84c2, + 0x09702670a, + 0x0486e84ca, 0x061000168, 0x0588f4fef, 0x000344e75, 0x04fefff80, 0x04857486e, - 0x084cf6100, - 0x0150c4a80, + 0x084d76100, + 0x0161c4a80, 0x06c0a202f, 0x0008c4fef, 0x000884e75, 0x0486f0008, - 0x0486e84d4, - 0x0610014f2, + 0x0486e84dc, + 0x061001602, 0x04a806c0a, 0x0202f0094, 0x04fef0090, 0x04e75486e, - 0x084e06100, + 0x084e86100, 0x00498486f, 0x000886100, 0x0065e4a80, 0x06c0a486e, - 0x084e76100, + 0x084ef6100, 0x0010e588f, 0x061000670, 0x04fef0018, @@ -750,22 +750,22 @@ ulong bootcode[]={ 0x005f64aae, 0x0802a6720, 0x042a7486e, - 0x08505486e, - 0x08502486e, + 0x0850d486e, + 0x0850a486e, + 0x08506486e, 0x084fe486e, - 0x084f6486e, - 0x084f16100, + 0x084f96100, 0x004fc4fef, 0x0003460a2, 0x042a7486e, - 0x08524486e, - 0x08521486e, + 0x0852c486e, + 0x08529486e, + 0x08526486e, 0x0851e486e, - 0x08516486e, - 0x085116100, + 0x085196100, 0x004dc4fef, 0x000346082, - 0x0486e84ec, + 0x0486e84f4, 0x06158588f, 0x06082598f, 0x02f2f000c, @@ -784,7 +784,7 @@ ulong bootcode[]={ 0x0610005ae, 0x0486f0004, 0x02f2f004c, - 0x0486e8530, + 0x0486e8538, 0x048780002, 0x0610003e6, 0x04fef0054, @@ -793,7 +793,7 @@ ulong bootcode[]={ 0x06100058a, 0x0486f0004, 0x02f2f004c, - 0x0486e853e, + 0x0486e8546, 0x048780002, 0x0610003c2, 0x042a76100, @@ -802,7 +802,7 @@ ulong bootcode[]={ 0x04feffefc, 0x02f2f010c, 0x02f2f010c, - 0x0486e854c, + 0x0486e8554, 0x06100033a, 0x02f2f011c, 0x0486f0010, @@ -812,7 +812,7 @@ ulong bootcode[]={ 0x067da42e7, 0x02f400102, 0x044df6c0c, - 0x0486e8555, + 0x0486e855d, 0x0619c222f, 0x00104588f, 0x07001b081, @@ -825,7 +825,7 @@ ulong bootcode[]={ 0x020014fef, 0x001044e75, 0x04fefff70, - 0x0486e8577, + 0x0486e857f, 0x0610002de, 0x0610004cc, 0x02f40000c, @@ -834,12 +834,12 @@ ulong bootcode[]={ 0x000fc4281, 0x0b2806700, 0x0009842a7, - 0x0486e85b4, + 0x0486e85bc, 0x0610004b8, 0x02f400008, 0x04aaf0008, 0x06c0a486e, - 0x085bd6100, + 0x085c56100, 0x0ff32588f, 0x048780001, 0x0486f001c, @@ -862,7 +862,7 @@ ulong bootcode[]={ 0x02f2f0008, 0x061000430, 0x0486f001c, - 0x0486e85cb, + 0x0486e85d3, 0x06100024a, 0x04fef0014, 0x0518f609c, @@ -879,7 +879,7 @@ ulong bootcode[]={ 0x0486f001c, 0x06100042e, 0x0486f0020, - 0x0486e859a, + 0x0486e85a2, 0x061000206, 0x060fe4282, 0x0b4836c18, @@ -894,19 +894,19 @@ ulong bootcode[]={ 0x000016100, 0x003ee4fef, 0x0001860a4, - 0x0486e858e, + 0x0486e8596, 0x06100fe54, 0x0588f6098, 0x04fefffdc, 0x02f2f0028, - 0x0486e85e6, + 0x0486e85ee, 0x0486f000c, 0x061000282, 0x048780001, 0x0486f0014, 0x0610003a4, 0x048780003, - 0x0486e85f4, + 0x0486e85fc, 0x02f002f40, 0x000206100, 0x003aa2f2f, @@ -915,14 +915,14 @@ ulong bootcode[]={ 0x000484e75, 0x04fefff74, 0x042a7486e, - 0x085f86100, + 0x086006100, 0x003764a80, 0x042e72f40, 0x0001244df, 0x06c0a486e, - 0x086016100, + 0x086096100, 0x0fdee588f, - 0x0486e8624, + 0x0486e862c, 0x06100015a, 0x042af0018, 0x048780001, @@ -932,7 +932,7 @@ ulong bootcode[]={ 0x02f400028, 0x04aaf0028, 0x06c0a486e, - 0x0862f6100, + 0x086376100, 0x0fdbe588f, 0x04aaf0028, 0x04fef000c, @@ -946,7 +946,7 @@ ulong bootcode[]={ 0x06748202f, 0x0000c1daf, 0x000140920, - 0x098f252af, + 0x098fa52af, 0x0000c0c2f, 0x0000a0014, 0x06710701c, @@ -955,14 +955,14 @@ ulong bootcode[]={ 0x06e924fef, 0x0000c202f, 0x0000c4236, - 0x0092098f2, + 0x0092098fa, 0x02f2f0008, 0x0610002ac, - 0x0486e8654, + 0x0486e865c, 0x0610000ca, 0x04fef0094, 0x04e75486e, - 0x086526100, + 0x0865a6100, 0x000bc598f, 0x06000ff56, 0x060b84aaf, @@ -972,9 +972,9 @@ ulong bootcode[]={ 0x042817021, 0x0b0816f1e, 0x04ab61d20, - 0x09812660e, + 0x0981a660e, 0x02daf0008, - 0x01d209812, + 0x01d20981a, 0x07001588f, 0x04e755281, 0x07021b081, @@ -984,10 +984,10 @@ ulong bootcode[]={ 0x000084282, 0x07021b082, 0x06f182036, - 0x02d209812, + 0x02d20981a, 0x0b0886606, 0x042b62d20, - 0x098125282, + 0x0981a5282, 0x07021b082, 0x06ee8588f, 0x04e754aaf, @@ -999,10 +999,10 @@ ulong bootcode[]={ 0x0518f7220, 0x04a816d22, 0x02eb61d20, - 0x098124a97, + 0x0981a4a97, 0x067122f41, 0x0000442b6, - 0x01d209812, + 0x01d20981a, 0x04eb70151, 0x0222f0004, 0x053814a81, @@ -1018,7 +1018,7 @@ ulong bootcode[]={ 0x0d1fc0000, 0x010002f08, 0x0486f0014, - 0x061001164, + 0x061001274, 0x0220041ef, 0x000189288, 0x02f01486f, @@ -1044,7 +1044,7 @@ ulong bootcode[]={ 0x0d1fc0000, 0x010002f08, 0x0486f0014, - 0x0610010fc, + 0x06100120c, 0x0220041ef, 0x000189288, 0x02f01486f, @@ -1069,7 +1069,7 @@ ulong bootcode[]={ 0x02f082f2f, 0x000144869, 0x010002f09, - 0x061001098, + 0x0610011a8, 0x02d6f0010, 0x0802690af, 0x0001c4fef, @@ -1152,20 +1152,20 @@ ulong bootcode[]={ 0x02f082f48, 0x000082f2f, 0x000146100, - 0x01d08701c, + 0x01e18701c, 0x0d1af000c, 0x04878001c, 0x02f2f0010, 0x048770162, 0x00020001c, - 0x061001cee, + 0x061001dfe, 0x0701cd1af, 0x000184878, 0x0001c2f2f, 0x0001c4877, 0x00162002c, 0x000386100, - 0x01cd4226f, + 0x01de4226f, 0x00030206f, 0x00024701c, 0x0d1c04280, @@ -1258,7 +1258,7 @@ ulong bootcode[]={ 0x054881011, 0x049c07232, 0x0b0016d10, - 0x07251b001, + 0x07253b001, 0x06e0a3036, 0x00b208036, 0x04efb0000, @@ -1268,35 +1268,68 @@ ulong bootcode[]={ 0x012280001, 0x0e1818081, 0x033400002, - 0x054884280, + 0x054884878, + 0x0001e2f08, + 0x02f480008, + 0x048690022, + 0x061001c36, + 0x0206f000c, + 0x0701ed1c0, + 0x04fef000c, + 0x0202f0008, + 0x0d0af0010, + 0x0b0886608, + 0x0202f0010, + 0x0588f4e75, + 0x04280588f, + 0x04e754280, 0x010104281, 0x012280001, 0x0e1818081, + 0x033400002, + 0x054884878, + 0x0001c2f08, + 0x02f480008, + 0x048690006, + 0x061001bea, + 0x0701cd1af, + 0x0000c4878, + 0x000242f2f, + 0x000104877, + 0x001620020, + 0x000226100, + 0x01bd0206f, + 0x000187024, + 0x0d1c04fef, + 0x000186098, + 0x042801010, 0x042811228, - 0x000027410, - 0x0e5a18081, - 0x042811228, - 0x000037418, - 0x0e5a18081, - 0x023400008, - 0x058884280, - 0x010104281, - 0x012280001, - 0x0e1818081, + 0x00001e181, + 0x080813340, + 0x000025488, + 0x042801010, 0x042811228, - 0x000027410, - 0x0e5a18081, + 0x00001e181, + 0x080814281, + 0x012280002, + 0x07410e5a1, + 0x080814281, + 0x012280003, + 0x07418e5a1, + 0x080812340, + 0x000085888, + 0x042801010, 0x042811228, - 0x000037418, - 0x0e5a18081, - 0x02340000c, - 0x05888202f, - 0x00008d0af, - 0x00010b088, - 0x06608202f, - 0x00010588f, - 0x04e754280, - 0x0588f4e75, + 0x00001e181, + 0x080814281, + 0x012280002, + 0x07410e5a1, + 0x080814281, + 0x012280003, + 0x07418e5a1, + 0x080812340, + 0x0000c5888, + 0x06000ff2a, 0x042801010, 0x042811228, 0x00001e181, @@ -1311,16 +1344,17 @@ ulong bootcode[]={ 0x02f082f48, 0x000084869, 0x0000c6100, - 0x01a8c206f, + 0x01b18206f, 0x0000c701c, 0x0d1c04fef, - 0x0000c609e, - 0x042801010, - 0x042811228, - 0x00001e181, - 0x080813340, - 0x000025488, - 0x060884280, + 0x0000c6000, + 0x0fee04280, + 0x010104281, + 0x012280001, + 0x0e1818081, + 0x033400002, + 0x054886000, + 0x0fec84280, 0x010104281, 0x012280001, 0x0e1818081, @@ -1329,11 +1363,11 @@ ulong bootcode[]={ 0x000742f08, 0x02f480008, 0x048690006, - 0x061001a42, + 0x061001aca, 0x0206f000c, 0x07074d1c0, 0x04fef000c, - 0x06000ff54, + 0x06000fe92, 0x042801010, 0x042811228, 0x00001e181, @@ -1343,41 +1377,41 @@ ulong bootcode[]={ 0x02f082f48, 0x000084869, 0x000066100, - 0x01a0c206f, + 0x01a94206f, 0x0000c7074, 0x0d1c04fef, 0x0000c6000, - 0x0ff1e4280, + 0x0fe5c4280, 0x010104281, 0x012280001, 0x0e1818081, 0x033400002, 0x054886000, - 0x0ff064280, + 0x0fe444280, 0x010104281, 0x012280001, 0x0e1818081, 0x033400002, 0x054886000, - 0x0feee4280, + 0x0fe2c4280, 0x010104281, 0x012280001, 0x0e1818081, 0x033400002, 0x054886000, - 0x0fed64280, + 0x0fe144280, 0x010104281, 0x012280001, 0x0e1818081, 0x033400002, 0x054886000, - 0x0febe4280, + 0x0fdfc4280, 0x010104281, 0x012280001, 0x0e1818081, 0x033400002, 0x054886000, - 0x0fea64280, + 0x0fde44280, 0x010104281, 0x012280001, 0x0e1818081, @@ -1388,7 +1422,7 @@ ulong bootcode[]={ 0x0e1818081, 0x02340000a, 0x054886000, - 0x0fe7a4280, + 0x0fdb84280, 0x010104281, 0x012280001, 0x0e1818081, @@ -1413,7 +1447,7 @@ ulong bootcode[]={ 0x02348000e, 0x02029000a, 0x0d1c06000, - 0x0fe164280, + 0x0fd544280, 0x010104281, 0x012280001, 0x0e1818081, @@ -1427,7 +1461,7 @@ ulong bootcode[]={ 0x02348000e, 0x02029000a, 0x0d1c06000, - 0x0fdde4280, + 0x0fd1c4280, 0x010104281, 0x012280001, 0x0e1818081, @@ -1449,7 +1483,7 @@ ulong bootcode[]={ 0x0e1818081, 0x02340000a, 0x054886000, - 0x0fd864280, + 0x0fcc44280, 0x010104281, 0x012280001, 0x0e1818081, @@ -1477,7 +1511,7 @@ ulong bootcode[]={ 0x0e5a18081, 0x02340000c, 0x058886000, - 0x0fd164280, + 0x0fc544280, 0x010104281, 0x012280001, 0x0e1818081, @@ -1486,7 +1520,7 @@ ulong bootcode[]={ 0x0001c2f08, 0x02f480008, 0x04869000c, - 0x0610017ce, + 0x061001856, 0x0226f0018, 0x0206f000c, 0x0701cd1c0, @@ -1503,7 +1537,7 @@ ulong bootcode[]={ 0x000065888, 0x013580028, 0x04fef000c, - 0x06000fcac, + 0x06000fbea, 0x042801010, 0x042811228, 0x00001e181, @@ -1531,15 +1565,15 @@ ulong bootcode[]={ 0x07418e5a1, 0x080812340, 0x0000c5888, - 0x06000fc3c, + 0x06000fb7a, 0x042801010, 0x042811228, 0x00001e181, 0x080813340, 0x000025488, 0x013580028, - 0x06000fc20, - 0x06000fbb0, + 0x06000fb5e, + 0x06000fbc2, 0x042801010, 0x042811228, 0x00001e181, @@ -1549,17 +1583,17 @@ ulong bootcode[]={ 0x02f082f48, 0x000084869, 0x0000c6100, - 0x016d4206f, + 0x0175c206f, 0x0000c701c, 0x0d1c04fef, 0x0000c6000, - 0x0fbe64280, + 0x0fb244280, 0x010104281, 0x012280001, 0x0e1818081, 0x033400002, 0x054886000, - 0x0fbce4280, + 0x0fb0c4280, 0x010104281, 0x012280001, 0x0e1818081, @@ -1570,7 +1604,7 @@ ulong bootcode[]={ 0x0e1818081, 0x03340000a, 0x054886000, - 0x0fba24280, + 0x0fae04280, 0x010104281, 0x012280001, 0x0e1818081, @@ -1598,7 +1632,7 @@ ulong bootcode[]={ 0x0e5a18081, 0x02340000c, 0x058886000, - 0x0fb324280, + 0x0fa704280, 0x010104281, 0x012280001, 0x0e1818081, @@ -1607,44 +1641,44 @@ ulong bootcode[]={ 0x0001c2f08, 0x02f480008, 0x048690006, - 0x0610015ea, + 0x061001672, 0x0701cd1af, 0x0000c4878, 0x0001c2f2f, 0x000104877, 0x001620020, 0x000226100, - 0x015d0701c, + 0x01658701c, 0x0d1af0018, 0x04878001c, 0x02f2f001c, 0x048770162, 0x0002c003e, - 0x0610015b6, + 0x06100163e, 0x0206f0024, 0x0701cd1c0, 0x04fef0024, - 0x06000fac8, - 0x06000fac4, + 0x06000fa06, + 0x06000fa02, 0x042801010, 0x042811228, 0x00001e181, 0x080813340, 0x000065488, - 0x06000faac, + 0x06000f9ea, 0x048780040, 0x02f082f48, 0x000084869, 0x000066100, - 0x01578206f, + 0x01600206f, 0x0000c7040, 0x0d1c04fef, 0x0000c6000, - 0x0fa8a6000, - 0x0fa866000, - 0x0fa826000, - 0x0fa7e6000, - 0x0fa7a598f, + 0x0f9c86000, + 0x0f9c46000, + 0x0f9c06000, + 0x0f9bc6000, + 0x0f9b8598f, 0x0226f0008, 0x0206f000c, 0x010d13029, @@ -1655,9 +1689,9 @@ ulong bootcode[]={ 0x054881011, 0x049c07232, 0x0b0016d10, - 0x07251b001, + 0x07253b001, 0x06e0a3036, - 0x00b208076, + 0x00b20807a, 0x04efb0000, 0x04280588f, 0x04e753029, @@ -1665,30 +1699,63 @@ ulong bootcode[]={ 0x030290002, 0x048c0e080, 0x011400001, - 0x054882029, - 0x000081080, + 0x054884878, + 0x0001e4869, + 0x000222f08, + 0x02f48000c, + 0x06100157a, + 0x0206f000c, + 0x0701ed1c0, + 0x04fef000c, + 0x0200890af, + 0x0000c588f, + 0x04e753029, + 0x000021080, + 0x030290002, + 0x048c0e080, + 0x011400001, + 0x054884878, + 0x0001c4869, + 0x000062f08, + 0x02f48000c, + 0x06100153e, + 0x0701cd1af, + 0x0000c4878, + 0x000244877, + 0x001620018, + 0x000222f2f, + 0x000146100, + 0x01524206f, + 0x000187024, + 0x0d1c04fef, + 0x0001860a8, + 0x030290002, + 0x010803029, + 0x0000248c0, + 0x0e0801140, + 0x000015488, 0x020290008, - 0x0e0881140, - 0x000012029, - 0x000087210, - 0x0e2a81140, - 0x000022029, - 0x000087218, - 0x0e2a81140, - 0x000035888, - 0x02029000c, 0x010802029, - 0x0000ce088, + 0x00008e088, 0x011400001, - 0x02029000c, + 0x020290008, 0x07210e2a8, 0x011400002, - 0x02029000c, + 0x020290008, 0x07218e2a8, 0x011400003, - 0x058882008, - 0x090af000c, - 0x0588f4e75, + 0x058882029, + 0x0000c1080, + 0x02029000c, + 0x0e0881140, + 0x000012029, + 0x0000c7210, + 0x0e2a81140, + 0x000022029, + 0x0000c7218, + 0x0e2a81140, + 0x000035888, + 0x06000ff3e, 0x030290002, 0x010803029, 0x0000248c0, @@ -1703,16 +1770,17 @@ ulong bootcode[]={ 0x04869000c, 0x02f082f48, 0x0000c6100, - 0x0146c206f, + 0x01470206f, 0x0000c701c, 0x0d1c04fef, - 0x0000c60ae, + 0x0000c6000, + 0x0fef43029, + 0x000021080, 0x030290002, - 0x010803029, - 0x0000248c0, - 0x0e0801140, - 0x000015488, - 0x060983029, + 0x048c0e080, + 0x011400001, + 0x054886000, + 0x0fedc3029, 0x000021080, 0x030290002, 0x048c0e080, @@ -1725,7 +1793,7 @@ ulong bootcode[]={ 0x0206f000c, 0x07074d1c0, 0x04fef000c, - 0x06000ff64, + 0x06000fea6, 0x030290002, 0x010803029, 0x0000248c0, @@ -1739,37 +1807,37 @@ ulong bootcode[]={ 0x0000c7074, 0x0d1c04fef, 0x0000c6000, - 0x0ff2e3029, + 0x0fe703029, 0x000021080, 0x030290002, 0x048c0e080, 0x011400001, 0x054886000, - 0x0ff163029, + 0x0fe583029, 0x000021080, 0x030290002, 0x048c0e080, 0x011400001, 0x054886000, - 0x0fefe3029, + 0x0fe403029, 0x000021080, 0x030290002, 0x048c0e080, 0x011400001, 0x054886000, - 0x0fee63029, + 0x0fe283029, 0x000021080, 0x030290002, 0x048c0e080, 0x011400001, 0x054886000, - 0x0fece3029, + 0x0fe103029, 0x000021080, 0x030290002, 0x048c0e080, 0x011400001, 0x054886000, - 0x0feb63029, + 0x0fdf83029, 0x000021080, 0x030290002, 0x048c0e080, @@ -1779,7 +1847,7 @@ ulong bootcode[]={ 0x02029000a, 0x0e0801140, 0x000015488, - 0x06000fe8c, + 0x06000fdce, 0x030290002, 0x010803029, 0x0000248c0, @@ -1814,7 +1882,7 @@ ulong bootcode[]={ 0x00014000a, 0x0d1c04fef, 0x0000c6000, - 0x0fe023029, + 0x0fd443029, 0x000021080, 0x030290002, 0x048c0e080, @@ -1834,7 +1902,7 @@ ulong bootcode[]={ 0x00014000a, 0x0d1c04fef, 0x0000c6000, - 0x0fdb23029, + 0x0fcf43029, 0x000021080, 0x030290002, 0x048c0e080, @@ -1859,7 +1927,7 @@ ulong bootcode[]={ 0x0000ae080, 0x011400001, 0x054886000, - 0x0fd4e3029, + 0x0fc903029, 0x000021080, 0x030290002, 0x048c0e080, @@ -1886,7 +1954,7 @@ ulong bootcode[]={ 0x07218e2a8, 0x011400003, 0x058886000, - 0x0fce23029, + 0x0fc243029, 0x000021080, 0x030290002, 0x048c0e080, @@ -1912,7 +1980,7 @@ ulong bootcode[]={ 0x0588810e9, 0x000284fef, 0x0000c6000, - 0x0fc7a3029, + 0x0fbbc3029, 0x000021080, 0x030290002, 0x048c0e080, @@ -1939,15 +2007,15 @@ ulong bootcode[]={ 0x07218e2a8, 0x011400003, 0x058886000, - 0x0fc0e3029, + 0x0fb503029, 0x000021080, 0x030290002, 0x048c0e080, 0x011400001, 0x0548810e9, 0x000286000, - 0x0fbf26000, - 0x0fb863029, + 0x0fb346000, + 0x0fb883029, 0x000021080, 0x030290002, 0x048c0e080, @@ -1960,13 +2028,13 @@ ulong bootcode[]={ 0x0206f000c, 0x0701cd1c0, 0x04fef000c, - 0x06000fbb8, + 0x06000fafa, 0x030290002, 0x010803029, 0x0000248c0, 0x0e0801140, 0x000015488, - 0x06000fba0, + 0x06000fae2, 0x030290002, 0x010803029, 0x0000248c0, @@ -1977,7 +2045,7 @@ ulong bootcode[]={ 0x0000a48c0, 0x0e0801140, 0x000015488, - 0x06000fb74, + 0x06000fab6, 0x030290002, 0x010803029, 0x0000248c0, @@ -2004,7 +2072,7 @@ ulong bootcode[]={ 0x0000c7218, 0x0e2a81140, 0x000035888, - 0x06000fb08, + 0x06000fa4a, 0x030290002, 0x010803029, 0x0000248c0, @@ -2031,14 +2099,14 @@ ulong bootcode[]={ 0x00024701c, 0x0d1c04fef, 0x000246000, - 0x0fa9e6000, - 0x0fa9a3029, + 0x0f9e06000, + 0x0f9dc3029, 0x000061080, 0x042803029, 0x00006e088, 0x011400001, 0x054886000, - 0x0fa824878, + 0x0f9c44878, 0x000404869, 0x000062f08, 0x02f48000c, @@ -2046,72 +2114,72 @@ ulong bootcode[]={ 0x0206f000c, 0x07040d1c0, 0x04fef000c, - 0x06000fa60, - 0x06000fa5c, - 0x06000fa58, - 0x06000fa54, - 0x06000fa50, + 0x06000f9a2, + 0x06000f99e, + 0x06000f99a, + 0x06000f996, + 0x06000f992, 0x04fefff8c, 0x048572f2f, 0x0007c6100, - 0x0f1c072ff, + 0x0f0b072ff, 0x0b2806608, 0x070ff4fef, 0x0007c4e75, 0x02f2f0084, 0x0486f000c, - 0x06100f1b8, + 0x06100f0a8, 0x042804fef, 0x000844e75, 0x02d7c0000, - 0x046e4865e, + 0x047f48666, 0x01d7c0001, - 0x099551d7c, - 0x000019957, + 0x0995d1d7c, + 0x00001995f, 0x01d7c0001, - 0x0994d1d7c, - 0x000019992, + 0x099551d7c, + 0x00001999a, 0x01d7c0001, - 0x099961d7c, - 0x00001999f, + 0x0999e1d7c, + 0x0000199a7, 0x02d7c0000, - 0x043548662, + 0x04464866a, 0x01d7c0002, - 0x0998e1d7c, - 0x000029999, + 0x099961d7c, + 0x0000299a1, 0x01d7c0002, - 0x099a21d7c, - 0x000029982, + 0x099aa1d7c, + 0x00002998a, 0x02d7c0000, - 0x047368666, + 0x04846866e, 0x01d7c0003, - 0x0998f1d7c, - 0x000039990, + 0x099971d7c, + 0x000039998, 0x01d7c0003, - 0x099911d7c, - 0x00003996f, + 0x099991d7c, + 0x000039977, 0x01d7c0003, - 0x099712d7c, - 0x000004686, - 0x0866a1d7c, - 0x00004998d, + 0x099792d7c, + 0x000004796, + 0x086721d7c, + 0x000049995, 0x02d7c0000, - 0x046ac866e, + 0x047bc8676, 0x01d7c0005, - 0x0999d2d7c, - 0x0000046ca, - 0x086721d7c, - 0x00006994f, + 0x099a52d7c, + 0x0000047da, + 0x0867a1d7c, + 0x000069957, 0x070072d40, 0x080164878, 0x000804878, 0x00001486e, - 0x097926100, + 0x0979a6100, 0x00eba422e, - 0x09792422e, - 0x0979b422e, - 0x0979c422e, - 0x097b74fef, + 0x0979a422e, + 0x097a3422e, + 0x097a4422e, + 0x097bf4fef, 0x0000c4e75, 0x04aae8016, 0x066046100, @@ -2123,14 +2191,14 @@ ulong bootcode[]={ 0x0202e8016, 0x0122f0007, 0x049c11d80, - 0x01920992a, + 0x019209932, 0x052ae8016, 0x0122f0007, 0x049c11036, - 0x01920992a, + 0x019209932, 0x049c02daf, 0x000080d20, - 0x0865a4280, + 0x086624280, 0x04e754fef, 0x0ffe42a2f, 0x0002c226f, @@ -2148,7 +2216,7 @@ ulong bootcode[]={ 0x049c02600, 0x0707fc083, 0x04a360920, - 0x097926600, + 0x0979a6600, 0x00186d3c2, 0x0d7c22d4b, 0x080122002, @@ -2232,9 +2300,9 @@ ulong bootcode[]={ 0x02f4a0028, 0x02f052f45, 0x000401036, - 0x02920992a, + 0x029209932, 0x049c02076, - 0x00d20865a, + 0x00d208662, 0x04e902a2f, 0x00040266e, 0x08012246f, @@ -2390,7 +2458,7 @@ ulong bootcode[]={ 0x0367c0001, 0x060d8518f, 0x02f2f000c, - 0x06100ebdc, + 0x06100eacc, 0x0266f0010, 0x0246e8022, 0x0262f0014, @@ -2449,9 +2517,9 @@ ulong bootcode[]={ 0x02f2f0018, 0x02f2f0018, 0x012363920, - 0x0992a49c1, + 0x0993249c1, 0x020761d20, - 0x0865a4e90, + 0x086624e90, 0x04fef0018, 0x04e751ebc, 0x0002a202f, @@ -3154,38 +3222,40 @@ ulong bootcode[]={ 0x042400098, 0x0968005f5, 0x0e1003b9a, - 0x0ca0005f8, - 0x005f405f0, - 0x005ec0002, - 0x005ca05b2, - 0x005ae0544, - 0x004d404a8, - 0x00490045a, - 0x00456043a, - 0x003ca0360, - 0x002f00298, - 0x0026001fc, - 0x001d001b8, - 0x001a00188, - 0x001700158, - 0x0012200ec, - 0x000d6008e, - 0x00008061e, - 0x0061a0616, - 0x006120002, - 0x005f005d8, - 0x005d4056a, - 0x004fe04d2, - 0x004ba0484, - 0x004800464, - 0x003f80390, - 0x0032402c0, - 0x0027001e6, - 0x001bc01a4, - 0x0018c0174, - 0x0015c0144, - 0x0010e00d8, - 0x000c2007a, + 0x0ca000680, + 0x0067c0678, + 0x006740002, + 0x00652063a, + 0x0063605cc, + 0x0055c0530, + 0x0051804e2, + 0x004de04c2, + 0x0045203e8, + 0x003780320, + 0x002e80284, + 0x002580240, + 0x002280210, + 0x001f801e0, + 0x001aa0174, + 0x0015c0112, + 0x000a20054, + 0x0000806a6, + 0x006a2069e, + 0x0069a0002, + 0x006780660, + 0x0065c05f2, + 0x00586055a, + 0x00542050c, + 0x0050804ec, + 0x004800418, + 0x003ac0348, + 0x002f8026e, + 0x00244022c, + 0x0021401fc, + 0x001e401cc, + 0x001960160, + 0x0014800fe, + 0x000920044, 0x000082363, 0x02f636f6e, 0x073002363, @@ -3523,7 +3593,7 @@ ulong bootcode[]={ 0x074000a00, 0x00a000000, 0x000000000, - 0x046220000, + 0x047320000, 0x000000000, 0x000000000, 0x000000000, @@ -3563,6 +3633,6 @@ ulong bootcode[]={ 0x000000000, 0x000000000, 0x000000000, - 0x000037ae, + 0x000038c6, 0x0, }; diff --git a/port/devmnt.c b/port/devmnt.c index 8e06cb87780ae7430d377cf6bd33ea2bcf147dd4..abebe35f16d147a03c9a724885c6536fdadf9300 100644 --- a/port/devmnt.c +++ b/port/devmnt.c @@ -176,7 +176,9 @@ mattach(Mnt *m, char *spec, char *auth) r = mntralloc(); c = devattach('M', spec); - c->dev = m->id; + lock(&mntalloc); + c->dev = mntalloc.id++; + unlock(&mntalloc); c->mntindex = m-mntalloc.mntarena; if(waserror()){ @@ -719,7 +721,8 @@ mntchk(Chan *c) Mnt *m; m = &mntalloc.mntarena[c->mntindex]; - if(m->id != c->dev) + /* Was it closed and reused ? */ + if(m->id == 0 || m->id >= c->dev) error(Eshutdown); return m; }