bios: Remove comapi calls related to the ADV

The only comapi calls left are the ones related to the ADV and to
shuffle and boot.  Remove the ADV-related ones as part of getting rid
of the comapi framework completely.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
bios: Remove shuffle and boot comapi call

Remove the shuffle and boot comapi call.  This is the last of the
comapi calls left; we should now be able to completely remove the
comapi support.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
comapi: Remove the comapi interfaces completely

Remove the last bits of the comapi interfaces completely.  This does
not install stub handlers for the INT 20-3Fh handlers, as we don't
support loading old COMBOOT/COM32/COM32R images anymore.

We could put those back if we really need them.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
lib.mk: Add biosboot.o

We need biosboot.o for shuffle and boot now.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
lua: import Lua 5.2.2

Source downloaded from http://www.lua.org/ftp/lua-5.2.2.tar.gz.
The com32/lua directory now matches exactly the source distribution,
plus the various Syslinux extension modules and their documentation.
lua: replace src/Makefile to build Lua as a Syslinux COM32 module

Start with the src/Makefile in Syslinux before importing Lua 5.2.2.
Refresh the core Lua object list based on the original Makefile.
Add the new builtin library objects.
Temporarily remove the Syslinux extension library objects, as they
need adjustments for the new API.
dev.h: get size_t definition
lua: the COM32 API does not provide signal.h
lua: explicitly put the console in standard mode
lua: the COM32 API does not provide locale.h
lua: use integer arithmetic
lua: the COM32 API does not provide strcoll()
lua: the COM32 API supports only part of iolib
stdlib.h: provide a stub definition for getenv()

Which always returns NULL, representing an empty environment.
lua: the COM32 API actually supports exit() of oslib
lua: the COM32 API does not support time()
lua: the COM32 API does not support freopen()

Nor the concept of text vs. binary open mode, so it does not matter.
sys/module.h: remove the #ifdef DYNAMIC_MODULE condition

This makes the module_* functions accessible to COM32 modules.
MODULE_INIT and MODULE_EXIT are not used anymore.
sys/module.h: fix some typos in function documentations
lua: enable dynamic module loading