X86-64: Difference between revisions

41 bytes added ,  28 days ago
m
Fix lint errors
[unchecked revision][unchecked revision]
(Clarify instructions for enabling long mode)
m (Fix lint errors)
 
(4 intermediate revisions by 4 users not shown)
Line 20:
=== Further information ===
 
:''This feature overview is incomplete. Please see the [[http://en.wikipedia.org/wiki/X86-64 Wikipedia article on x86-64]] for more information.''
 
==Setting up==
Line 171:
 
If you have ever seen an error message like this:
<sourcesyntaxhighlight lang="bash">
relocation truncated to fit: R_X86_64_32 against symbol
</syntaxhighlight>
</source>
then your code hit this barrier. For Assembly, you must use the "movabs" instruction instead of "mov", and for gcc you need to select a different text segment model with the "-mcmodel" argument.
 
Line 214:
 
[[Category:X86 CPU]]
[[Category:X86-64]]
[[Category:Operating Modes]]