summaryrefslogtreecommitdiff
path: root/doc/comboot.txt
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-03-29 16:58:30 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-03-29 16:58:30 -0700
commit68a7538d5a80ec8db48c02d4a9de7199df0af9f9 (patch)
tree1b69abbdf7ec57cb1c8de4abd662a5639d2436b7 /doc/comboot.txt
parentb684e0fe03ea0ad949f087b0a4d58fa3a8b29116 (diff)
downloadsyslinux-68a7538d5a80ec8db48c02d4a9de7199df0af9f9.tar.gz
com32: export the filename of a com32 module to the module itself
Export the filename of the com32 module to the module itself, setting argv[0]. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'doc/comboot.txt')
-rw-r--r--doc/comboot.txt16
1 files changed, 2 insertions, 14 deletions
diff --git a/doc/comboot.txt b/doc/comboot.txt
index 4ef10f45..81d06020 100644
--- a/doc/comboot.txt
+++ b/doc/comboot.txt
@@ -79,7 +79,7 @@ The following arguments are passed to the program on the stack:
Address Size Meaning
[ESP] dword Return (termination) address
- [ESP+4] dword Number of additional arguments (currently 7)
+ [ESP+4] dword Number of additional arguments (currently 8)
[ESP+8] dword Pointer to the command line arguments (null-terminated string)
[ESP+12] dword Pointer to INT call helper function
[ESP+16] dword Pointer to low memory bounce buffer
@@ -87,19 +87,7 @@ The following arguments are passed to the program on the stack:
[ESP+24] dword Pointer to FAR call helper function (new in 2.05)
[ESP+28] dword Pointer to CDECL helper function (new in 3.54)
[ESP+32] dword Amount of memory controlled by the Syslinux core (new in 3.74)
-
-This corresponds to the following C prototype, available in the file
-com32/include/com32.h:
-
-/* The standard prototype for _start() */
-int _start(unsigned int __nargs,
- char *__cmdline,
- void (*__intcall)(uint8_t, com32sys_t *, com32sys_t *),
- void *__bounce_ptr,
- unsigned int __bounce_len,
- void (*__farcall)(uint32_t, com32sys_t *, com32sys_t *),
- int (*__cfarcall)(uint32_t, void *, size_t)
- );
+ [ESP+36] dword Pointer to the filename of the com32 module (new in 3.86)
The intcall helper function can be used to issue BIOS or Syslinux API
calls, and takes the interrupt number as first argument. The second