Require a "_cfuncXX_" symbol prefix for inter-mode c function references.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 5 Dec 2010 17:38:33 +0000 (12:38 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 5 Dec 2010 17:38:33 +0000 (12:38 -0500)
commitf3fe3aa7a0ccb881e659a4281d6f0a0bb5c33cc5
treea6066b1259b0ae5781ddfa994f46011dcadef4bc
parentd52fdf6a6d4d710a8de12ca153bcd2735290c743
Require a "_cfuncXX_" symbol prefix for inter-mode c function references.

The compiler can get confused when referencing a C function in a
different mode.  (It reasonably assumes that the C function in the
current mode is desired.)  To avoid this compiler confusion, introduce
symbol prefixes (_cfunc16_, _cfunc32flat_, _cfunc32seg_) that must be
used on C function symbols that are referenced from other compilation
modes.

This makes it less likely compiler confusion will occur.  It will also
makes it easier to implement and use vtable like operation structures.
src/pci.c
src/resume.c
src/romlayout.S
src/stacks.c
src/types.h
tools/layoutrom.py