android_kernel_xiaomi_sm8350/arch/i386/boot
H. Peter Anvin 5593eaa854 [x86 setup] Fix assembly constraints
Fix incorrect assembly constraints.  In particular, fix memory
constraints used inside push..pop, which can cause invalid operation
since gcc may generate %esp-relative references.

Additionally:

outl() should have "dN" not "dn".

query_mca() shouldn't listen 16/32-bit registers in an 8-bit only
context.

has_eflag(): the "mask" is only used well after both the stack pointer
and the output registers have been touched; this requires the output
registers to be earlyclobbers (=&) and the input to exclude memory (so
"ri", not "g").

Thanks to Etienne Lorrain and Chuck Ebbert for prompting this review.

Cc: Etienne Lorrain <etienne_lorrain@yahoo.fr>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2007-07-18 11:36:17 -07:00
..
compressed xen: suppress abs symbol warnings for unused reloc pointers 2007-07-18 08:47:45 -07:00
tools [x86 setup] build/tools.c: fix comment 2007-07-18 11:36:17 -07:00
.gitignore
a20.c A20 handling code 2007-07-12 10:55:55 -07:00
apm.c APM probing code 2007-07-12 10:55:55 -07:00
bitops.h Simple bitops for the new x86 setup code. 2007-07-12 10:55:54 -07:00
boot.h [x86 setup] Fix assembly constraints 2007-07-18 11:36:17 -07:00
cmdline.c Command-line parsing code for the new x86 setup code 2007-07-12 10:55:55 -07:00
code16gcc.h
copy.S String-handling functions for the new x86 setup code. 2007-07-12 10:55:55 -07:00
cpu.c CPU features verification for the new x86 setup code 2007-07-12 10:55:55 -07:00
cpucheck.c [x86 setup] Fix assembly constraints 2007-07-18 11:36:17 -07:00
edd.c EDD probing code for the new x86 setup code 2007-07-12 10:55:55 -07:00
header.S Assembly header and main routine for new x86 setup code 2007-07-12 10:55:55 -07:00
install.sh
main.c Assembly header and main routine for new x86 setup code 2007-07-12 10:55:55 -07:00
Makefile Use the new x86 setup code for i386 2007-07-12 10:55:55 -07:00
mca.c [x86 setup] Fix assembly constraints 2007-07-18 11:36:17 -07:00
memory.c Memory probing support for the new x86 setup code 2007-07-12 10:55:55 -07:00
mtools.conf.in
pm.c [x86 setup] Fix assembly constraints 2007-07-18 11:36:17 -07:00
pmjump.S Code for actual protected-mode entry 2007-07-12 10:55:55 -07:00
printf.c Console-writing code for the new x86 setup code 2007-07-12 10:55:55 -07:00
setup.ld Linker script for the new x86 setup code 2007-07-12 10:55:55 -07:00
string.c String-handling functions for the new x86 setup code. 2007-07-12 10:55:55 -07:00
tty.c Console-writing code for the new x86 setup code 2007-07-12 10:55:55 -07:00
version.c Version string for the new x86 setup code 2007-07-12 10:55:55 -07:00
vesa.h Video mode probing support for the new x86 setup code 2007-07-12 10:55:55 -07:00
video-bios.c Video mode probing support for the new x86 setup code 2007-07-12 10:55:55 -07:00
video-vesa.c Video mode probing support for the new x86 setup code 2007-07-12 10:55:55 -07:00
video-vga.c Video mode probing support for the new x86 setup code 2007-07-12 10:55:55 -07:00
video.c [x86 setup] Fix assembly constraints 2007-07-18 11:36:17 -07:00
video.h Video mode probing support for the new x86 setup code 2007-07-12 10:55:55 -07:00
voyager.c [x86 setup] Fix assembly constraints 2007-07-18 11:36:17 -07:00