Patches to 2.1.55 For AXP(Alpha) compiling

Leslie F. Donaldson (donaldlf@cs.rose-hulman.edu)
Mon, 15 Sep 1997 09:22:08 -0500 (EST)


Hello All,

Just to let everyone know I try to stay near the cutting edge of kernel
tech on my systems. So I am going to try to keep current on kernel releases
and create patch files to allow them to compile on AXP(Alpha)s

Enclosed below is a patch file to allow linux 2.1.55 to compile on
AXP(Alpha) boxes.
- Fixed two many arguments to file argument
- Two versions of pci error. removed the smaller one from bios32.c
- Patched aic7xxx.c to compile.
Note:
- paraport does work in this release(some problems in previous.)
- SMP option does not work in 2.1.55 I will see if I need to or can
debug it in 2.1.56.

Leslie Donaldson
/----------------------------\ Current Contractor: Oxford International
| Leslie F. Donaldson | Current Customer : Entergy Inc.
| Computer Contractor | Skills: Unix/OS9/VMS/Linux/SUN-OS/C/C++/assembly
| Have Computer will travel. | Curr : http://www.cs.rose-hulman.edu/~donaldlf
\----------------------------/ Current Email : donaldlf@cs.rose-hulman.edu
Goth Code V1.1: GoCS$$ TYg(T6,T9) B11Bk!^1 C6b-- P0(1,7) M+ a24 n--- b++:+
H6'11" g m---- w+ r+++ D--~!% h+ s10 k+++ R-- Ssw LusCA++

*** linux/arch/alpha/kernel/bios32.c.old Sat Sep 13 11:49:57 1997
--- linux/arch/alpha/kernel/bios32.c Sat Sep 13 11:50:34 1997
***************
*** 1181,1186 ****
--- 1181,1188 ----
return mem_start;
}

+ /*
+ look in linux/drivers/pci/pci.c

const char *pcibios_strerror (int error)
{
***************
*** 1207,1213 ****
return buf;
}
}
!
asmlinkage int sys_pciconfig_read(
unsigned long bus,
unsigned long dfn,
--- 1209,1215 ----
return buf;
}
}
! */
asmlinkage int sys_pciconfig_read(
unsigned long bus,
unsigned long dfn,
*** linux/arch/alpha/kernel/osf_sys.c.old Fri Sep 5 18:58:08 1997
--- linux/arch/alpha/kernel/osf_sys.c Sat Sep 13 11:45:30 1997
***************
*** 164,170 ****
if (!file->f_op || !file->f_op->readdir)
goto out;

! error = file->f_op->readdir(inode, file, &buf, osf_filldir);
if (error < 0)
goto out;

--- 164,170 ----
if (!file->f_op || !file->f_op->readdir)
goto out;

! error = file->f_op->readdir(file, &buf, osf_filldir);
if (error < 0)
goto out;

*** linux/drivers/pci/pci.c.old Sat Sep 13 11:55:48 1997
--- linux/drivers/pci/pci.c Sat Sep 13 11:56:12 1997
***************
*** 675,681 ****

const char *pcibios_strerror(int error)
{
! static char buf[32];

switch (error) {
case PCIBIOS_SUCCESSFUL:
--- 675,681 ----

const char *pcibios_strerror(int error)
{
! static char buf[80];

switch (error) {
case PCIBIOS_SUCCESSFUL:
*** linux/drivers/scsi/aic7xxx.c.old Fri Sep 5 18:58:42 1997
--- linux/drivers/scsi/aic7xxx.c Sat Sep 13 11:15:09 1997
***************
*** 992,997 ****
--- 992,998 ----
{
if (p->maddr != NULL)
{
+ #ifdef 0
__asm __volatile("
cld;
1: lodsb;
***************
*** 1001,1006 ****
--- 1002,1014 ----
"r" ((p)->maddr + (port)),
"S" ((valp)), "c" ((size)) :
"%esi", "%ecx", "%eax");
+ #else
+ unsigned char *iop = ((p)->maddr + (port));
+ const unsigned char *dp = (valp);
+ int xferlen = (size);
+ for (; xferlen; --xferlen)
+ *iop = *dp++;
+ #endif
}
else
{