Segment override and lldt instruction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi! I have couple of questions regarding gnu assembly. I've heard the word
segment override. Where segment register can be manually overriden. so how can i
override say ds register? can segment register be overriden to my preferred
memory address location?

mov $0xf800, %ax
mov %ax, %es
mov %ds, %bx

But I get segmentation fault error. How can i do it without error?

Also I was looking at the function of lldt instruction. The manual says that:
"The source operand (a general-purpose register or a memory location)
contains a segment selector that points to a local descriptor table (LDT)."

How can one make segment selector point to ldt?

Thanks for your time.

_________________________________________________________________
New Windows Live Hotmail is here. Upgrade for free and get a better look. www.newhotmail.ca?icid=WLHMENCA150

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

[Index of Archives]     [Kernel Newbies]     [Security]     [Linux C Programming]     [Linux for Hams]     [DCCP]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux