03fa08025b
* conf/DEFAULT: new file, default install kernel * conf/INSTALL: +MSDOSFS, +NO_INLINE_SPLX, +RD_SIZE=2mb, +scn4/5 * conf/KLONDIKE: cosmetic changes * conf/STEELHEAD: cosmetic changes * conf/files.pc532: rd got a file of it's own * dev/lpt.c: changes to support lower interrupt latency, packet input/output is now done at spl0 * dev/ncr.c: changes to support the most recent atari version of the ncr5380 driver * dev/ncr5380.c, dev/ncr5380reg.h: upgraded to most recent atari version, memcpy -> bcopy. * dev/rd.c: ramdisk driver * dev/scn.c: by patching scndefaultrate, the kernel's default baud rate can be changed with gdb * include/psl.h: struct iv now protected by !LOCORE && _KERNEL inlining of splx can be prevented with new kernel option NO_INLINE_SPLX splx_di is like splx but leaves processor interrupts disabled * pc532/autoconf.c: cosmetic changes * pc532/conf.c: with rd entries * pc532/intr.c: changes to support splx_di * pc532/locore.s: ramdisk is no longer initialized not splx, but rett is now used to reenable CPU interrupts when leaving the interrupt service routine. This is necessary to prevent recursive interrupts. * pc532/sys_machdep.c: memcpy -> bcopy * pc532/mem.c: moved ramdisk to dev/rd.c * stand/Makefile: boot is now loaded at 0x3eb800 instead of 0x363800 Use current form of libsa and libkern. * stand/inflate.c: emit twiddle every 8k and not every 1k * stand/rd.c: ramdisk starts at 0x288000
30 lines
526 B
C
30 lines
526 B
C
#include <sys/param.h>
|
|
#include "stand.h"
|
|
#include "samachdep.h"
|
|
|
|
#ifndef RD_START
|
|
#define RD_START 0x288000
|
|
#endif
|
|
|
|
rdopen(f, ctlr, unit, part)
|
|
struct open_file *f;
|
|
int ctlr, unit, part;
|
|
{
|
|
f->f_devdata = (void *) RD_START;
|
|
return(0);
|
|
}
|
|
|
|
int
|
|
rdstrategy(ss, func, dblk, size, buf, rsize)
|
|
void *ss;
|
|
int func;
|
|
daddr_t dblk; /* block number */
|
|
u_int size; /* request size in bytes */
|
|
void *buf;
|
|
u_int *rsize; /* out: bytes transferred */
|
|
{
|
|
memcpy(buf, ss + (dblk << DEV_BSHIFT), size);
|
|
*rsize = size;
|
|
return(0);
|
|
}
|