diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-05-20 16:03:33 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-05-21 11:44:57 +0200 |
commit | edba90fb16ec7224da591ab8f83efe3673853a3f (patch) | |
tree | 61b37be2e6e96a2163878e2df98e1f638ce5590e /code16gcc.h | |
parent | d092feedb023a3d631a1cd549dd1d5c18d852ac7 (diff) | |
download | qboot-edba90fb16ec7224da591ab8f83efe3673853a3f.zip qboot-edba90fb16ec7224da591ab8f83efe3673853a3f.tar.gz qboot-edba90fb16ec7224da591ab8f83efe3673853a3f.tar.bz2 |
first commit
Based on x86/bios from lkvm
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'code16gcc.h')
-rw-r--r-- | code16gcc.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/code16gcc.h b/code16gcc.h new file mode 100644 index 0000000..a4feb62 --- /dev/null +++ b/code16gcc.h @@ -0,0 +1,14 @@ +/* + * code16gcc.h + * + * This file is -include'd when compiling 16-bit C code. + * Note: this asm() needs to be emitted before gcc emits any code. + * Depending on gcc version, this requires -fno-unit-at-a-time or + * -fno-toplevel-reorder. + * + * Hopefully gcc will eventually have a real -m16 option so we can + * drop this hack long term. + */ + + +asm(".code16gcc"); |