On Wed, Apr 26, 2017 at 03:37:44PM -0700, Ricardo Neri wrote:
I need a human-readable way of identifying what segment selector (in pt_regs, vm86regs or directly reading the segment registers) to use. Since there is a segment override prefix for all of them, I thought I could use them.
Yes, you should...
Perhaps I can rename enum segment to enum segment_selector and comment that the values in the enum are those of the override prefixes. Would that be reasonable?
... but you should call them what they are: "enum seg_override_pfxs" or "enum seg_ovr_pfx" or...
Or somesuch. I suck at naming stuff.