summaryrefslogtreecommitdiff
path: root/core/plaincon.c
Commit message (Collapse)AuthorAgeFilesLines
* com32sys_t inreg shall be zeroified prior intcallErwan Velu2014-01-221-0/+2
| | | | | | | | | | | As per commit f775e740a3a817a4ff5ba26bea99dbfd735456b3, inreg parameters of intcall() shall be zeroified. Having unclean inreg could trigger bad behaviors on some hosts. This patch is about adding memset() calls prior any intcall() : - some intcall didn't had any memset at all - some successive intcall() calls didn't memset inreg in between calls
* video.h: we need one syslinux_force_text_mode() prototypeMatt Fleming2013-07-261-0/+1
| | | | | | | | | Use the one from syslinux/video.h. This makes it easier to write unit tests for syslinux/load_linux.c without pulling in loads of core definitions from core/include/graphics.h. It can also be argued that syslinux_* symbols should have prototypes in syslinux/*.h files. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* Symbol export whitelistMatt Fleming2012-12-051-1/+1
| | | | | | | | | | | | | | | | Before modules were dynamically loaded the boundary between GPL and non-GPL code was implicit because of the separate link domains for each module. With dynamic modules we need an explicit whitelist of core symbols that non-GPL code can link against at runtime without needing to be re-licensed under the GPL. Mark such symbols with __export, so that it is explicitly clear which symbols in the core can be linked against by non-GPL code. Reduce the visibility of symbols in both the core and ldlinux.c32 with -fvisibility=hidden. __export changes the visibility to 'default'. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* graphics: make use of syslinux_force_text_mode()Paulo Alcantara2012-05-191-5/+7
| | | | | | | | | | | | | | | | | The syslinux_force_text_mode() function used in library space made unnecessary INT 0x22 call that could be simply used with vgaclearmode() function. This patche renames vgaclearmode() to syslinux_force_text_mode() as this naming is generally more carefully considered and gets rid of "forcetext.c" source file. Also all the VGA-related functions and variables that were exported in core/include/bios.h have been moved out to core/include/graphics.h which makes more sense actually. Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
* core: Reimplement lots asm code in CMatt Fleming2011-12-011-0/+32
There is an awful lot of code currently implemented in assembly when it could just as easily be implemented in C. Having it in C makes it much easier to share code between the BIOS and forthcoming EFI firmware backend. The following code fragments have been rewritten, - timer initialisation - adjust_screen() - check_esapes() and mem_init() - conio.inc - plaincon.inc - cleanup.inc - serirq.inc - font.inc - graphics - writehex Signed-off-by: Matt Fleming <matt.fleming@intel.com>