71
Programming with NASM / Re: What exactly is the structure of an LDT entry?
« Last post by ben321 on February 17, 2023, 09:53:08 PM »In 3.4.5.1 it is clear that:Code: [Select]Execution cannot be transferred by a call or a jump to a less-privileged (numerically higher
privilege level) code segment, regardless of whether the target segment is a conforming or
nonconforming code segment. Attempting such an execution transfer will result in a general-
protection exception.[/quote]
That's strange. Ring0 code can't far-jump or far-call to a Ring3 code segment. So how does an OS run an application then? An OS is running at Ring0, and is responsible for starting applications. Yet applications run in Ring3.