x86_64 support for relocator

This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2010-01-12 23:30:52 +01:00
1 parent 11aadbadfb
commit 73f6ce4ab2
7 files changed
+38 -22

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@
#ifdef __x86_64__
#define RAX %rax
#define RSI %rdi
#define RSI %rsi
#else
#define RAX %eax
#define RSI %esi
@@ -93,7 +93,7 @@ LOCAL(cont1):
movl %esi, %eax
shrl $4, %eax
movw %ax, (LOCAL (segment) - LOCAL (base)) (RSI, 1)
movw %ax, (LOCAL (segment) - LOCAL (base)) (%esi, 1)
/* jump to a 16 bit segment */
ljmp $PSEUDO_REAL_CSEG, $(LOCAL (cont2) - LOCAL(base))