Browse Source

Plan 9 from Bell Labs 2005-11-26

David du Colombier 15 years ago
parent
commit
e211b11f27
4 changed files with 26 additions and 14 deletions
  1. 7 7
      dist/replica/_plan9.db
  2. 7 7
      dist/replica/plan9.db
  3. 7 0
      dist/replica/plan9.log
  4. 5 0
      sys/src/libmach/8db.c

+ 7 - 7
dist/replica/_plan9.db

@@ -19,7 +19,7 @@
 386/bin/8l - 775 sys sys 1130384229 115712
 386/bin/9660srv - 775 sys sys 1130594690 104069
 386/bin/aan - 775 sys sys 1130594690 130742
-386/bin/acid - 775 sys sys 1132820116 400246
+386/bin/acid - 775 sys sys 1132950492 400336
 386/bin/acme - 775 sys sys 1132506826 428944
 386/bin/ape - 20000000775 sys sys 1016944144 0
 386/bin/ape/basename - 775 sys sys 1127360557 132862
@@ -188,7 +188,7 @@
 386/bin/cpu - 775 sys sys 1132418760 139238
 386/bin/crop - 775 sys sys 1130594724 116040
 386/bin/date - 775 sys sys 1130384272 43279
-386/bin/db - 775 sys sys 1132820117 345704
+386/bin/db - 775 sys sys 1132950492 345794
 386/bin/dc - 775 sys sys 1130594725 99051
 386/bin/dd - 775 sys sys 1130384273 45416
 386/bin/deroff - 775 sys sys 1130594726 74267
@@ -395,8 +395,8 @@
 386/bin/sha1sum - 775 sys sys 1130594782 61165
 386/bin/size - 775 sys sys 1131296676 78794
 386/bin/sleep - 775 sys sys 1085077097 3413
-386/bin/snap - 775 sys sys 1132820118 313544
-386/bin/snapfs - 775 sys sys 1132820119 382716
+386/bin/snap - 775 sys sys 1132950493 313634
+386/bin/snapfs - 775 sys sys 1132950494 382806
 386/bin/sniffer - 775 sys sys 1038443185 99028
 386/bin/snoopy - 775 sys sys 1130594784 168241
 386/bin/sort - 775 sys sys 1130594784 82308
@@ -429,7 +429,7 @@
 386/bin/topng - 775 sys sys 1130594792 138351
 386/bin/toppm - 775 sys sys 1131646650 165250
 386/bin/touch - 775 sys sys 1130594792 63795
-386/bin/tprof - 775 sys sys 1132820120 297501
+386/bin/tprof - 775 sys sys 1132950495 297591
 386/bin/tr - 775 sys sys 1130594793 61883
 386/bin/trace - 775 sys sys 1132418767 181163
 386/bin/troff - 775 sys sys 1127360609 357940
@@ -553,7 +553,7 @@
 386/lib/libhttpd.a - 664 sys sys 1127790504 99596
 386/lib/libip.a - 664 sys sys 1116126324 35602
 386/lib/libl.a - 664 sys sys 1115950154 5384
-386/lib/libmach.a - 664 sys sys 1132820122 783254
+386/lib/libmach.a - 664 sys sys 1132950497 783518
 386/lib/libmemdraw.a - 664 sys sys 1120792317 284130
 386/lib/libmemlayer.a - 664 sys sys 1115950157 47360
 386/lib/libmp.a - 664 sys sys 1127360619 79944
@@ -14568,7 +14568,7 @@ sys/src/libmach/7.c - 664 sys sys 1131289380 3299
 sys/src/libmach/7db.c - 664 sys sys 1131289384 17330
 sys/src/libmach/7obj.c - 664 sys sys 1091732676 2367
 sys/src/libmach/8.c - 664 sys sys 1131289381 2060
-sys/src/libmach/8db.c - 664 sys sys 1132812801 50731
+sys/src/libmach/8db.c - 664 sys sys 1132940238 50849
 sys/src/libmach/8obj.c - 664 sys sys 1091732625 2200
 sys/src/libmach/access.c - 664 sys sys 1131289377 4588
 sys/src/libmach/elf.h - 664 sys sys 1131292881 2301

+ 7 - 7
dist/replica/plan9.db

@@ -19,7 +19,7 @@
 386/bin/8l - 775 sys sys 1130384229 115712
 386/bin/9660srv - 775 sys sys 1130594690 104069
 386/bin/aan - 775 sys sys 1130594690 130742
-386/bin/acid - 775 sys sys 1132820116 400246
+386/bin/acid - 775 sys sys 1132950492 400336
 386/bin/acme - 775 sys sys 1132506826 428944
 386/bin/ape - 20000000775 sys sys 1016944144 0
 386/bin/ape/basename - 775 sys sys 1127360557 132862
@@ -188,7 +188,7 @@
 386/bin/cpu - 775 sys sys 1132418760 139238
 386/bin/crop - 775 sys sys 1130594724 116040
 386/bin/date - 775 sys sys 1130384272 43279
-386/bin/db - 775 sys sys 1132820117 345704
+386/bin/db - 775 sys sys 1132950492 345794
 386/bin/dc - 775 sys sys 1130594725 99051
 386/bin/dd - 775 sys sys 1130384273 45416
 386/bin/deroff - 775 sys sys 1130594726 74267
@@ -395,8 +395,8 @@
 386/bin/sha1sum - 775 sys sys 1130594782 61165
 386/bin/size - 775 sys sys 1131296676 78794
 386/bin/sleep - 775 sys sys 1085077097 3413
-386/bin/snap - 775 sys sys 1132820118 313544
-386/bin/snapfs - 775 sys sys 1132820119 382716
+386/bin/snap - 775 sys sys 1132950493 313634
+386/bin/snapfs - 775 sys sys 1132950494 382806
 386/bin/sniffer - 775 sys sys 1038443185 99028
 386/bin/snoopy - 775 sys sys 1130594784 168241
 386/bin/sort - 775 sys sys 1130594784 82308
@@ -429,7 +429,7 @@
 386/bin/topng - 775 sys sys 1130594792 138351
 386/bin/toppm - 775 sys sys 1131646650 165250
 386/bin/touch - 775 sys sys 1130594792 63795
-386/bin/tprof - 775 sys sys 1132820120 297501
+386/bin/tprof - 775 sys sys 1132950495 297591
 386/bin/tr - 775 sys sys 1130594793 61883
 386/bin/trace - 775 sys sys 1132418767 181163
 386/bin/troff - 775 sys sys 1127360609 357940
@@ -553,7 +553,7 @@
 386/lib/libhttpd.a - 664 sys sys 1127790504 99596
 386/lib/libip.a - 664 sys sys 1116126324 35602
 386/lib/libl.a - 664 sys sys 1115950154 5384
-386/lib/libmach.a - 664 sys sys 1132820122 783254
+386/lib/libmach.a - 664 sys sys 1132950497 783518
 386/lib/libmemdraw.a - 664 sys sys 1120792317 284130
 386/lib/libmemlayer.a - 664 sys sys 1115950157 47360
 386/lib/libmp.a - 664 sys sys 1127360619 79944
@@ -14568,7 +14568,7 @@ sys/src/libmach/7.c - 664 sys sys 1131289380 3299
 sys/src/libmach/7db.c - 664 sys sys 1131289384 17330
 sys/src/libmach/7obj.c - 664 sys sys 1091732676 2367
 sys/src/libmach/8.c - 664 sys sys 1131289381 2060
-sys/src/libmach/8db.c - 664 sys sys 1132812801 50731
+sys/src/libmach/8db.c - 664 sys sys 1132940238 50849
 sys/src/libmach/8obj.c - 664 sys sys 1091732625 2200
 sys/src/libmach/access.c - 664 sys sys 1131289377 4588
 sys/src/libmach/elf.h - 664 sys sys 1131292881 2301

+ 7 - 0
dist/replica/plan9.log

@@ -23239,3 +23239,10 @@
 1132821118 3 c 386/bin/snapfs - 775 sys sys 1132820119 382716
 1132821118 4 c 386/bin/tprof - 775 sys sys 1132820120 297501
 1132821118 5 c 386/lib/libmach.a - 664 sys sys 1132820122 783254
+1132941756 0 c sys/src/libmach/8db.c - 664 sys sys 1132940238 50849
+1132950760 0 c 386/bin/acid - 775 sys sys 1132950492 400336
+1132950760 1 c 386/bin/db - 775 sys sys 1132950492 345794
+1132950760 2 c 386/bin/snap - 775 sys sys 1132950493 313634
+1132950760 3 c 386/bin/snapfs - 775 sys sys 1132950494 382806
+1132950760 4 c 386/bin/tprof - 775 sys sys 1132950495 297591
+1132950760 5 c 386/lib/libmach.a - 664 sys sys 1132950497 783518

+ 5 - 0
sys/src/libmach/8db.c

@@ -1446,6 +1446,7 @@ badop:
 			if (igetc(map, ip, &c) < 0)
 				return 0;
 			ip->imm = c&0xff;
+			ip->imm64 = ip->imm;
 			break;
 		case Jbs:	/* 8-bit jump immediate (sign extended) */
 			if (igetc(map, ip, &c) < 0)
@@ -1454,6 +1455,7 @@ badop:
 				ip->imm = c|0xffffff00;
 			else
 				ip->imm = c&0xff;
+			ip->imm64 = (long)ip->imm;
 			ip->jumptype = Jbs;
 			break;
 		case Ibs:	/* 8-bit immediate (sign extended) */
@@ -1472,6 +1474,7 @@ badop:
 			if (igets(map, ip, &s) < 0)
 				return 0;
 			ip->imm = s&0xffff;
+			ip->imm64 = ip->imm;
 			ip->jumptype = Iw;
 			break;
 		case Iw2:	/* 16-bit immediate -> in imm2*/
@@ -1887,6 +1890,8 @@ pea(Instr *ip)
 			immediate(ip, ip->disp);
 		else {
 			bprint(ip, "%lux", ip->disp);
+			if(ip->rip)
+				bprint(ip, "(RIP)");
 			bprint(ip,"(%s%s)", ANAME(ip), reg[ip->rex&REXB? ip->base+8: ip->base]);
 		}
 	}