2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00
linux-next/arch/sh/include
Matt Fleming fb3f3e7fc6 sh: unwinder: Fix memory leak and create our own kmem cache
Plug a memory leak in dwarf_unwinder_dump() where we didn't free the
memory that we had previously allocated for the DWARF frames and DWARF
registers.

Now is also a opportune time to implement our own mempool and kmem
cache. It's a good idea to have a certain number of frame and register
objects in reserve at all times, so that we are guaranteed to have our
allocation satisfied even when memory is scarce. Since we have pools to
allocate from we can implement the registers for each frame as a linked
list as opposed to a sparsely populated array. Whilst it's true that the
lookup time for a linked list is larger than for arrays, there's only
usually a maximum of 8 registers per frame. So the overhead isn't that
much of a concern.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
2009-08-21 13:02:43 +01:00
..
asm sh: unwinder: Fix memory leak and create our own kmem cache 2009-08-21 13:02:43 +01:00
cpu-common/cpu sh: Allow SH-3 and SH-5 to use common headers. 2008-07-29 22:52:49 +09:00
cpu-sh2/cpu SH2(A) cache update 2008-08-04 16:33:47 +09:00
cpu-sh2a/cpu sh: Fix UBC setup and registers for SH2A 2009-05-09 00:09:21 +09:00
cpu-sh3/cpu sh: remove old TMU driver 2009-05-12 19:53:14 +09:00
cpu-sh4/cpu sh: Add SH7724 DMAC support. 2009-08-04 14:41:49 +09:00
cpu-sh5/cpu sh: Kill off unused SH-5 irq_describe cruft. 2009-05-07 18:17:20 +09:00
mach-common/mach sh: clean up Migo-R header file 2009-08-07 03:59:24 +09:00
mach-dreamcast/mach sh: pci: Tidy up the dreamcast PCI support. 2009-04-20 20:22:05 +09:00
mach-kfr2r09/mach sh: fix romImage mach dir usage 2009-08-07 03:58:38 +09:00
mach-landisk/mach sh: migrate to arch/sh/include/ 2008-07-29 08:09:44 +09:00
mach-migor/mach sh: clean up Migo-R header file 2009-08-07 03:59:24 +09:00
mach-se/mach sh: ms7724se: Add sh_eth support 2009-06-26 16:24:02 +09:00
mach-sh03/mach sh: migrate to arch/sh/include/ 2008-07-29 08:09:44 +09:00