x86: Introduce set_desc_base() and set_desc_limit()
Rename set_base()/set_limit to set_desc_base()/set_desc_limit() and rewrite them in C. These are naturally introduced by the idea of get_desc_base()/get_desc_limit(). The conversion actually found the bug in apm_32.c: bad_bios_desc is written at run-time, but it is defined const variable. Signed-off-by:Akinobu Mita <akinobu.mita@gmail.com> LKML-Reference: <20090718151105.GC11294@localhost.localdomain> Signed-off-by:
Ingo Molnar <mingo@elte.hu>
Showing
- arch/x86/include/asm/desc.h 13 additions, 0 deletionsarch/x86/include/asm/desc.h
- arch/x86/include/asm/stackprotector.h 1 addition, 3 deletionsarch/x86/include/asm/stackprotector.h
- arch/x86/include/asm/system.h 0 additions, 27 deletionsarch/x86/include/asm/system.h
- arch/x86/kernel/apm_32.c 9 additions, 9 deletionsarch/x86/kernel/apm_32.c
- drivers/pnp/pnpbios/bioscalls.c 11 additions, 10 deletionsdrivers/pnp/pnpbios/bioscalls.c
Loading
Please register or sign in to comment