• R
    x86: change static allocation of trampoline area · 3e1e9002
    Rafael J. Wysocki 提交于
    Impact: fix trampoline sizing bug, save space
    
    While debugging a suspend-to-RAM related issue it occured to me that
    if the trampoline code had grown past 4 KB, we would have been
    allocating too little memory for it, since the 4 KB size of the
    trampoline is hardcoded into arch/x86/kernel/e820.c .  Change that
    by making the kernel compute the trampoline size and allocate as much
    memory as necessary.
    Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    3e1e9002
e820.c 34.4 KB