[comp.os.minix] MACMINIX: memory.c bug fix

archetyp@uxh.cso.uiuc.edu (Joseph R Pickert) (11/13/90)

Here is the fix to the fix of ps.  It is relative to the ORIGINAL
/usr/src/kernel/memory.c (i.e., the distributed one). You must
make the fixes to ps.c and a.out.h as already posted.

Joe Pickert

*** 1.5.10/kernel/memory.c	Thu Nov  1 09:59:28 1990
--- 1.5.10.1/kernel/memory.c	Mon Nov 12 12:06:34 1990
***************
*** 51,59 ****
    int r, caller, proc_nr;
  
    /* Initialize this task. */
!   ram_origin[KMEM_DEV] = numap(SYSTASK, (vir_bytes) 0, (vir_bytes) 1);
!   ram_limit[KMEM_DEV] = ((phys_bytes) sizes[1] << CLICK_SHIFT) +
!                         ram_origin[KMEM_DEV];
  #if (CHIP == INTEL)
    if (!protected_mode)
  	ram_limit[MEM_DEV] = 0x100000;	/* above 1M em_xfer word count fails */
--- 51,59 ----
    int r, caller, proc_nr;
  
    /* Initialize this task. */
!   ram_origin[KMEM_DEV] = code_base;
!   ram_limit[KMEM_DEV]  = code_base
! 			   + ((long)(sizes[0] + sizes[1]) << CLICK_SHIFT);
  #if (CHIP == INTEL)
    if (!protected_mode)
  	ram_limit[MEM_DEV] = 0x100000;	/* above 1M em_xfer word count fails */