[librm] Mark virt_offset, text16, data16, rm_cs, and rm_ds as constant
authorMichael Brown <mcb30@ipxe.org>
Sun, 21 Feb 2016 11:13:04 +0000 (11:13 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sun, 21 Feb 2016 11:13:04 +0000 (11:13 +0000)
commitb6ebafe1bba5fa841c71a03f1a264e6a17ed8584
tree0a5ec534011e7249debdfc929b33f2ffd81b072a
parent5fbfe50ccbbafe2f6bebd45e927bf7f9e23846dd
[librm] Mark virt_offset, text16, data16, rm_cs, and rm_ds as constant

The physical locations of .textdata, .text16 and .data16 are constant
from the point of view of C code.  Mark the relevant variables as
constant to allow gcc to optimise out redundant reads.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/include/librm.h