mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-11 18:26:41 +07:00
b2fb49bf2a
This patch fixes unaligned memory access for the 68000 core based cpu's. Some time ago, my cpu (68000) was raising address/bus error's when mounting cifs shares (didn't bother to debug it at the time). After developing the MMC/SD card driver I was having the same issue when mounting the vfat fs. I've traced the issue down to the 'unaligned.h' file. (I guess nobody has ever used unaligned.h back in the 68328 'era'. Signed-off-by: Luis Alves <ljalvs@gmail.com> Signed-off-by: Greg Ungerer <gerg@uclinux.org>
26 lines
582 B
C
26 lines
582 B
C
#ifndef _ASM_M68K_UNALIGNED_H
|
|
#define _ASM_M68K_UNALIGNED_H
|
|
|
|
|
|
#if defined(CONFIG_COLDFIRE) || defined(CONFIG_M68000)
|
|
#include <linux/unaligned/be_struct.h>
|
|
#include <linux/unaligned/le_byteshift.h>
|
|
#include <linux/unaligned/generic.h>
|
|
|
|
#define get_unaligned __get_unaligned_be
|
|
#define put_unaligned __put_unaligned_be
|
|
|
|
#else
|
|
/*
|
|
* The m68k can do unaligned accesses itself.
|
|
*/
|
|
#include <linux/unaligned/access_ok.h>
|
|
#include <linux/unaligned/generic.h>
|
|
|
|
#define get_unaligned __get_unaligned_be
|
|
#define put_unaligned __put_unaligned_be
|
|
|
|
#endif
|
|
|
|
#endif /* _ASM_M68K_UNALIGNED_H */
|