Skip to content
Snippets Groups Projects
Select Git revision
  • 04759194dc447ff0b9ef35bc641ce3bb076c2930
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

asm-bug.h

  • Mark Rutland's avatar
    db44e9c5
    arm64: Add ASM_BUG() · db44e9c5
    Mark Rutland authored
    
    Currently. we can only use BUG() from C code, though there are
    situations where we would like an equivalent mechanism in assembly code.
    
    This patch refactors our BUG() definition such that it can be used in
    either C or assembly, in the form of a new ASM_BUG().
    
    The refactoring requires the removal of escape sequences, such as '\n'
    and '\t', but these aren't strictly necessary as we can use ';' to
    terminate assembler statements.
    
    The low-level assembly is factored out into <asm/asm-bug.h>, with
    <asm/bug.h> retained as the C wrapper.
    
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Dave Martin <dave.martin@arm.com>
    Cc: James Morse <james.morse@arm.com>
    Cc: Will Deacon <will.deacon@arm.com>
    db44e9c5
    History
    arm64: Add ASM_BUG()
    Mark Rutland authored
    
    Currently. we can only use BUG() from C code, though there are
    situations where we would like an equivalent mechanism in assembly code.
    
    This patch refactors our BUG() definition such that it can be used in
    either C or assembly, in the form of a new ASM_BUG().
    
    The refactoring requires the removal of escape sequences, such as '\n'
    and '\t', but these aren't strictly necessary as we can use ';' to
    terminate assembler statements.
    
    The low-level assembly is factored out into <asm/asm-bug.h>, with
    <asm/bug.h> retained as the C wrapper.
    
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Dave Martin <dave.martin@arm.com>
    Cc: James Morse <james.morse@arm.com>
    Cc: Will Deacon <will.deacon@arm.com>