2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-17 01:34:00 +08:00
linux-next/include/asm-blackfin
Robin Getz 13fe24f37d [Blackfin] arch: fix bug - trap_tests fails to recover on some tests.
http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3719

When the CPLBs get a miss, we do:
  - find a victim in the HW table
  - remove the victim
  - find the replacement in the software table
  - put it into the HW table.

If we can't find a replacement in the software table, we accidently
leave a duplicate in the HW table. This patch ensures that duplicate
is marked as not valid.

What we should do is find the replacement in the software table, before
we find a victim in the HW table - but its too late in the release cycle
to do that much restructuring of this code.

Rather that duplicate code, connect Hardware Errors (irq5) into trap_c,
so user space processes get killed properly.

The rest of irq_panic() can be moved into traps.c (later)

There is still a small corner case that causes problems when a
pheriperal interrupt goes off a single cycle before a user space
hardware error. This causes a kernel panic, rather than the user
space process being killed.

But, this checkin makes things work in 99.9% of the cases, and is a vast
improvement from what is there today (which fails 100% of the time).

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
2008-01-27 15:38:56 +08:00
..
mach-bf527 Blackfin arch: cplb and map header file cleanup 2007-11-21 16:12:12 +08:00
mach-bf533 spi: bfin spi uses portmux calls 2007-12-05 09:21:19 -08:00
mach-bf537 Blackfin arch: cplb and map header file cleanup 2007-11-21 16:12:12 +08:00
mach-bf548 spi: initial BF54x SPI support 2007-12-05 09:21:19 -08:00
mach-bf561 Blackfin arch: cplb and map header file cleanup 2007-11-21 16:12:12 +08:00
mach-common Blackfin arch: More explicitly describe what the instructions do in inline assembly. 2007-11-18 00:00:10 +08:00
a.out.h blackfin architecture 2007-05-07 12:12:58 -07:00
atomic.h blackfin architecture 2007-05-07 12:12:58 -07:00
auxvec.h blackfin architecture 2007-05-07 12:12:58 -07:00
bfin5xx_spi.h Blackfin SPI driver: move hard coded pin_req to board file 2007-12-05 09:21:20 -08:00
bfin_simple_timer.h blackfin architecture 2007-05-07 12:12:58 -07:00
bfin_sport.h blackfin architecture 2007-05-07 12:12:58 -07:00
bfin-global.h Blackfin arch: split apart dump_bfin_regs and merge/remove show_regs from process.c, which was largely duplicated 2007-11-21 16:46:49 +08:00
bitops.h forbid asm/bitops.h direct inclusion 2007-10-19 11:53:41 -07:00
blackfin.h Blackfin arch: Fix Anomaly hanlding, as pointed out by Mike 2007-08-03 17:56:29 +08:00
bug.h blackfin architecture 2007-05-07 12:12:58 -07:00
bugs.h blackfin architecture 2007-05-07 12:12:58 -07:00
byteorder.h blackfin architecture 2007-05-07 12:12:58 -07:00
cache.h blackfin architecture 2007-05-07 12:12:58 -07:00
cacheflush.h Blackfin arch: to do some consolidation of common code and common name spaces 2007-10-10 23:55:26 +08:00
checksum.h blackfin architecture 2007-05-07 12:12:58 -07:00
cplb.h Blackfin arch: Fix bug missing L2_MEMORY definition for EZKIT-BF561 compiling error 2007-09-13 11:49:33 +08:00
cplbinit.h Blackfin arch: cleanup the cplb declares 2007-11-21 15:55:45 +08:00
cpumask.h blackfin architecture 2007-05-07 12:12:58 -07:00
cputime.h blackfin architecture 2007-05-07 12:12:58 -07:00
current.h blackfin architecture 2007-05-07 12:12:58 -07:00
delay.h Blackfin arch: add support for working around anomaly 05000312 2007-11-21 16:08:58 +08:00
device.h blackfin architecture 2007-05-07 12:12:58 -07:00
div64.h blackfin architecture 2007-05-07 12:12:58 -07:00
dma-mapping.h Blackfin arch: Add definition of dma_mapping_error 2007-06-21 11:34:16 +08:00
dma.h Blackfin arch: dma add some API and cleanup bf54x DMA definition 2007-10-22 00:02:14 +08:00
dpmc.h blackfin architecture 2007-05-07 12:12:58 -07:00
early_printk.h Blackfin arch: Initial patch to add earlyprintk support 2007-10-09 17:24:49 +08:00
elf.h blackfin architecture 2007-05-07 12:12:58 -07:00
emergency-restart.h blackfin architecture 2007-05-07 12:12:58 -07:00
entry.h blackfin architecture 2007-05-07 12:12:58 -07:00
errno.h blackfin architecture 2007-05-07 12:12:58 -07:00
fb.h fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
fcntl.h blackfin architecture 2007-05-07 12:12:58 -07:00
fixed_code.h Blackfin arch: ensure that speculative loads of bad pointers don't cause us to do bad things. 2007-10-29 18:23:28 +08:00
flat.h blackfin architecture 2007-05-07 12:12:58 -07:00
futex.h blackfin architecture 2007-05-07 12:12:58 -07:00
gpio.h Blackfin arch: add new processor ADSP-BF52x arch/mach support 2007-10-21 16:54:27 +08:00
gptimers.h Blackfin arch: add support for checking/clearing overruns in generic purpose Timer API 2007-10-29 18:02:09 +08:00
hardirq.h Blackfin arch: Enable BF54x PIN/GPIO interrupts 2007-07-12 16:17:18 +08:00
hw_irq.h blackfin architecture 2007-05-07 12:12:58 -07:00
ide.h ide: add CONFIG_IDE_ARCH_OBSOLETE_INIT 2007-10-20 00:32:32 +02:00
io.h Blackfin arch: Add assembly function insl_16 2007-11-17 23:46:58 +08:00
ioctl.h blackfin architecture 2007-05-07 12:12:58 -07:00
ioctls.h blackfin enable arbitary speed serial setting 2007-08-05 19:16:05 +08:00
ipcbuf.h blackfin architecture 2007-05-07 12:12:58 -07:00
irq_handler.h Blackfin arch: Print out debug info, as early as possible 2007-10-09 17:31:46 +08:00
irq_regs.h blackfin architecture 2007-05-07 12:12:58 -07:00
irq.h blackfin architecture 2007-05-07 12:12:58 -07:00
Kbuild Blackfin arch: defines and provides entry points for certain user space functions at fixed addresses 2007-06-21 11:34:16 +08:00
kdebug.h blackfin architecture 2007-05-07 12:12:58 -07:00
kgdb.h Blackfin arch: update kgdb patch 2007-10-10 16:47:58 +08:00
kmap_types.h blackfin architecture 2007-05-07 12:12:58 -07:00
l1layout.h blackfin architecture 2007-05-07 12:12:58 -07:00
linkage.h blackfin architecture 2007-05-07 12:12:58 -07:00
local.h blackfin architecture 2007-05-07 12:12:58 -07:00
mem_map.h blackfin architecture 2007-05-07 12:12:58 -07:00
mman.h Blackfin arch: clean up some coding style issues 2007-07-12 17:26:31 +08:00
mmu_context.h blackfin architecture 2007-05-07 12:12:58 -07:00
mmu.h blackfin architecture 2007-05-07 12:12:58 -07:00
module.h blackfin architecture 2007-05-07 12:12:58 -07:00
msgbuf.h blackfin architecture 2007-05-07 12:12:58 -07:00
mutex.h blackfin architecture 2007-05-07 12:12:58 -07:00
namei.h blackfin architecture 2007-05-07 12:12:58 -07:00
nand.h [MTD] [NAND] Blackfin on-chip NAND Flash Controller driver 2007-10-13 14:36:49 +01:00
page_offset.h Blackfin arch: punt CONFIG_BFIN -- we already have CONFIG_BLACKFIN 2007-11-23 14:28:44 +08:00
page.h Blackfin arch: use PAGE_SIZE when doing aligns rather than hardcoded values 2007-07-12 12:20:20 +08:00
param.h blackfin architecture 2007-05-07 12:12:58 -07:00
pci.h blackfin architecture 2007-05-07 12:12:58 -07:00
percpu.h blackfin architecture 2007-05-07 12:12:58 -07:00
pgalloc.h blackfin architecture 2007-05-07 12:12:58 -07:00
pgtable.h Blackfin arch: to do some consolidation of common code and common name spaces 2007-10-10 23:55:26 +08:00
poll.h blackfin architecture 2007-05-07 12:12:58 -07:00
portmux.h Blackfin arch: gpio pinmux and resource allocation API required by BF537 on chip ethernet mac driver 2007-10-04 00:35:05 +08:00
posix_types.h blackfin architecture 2007-05-07 12:12:58 -07:00
processor.h Replace __attribute_pure__ with __pure 2007-10-18 14:37:32 -07:00
ptrace.h blackfin architecture 2007-05-07 12:12:58 -07:00
reboot.h Blackfin arch: Workaround reboot bug, issue SSYNC at the start of bfin_reset 2007-10-11 00:29:49 +08:00
resource.h blackfin architecture 2007-05-07 12:12:58 -07:00
scatterlist.h blackfin: remove sg_address() 2007-10-23 12:42:44 +02:00
sections.h blackfin architecture 2007-05-07 12:12:58 -07:00
segment.h blackfin architecture 2007-05-07 12:12:58 -07:00
semaphore-helper.h blackfin architecture 2007-05-07 12:12:58 -07:00
semaphore.h kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
sembuf.h blackfin architecture 2007-05-07 12:12:58 -07:00
setup.h blackfin architecture 2007-05-07 12:12:58 -07:00
shmbuf.h blackfin architecture 2007-05-07 12:12:58 -07:00
shmparam.h blackfin architecture 2007-05-07 12:12:58 -07:00
sigcontext.h blackfin architecture 2007-05-07 12:12:58 -07:00
siginfo.h blackfin architecture 2007-05-07 12:12:58 -07:00
signal.h blackfin architecture 2007-05-07 12:12:58 -07:00
socket.h blackfin architecture 2007-05-07 12:12:58 -07:00
sockios.h blackfin architecture 2007-05-07 12:12:58 -07:00
spinlock.h blackfin architecture 2007-05-07 12:12:58 -07:00
stat.h blackfin architecture 2007-05-07 12:12:58 -07:00
statfs.h blackfin architecture 2007-05-07 12:12:58 -07:00
string.h Blackfin arch: move EXPORT_SYMBOL() to C files where the symbol is actually defined 2007-11-21 15:34:51 +08:00
system.h include/asm-*/system.h: remove unused set_rmb(), set_wmb() macros 2007-10-20 02:30:47 +02:00
termbits.h blackfin enable arbitary speed serial setting 2007-08-05 19:16:05 +08:00
termios.h blackfin enable arbitary speed serial setting 2007-08-05 19:16:05 +08:00
thread_info.h remove unused TIF_NOTIFY_RESUME flag 2007-07-31 15:39:38 -07:00
timex.h blackfin architecture 2007-05-07 12:12:58 -07:00
tlb.h blackfin architecture 2007-05-07 12:12:58 -07:00
tlbflush.h remove unused flush_tlb_pgtables 2007-10-19 11:53:34 -07:00
topology.h blackfin architecture 2007-05-07 12:12:58 -07:00
trace.h Blackfin arch: Add ability to expend the hardware trace buffer 2007-07-25 11:03:28 +08:00
traps.h [Blackfin] arch: fix bug - trap_tests fails to recover on some tests. 2008-01-27 15:38:56 +08:00
types.h remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
uaccess.h Blackfin arch: Change NO_ACCESS_CHECK to ACCESS_CHECK 2007-05-21 09:50:23 -07:00
ucontext.h blackfin architecture 2007-05-07 12:12:58 -07:00
unaligned.h blackfin architecture 2007-05-07 12:12:58 -07:00
unistd.h Blackfin arch: add some missing syscall 2007-09-23 00:51:32 +08:00
user.h blackfin architecture 2007-05-07 12:12:58 -07:00