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 <pseudo_descriptor.h>
|
||||||
#include <mtc_util.h>
|
#include <mtc_util.h>
|
||||||
|
|
||||||
extern int _gdt_start;
|
extern int _mt_gdt_start;
|
||||||
|
|
||||||
namespace Genode
|
namespace Genode
|
||||||
{
|
{
|
||||||
|
@ -27,7 +27,7 @@ class Genode::Gdt
|
||||||
static void load(addr_t const virt_base)
|
static void load(addr_t const virt_base)
|
||||||
{
|
{
|
||||||
asm volatile ("lgdt %0" : : "m" (Pseudo_descriptor (0x37,
|
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
|
movl %eax, %cr0
|
||||||
|
|
||||||
/* Set up GDT */
|
/* Set up GDT */
|
||||||
lgdt _gdt_ptr
|
lgdt _mt_gdt_ptr
|
||||||
|
|
||||||
/* Indirect long jump to 64-bit code */
|
/* Indirect long jump to 64-bit code */
|
||||||
ljmp $8, $_start64
|
ljmp $8, $_start64
|
||||||
|
|
|
@ -268,14 +268,14 @@
|
||||||
.align 4
|
.align 4
|
||||||
.space 2
|
.space 2
|
||||||
|
|
||||||
.global _gdt_ptr
|
.global _mt_gdt_ptr
|
||||||
.global _gdt_start
|
.global _mt_gdt_start
|
||||||
_gdt_ptr:
|
_mt_gdt_ptr:
|
||||||
.word _gdt_end - _gdt_start - 1 /* limit */
|
.word _mt_gdt_end - _mt_gdt_start - 1 /* limit */
|
||||||
.long _gdt_start /* base address */
|
.long _mt_gdt_start /* base address */
|
||||||
|
|
||||||
.align 8
|
.align 8
|
||||||
_gdt_start:
|
_mt_gdt_start:
|
||||||
/* Null descriptor */
|
/* Null descriptor */
|
||||||
.quad 0
|
.quad 0
|
||||||
/* 64-bit code segment descriptor */
|
/* 64-bit code segment descriptor */
|
||||||
|
@ -300,7 +300,7 @@
|
||||||
.long 0x8900
|
.long 0x8900
|
||||||
.long 0
|
.long 0
|
||||||
.long 0
|
.long 0
|
||||||
_gdt_end:
|
_mt_gdt_end:
|
||||||
|
|
||||||
/* end of the mode transition code */
|
/* end of the mode transition code */
|
||||||
.global _mt_end
|
.global _mt_end
|
||||||
|
|
Loading…
Reference in New Issue