简体   繁体   中英

What will happen if the GDT is changed as the program is executing?

What will happen if the GDT is changed as the program is executing? Is there any physical register or anything else that monitors whether the GDT is changed when executing program?

Nothing will change until something tries to fetch from the GDT. This could be a load to segment register, an interrupt, far call/return, etc..

Between these occasions the segment register's shadow part keeps the descriptor that was referenced by the selector last loaded into this register.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM