/* * Copyright 2016, Chris Smart, IBM Corporation. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. * * Calls to copy_first which are not 128-byte aligned should be * caught and sent a SIGBUS. * */ #include #include #include "utils.h" #include "instructions.h" #include "copy_paste_unaligned_common.h" unsigned int expected_instruction = PPC_INST_COPY_FIRST; unsigned int instruction_mask = 0xfc2007fe; int test_copy_first_unaligned(void) { /* Only run this test on a P9 or later */ SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_00)); /* Register our signal handler with SIGBUS */ setup_signal_handler(); /* +1 makes buf unaligned */ copy_first(cacheline_buf+1); /* We should not get here */ return 1; } int main(int argc, char *argv[]) { return test_harness(test_copy_first_unaligned, "test_copy_first_unaligned"); } 'emaclite-cleanup'>emaclite-cleanup net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-12-20 15:22:01 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-20 15:22:01 -0800
commitf95adbc1f7cef521d1d6b9146691d5971a660614 (patch)
tree7c1941b2a25de7053e0d0f461c581ce12315007f /drivers/usb/host/ehci-sh.c
parent74f65bbf46da4f32ddeab221e2de6d6e15f806bd (diff)
parentdb4d22c07e3e652eeec82abcc1399e6305edd838 (diff)
Merge branch 'mailbox-for-next' of git://git.linaro.org/landing-teams/working/fujitsu/integration
Pull mailbox updates from Jassi Brar: - new features (poll and SRAM usage) added to the mailbox-test driver - major update of Broadcom's PDC controller driver - minor fix for auto-loading test and STI driver modules * 'mailbox-for-next' of git://git.linaro.org/landing-teams/working/fujitsu/integration: mailbox: mailbox-test: allow reserved areas in SRAM mailbox: mailbox-test: add support for fasync/poll mailbox: bcm-pdc: Remove unnecessary void* casts mailbox: bcm-pdc: Simplify interrupt handler logic mailbox: bcm-pdc: Performance improvements mailbox: bcm-pdc: Don't use iowrite32 to write DMA descriptors mailbox: bcm-pdc: Convert from threaded IRQ to tasklet mailbox: bcm-pdc: Try to improve branch prediction mailbox: bcm-pdc: streamline rx code mailbox: bcm-pdc: Convert from interrupts to poll for tx done mailbox: bcm-pdc: PDC driver leaves debugfs files after removal mailbox: bcm-pdc: Changes so mbox client can be removed / re-inserted mailbox: bcm-pdc: Use octal permissions rather than symbolic mailbox: sti: Fix module autoload for OF registration mailbox: mailbox-test: Fix module autoload
Diffstat (limited to 'drivers/usb/host/ehci-sh.c')