Update of /cvsroot/linux-vax/kernel-2.4/arch/s390x/lib
In directory usw-pr-cvs1:/tmp/cvs-serv13825/s390x/lib
Modified Files:
Makefile delay.c
Added Files:
misaligned.c
Log Message:
synch 2.4.15 commit 29
--- NEW FILE ---
/*
* arch/s390/lib/misaligned.c
* S390 misalignment panic stubs
*
* S390 version
* Copyright (C) 2001 IBM Deutschland Entwicklung GmbH, IBM Corporation
* Author(s): Martin Schwidefsky (sch...@de...).
*
* xchg wants to panic if the pointer is not aligned. To avoid multiplying
* the panic message over and over again, the panic is done in the helper
* functions __misaligned_u64, __misaligned_u32 and __misaligned_u16.
*/
#include <linux/module.h>
#include <linux/kernel.h>
void __misaligned_u16(void)
{
panic("misaligned (__u16 *) in __xchg\n");
}
void __misaligned_u32(void)
{
panic("misaligned (__u32 *) in __xchg\n");
}
void __misaligned_u64(void)
{
panic("misaligned (__u64 *) in __xchg\n");
}
EXPORT_SYMBOL(__misaligned_u16);
EXPORT_SYMBOL(__misaligned_u32);
EXPORT_SYMBOL(__misaligned_u64);
Index: Makefile
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/arch/s390x/lib/Makefile,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- Makefile 25 Feb 2001 23:15:23 -0000 1.1.1.1
+++ Makefile 9 Apr 2002 17:03:18 -0000 1.2
@@ -12,7 +12,8 @@
L_TARGET = lib.a
-obj-y = checksum.o delay.o memset.o strcmp.o strncpy.o uaccess.o
+obj-y = checksum.o delay.o memset.o misaligned.o strcmp.o strncpy.o uaccess.o
+export-objs += misaligned.o
include $(TOPDIR)/Rules.make
Index: delay.c
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/arch/s390x/lib/delay.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- delay.c 25 Feb 2001 23:15:23 -0000 1.1.1.1
+++ delay.c 9 Apr 2002 17:03:18 -0000 1.2
@@ -1,5 +1,5 @@
/*
- * arch/s390/kernel/delay.c
+ * arch/s390x/kernel/delay.c
* Precise Delay Loops for S390
*
* S390 version
|