diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-07-12 09:12:32 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-07-12 09:12:32 -0400 |
commit | 96f6fcd2bd60230cffb09edbea88df3b92517f3a (patch) | |
tree | 3776dee6c824ae31f98184a85a60a355aec52bdb /src/farptr.h | |
parent | 523e5a995e1502deebd94efba44a1b5cb0007794 (diff) | |
download | seabios-96f6fcd2bd60230cffb09edbea88df3b92517f3a.tar.gz |
Add u64 cast to READ64_SEG() macro to fix vga compiling.
Cast is needed when pulling pointers or other non-int types.
Diffstat (limited to 'src/farptr.h')
-rw-r--r-- | src/farptr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/farptr.h b/src/farptr.h index 360b28ee..a270f87a 100644 --- a/src/farptr.h +++ b/src/farptr.h @@ -28,7 +28,7 @@ extern u16 __segment_FS, __segment_GS; union u64_u32_u *__r64_ptr = (union u64_u32_u *)&(var); \ READ32_SEG(SEG, __value.hi, __r64_ptr->hi); \ READ32_SEG(SEG, __value.lo, __r64_ptr->lo); \ - (value) = __value.val; \ + *(u64*)&(value) = __value.val; \ } while (0) #define WRITE8_SEG(SEG, var, value) \ __asm__("movb %b1, %%" #SEG ":%0" : "=m"(var) \ |