/openbmc/linux/Documentation/core-api/ |
H A D | unaligned-memory-access.rst | 2 Unaligned Memory Accesses 15 unaligned accesses, why you need to write code that doesn't cause them, 19 The definition of an unaligned access 22 Unaligned memory accesses occur when you try to read N bytes of data starting 25 reading 4 bytes of data from address 0x10005 would be an unaligned memory 52 Why unaligned access is bad 55 The effects of performing an unaligned memory access vary from architecture 59 - Some architectures are able to perform unaligned memory accesses 61 - Some architectures raise processor exceptions when unaligned accesses 62 happen. The exception handler is able to correct the unaligned access, [all …]
|
/openbmc/u-boot/doc/ |
H A D | README.unaligned-memory-access.txt | 4 UNALIGNED MEMORY ACCESSES 9 unaligned accesses, why you need to write code that doesn't cause them, 13 The definition of an unaligned access 16 Unaligned memory accesses occur when you try to read N bytes of data starting 19 reading 4 bytes of data from address 0x10005 would be an unaligned memory 46 Why unaligned access is bad 49 The effects of performing an unaligned memory access vary from architecture 53 - Some architectures are able to perform unaligned memory accesses 55 - Some architectures raise processor exceptions when unaligned accesses 56 happen. The exception handler is able to correct the unaligned access, [all …]
|
/openbmc/qemu/tests/tcg/s390x/ |
H A D | pgm-specification.mak | 6 cgrl-unaligned \ 7 clrl-unaligned \ 8 crl-unaligned \ 10 lgrl-unaligned \ 11 llgfrl-unaligned \ 12 lpswe-unaligned \ 13 lrl-unaligned \ 14 stgrl-unaligned \ 15 strl-unaligned
|
/openbmc/u-boot/lib/efi_selftest/ |
H A D | efi_selftest_unaligned.c | 7 * Test unaligned memory access on ARMv7. 18 * If the address is not four byte aligned, an unaligned memory access 38 * An unaligned memory access is executed. The result is checked. 50 /* Read an unaligned address */ in execute() 55 efi_st_error("Unaligned access failed"); in execute() 62 EFI_UNIT_TEST(unaligned) = { 63 .name = "unaligned memory access",
|
/openbmc/u-boot/arch/sh/include/asm/ |
H A D | unaligned.h | 7 /* SH-4A can handle unaligned loads in a relatively neutered fashion. */ 8 #include <asm/unaligned-sh4a.h> 10 /* Otherwise, SH can't handle unaligned accesses. */ 20 #include <linux/unaligned/le_byteshift.h> 21 #include <linux/unaligned/be_byteshift.h> 22 #include <linux/unaligned/generic.h>
|
/openbmc/linux/Documentation/arch/arm/ |
H A D | mem_alignment.rst | 14 unaligned memory access in general. If those access are predictable, you 15 are better to use the macros provided by include/asm/unaligned.h. The 20 trap to SIGBUS any code performing unaligned access (good for debugging bad 27 real bad - it changes the behaviour of all unaligned instructions in user 36 0 A user process performing an unaligned memory access 42 performing the unaligned access. This is of course 47 performing the unaligned access. 59 information on unaligned access occurrences plus the current mode of
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 060.out | 124 === Testing unaligned L1 entry === 129 qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruptio… 134 qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruptio… 137 === Testing unaligned L2 entry === 142 qcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L… 145 === Testing unaligned pre-allocated zero cluster === 150 qcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L… 153 === Testing unaligned reftable entry === 156 qcow2: Marking image as corrupt: Refblock offset 0x22a00 unaligned (reftable index: 0); further cor… 164 qcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events… [all …]
|
H A D | 241 | 4 # Test qemu-nbd vs. unaligned images 48 # This tests that we can deal with the hole at the end of an unaligned 56 echo "=== Exporting unaligned raw image, natural alignment ===" 67 echo "=== Exporting unaligned raw image, forced server sector alignment ===" 81 echo "=== Exporting unaligned raw image, forced client sector alignment ===" 93 # not access beyond the end of a server's advertised unaligned size:
|
/openbmc/u-boot/include/asm-generic/ |
H A D | unaligned.h | 6 #include <linux/unaligned/le_byteshift.h> 7 #include <linux/unaligned/be_byteshift.h> 8 #include <linux/unaligned/generic.h> 23 /* Allow unaligned memory access */
|
/openbmc/u-boot/include/mtd/ |
H A D | cfi_flash.h | 117 * are unaligned and must be accessed with explicit unaligned access macros. 121 u16 p_id; /* unaligned */ 122 u16 p_adr; /* unaligned */ 123 u16 a_id; /* unaligned */ 124 u16 a_adr; /* unaligned */ 141 u32 erase_region_info[NUM_ERASE_REGIONS]; /* unaligned */
|
/openbmc/linux/tools/perf/pmu-events/arch/arm64/arm/neoverse-n1/ |
H A D | spec_operation.json | 16 …"PublicDescription": "Counts unaligned memory read operations issued by the CPU. This event counts… 20 …"PublicDescription": "Counts unaligned memory write operations issued by the CPU. This event count… 24 …"PublicDescription": "Counts unaligned memory operations issued by the CPU. This event counts unal…
|
/openbmc/linux/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/ |
H A D | spec_operation.json | 20 …"PublicDescription": "Counts unaligned memory read operations issued by the CPU. This event counts… 24 …"PublicDescription": "Counts unaligned memory write operations issued by the CPU. This event count… 28 …"PublicDescription": "Counts unaligned memory operations issued by the CPU. This event counts unal…
|
/openbmc/qemu/hw/usb/ |
H A D | chipidea.c | 41 * unaligned access. This might not be a limitation on the 43 * to access this device unaligned. 47 .unaligned = false, 82 * unaligned access. This might not be a limitation on the real 84 * this device unaligned. 88 .unaligned = false,
|
/openbmc/u-boot/arch/m68k/include/asm/ |
H A D | unaligned.h | 5 #include <linux/unaligned/be_byteshift.h> 7 #include <linux/unaligned/access_ok.h> 10 #include <linux/unaligned/generic.h>
|
/openbmc/u-boot/arch/powerpc/include/asm/ |
H A D | unaligned.h | 7 * The PowerPC can do unaligned accesses itself in big endian mode. 9 #include <linux/unaligned/access_ok.h> 10 #include <linux/unaligned/generic.h>
|
/openbmc/u-boot/arch/arm/include/asm/ |
H A D | unaligned.h | 4 #include <linux/unaligned/le_byteshift.h> 5 #include <linux/unaligned/be_byteshift.h> 6 #include <linux/unaligned/generic.h>
|
/openbmc/u-boot/arch/arm/cpu/armv7/ |
H A D | config.mk | 6 # On supported platforms we set the bit which causes us to trap on unaligned 8 # the default so we must pass in -mno-unaligned-access so that it is aware 10 PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
|
/openbmc/linux/include/rdma/ |
H A D | ib_hdrs.h | 10 #include <asm/unaligned.h> 49 __be64 vaddr; /* potentially unaligned */ 55 __be64 vaddr; /* potentially unaligned */ 57 __be64 swap_data; /* potentially unaligned */ 58 __be64 compare_data; /* potentially unaligned */ 74 __be64 atomic_ack_eth; /* potentially unaligned */ 108 /* accessors for unaligned __be64 items */
|
/openbmc/u-boot/arch/mips/include/asm/ |
H A D | unaligned.h | 19 #include <linux/unaligned/le_byteshift.h> 20 #include <linux/unaligned/be_byteshift.h> 21 #include <linux/unaligned/generic.h>
|
/openbmc/linux/arch/hexagon/lib/ |
H A D | io.c | 24 panic("unaligned pointer to readsw"); in __raw_readsw() 44 panic("unaligned pointer to writesw"); in __raw_writesw() 60 panic("unaligned pointer to readsl"); in __raw_readsl() 75 panic("unaligned pointer to writesl"); in __raw_writesl()
|
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace-hwbreak.c | 46 __u8 b[B_LEN]; /* double word unaligned */ 175 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, WO test */ in test_workload() 178 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, RO test */ in test_workload() 181 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, RW test */ in test_workload() 187 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, DAR OUTSIDE, RW test */ in test_workload() 202 /* PPC_PTRACE_SETHWDEBUG 2, MODE_RANGE, DW UNALIGNED, RO test */ in test_workload() 438 char *name2 = "PPC_PTRACE_SETHWDEBUG 2, MODE_RANGE, DW UNALIGNED"; in test_multi_sethwdebug_range() 452 /* PPC_PTRACE_SETHWDEBUG 2, MODE_RANGE, DW UNALIGNED, RO test */ in test_multi_sethwdebug_range() 500 char *name = "PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED"; in test_sethwdebug_range_unaligned() 504 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, WO test */ in test_sethwdebug_range_unaligned() [all …]
|
/openbmc/linux/net/xdp/ |
H A D | xsk_buff_pool.c | 58 bool unaligned = umem->flags & XDP_UMEM_UNALIGNED_CHUNK_FLAG; in xp_create_and_assign_umem() local 63 entries = unaligned ? umem->chunks : 0; in xp_create_and_assign_umem() 83 pool->unaligned = unaligned; in xp_create_and_assign_umem() 104 if (pool->unaligned) in xp_create_and_assign_umem() 396 if (!pool->unaligned) { in xp_init_dma_info() 453 if (pool->unaligned) in xp_dma_map() 503 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in __xp_alloc() 513 if (pool->unaligned) { in __xp_alloc() 572 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in xp_alloc_new_from_fq() 580 if (pool->unaligned) { in xp_alloc_new_from_fq() [all …]
|
/openbmc/u-boot/include/ |
H A D | bouncebuf.h | 15 * The source buffer is copied into the bounce buffer (if unaligned, otherwise 25 * copied into the destination buffer (if unaligned, otherwise destination 31 * The source buffer is copied into the bounce buffer (if unaligned, otherwise 34 * into the destination buffer (if unaligned, otherwise destination buffer is
|
/openbmc/linux/tools/usb/ |
H A D | hcd-tests.sh | 117 echo "test 21: control writes, unaligned" 132 echo "test 17: $COUNT transfers, unaligned DMA map by core" 135 echo "test 19: $COUNT transfers, unaligned DMA map by usb_alloc_coherent" 193 echo "test 18: $COUNT transfers, unaligned DMA map by core" 196 echo "test 20: $COUNT transfers, unaligned DMA map by usb_alloc_coherent" 228 echo "test 23: $COUNT transfers, unaligned"
|
/openbmc/linux/arch/mips/kernel/ |
H A D | unaligned.c | 2 * Handle unaligned accesses by emulation. 17 * Putting data to unaligned addresses is a bad practice even on Intel where 92 #include <asm/unaligned-emul.h> 339 * would blow up, so for now we don't handle unaligned 64-bit in emulate_load_store_insn() 362 * would blow up, so for now we don't handle unaligned 64-bit in emulate_load_store_insn() 417 * would blow up, so for now we don't handle unaligned 64-bit in emulate_load_store_insn() 443 die_if_kernel("Unaligned FP access in kernel code", regs); in emulate_load_store_insn() 591 die_if_kernel("Unhandled kernel unaligned access", regs); in emulate_load_store_insn() 597 die_if_kernel("Unhandled kernel unaligned access", regs); in emulate_load_store_insn() 604 ("Unhandled kernel unaligned access or invalid instruction", regs); in emulate_load_store_insn() [all …]
|