From: Richard Henderson <richard@stommel.tamu.edu>
Subject: axp patches for 2.1.33
Date: Fri, 11 Apr 1997 01:03:54 -0500 (CDT) [thread overview]
Message-ID: <cd0f74e7b79de821131e20ac475936fa.axp-list@archive.invalid> (raw)
Bits of this have been posted elsewhere, but not all.
r~
diff -ruNp -x *.orig -x *~ linux-2.1.33/Makefile linux-2.1.33-rth/Makefile
--- linux-2.1.33/Makefile Thu Apr 10 22:34:42 1997
+++ linux-2.1.33-rth/Makefile Thu Apr 10 22:36:38 1997
@@ -2,7 +2,7 @@ VERSION = 2
PATCHLEVEL = 1
SUBLEVEL = 33
-ARCH = i386
+ARCH := $(shell uname -m | sed s/i.86/i386/)
#
# For SMP kernels, set this. We don't want to have this in the config file
@@ -11,10 +11,10 @@ ARCH = i386
#
# NOTE! SMP is experimental. See the file Documentation/SMP.txt
#
-SMP = 1
+#SMP = 1
#
# SMP profiling options
-SMP_PROF = 1
+#SMP_PROF = 1
.EXPORT_ALL_VARIABLES:
diff -ruNp -x *.orig -x *~ linux-2.1.33/arch/alpha/kernel/irq.c linux-2.1.33-rth/arch/alpha/kernel/irq.c
--- linux-2.1.33/arch/alpha/kernel/irq.c Wed Oct 16 01:05:09 1996
+++ linux-2.1.33-rth/arch/alpha/kernel/irq.c Thu Apr 10 22:56:09 1997
@@ -53,6 +53,7 @@ extern void timer_interrupt(struct pt_re
*/
static unsigned long irq_mask = ~0UL;
+unsigned int local_irq_count[NR_CPUS];
/*
* Update the hardware with the irq mask passed in MASK. The function
diff -ruNp -x *.orig -x *~ linux-2.1.33/arch/alpha/lib/csum_partial_copy.c linux-2.1.33-rth/arch/alpha/lib/csum_partial_copy.c
--- linux-2.1.33/arch/alpha/lib/csum_partial_copy.c Thu Apr 10 22:33:23 1997
+++ linux-2.1.33-rth/arch/alpha/lib/csum_partial_copy.c Thu Apr 10 23:42:57 1997
@@ -13,7 +13,7 @@
#define ldq_u(x,y) \
-__asm__ __volatile__("ldq_u %0,%1":"=r" (x):"m" (*(unsigned long *)(y)))
+__asm__ __volatile__("ldq_u %0,%1":"=r" (x):"m" (*(const unsigned long *)(y)))
#define stq_u(x,y) \
__asm__ __volatile__("stq_u %1,%0":"=m" (*(unsigned long *)(y)):"r" (x))
@@ -72,7 +72,7 @@ __asm__ __volatile__("insqh %1,%2,%0":"=
* Ok. This isn't fun, but this is the EASY case.
*/
static inline unsigned long
-csum_partial_cfu_aligned(unsigned long *src, unsigned long *dst,
+csum_partial_cfu_aligned(const unsigned long *src, unsigned long *dst,
long len, unsigned long checksum,
int *errp)
{
@@ -165,7 +165,7 @@ csum_partial_cfu_dest_aligned(unsigned l
* This is slightly less fun than the above..
*/
static inline unsigned long
-csum_partial_cfu_src_aligned(unsigned long *src, unsigned long *dst,
+csum_partial_cfu_src_aligned(const unsigned long *src, unsigned long *dst,
unsigned long doff,
long len, unsigned long checksum,
unsigned long partial_dest,
@@ -227,7 +227,7 @@ csum_partial_cfu_src_aligned(unsigned lo
* look at this too closely, you'll go blind.
*/
static inline unsigned long
-csum_partial_cfu_unaligned(unsigned long * src, unsigned long * dst,
+csum_partial_cfu_unaligned(const unsigned long * src, unsigned long * dst,
unsigned long soff, unsigned long doff,
long len, unsigned long checksum,
unsigned long partial_dest,
@@ -305,7 +305,7 @@ csum_partial_cfu_unaligned(unsigned long
}
static unsigned int
-do_csum_partial_copy_from_user(char *src, char *dst, int len,
+do_csum_partial_copy_from_user(const char *src, char *dst, int len,
unsigned int sum, int *errp)
{
unsigned long checksum = (unsigned) sum;
@@ -316,12 +316,12 @@ do_csum_partial_copy_from_user(char *src
if (!doff) {
if (!soff)
checksum = csum_partial_cfu_aligned(
- (unsigned long *) src,
+ (const unsigned long *) src,
(unsigned long *) dst,
len-8, checksum, errp);
else
checksum = csum_partial_cfu_dest_aligned(
- (unsigned long *) src,
+ (const unsigned long *) src,
(unsigned long *) dst,
soff, len-8, checksum, errp);
} else {
@@ -329,13 +329,13 @@ do_csum_partial_copy_from_user(char *src
ldq_u(partial_dest, dst);
if (!soff)
checksum = csum_partial_cfu_src_aligned(
- (unsigned long *) src,
+ (const unsigned long *) src,
(unsigned long *) dst,
doff, len-8, checksum,
partial_dest, errp);
else
checksum = csum_partial_cfu_unaligned(
- (unsigned long *) src,
+ (const unsigned long *) src,
(unsigned long *) dst,
soff, doff, len-8, checksum,
partial_dest, errp);
@@ -352,7 +352,7 @@ do_csum_partial_copy_from_user(char *src
}
unsigned int
-csum_partial_copy_from_user(char *src, char *dst, int len,
+csum_partial_copy_from_user(const char *src, char *dst, int len,
unsigned int sum, int *errp)
{
if (!access_ok(src, len, VERIFY_READ)) {
diff -ruNp -x *.orig -x *~ linux-2.1.33/drivers/char/selection.c linux-2.1.33-rth/drivers/char/selection.c
--- linux-2.1.33/drivers/char/selection.c Thu Apr 10 22:34:42 1997
+++ linux-2.1.33-rth/drivers/char/selection.c Thu Apr 10 23:42:57 1997
@@ -32,6 +32,8 @@
/* Don't take this from <ctype.h>: 011-015 on the screen aren't spaces */
#define isspace(c) ((c) == ' ')
+extern void poke_blanked_console(void);
+
/* Variables for selection control. */
/* Use a dynamic buffer, instead of static (Dec 1994) */
int sel_cons = 0; /* must not be disallocated */
@@ -118,7 +120,7 @@ int set_selection(const unsigned long ar
int sel_mode, new_sel_start, new_sel_end, spc;
char *bp, *obp;
int i, ps, pe;
-
+
do_unblank_screen();
poke_blanked_console();
@@ -289,7 +291,7 @@ int paste_selection(struct tty_struct *t
int c = sel_buffer_lth;
int l;
struct vt_struct *vt = (struct vt_struct *) tty->driver_data;
-
+
if (!bp || !c)
return 0;
poke_blanked_console();
diff -ruNp -x *.orig -x *~ linux-2.1.33/drivers/pnp/parport_init.c linux-2.1.33-rth/drivers/pnp/parport_init.c
--- linux-2.1.33/drivers/pnp/parport_init.c Thu Apr 10 22:34:42 1997
+++ linux-2.1.33-rth/drivers/pnp/parport_init.c Thu Apr 10 22:36:38 1997
@@ -9,10 +9,11 @@
* and Philip Blundell <Philip.Blundell@pobox.com>
*/
+#include <linux/module.h>
+#include <linux/tasks.h>
#include <asm/io.h>
#include <asm/dma.h>
-#include <linux/module.h>
#include <linux/parport.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff -ruNp -x *.orig -x *~ linux-2.1.33/drivers/pnp/parport_probe.c linux-2.1.33-rth/drivers/pnp/parport_probe.c
--- linux-2.1.33/drivers/pnp/parport_probe.c Thu Apr 10 22:34:42 1997
+++ linux-2.1.33-rth/drivers/pnp/parport_probe.c Thu Apr 10 22:36:38 1997
@@ -5,6 +5,7 @@
* Philip Blundell <Philip.Blundell@pobox.com>
*/
+#include <linux/tasks.h>
#include <asm/io.h>
#include <asm/dma.h>
@@ -20,7 +21,6 @@
#include <linux/lp.h>
#include <asm/uaccess.h>
-
#undef DEBUG_PROBE
static inline int read_nibble(struct parport *port)
diff -ruNp -x *.orig -x *~ linux-2.1.33/drivers/pnp/parport_procfs.c linux-2.1.33-rth/drivers/pnp/parport_procfs.c
--- linux-2.1.33/drivers/pnp/parport_procfs.c Thu Apr 10 22:34:42 1997
+++ linux-2.1.33-rth/drivers/pnp/parport_procfs.c Thu Apr 10 22:36:38 1997
@@ -8,6 +8,7 @@
* and Philip Blundell <Philip.Blundell@pobox.com>
*/
+#include <linux/tasks.h>
#include <asm/ptrace.h>
#include <asm/io.h>
#include <asm/dma.h>
diff -ruNp -x *.orig -x *~ linux-2.1.33/drivers/pnp/parport_share.c linux-2.1.33-rth/drivers/pnp/parport_share.c
--- linux-2.1.33/drivers/pnp/parport_share.c Thu Apr 10 22:34:42 1997
+++ linux-2.1.33-rth/drivers/pnp/parport_share.c Thu Apr 10 22:36:38 1997
@@ -9,6 +9,7 @@
* and Philip Blundell <Philip.Blundell@pobox.com>
*/
+#include <linux/tasks.h>
#include <asm/io.h>
#include <asm/dma.h>
@@ -64,7 +65,7 @@ struct parport *parport_register_port(un
if (new.dma >= 0) {
if (request_dma(new.dma, new.name)) {
printk(KERN_INFO "%s: unable to claim DMA %d\n",
- new.name, new..dma);
+ new.name, new.dma);
release_region(new.base, new.size);
if( new.modes & PARPORT_MODE_ECR )
release_region(new.base+0x400, 3);
diff -ruNp -x *.orig -x *~ linux-2.1.33/fs/binfmt_em86.c linux-2.1.33-rth/fs/binfmt_em86.c
--- linux-2.1.33/fs/binfmt_em86.c Thu Apr 10 22:34:33 1997
+++ linux-2.1.33-rth/fs/binfmt_em86.c Thu Apr 10 23:42:57 1997
@@ -20,13 +20,13 @@
static int do_load_em86(struct linux_binprm *bprm,struct pt_regs *regs)
{
- char *cp, *interp, *i_name, *i_arg;
+ char *interp, *i_name, *i_arg;
int retval;
struct elfhdr elf_ex;
/* Make sure this is a Linux/Intel ELF executable... */
elf_ex = *((struct elfhdr *)bprm->buf);
-
+
if (elf_ex.e_ident[0] != 0x7f ||
strncmp(&elf_ex.e_ident[1], "ELF",3) != 0) {
return -ENOEXEC;
diff -ruNp -x *.orig -x *~ linux-2.1.33/fs/isofs/dir.c linux-2.1.33-rth/fs/isofs/dir.c
--- linux-2.1.33/fs/isofs/dir.c Thu Apr 10 22:34:33 1997
+++ linux-2.1.33-rth/fs/isofs/dir.c Thu Apr 10 23:42:57 1997
@@ -172,7 +172,7 @@ static int do_isofs_readdir(struct inode
* entries should terminate with a null size
* or end exactly at the end of the sector.
*/
- printk("next_offset (%x) > bufsize (%x)\n",
+ printk("next_offset (%x) > bufsize (%lx)\n",
offset,bufsize);
break;
}
diff -ruNp -x *.orig -x *~ linux-2.1.33/fs/isofs/inode.c linux-2.1.33-rth/fs/isofs/inode.c
--- linux-2.1.33/fs/isofs/inode.c Thu Apr 10 22:34:43 1997
+++ linux-2.1.33-rth/fs/isofs/inode.c Thu Apr 10 23:42:57 1997
@@ -393,7 +393,7 @@ struct super_block *isofs_read_super(str
if( (blocksize != 0)
&& (orig_zonesize < blocksize) )
{
- printk("Logical zone size(%ld) < hardware blocksize(%ld)\n",
+ printk("Logical zone size(%d) < hardware blocksize(%u)\n",
orig_zonesize, blocksize);
goto out;
@@ -549,12 +549,12 @@ int isofs_bmap(struct inode * inode,int
* the page with useless information without generating any
* I/O errors.
*/
- max_legal_read_offset = (inode->i_size + PAGE_SIZE - 1)
+ max_legal_read_offset = (inode->i_size + PAGE_SIZE - 1)
& ~(PAGE_SIZE - 1);
if( (block << ISOFS_BUFFER_BITS(inode)) >= max_legal_read_offset )
{
- printk("_isofs_bmap: block>= EOF(%d, %d)\n", block,
+ printk("_isofs_bmap: block>= EOF(%d, %ld)\n", block,
inode->i_size);
}
return 0;
diff -ruNp -x *.orig -x *~ linux-2.1.33/include/asm-alpha/checksum.h linux-2.1.33-rth/include/asm-alpha/checksum.h
--- linux-2.1.33/include/asm-alpha/checksum.h Thu Apr 10 22:33:33 1997
+++ linux-2.1.33-rth/include/asm-alpha/checksum.h Thu Apr 10 23:42:57 1997
@@ -53,7 +53,7 @@ unsigned int csum_partial_copy(const cha
* this is a new version of the above that records errors it finds in *errp,
* but continues and zeros the rest of the buffer.
*/
-unsigned int csum_partial_copy_from_user(char *src, char *dst, int len, unsigned int sum, int *errp);
+unsigned int csum_partial_copy_from_user(const char *src, char *dst, int len, unsigned int sum, int *errp);
/*
* this routine is used for miscellaneous IP-like checksums, mainly
diff -ruNp -x *.orig -x *~ linux-2.1.33/include/asm-alpha/io.h linux-2.1.33-rth/include/asm-alpha/io.h
--- linux-2.1.33/include/asm-alpha/io.h Mon Oct 7 00:55:48 1996
+++ linux-2.1.33-rth/include/asm-alpha/io.h Thu Apr 10 22:44:54 1997
@@ -38,7 +38,8 @@ extern struct hae {
*/
extern inline void set_hae(unsigned long new_hae)
{
- unsigned long ipl = swpipl(7);
+ unsigned long ipl;
+ swpipl(ipl,7);
hae.cache = new_hae;
*hae.reg = new_hae;
mb();
diff -ruNp -x *.orig -x *~ linux-2.1.33/include/asm-alpha/uaccess.h linux-2.1.33-rth/include/asm-alpha/uaccess.h
--- linux-2.1.33/include/asm-alpha/uaccess.h Thu Apr 10 22:32:37 1997
+++ linux-2.1.33-rth/include/asm-alpha/uaccess.h Thu Apr 10 23:43:09 1997
@@ -352,10 +352,27 @@ __asm__ __volatile__("1: stb %r2,%1\n"
* Complex access routines
*/
+#define __copy_to_user(to,from,n) __copy_tofrom_user_nocheck((to),(from),(n))
+#define __copy_from_user(to,from,n) __copy_tofrom_user_nocheck((to),(from),(n))
+
#define copy_to_user(to,from,n) __copy_tofrom_user((to),(from),(n),__cu_to)
#define copy_from_user(to,from,n) __copy_tofrom_user((to),(from),(n),__cu_from)
extern void __copy_user(void);
+
+#define __copy_tofrom_user_nocheck(to,from,n) \
+({ \
+ register void * __cu_to __asm__("$6") = (to); \
+ register const void * __cu_from __asm__("$7") = (from); \
+ register long __cu_len __asm__("$0") = (n); \
+ __asm__ __volatile__( \
+ "jsr $28,(%3),__copy_user" \
+ : "=r" (__cu_len), "=r" (__cu_from), "=r" (__cu_to) \
+ : "r" (__copy_user), "0" (__cu_len), \
+ "1" (__cu_from), "2" (__cu_to) \
+ : "$1","$2","$3","$4","$5","$28","memory"); \
+ __cu_len; \
+})
#define __copy_tofrom_user(to,from,n,v) \
({ \
diff -ruNp -x *.orig -x *~ linux-2.1.33/include/linux/binfmts.h linux-2.1.33-rth/include/linux/binfmts.h
--- linux-2.1.33/include/linux/binfmts.h Thu Apr 10 22:32:38 1997
+++ linux-2.1.33-rth/include/linux/binfmts.h Thu Apr 10 23:42:57 1997
@@ -51,6 +51,7 @@ extern int init_elf_binfmt(void);
extern int init_aout_binfmt(void);
extern int init_script_binfmt(void);
extern int init_java_binfmt(void);
+extern int init_em86_binfmt(void);
extern int prepare_binprm(struct linux_binprm *);
extern void remove_arg_zero(struct linux_binprm *);
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
reply other threads:[~1997-04-11 6:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox