Merged do_gettimeofday with do_time to save one function call;
adjusted table.c accordingly
This commit is contained in:
@@ -378,34 +378,6 @@ phys_bytes tot_bytes; /* total memory to allocate, including gap */
|
||||
panic(__FILE__,"new_mem can't zero", s);
|
||||
}
|
||||
|
||||
#define ENABLE_USAGE_TEST 0
|
||||
#if ENABLE_USAGE_TEST
|
||||
/* Junk-fill gap and stack.
|
||||
* Mind the gap..
|
||||
*/
|
||||
{
|
||||
static int pat = 1;
|
||||
if ((s=sys_memset(pat++ & 0xff,
|
||||
(rmp->mp_seg[D].mem_phys + rmp->mp_seg[D].mem_len) << CLICK_SHIFT,
|
||||
(gap_clicks + stack_clicks) << CLICK_SHIFT)) != OK) {
|
||||
panic(__FILE__,"can't junk-fill", s);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if DEAD_CODE
|
||||
while (bytes > 0) {
|
||||
static char zero[1024]; /* used to zero bss */
|
||||
count = MIN(bytes, (phys_bytes) sizeof(zero));
|
||||
if ((s=sys_physcopy(PM_PROC_NR, D, (phys_bytes) zero,
|
||||
NONE, PHYS_SEG, base, count)) != OK) {
|
||||
panic(__FILE__,"new_mem can't zero", s);
|
||||
}
|
||||
base += count;
|
||||
bytes -= count;
|
||||
}
|
||||
#endif
|
||||
|
||||
return(OK);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user