Re: x86: asm doubt

From: Avi Kivity
Date: Mon Mar 16 2009 - 10:13:26 EST


Jeremy Fitzhardinge wrote:
In 32-bit mode, moving to a segment register can fault if the underlying GDT/LDT entry is invalid. In 64-bit mode, segment registers are mostly decorative and have no function, and moving arbitrary values into them doesn't fault, making the exception catching unnecessary.

64-bit mode will in fact fault if an access is made outside the GDT/LDT, or of the descriptor is invalid.


--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/