OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [s390/] [lib/] [misaligned.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
2
 *  arch/s390/lib/misaligned.c
3
 *    S390 misalignment panic stubs
4
 *
5
 *  S390 version
6
 *    Copyright (C) 2001 IBM Deutschland Entwicklung GmbH, IBM Corporation
7
 *    Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com).
8
 *
9
 * xchg wants to panic if the pointer is not aligned. To avoid multiplying
10
 * the panic message over and over again, the panic is done in the helper
11
 * functions __misaligned_u32 and __misaligned_u16.
12
 */
13
 
14
#include <linux/module.h> 
15
#include <linux/kernel.h>
16
 
17
void __misaligned_u16(void)
18
{
19
        panic("misaligned (__u16 *) in __xchg\n");
20
}
21
 
22
void __misaligned_u32(void)
23
{
24
        panic("misaligned (__u32 *) in __xchg\n");
25
}
26
 
27
EXPORT_SYMBOL(__misaligned_u16);
28
EXPORT_SYMBOL(__misaligned_u32);
29
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.