summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
authorMichael Brown2016-12-06 08:36:33 +0100
committerMichael Brown2016-12-06 08:44:10 +0100
commitce81601181f741e0ab63a77405d2eddec98576e9 (patch)
tree4be6fa57eeaf9d72b997be4d83a5acc4aa840e28 /src/arch
parent[undi] Clean up driver and device name information (diff)
downloadipxe-ce81601181f741e0ab63a77405d2eddec98576e9.tar.gz
ipxe-ce81601181f741e0ab63a77405d2eddec98576e9.tar.xz
ipxe-ce81601181f741e0ab63a77405d2eddec98576e9.zip
[prefix] Remove impossible progress message
The "progress" macro can be used only from within the .prefix section. At the point of calling relocate(), we are running in .text16 and so the near call to print_message() will end up calling a random function somewhere in .text16. Interestingly, this problem has remained unnoticed for some time. It is rare to build with DEBUG=libprefix. In the few cases that it has been used during development, the randomly selected function in .text16 seems to have been a harmless no-op with no visible side-effects (beyond the unnoticed failure to print the "relocate" progress message). Fix by removing the futile attempt to print a progress message before calling relocate(). Reported-by: Raed Salem <raeds@mellanox.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/prefix/libprefix.S1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/arch/x86/prefix/libprefix.S b/src/arch/x86/prefix/libprefix.S
index 533be981..7c678fa8 100644
--- a/src/arch/x86/prefix/libprefix.S
+++ b/src/arch/x86/prefix/libprefix.S
@@ -873,7 +873,6 @@ install_prealloc:
* relocate() will return with %esi, %edi and %ecx set up
* ready for the copy to the new location.
*/
- progress " relocate\n"
virtcall relocate
/* Jump back to .prefix segment */