| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Make mbox_fetch() actually return the time spent waiting.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
|
| |
Add a "timeouts" pointer to the thread structure; this is a private
per-thread pointer for the benefit of lwIP. This is ad hoc, but a lot
easier than implementing TLS.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
| |
Move most our thread state to the stack. Task switch the errno
variable.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
| |
Merge mbox_post() and mbox_trypost() into a single function with a
timeout parameter.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
| |
A very simple mailbox library, designed for lwIP porting.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
| |
Implement a "trywait" option... if timeout is set to -1, then timeout
immediately if the semaphore isn't available.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
|
| |
Have start_thread() allocate memory dynamically, using malloc().
XXX: should probably free that memory in __exit_thread()... could be
"interesting".
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
| |
Simple thread library with the intent of making lwIP easier to port.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
| |
Create a specific type for jiffies, and an MS_PER_JIFFY macro.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
| |
Add the container_of() macro.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Unlike in the Syslinux 3.x branch, we need to save/restore es around
the PXE EFI CSM localboot hack. This really should be moved to C,
anyway, at the same time USE_PXE_PROVIDED_STACK is finally killed off.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |\ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
As we're starting to rely more and more on a modified hardware state,
it is really important to clean up on all exit paths.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |\ \
| | |/
| | |
| | |
| | |
| | |
| | | |
Resolved Conflicts:
core/pxelinux.asm
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
On at least some machines with an EFI-based BIOS, the Compatibility
Service Module (CSM) puts the BEV stack at an address where the boot
loader is likely to overwrite it. Implement a workaround which forces
INT 18h instead if an EFI signature is detected in memory.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |\ \ \
| |/ / |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Don't confuse the index and data when searching the PCI ID table for
special idle handling.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |\ \ \
| |/ / |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Move the generated IDT stubs to a separate section, .gentext16, so
that they aren't immediately adjacent to a piece of highly mutable
data.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |\ \ \
| |/ / |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
__jiffies really wants to be aligned. We're not SMP, so technically
it will be atomic anyway. Still...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Use the core function jiffies() to implement times(), instead of
poking at the BIOS variable.
This creates a new need for a include file namespace for items
exported from the core for the purpose of the library (not intended
for direct use by applications). Use the <core/*.h> namespace for
that.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |\ \ \
| |/ / |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Create a single function to generate a TFTP error. We really should
be better about distinguishing different error conditions.
Send an ERROR packet if we're closing a file which still has an open
connection.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Use jiffies instead of BIOS_timer. In 16-bit code we can use the low
16 bits of __jiffies when appropriate, since we have proper 2's
complement wraparound at all times.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The BIOS_timer variable at 4C6h is somewhat unreliable... it is
documented to wrap at "midnight", norminally after 1627419 ticks
(0x18d51b), which is a rather awkward number to deal with modulo.
Instead, hook the INT 1Ch secondary timer interrupt and just count a
simple incrementing variable.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
The separation between cpuinit.inc and init.inc has never been very
clear, and it just made the code harder to read.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fix the behavior when we don't immediately get a valid reply to an RRQ
packet. In particular, we would interpret what was previously in the
buffer as the requested data, whereas in general it hadn't even been
written to.
Reported-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Clean up the formatting in com32/elflink, mostly by using Nindent.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Clean up formatting of the core/elflink code, mostly using Nindent.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Resolved Conflicts:
MCONFIG.embedded
com32/MCONFIG
com32/lib/Makefile
core/Makefile
core/extern.inc
core/extlinux.asm
core/isolinux.asm
core/syslinux.ld
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Use the FAR_PTR() macro to convert a pointer in lowmem to SEG:OFFS
format as unit.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Remove dnsresolv.inc, which was already unused except for a couple of
buffer declarations. Move those buffers to regular C variables.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Port the PXE idle function to C; make the idle hook a protected-mode
call.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | |
| | |
| | |
| | |
| | |
| | | |
We have no use of .eh_frames...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |\ \
| | |/ |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
parse_partition_table can fail for two reasons: disk I/O
error or unrecognized partition layout (non msdos, corrupt, ...).
In the latter case, we were displaying
Error parsing disk 0x80
parse_partition_table: error 0
which is confusing. We now display
Disk 0x80: unrecognized partition layout
or the errno_disk in case of I/O errors.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This simplifies buffer handling.
Misc.: clean some old error code handling.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Remove extra free() calls: these were needed before the introduction
of the disklib errno. We apparently forgot to remove them.
Reported-by: Gert Hulselmans <hulselmansgert@gmail.com>
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Impact: New release
0.3.4 is now out !
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
We currently display the first sector after the end of an extended.
Fix it (-1).
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
gert1 reported some issues using disklib with HDT. As it turned out, the
code that iterated through ebrs in an extended partition was broken: ebr offsets
need to be relative to the start of that partition.
Misc.: fix memory leak.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Signed-off-by: Erwan Velu <erwan.velu@free.fr>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Impact: Improve stability
In some case, sectors_to_size can return a 8 char long string like "1000
MiB". In such case, some buffer were corrupted.
This is now fixed by a size[9] instead of size[8].
|
| | | |\
| | | |
| | | |
| | | | |
into origin/master
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Generate map files to make debugging less painful.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Make it possible to configure the stack size on the command line,
so that we can rule that out in case of problems.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The empty check in the menu system used "cm", but before "cm" had
actually been initialized. Move the "cm" initialization earlier so we
do the right thing here.
Reported-by: CKSoon <cksoon79@yahoo.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | | | |\ |
|