Skip to content
  • Rafael J. Wysocki's avatar
    x86: change static allocation of trampoline area · 3e1e9002
    Rafael J. Wysocki authored
    
    
    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: default avatarRafael J. Wysocki <rjw@sisk.pl>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    3e1e9002