aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code
diff options
context:
space:
mode:
Diffstat (limited to 'mps/code')
-rw-r--r--mps/code/abq.c3
-rw-r--r--mps/code/awlut.c4
-rw-r--r--mps/code/awluthe.c4
-rw-r--r--mps/code/finaltest.c4
-rw-r--r--mps/code/fmtdy.c30
-rw-r--r--mps/code/locus.c3
-rw-r--r--mps/code/poolamc.c2
-rw-r--r--mps/code/poollo.c7
-rw-r--r--mps/code/poolmrg.c3
-rw-r--r--mps/code/poolmv.c2
-rw-r--r--mps/code/reserv.c2
-rw-r--r--mps/code/seg.c2
-rw-r--r--mps/code/segsmss.c8
13 files changed, 28 insertions, 46 deletions
diff --git a/mps/code/abq.c b/mps/code/abq.c
index 05792e4add4..e29a9786599 100644
--- a/mps/code/abq.c
+++ b/mps/code/abq.c
@@ -168,7 +168,7 @@ Res ABQPeek(ABQ abq, CBSBlock *blockReturn)
168/* ABQDelete -- delete a block from the ABQ */ 168/* ABQDelete -- delete a block from the ABQ */
169Res ABQDelete(ABQ abq, CBSBlock block) 169Res ABQDelete(ABQ abq, CBSBlock block)
170{ 170{
171 Index index, next, elements, in; 171 Index index, next, in;
172 CBSBlock *queue; 172 CBSBlock *queue;
173 173
174 AVERT(ABQ, abq); 174 AVERT(ABQ, abq);
@@ -178,7 +178,6 @@ Res ABQDelete(ABQ abq, CBSBlock block)
178 178
179 index = abq->out; 179 index = abq->out;
180 in = abq->in; 180 in = abq->in;
181 elements = abq->elements;
182 queue = abq->queue; 181 queue = abq->queue;
183 182
184 while (index != in) { 183 while (index != in) {
diff --git a/mps/code/awlut.c b/mps/code/awlut.c
index d52abae9030..965fb4642a0 100644
--- a/mps/code/awlut.c
+++ b/mps/code/awlut.c
@@ -206,9 +206,7 @@ static void test(mps_ap_t leafap, mps_ap_t exactap, mps_ap_t weakap,
206 206
207 for(j = 0; j < ITERATIONS; ++j) { 207 for(j = 0; j < ITERATIONS; ++j) {
208 for(i = 0; i < TABLE_SLOTS; ++i) { 208 for(i = 0; i < TABLE_SLOTS; ++i) {
209 mps_word_t *string; 209 (void)alloc_string("spong", leafap);
210
211 string = alloc_string("spong", leafap);
212 } 210 }
213 } 211 }
214 212
diff --git a/mps/code/awluthe.c b/mps/code/awluthe.c
index d70d12cb342..4b8d96df371 100644
--- a/mps/code/awluthe.c
+++ b/mps/code/awluthe.c
@@ -211,9 +211,7 @@ static void test(mps_ap_t leafap, mps_ap_t exactap, mps_ap_t weakap,
211 211
212 for(j = 0; j < ITERATIONS; ++j) { 212 for(j = 0; j < ITERATIONS; ++j) {
213 for(i = 0; i < TABLE_SLOTS; ++i) { 213 for(i = 0; i < TABLE_SLOTS; ++i) {
214 mps_word_t *string; 214 (void)alloc_string("spong", leafap);
215
216 string = alloc_string("spong", leafap);
217 } 215 }
218 } 216 }
219 217
diff --git a/mps/code/finaltest.c b/mps/code/finaltest.c
index 24a6e81b9eb..79496801acb 100644
--- a/mps/code/finaltest.c
+++ b/mps/code/finaltest.c
@@ -176,13 +176,11 @@ static void *test(void *arg, size_t s)
176 die(mps_arena_collect(arena), "collect"); 176 die(mps_arena_collect(arena), "collect");
177 printf(" Done.\n"); 177 printf(" Done.\n");
178 while (mps_message_poll(arena)) { 178 while (mps_message_poll(arena)) {
179 mps_word_t obj;
180 mps_addr_t objaddr; 179 mps_addr_t objaddr;
181 cdie(mps_message_get(&message, arena, 180 cdie(mps_message_get(&message, arena,
182 mps_message_type_finalization()), 181 mps_message_type_finalization()),
183 "get"); 182 "get");
184 mps_message_finalization_ref(&objaddr, arena, message); 183 mps_message_finalization_ref(&objaddr, arena, message);
185 obj = (mps_word_t)objaddr;
186 mps_message_discard(arena, message); 184 mps_message_discard(arena, message);
187 ++ final_this_time; 185 ++ final_this_time;
188 } 186 }
@@ -216,13 +214,11 @@ static void *test(void *arg, size_t s)
216 die(mps_arena_collect(arena), "collect"); 214 die(mps_arena_collect(arena), "collect");
217 printf(" Done.\n"); 215 printf(" Done.\n");
218 while (mps_message_poll(arena)) { 216 while (mps_message_poll(arena)) {
219 mps_word_t obj;
220 mps_addr_t objaddr; 217 mps_addr_t objaddr;
221 cdie(mps_message_get(&message, arena, 218 cdie(mps_message_get(&message, arena,
222 mps_message_type_finalization()), 219 mps_message_type_finalization()),
223 "get"); 220 "get");
224 mps_message_finalization_ref(&objaddr, arena, message); 221 mps_message_finalization_ref(&objaddr, arena, message);
225 obj = (mps_word_t)objaddr;
226 mps_message_discard(arena, message); 222 mps_message_discard(arena, message);
227 ++ final_this_time; 223 ++ final_this_time;
228 } 224 }
diff --git a/mps/code/fmtdy.c b/mps/code/fmtdy.c
index ec87c1fa001..b7a2f7fa02f 100644
--- a/mps/code/fmtdy.c
+++ b/mps/code/fmtdy.c
@@ -129,24 +129,30 @@ int dylan_wrapper_check(mps_word_t *w)
129 /* The first field is traceable, the second field can be traced, */ 129 /* The first field is traceable, the second field can be traced, */
130 /* but doesn't need to be. */ 130 /* but doesn't need to be. */
131 assert((ww[WP] == 1) || (ww[WP] == 3)); 131 assert((ww[WP] == 1) || (ww[WP] == 3));
132 132 unused(ww);
133
133 /* Unpack the wrapper. */ 134 /* Unpack the wrapper. */
134 135
135 class = w[WC]; /* class */ 136 class = w[WC]; /* class */
137 unused(class);
136 fh = w[WF]; /* fixed part header word */ 138 fh = w[WF]; /* fixed part header word */
137 fl = fh >> 2; /* fixed part length */ 139 fl = fh >> 2; /* fixed part length */
138 ff = fh & 3; /* fixed part format code */ 140 ff = fh & 3; /* fixed part format code */
139 vh = w[WV]; /* variable part header */ 141 vh = w[WV]; /* variable part header */
140 version = (vh >> (MPS_WORD_WIDTH - 8)) & 0xff; 142 version = (vh >> (MPS_WORD_WIDTH - 8)) & 0xff;
141 assert(version == 2); /* Code in this file only works for version 2 */ 143 assert(version == 2); /* Code in this file only works for version 2 */
144 unused(version);
142 reserved = (vh >> 8) & 0xff; 145 reserved = (vh >> 8) & 0xff;
143 assert(reserved == 0); 146 assert(reserved == 0);
147 unused(reserved);
144 vb = (vh >> 16) & 0xff; 148 vb = (vh >> 16) & 0xff;
149 unused(vb);
145 es = (vh & 0xff) >> 3;/* element size */ 150 es = (vh & 0xff) >> 3;/* element size */
146 vf = vh & 7; /* variable part format code */ 151 vf = vh & 7; /* variable part format code */
147 vt = w[WS]; /* vector total word (Dylan-tagged) */ 152 vt = w[WS]; /* vector total word (Dylan-tagged) */
148 t = vt >> 2; /* vector total length */ 153 t = vt >> 2; /* vector total length */
149 154 unused(t);
155
150 /* The second word is the class of the wrapped object. */ 156 /* The second word is the class of the wrapped object. */
151 /* It would be good to check which pool this is in. */ 157 /* It would be good to check which pool this is in. */
152 158
@@ -160,23 +166,26 @@ int dylan_wrapper_check(mps_word_t *w)
160 166
161 /* Fixed part format 3 is reserved. */ 167 /* Fixed part format 3 is reserved. */
162 assert(ff != 3); 168 assert(ff != 3);
169 unused(ff);
163 170
164 /* Zero length fixed part is only legal in format 0. */ 171 /* Zero length fixed part is only legal in format 0. */
165 /* Current Dylan run-time does not honour this so I remove it for now */ 172 /* Current Dylan run-time does not honour this so I remove it for now */
166 /* We probably want this check as then we can scan without having to */ 173 /* We probably want this check as then we can scan without having to */
167 /* check for 0 fixed length fields as a special case */ 174 /* check for 0 fixed length fields as a special case */
168 /* assert(ff == 0 || fl != 0); */ 175 /* assert(ff == 0 || fl != 0); */
169 176 unused(fl);
170 /* The fourth word contains the variable part format and element */ 177 /* The fourth word contains the variable part format and element */
171 /* size. This assumes that DylanWorks is only going to use byte */ 178 /* size. This assumes that DylanWorks is only going to use byte */
172 /* vectors in the non-word case. */ 179 /* vectors in the non-word case. */
173 180
174 /* Variable part format 6 is reserved. */ 181 /* Variable part format 6 is reserved. */
175 assert(vf != 6); 182 assert(vf != 6);
176 183 unused(vf);
184
177 /* There should be no shift in word vector formats. */ 185 /* There should be no shift in word vector formats. */
178 assert((vf & 6) == 4 || es == 0); 186 assert((vf & 6) == 4 || es == 0);
179 187 unused(es);
188
180 /* The fifth word is the number of patterns in the pattern */ 189 /* The fifth word is the number of patterns in the pattern */
181 /* vector. This can be calculated from the fixed part length. */ 190 /* vector. This can be calculated from the fixed part length. */
182 /* The word is also tagged like a DylanWorks integer. */ 191 /* The word is also tagged like a DylanWorks integer. */
@@ -247,9 +256,11 @@ extern mps_addr_t dylan_weak_dependent(mps_addr_t parent)
247 ff = fword & 3; 256 ff = fword & 3;
248 /* traceable fixed part */ 257 /* traceable fixed part */
249 assert(ff == 1); 258 assert(ff == 1);
259 unused(ff);
250 fl = fword & ~(mps_word_t)3; 260 fl = fword & ~(mps_word_t)3;
251 /* at least one fixed field */ 261 /* at least one fixed field */
252 assert(fl >= 1); 262 assert(fl >= 1);
263 unused(fl);
253 return (mps_addr_t) object[1]; 264 return (mps_addr_t) object[1];
254} 265}
255 266
@@ -555,7 +566,8 @@ extern mps_res_t dylan_scan1_weak(mps_ss_t mps_ss, mps_addr_t *object_io)
555 h = (mps_word_t)p[0]; 566 h = (mps_word_t)p[0];
556 /* object should not be forwarded (as there is no forwarding method) */ 567 /* object should not be forwarded (as there is no forwarding method) */
557 assert((h & 3) == 0); 568 assert((h & 3) == 0);
558 569 unused(h);
570
559 res = mps_fix(mps_ss, p); 571 res = mps_fix(mps_ss, p);
560 if ( res != MPS_RES_OK ) return res; 572 if ( res != MPS_RES_OK ) return res;
561 573
@@ -576,7 +588,8 @@ extern mps_res_t dylan_scan1_weak(mps_ss_t mps_ss, mps_addr_t *object_io)
576 588
577 /* weak vectors should have traceable fixed format */ 589 /* weak vectors should have traceable fixed format */
578 assert(ff == 1); 590 assert(ff == 1);
579 591 unused(ff);
592
580 assoc = (mps_addr_t *)p[0]; 593 assoc = (mps_addr_t *)p[0];
581 594
582 vword = w[WV]; 595 vword = w[WV];
@@ -585,7 +598,8 @@ extern mps_res_t dylan_scan1_weak(mps_ss_t mps_ss, mps_addr_t *object_io)
585 598
586 /* weak vectors should be non-stretchy traceable */ 599 /* weak vectors should be non-stretchy traceable */
587 assert(vf == 2); 600 assert(vf == 2);
588 601 unused(vf);
602
589 /* q is end of the object. There are fl fixed fields, vl variable */ 603 /* q is end of the object. There are fl fixed fields, vl variable */
590 /* fields and another slot that contains the vector length */ 604 /* fields and another slot that contains the vector length */
591 q = p + fl + vl + 1; 605 q = p + fl + vl + 1;
diff --git a/mps/code/locus.c b/mps/code/locus.c
index 56e7a1208c6..22473026dc6 100644
--- a/mps/code/locus.c
+++ b/mps/code/locus.c
@@ -300,7 +300,8 @@ Res ChainCondemnAuto(double *mortalityReturn, Chain chain, Trace trace)
300 " (of $U)", (WriteFU)chain->genCount, 300 " (of $U)", (WriteFU)chain->genCount,
301 " of this chain $P.", (WriteFP)chain, 301 " of this chain $P.", (WriteFP)chain,
302 NULL )); 302 NULL ));
303 303 UNUSED(topCondemnedGenSerial); /* only used for DIAG */
304
304 /* Condemn everything in these zones. */ 305 /* Condemn everything in these zones. */
305 if (condemnedSet != ZoneSetEMPTY) { 306 if (condemnedSet != ZoneSetEMPTY) {
306 res = TraceCondemnZones(trace, condemnedSet); 307 res = TraceCondemnZones(trace, condemnedSet);
diff --git a/mps/code/poolamc.c b/mps/code/poolamc.c
index 3614590c8a8..bea60caa03e 100644
--- a/mps/code/poolamc.c
+++ b/mps/code/poolamc.c
@@ -1583,7 +1583,6 @@ static Res amcScanNailed(Bool *totalReturn, ScanState ss, Pool pool,
1583static Res AMCScan(Bool *totalReturn, ScanState ss, Pool pool, Seg seg) 1583static Res AMCScan(Bool *totalReturn, ScanState ss, Pool pool, Seg seg)
1584{ 1584{
1585 Addr base, limit; 1585 Addr base, limit;
1586 Arena arena;
1587 Format format; 1586 Format format;
1588 AMC amc; 1587 AMC amc;
1589 Res res; 1588 Res res;
@@ -1597,7 +1596,6 @@ static Res AMCScan(Bool *totalReturn, ScanState ss, Pool pool, Seg seg)
1597 1596
1598 1597
1599 format = pool->format; 1598 format = pool->format;
1600 arena = pool->arena;
1601 1599
1602 if(amcSegHasNailboard(seg)) { 1600 if(amcSegHasNailboard(seg)) {
1603 return amcScanNailed(totalReturn, ss, pool, seg, amc); 1601 return amcScanNailed(totalReturn, ss, pool, seg, amc);
diff --git a/mps/code/poollo.c b/mps/code/poollo.c
index 49346f4cb56..c4a5872af54 100644
--- a/mps/code/poollo.c
+++ b/mps/code/poollo.c
@@ -234,7 +234,6 @@ static Bool loSegFindFree(Addr *bReturn, Addr *lReturn,
234 Index baseIndex, limitIndex; 234 Index baseIndex, limitIndex;
235 LO lo; 235 LO lo;
236 Seg seg; 236 Seg seg;
237 Arena arena;
238 Count agrains; 237 Count agrains;
239 Count bits; 238 Count bits;
240 Addr segBase; 239 Addr segBase;
@@ -246,7 +245,6 @@ static Bool loSegFindFree(Addr *bReturn, Addr *lReturn,
246 lo = loseg->lo; 245 lo = loseg->lo;
247 seg = LOSegSeg(loseg); 246 seg = LOSegSeg(loseg);
248 AVER(SizeIsAligned(size, LOPool(lo)->alignment)); 247 AVER(SizeIsAligned(size, LOPool(lo)->alignment));
249 arena = PoolArena(LOPool(lo));
250 248
251 /* agrains is the number of grains corresponding to the size */ 249 /* agrains is the number of grains corresponding to the size */
252 /* of the allocation request */ 250 /* of the allocation request */
@@ -547,7 +545,6 @@ static Res LOBufferFill(Addr *baseReturn, Addr *limitReturn,
547 Ring node, nextNode; 545 Ring node, nextNode;
548 LO lo; 546 LO lo;
549 LOSeg loseg; 547 LOSeg loseg;
550 Arena arena;
551 Addr base, limit; 548 Addr base, limit;
552 549
553 AVER(baseReturn != NULL); 550 AVER(baseReturn != NULL);
@@ -562,8 +559,6 @@ static Res LOBufferFill(Addr *baseReturn, Addr *limitReturn,
562 AVER(SizeIsAligned(size, PoolAlignment(pool))); 559 AVER(SizeIsAligned(size, PoolAlignment(pool)));
563 AVER(BoolCheck(withReservoirPermit)); 560 AVER(BoolCheck(withReservoirPermit));
564 561
565 arena = PoolArena(pool);
566
567 /* Try to find a segment with enough space already. */ 562 /* Try to find a segment with enough space already. */
568 RING_FOR(node, &pool->segRing, nextNode) { 563 RING_FOR(node, &pool->segRing, nextNode) {
569 Seg seg = SegOfPoolRing(node); 564 Seg seg = SegOfPoolRing(node);
@@ -619,7 +614,6 @@ static void LOBufferEmpty(Pool pool, Buffer buffer, Addr init, Addr limit)
619 Seg seg; 614 Seg seg;
620 LOSeg loseg; 615 LOSeg loseg;
621 Index baseIndex, initIndex, limitIndex; 616 Index baseIndex, initIndex, limitIndex;
622 Arena arena;
623 617
624 AVERT(Pool, pool); 618 AVERT(Pool, pool);
625 lo = PARENT(LOStruct, poolStruct, pool); 619 lo = PARENT(LOStruct, poolStruct, pool);
@@ -634,7 +628,6 @@ static void LOBufferEmpty(Pool pool, Buffer buffer, Addr init, Addr limit)
634 AVERT(LOSeg, loseg); 628 AVERT(LOSeg, loseg);
635 AVER(loseg->lo == lo); 629 AVER(loseg->lo == lo);
636 630
637 arena = PoolArena(pool);
638 base = BufferBase(buffer); 631 base = BufferBase(buffer);
639 segBase = SegBase(seg); 632 segBase = SegBase(seg);
640 633
diff --git a/mps/code/poolmrg.c b/mps/code/poolmrg.c
index 180a1789ca6..a8c08047821 100644
--- a/mps/code/poolmrg.c
+++ b/mps/code/poolmrg.c
@@ -477,9 +477,6 @@ static MessageClassStruct MRGMessageClassStruct = {
477 */ 477 */
478static void MRGSegPairDestroy(MRGRefSeg refseg, MRG mrg) 478static void MRGSegPairDestroy(MRGRefSeg refseg, MRG mrg)
479{ 479{
480 Pool pool;
481
482 pool = MRG2Pool(mrg);
483 RingRemove(&refseg->mrgRing); 480 RingRemove(&refseg->mrgRing);
484 RingFinish(&refseg->mrgRing); 481 RingFinish(&refseg->mrgRing);
485 refseg->sig = SigInvalid; 482 refseg->sig = SigInvalid;
diff --git a/mps/code/poolmv.c b/mps/code/poolmv.c
index 0b3d1c2d88d..ae71bb40804 100644
--- a/mps/code/poolmv.c
+++ b/mps/code/poolmv.c
@@ -824,7 +824,6 @@ size_t mps_mv_size(mps_pool_t mps_pool)
824 Pool pool; 824 Pool pool;
825 MV mv; 825 MV mv;
826 MVSpan span; 826 MVSpan span;
827 Arena arena;
828 Size f = 0; 827 Size f = 0;
829 Ring spans, node = NULL, nextNode; /* gcc whinge stop */ 828 Ring spans, node = NULL, nextNode; /* gcc whinge stop */
830 829
@@ -833,7 +832,6 @@ size_t mps_mv_size(mps_pool_t mps_pool)
833 AVERT(Pool, pool); 832 AVERT(Pool, pool);
834 mv = Pool2MV(pool); 833 mv = Pool2MV(pool);
835 AVERT(MV, mv); 834 AVERT(MV, mv);
836 arena = PoolArena(pool);
837 835
838 spans = &mv->spans; 836 spans = &mv->spans;
839 RING_FOR(node, spans, nextNode) { 837 RING_FOR(node, spans, nextNode) {
diff --git a/mps/code/reserv.c b/mps/code/reserv.c
index f75c64afad9..cc739291e3c 100644
--- a/mps/code/reserv.c
+++ b/mps/code/reserv.c
@@ -215,7 +215,6 @@ static void reservoirShrink(Reservoir reservoir, Size want)
215Res ReservoirWithdraw(Addr *baseReturn, Tract *baseTractReturn, 215Res ReservoirWithdraw(Addr *baseReturn, Tract *baseTractReturn,
216 Reservoir reservoir, Size size, Pool pool) 216 Reservoir reservoir, Size size, Pool pool)
217{ 217{
218 Pool respool;
219 Arena arena; 218 Arena arena;
220 219
221 AVER(baseReturn != NULL); 220 AVER(baseReturn != NULL);
@@ -226,7 +225,6 @@ Res ReservoirWithdraw(Addr *baseReturn, Tract *baseTractReturn,
226 AVER(SizeIsAligned(size, ArenaAlign(arena))); 225 AVER(SizeIsAligned(size, ArenaAlign(arena)));
227 AVER(size > 0); 226 AVER(size > 0);
228 AVERT(Pool, pool); 227 AVERT(Pool, pool);
229 respool = &reservoir->poolStruct;
230 228
231 /* @@@@ As a short-term measure, we only permit the reservoir to */ 229 /* @@@@ As a short-term measure, we only permit the reservoir to */
232 /* allocate single-page regions. */ 230 /* allocate single-page regions. */
diff --git a/mps/code/seg.c b/mps/code/seg.c
index f45f5297c75..f5218b2be8d 100644
--- a/mps/code/seg.c
+++ b/mps/code/seg.c
@@ -231,8 +231,8 @@ static void SegFinish(Seg seg)
231 /* See <code/shield.c#shield.flush> */ 231 /* See <code/shield.c#shield.flush> */
232 ShieldFlush(PoolArena(SegPool(seg))); 232 ShieldFlush(PoolArena(SegPool(seg)));
233 233
234 base = SegBase(seg);
235 limit = SegLimit(seg); 234 limit = SegLimit(seg);
235
236 TRACT_TRACT_FOR(tract, addr, arena, seg->firstTract, limit) { 236 TRACT_TRACT_FOR(tract, addr, arena, seg->firstTract, limit) {
237 AVER(TractCheck(tract)); /* <design/check/#type.no-sig> */ 237 AVER(TractCheck(tract)); /* <design/check/#type.no-sig> */
238 TractSetWhite(tract, TraceSetEMPTY); 238 TractSetWhite(tract, TraceSetEMPTY);
diff --git a/mps/code/segsmss.c b/mps/code/segsmss.c
index 04fa587dee5..5a557be9c63 100644
--- a/mps/code/segsmss.c
+++ b/mps/code/segsmss.c
@@ -433,14 +433,10 @@ static Bool AMSSegRegionIsFree(Seg seg, Addr base, Addr limit)
433 */ 433 */
434static void AMSUnallocateRange(Seg seg, Addr base, Addr limit) 434static void AMSUnallocateRange(Seg seg, Addr base, Addr limit)
435{ 435{
436 Pool pool;
437 AMS ams;
438 AMSSeg amsseg; 436 AMSSeg amsseg;
439 Index baseIndex, limitIndex; 437 Index baseIndex, limitIndex;
440 /* parameters checked by caller */ 438 /* parameters checked by caller */
441 439
442 pool = SegPool(seg);
443 ams = Pool2AMS(pool);
444 amsseg = Seg2AMSSeg(seg); 440 amsseg = Seg2AMSSeg(seg);
445 441
446 baseIndex = AMS_ADDR_INDEX(seg, base); 442 baseIndex = AMS_ADDR_INDEX(seg, base);
@@ -475,14 +471,10 @@ static void AMSUnallocateRange(Seg seg, Addr base, Addr limit)
475 */ 471 */
476static void AMSAllocateRange(Seg seg, Addr base, Addr limit) 472static void AMSAllocateRange(Seg seg, Addr base, Addr limit)
477{ 473{
478 Pool pool;
479 AMS ams;
480 AMSSeg amsseg; 474 AMSSeg amsseg;
481 Index baseIndex, limitIndex; 475 Index baseIndex, limitIndex;
482 /* parameters checked by caller */ 476 /* parameters checked by caller */
483 477
484 pool = SegPool(seg);
485 ams = Pool2AMS(pool);
486 amsseg = Seg2AMSSeg(seg); 478 amsseg = Seg2AMSSeg(seg);
487 479
488 baseIndex = AMS_ADDR_INDEX(seg, base); 480 baseIndex = AMS_ADDR_INDEX(seg, base);