summaryrefslogtreecommitdiff
path: root/core/callback.inc
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'lwip' into elflinkMatt Fleming2013-02-261-1/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Welcome to Syslinux 5.10. Conflicts: NEWS com32/lib/Makefile com32/lib/sys/open.c com32/lib/syslinux/ipappend.c com32/modules/Makefile com32/modules/prdhcp.c core/Makefile core/cmdline.inc core/com32.inc core/comboot.inc core/configinit.inc core/fs/chdir.c core/fs/fs.c core/fs/pxe/dnsresolv.c core/fs/pxe/pxe.c core/fs/pxe/pxe.h core/idle.c core/include/ctype.h core/init.inc core/mem/init.c core/parseconfig.inc core/runkernel.inc core/syslinux.ld core/ui.inc doc/comboot.txt version
| * core: add a way to invoke a function on return to protmodeH. Peter Anvin2011-04-091-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | Add a hook so we can invoke a protmode function immediately before enabling interrupts on the way back from protected mode. This will *not* be invoked if we are more than one level deep (i.e. [RM(0) ->] PM(0) -> RM(1) -> PM(1) -> RM(2) will not invoke the hook when returning to PM(1).) This is intended to provide a hook for taking an action after a real-mode interrupt did something, i.e. the PXE receive ISR or the timer tick. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Symbol export whitelistMatt Fleming2012-12-051-3/+3
|/ | | | | | | | | | | | | | | | 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>
* core: Make cfarcall IF-preservingH. Peter Anvin2010-06-211-2/+9
| | | | | | | cfarcall does not take a register image on input, so we need to explicitly preserve IF in the code flow. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* core: Preserve IF through call16()H. Peter Anvin2010-06-211-1/+1
| | | | | | | | | | An intcall should always be invoked with interrupts off, but that is not necessarily the case for a near or far call; in fact it is quite the exception. As such, do not filter IF in our register image, and for our own internal call16() interface, propagate the protected-mode IF value into real mode, just as we do for the pm_call interface. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: move real-mode callback code to callback.incH. Peter Anvin2009-05-171-0/+208
The real-mode callbacks are not specific to the comboot API, nor are they com32-specific anymore. Move them to a separate file, and let com32.inc be only the items related to comboot files proper. Signed-off-by: H. Peter Anvin <hpa@zytor.com>