> What's worse, reloading segments here might be highly unsafe, if the> memory previously occupied by the GDT has been overwritten. Keep in> mind the GDT is touched on a segment *load*, not on a segment *access*;> in areas such as booting that can be a huge difference.>

Yep, suits me. I'm happy for the code to assume that at least %cs and%ds are sane; I guess %ss too. We could copy %ds into %[efg]s if wewant to be sure (since I could imagine a bootloader leaving them in aless defined state).

But if the gdt could be missing altogether, then, yes, we should nottouch them at all.