Michael Brown
e2613e8896
[Settings] Add int16, int32 and hex-string configuration setting types
Add parse and display routines for 16-bit and 32-bit integer configuration
settings.
Add parse and display routines for hex-string configuration settings.
Assume hex-string as a configuration setting type if no type is explicitly
specified.
18 лет назад
Michael Brown
6fe585642a
[libc] Fix a validation bug in strtoul()
strtoul() was accepting the characters immediately above ASCII 0..9 as
valid hex digits, due to a missing comparison.
18 лет назад
Michael Brown
5a08b434c7
[Settings] show_setting() functions return snprintf()-style length.
show_setting() and related functions now return an "actual length" in the
style of snprintf(). This is to allow consumers to allocate buffers large
enough to hold the formatted setting.
18 лет назад
Michael Brown
b08a6f5300
[Command] Add "sanboot" command.
18 лет назад
Alexey Zaytsev
1935439f86
fix the rdtsc namimg
18 лет назад
Alexey Zaytsev
379c37bafb
Cleanups
Replace a printf with a DBG in timer_rtdsc.c
Replace a printf in timer.c with assert
Return proper error codes from timer drivers
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com >
18 лет назад
Alexey Zaytsev
a1572e0ab0
Modify gPXE core and drivers to work with the new timer subsystem
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com >
18 лет назад
Alexey Zaytsev
4006d229e5
Introduce the new timer subsystem.
Timer subsystem initialization code in core/timer.c
Split the BIOS and RTDSC timer drivers from i386_timer.c
Split arch/i386/firmware/pcbios/bios.c into the RTSDC
timer driver and arch/i386/core/nap.c
Split the headers properly:
include/unistd.h - delay functions to be used by the
gPXE core and drivers.
include/gpxe/timer.h - the fimer subsystem interface
to be used by the timer drivers
and currticks() to be used by
the code gPXE subsystems.
include/latch.h - removed
include/timer.h - scheduled for removal. Some driver
are using currticks, which is
only for core subsystems.
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com >
18 лет назад
Michael Brown
b87904ab20
Remove reference to COFF support. I can find no trace of ever having supported it.
18 лет назад
Michael Brown
c1006ffdb7
If no shell was requested via Ctrl-B, exit immediately if boot fails.
18 лет назад
Michael Brown
a2b4252d5a
Add XFER_INIT() macro.
18 лет назад
Michael Brown
f6a8158eed
Make seek information part of the xfer metadata, rather than an entirely
separate xfer method.
Add missing .alloc_iob entries to several xfer_interface_operations
structures.
18 лет назад
Michael Brown
698b5bc887
Fix a minor logical error in posix_io.c
18 лет назад
Michael Brown
be6ada2b7b
Add missing format qualifier
18 лет назад
Michael Brown
1de705e30f
Reallocate memory for bitmaps only when necessary.
18 лет назад
Michael Brown
3b1efba864
Add RFC2090 TFTP multicast support.
18 лет назад
Michael Brown
899f5b8ab2
Added definition of a UUID and uuid_ntoa() (for debugging), and
implemented smbios_get_uuid().
18 лет назад
Michael Brown
7e3527a658
Don't get stuck in an infinite loop on negative integers!
18 лет назад
Michael Brown
db124b1255
Add fls() for non-constant values.
18 лет назад
Michael Brown
83a6cc8c9b
Don't get stuck in an infinite loop on negative integers!
18 лет назад
Michael Brown
6d15a193aa
Add fls() for non-constant values.
18 лет назад
Michael Brown
54bf2621ed
Add iBFT code derived from IBM document.
No Microsoft intellectual property was harmed in the production of
this code.
18 лет назад
Michael Brown
cfcc41d407
Set current working URI to be that of the executable image when
executing any image, not just a script. (This will enable pxelinux to
use relative URIs, should it wish to.)
18 лет назад
Holger Lubitz
7815474495
Revert "malloc attribute changes"
wasn't meant for my local "master" branch ;)
This reverts commit 373022108b .
18 лет назад
Michael Brown
07f84566d5
Make read_user() non-blocking, and add select() call.
18 лет назад
Michael Brown
218651e125
Display name and status of each file as it is downloaded.
18 лет назад
Holger Lubitz
373022108b
malloc attribute changes
18 лет назад
Michael Brown
49009a4c1b
uri_get(NULL) and uri_put(NULL) are explicitly allowed.
18 лет назад
Michael Brown
d4947c05b2
Allow images to hold references to the originating URI.
Some shuffling around of the image management code; this needs tidying up.
18 лет назад
Holger Lubitz
bb94c143d9
move strndup back to string.c - used by strdup
18 лет назад
Holger Lubitz
6b6dbe5600
move strndup back to string.c - used by strdup
18 лет назад
Holger Lubitz
d0d044443d
memscan does not alter the mem pointer - make it const
18 лет назад
Holger Lubitz
c9c97b3444
stripped down version of string.c containing only the used functions
18 лет назад
Holger Lubitz
c7ad6778ac
put unused functions from string.c into separate file
18 лет назад
Michael Brown
726e366e8f
Add code for constructing single-file cpio archives on the fly
18 лет назад
Michael Brown
291d69d7fd
Added support for draft version of the AoE Boot Firmware Table.
18 лет назад
Michael Brown
bf3d8fb1aa
Allowed HTTPS to be a separately configurable feature.
18 лет назад
Michael Brown
4ce8d61a5c
Import various libgcc functions from syslinux.
Experimentation reveals that gcc ignores -mrtd for the implicit
arithmetic functions (e.g. __udivdi3), but not for the implicit
memcpy() and memset() functions. Mark the implicit arithmetic
functions with __attribute__((cdecl)) to compensate for this.
(Note: we cannot mark with with __cdecl, because we define __cdecl to
incorporate regparm(0) as well.)
18 лет назад
Holger Lubitz
f397fc443c
make bcopy use memmove
18 лет назад
Michael Brown
a6467c99a0
Added a simple pass-through filter layer for data transfer interfaces.
18 лет назад
Michael Brown
a6a1052096
Applied a modified version of holger's regparm patches.
18 лет назад
Holger Lubitz
52e5c24565
Revert "make isspace static" - prototype for isspace() is defined by C99, so can't be static
This reverts commit ed06bd8a89 .
18 лет назад
Holger Lubitz
ed06bd8a89
make isspace static
18 лет назад
Michael Brown
2c7ffa8c27
Added two lines of code that were completely missing!
18 лет назад
Michael Brown
9aa61ad5a2
Add per-file error identifiers
18 лет назад
Marty Connor
767a3cef77
Changed #warning to FIXME for nvo hack warning.
18 лет назад
Michael Brown
7df3d4a177
Obsolete code removal
18 лет назад
Michael Brown
7e3a8f5e10
Remove more obsolete files
18 лет назад
Michael Brown
e330db3c74
Dead code removal.
Kill off use of etherboot.h outside drivers/net.
18 лет назад
Michael Brown
4075f7596b
Unplug before sending close() message, to avoid screwing up interfaces
which respond to close with a reopen() (e.g. iSCSI).
18 лет назад