Make an attempt to get the asr driver to compile on Alpha by fixing some i386
specific bogons. Compile with -O0, as anything higher gives the compiler a fit. No idea if this driver will actually work on Alpha, though.
This commit is contained in:
parent
8cf6ffcf6d
commit
0001afe2f5
@ -200,8 +200,13 @@ static dpt_sig_S ASR_sig = {
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
#include <machine/cputypes.h>
|
||||
|
||||
#if defined (__i386__)
|
||||
#include <i386/include/cputypes.h>
|
||||
#include <i386/include/vmparam.h>
|
||||
#elif defined (__alpha__)
|
||||
#include <alpha/include/pmap.h>
|
||||
#endif
|
||||
|
||||
#include <pci/pcivar.h>
|
||||
#include <pci/pcireg.h>
|
||||
@ -4158,6 +4163,7 @@ asr_ioctl(
|
||||
Info.numDrives = *((char *)ptok(0x475));
|
||||
|
||||
Info.processorFamily = ASR_sig.dsProcessorFamily;
|
||||
#if defined (__i386__)
|
||||
switch (cpu) {
|
||||
case CPU_386SX: case CPU_386:
|
||||
Info.processorType = PROC_386; break;
|
||||
@ -4168,6 +4174,10 @@ asr_ioctl(
|
||||
case CPU_686:
|
||||
Info.processorType = PROC_SEXIUM; break;
|
||||
}
|
||||
#elif defined (__alpha__)
|
||||
Info.processorType = PROC_ALPHA;
|
||||
#endif
|
||||
|
||||
Info.osType = OS_BSDI_UNIX;
|
||||
Info.osMajorVersion = osrelease[0] - '0';
|
||||
Info.osMinorVersion = osrelease[2] - '0';
|
||||
|
@ -7,4 +7,8 @@ SRCS= asr.c
|
||||
SRCS+= opt_scsi.h opt_cam.h opt_asr.h
|
||||
SRCS+= device_if.h bus_if.h pci_if.h
|
||||
|
||||
.if ${MACHINE_ARCH} == "alpha"
|
||||
CFLAGS+= -O0
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
Loading…
x
Reference in New Issue
Block a user