mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 19:34:56 +00:00
hw_x86_64: Prefix gdt labels with _mt
Streamline the naming by prepending the _mt prefix to the gdt labels.
This commit is contained in:
parent
69e820e4e3
commit
6f5ea78a51
@ -4,7 +4,7 @@
|
||||
#include <pseudo_descriptor.h>
|
||||
#include <mtc_util.h>
|
||||
|
||||
extern int _gdt_start;
|
||||
extern int _mt_gdt_start;
|
||||
|
||||
namespace Genode
|
||||
{
|
||||
@ -27,7 +27,7 @@ class Genode::Gdt
|
||||
static void load(addr_t const virt_base)
|
||||
{
|
||||
asm volatile ("lgdt %0" : : "m" (Pseudo_descriptor (0x37,
|
||||
_virt_mtc_addr(virt_base, (addr_t)&_gdt_start))));
|
||||
_virt_mtc_addr(virt_base, (addr_t)&_mt_gdt_start))));
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -55,7 +55,7 @@
|
||||
movl %eax, %cr0
|
||||
|
||||
/* Set up GDT */
|
||||
lgdt _gdt_ptr
|
||||
lgdt _mt_gdt_ptr
|
||||
|
||||
/* Indirect long jump to 64-bit code */
|
||||
ljmp $8, $_start64
|
||||
|
@ -268,14 +268,14 @@
|
||||
.align 4
|
||||
.space 2
|
||||
|
||||
.global _gdt_ptr
|
||||
.global _gdt_start
|
||||
_gdt_ptr:
|
||||
.word _gdt_end - _gdt_start - 1 /* limit */
|
||||
.long _gdt_start /* base address */
|
||||
.global _mt_gdt_ptr
|
||||
.global _mt_gdt_start
|
||||
_mt_gdt_ptr:
|
||||
.word _mt_gdt_end - _mt_gdt_start - 1 /* limit */
|
||||
.long _mt_gdt_start /* base address */
|
||||
|
||||
.align 8
|
||||
_gdt_start:
|
||||
_mt_gdt_start:
|
||||
/* Null descriptor */
|
||||
.quad 0
|
||||
/* 64-bit code segment descriptor */
|
||||
@ -300,7 +300,7 @@
|
||||
.long 0x8900
|
||||
.long 0
|
||||
.long 0
|
||||
_gdt_end:
|
||||
_mt_gdt_end:
|
||||
|
||||
/* end of the mode transition code */
|
||||
.global _mt_end
|
||||
|
Loading…
x
Reference in New Issue
Block a user