Changes for ram disk specification.
This commit is contained in:
parent
202167bebb
commit
5df59aabeb
|
@ -1,7 +1,7 @@
|
|||
#
|
||||
# TINY 532 Distribution, used only for early testing and initial distribution.
|
||||
#
|
||||
# $Id: TINY_NS,v 1.2 1993/09/13 07:23:47 phil Exp $
|
||||
# TINY_NS,v 1.2 1993/09/13 07:23:47 phil Exp
|
||||
#
|
||||
machine "pc532"
|
||||
cpu "ns532"
|
||||
|
@ -10,7 +10,8 @@ timezone 8 dst
|
|||
maxusers 8
|
||||
options SWAPPAGER,VNODEPAGER,DEVPAGER
|
||||
options "COMPAT_43"
|
||||
options "RD_SIZE=1536000"
|
||||
options "RAMD_SIZE=1536000"
|
||||
#options "RAMD_ADR=0x400000"
|
||||
options "COMDEF_SPEED=B19200"
|
||||
|
||||
options SCSI
|
||||
|
|
|
@ -158,7 +158,7 @@ here_we_go: /* This is the actual start of the locore code! */
|
|||
addr _edata(pc),tos # push address
|
||||
bsr _bzero # zero the bss segment
|
||||
|
||||
#ifdef RD_SIZE
|
||||
#ifdef RAMD_SIZE
|
||||
bsr _load_ram_disk # Temporary ???
|
||||
#endif
|
||||
|
||||
|
@ -980,7 +980,7 @@ ENTRY(_int_scsi1)
|
|||
bsr _dp_intr
|
||||
#else
|
||||
movqd 4,tos
|
||||
bsr _bad_intr
|
||||
bsd _bad_intr
|
||||
#endif
|
||||
br exit_int
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
* from: Utah $Hdr: mem.c 1.13 89/10/08$
|
||||
* @(#)mem.c 7.2 (Berkeley) 5/9/91
|
||||
*
|
||||
* $Id: mem.c,v 1.1.1.1 1993/09/09 23:53:47 phil Exp $
|
||||
* mem.c,v 1.1.1.1 1993/09/09 23:53:47 phil Exp
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -239,10 +239,14 @@ mmrw(dev, uio, flags)
|
|||
}
|
||||
|
||||
|
||||
#ifdef RD_SIZE
|
||||
/* Ram disk stuff.... */
|
||||
#define RAM_IMAGE 0x200000
|
||||
u_char ram_disk[RD_SIZE];
|
||||
#ifdef RAMD_SIZE
|
||||
|
||||
#ifndef RAMD_ADR
|
||||
#define RAMD_ADR 0x200000
|
||||
#endif
|
||||
|
||||
u_char ram_disk[RAMD_SIZE];
|
||||
|
||||
int rdopen(dev_t dev, int flag)
|
||||
{
|
||||
|
@ -280,7 +284,7 @@ int rdstrategy(struct buf *bp)
|
|||
int rdsize(dev_t dev)
|
||||
{
|
||||
if (minor(dev) == 0)
|
||||
return (RD_SIZE / DEV_BSIZE);
|
||||
return (RAMD_SIZE / DEV_BSIZE);
|
||||
else
|
||||
return (0);
|
||||
}
|
||||
|
@ -288,6 +292,6 @@ int rdsize(dev_t dev)
|
|||
|
||||
void load_ram_disk()
|
||||
{
|
||||
bcopy ((char *)RAM_IMAGE, ram_disk, RD_SIZE);
|
||||
bcopy ((char *)RAMD_ADR, ram_disk, RAMD_SIZE);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue