<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openslx-ng/ipxe.git/src/arch/i386/include/bits, branch openslx</title>
<subtitle>Fork of ipxe; additional commands and features</subtitle>
<id>https://git.openslx.org/openslx-ng/ipxe.git/atom/src/arch/i386/include/bits?h=openslx</id>
<link rel='self' href='https://git.openslx.org/openslx-ng/ipxe.git/atom/src/arch/i386/include/bits?h=openslx'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/ipxe.git/'/>
<updated>2024-09-24T14:40:45+00:00</updated>
<entry>
<title>[profile] Standardise return type of profile_timestamp()</title>
<updated>2024-09-24T14:40:45+00:00</updated>
<author>
<name>Michael Brown</name>
</author>
<published>2024-09-24T13:49:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/ipxe.git/commit/?id=5f7c6bd95bd6089473db3ba4f033584f5de0ee8a'/>
<id>urn:sha1:5f7c6bd95bd6089473db3ba4f033584f5de0ee8a</id>
<content type='text'>
All consumers of profile_timestamp() currently treat the value as an
unsigned long.  Only the elapsed number of ticks is ever relevant: the
absolute value of the timestamp is not used.  Profiling is used to
measure short durations that are generally fewer than a million CPU
cycles, for which an unsigned long is easily large enough.

Standardise the return type of profile_timestamp() as unsigned long
across all CPU architectures.  This allows 32-bit architectures such
as i386 and riscv32 to omit all logic associated with retrieving the
upper 32 bits of the 64-bit hardware counter, which simplifies the
code and allows riscv32 and riscv64 to share the same implementation.

Signed-off-by: Michael Brown &lt;mcb30@ipxe.org&gt;
</content>
</entry>
<entry>
<title>[libc] Centralise architecture-independent portions of setjmp.h</title>
<updated>2024-09-12T14:01:04+00:00</updated>
<author>
<name>Michael Brown</name>
</author>
<published>2024-09-12T13:17:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/ipxe.git/commit/?id=5de5d4626e192f5d0e6c97e14ce03b92a43622b3'/>
<id>urn:sha1:5de5d4626e192f5d0e6c97e14ce03b92a43622b3</id>
<content type='text'>
The definitions of the setjmp() and longjmp() functions are common to
all architectures, with only the definition of the jump buffer
structure being architecture-specific.

Move the architecture-specific portions to bits/setjmp.h and provide a
common setjmp.h for the function definitions.

Signed-off-by: Michael Brown &lt;mcb30@ipxe.org&gt;
</content>
</entry>
<entry>
<title>[gdb] Allow CPU architectures to omit support for GDB</title>
<updated>2024-09-05T12:00:39+00:00</updated>
<author>
<name>Michael Brown</name>
</author>
<published>2024-09-04T12:29:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/ipxe.git/commit/?id=2b82007571dbe02b85338dc9fa85251cd5d68028'/>
<id>urn:sha1:2b82007571dbe02b85338dc9fa85251cd5d68028</id>
<content type='text'>
Move the &lt;gdbmach.h&gt; file to &lt;bits/gdbmach.h&gt;, and provide a common
dummy implementation for all architectures that have not yet
implemented support for GDB.

Signed-off-by: Michael Brown &lt;mcb30@ipxe.org&gt;
</content>
</entry>
<entry>
<title>[build] Allow for per-architecture unprefixed constant operand modifier</title>
<updated>2023-02-05T23:55:14+00:00</updated>
<author>
<name>Michael Brown</name>
</author>
<published>2023-02-05T23:55:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/ipxe.git/commit/?id=c6901792f009cfd824707724b687e99edd4c8ecd'/>
<id>urn:sha1:c6901792f009cfd824707724b687e99edd4c8ecd</id>
<content type='text'>
Over the years, the undocumented operand modifier used to produce the
unprefixed constant values in __einfo_error() has varied from "%c0" to
"%a0" in commit 1a77466 ("[build] Fix use of inline assembly on GCC
4.8 ARM64 builds") and back to "%c0" in commit 3fb3ffc ("[build] Fix
use of inline assembly on GCC 8 ARM64 builds"), according to the
evolving demands of the toolchain.

LoongArch64 suffers from a similar issue: GCC 13 will allow either,
but the currently released GCC 12 allows only the "%a0" form.

Introduce a macro ASM_NO_PREFIX, defined in bits/compiler.h, to
abstract away this difference and allow different architectures to use
different operand modifiers.

Signed-off-by: Michael Brown &lt;mcb30@ipxe.org&gt;
</content>
</entry>
<entry>
<title>[build] Allow __asmcall to be used as a type attribute</title>
<updated>2021-03-02T10:15:23+00:00</updated>
<author>
<name>Michael Brown</name>
</author>
<published>2021-03-02T10:15:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/ipxe.git/commit/?id=916ebef1984e9caa05646463734b51202b405774'/>
<id>urn:sha1:916ebef1984e9caa05646463734b51202b405774</id>
<content type='text'>
The "used" attribute can be applied only to functions or variables,
which prevents the use of __asmcall as a type attribute.

Fix by removing "used" from the definition of __asmcall for i386 and
x86_64 architectures, and adding explicit __used annotations where
necessary.

Signed-off-by: Michael Brown &lt;mcb30@ipxe.org&gt;
</content>
</entry>
<entry>
<title>[linux] Use host glibc system call wrappers</title>
<updated>2021-02-28T23:28:23+00:00</updated>
<author>
<name>Michael Brown</name>
</author>
<published>2021-02-28T13:45:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/ipxe.git/commit/?id=f309d7a7b78eec10621bc71f9401d5b9257f9f39'/>
<id>urn:sha1:f309d7a7b78eec10621bc71f9401d5b9257f9f39</id>
<content type='text'>
When building as a Linux userspace application, iPXE currently
implements its own system calls to the host kernel rather than relying
on the host's C library.  The output binary is statically linked and
has no external dependencies.

This matches the general philosophy of other platforms on which iPXE
runs, since there are no external libraries available on either BIOS
or UEFI bare metal.  However, it would be useful for the Linux
userspace application to be able to link against host libraries such
as libslirp.

Modify the build process to perform a two-stage link: first picking
out the requested objects in the usual way from blib.a but with
relocations left present, then linking again with a helper object to
create a standard hosted application.  The helper object provides the
standard main() entry point and wrappers for the Linux system calls
required by the iPXE Linux drivers and interface code.

Signed-off-by: Michael Brown &lt;mcb30@ipxe.org&gt;
</content>
</entry>
<entry>
<title>[hyperv] Use generic set_bit() function</title>
<updated>2016-03-16T22:33:41+00:00</updated>
<author>
<name>Michael Brown</name>
</author>
<published>2016-03-16T21:24:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/ipxe.git/commit/?id=9bab13a7727a36c36b320409e0e785e016a3ff5c'/>
<id>urn:sha1:9bab13a7727a36c36b320409e0e785e016a3ff5c</id>
<content type='text'>
Signed-off-by: Michael Brown &lt;mcb30@ipxe.org&gt;
</content>
</entry>
<entry>
<title>[librm] Provide an abstraction wrapper for prot_call</title>
<updated>2016-02-18T23:23:38+00:00</updated>
<author>
<name>Michael Brown</name>
</author>
<published>2016-02-18T23:23:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/ipxe.git/commit/?id=31b5c2e753dbcb3d5023bccc8e644d0bcb56b2ad'/>
<id>urn:sha1:31b5c2e753dbcb3d5023bccc8e644d0bcb56b2ad</id>
<content type='text'>
Signed-off-by: Michael Brown &lt;mcb30@ipxe.org&gt;
</content>
</entry>
<entry>
<title>[bios] Add bin-x86_64-pcbios build platform</title>
<updated>2016-02-16T19:32:32+00:00</updated>
<author>
<name>Michael Brown</name>
</author>
<published>2016-02-16T15:19:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/ipxe.git/commit/?id=f468f12b1eca15e703aa2a79f1c82969c04c2322'/>
<id>urn:sha1:f468f12b1eca15e703aa2a79f1c82969c04c2322</id>
<content type='text'>
Move most arch/i386 files to arch/x86, and adjust the contents of the
Makefiles and the include/bits/*.h headers to reflect the new
locations.

This patch makes no substantive code changes, as can be seen using a
rename-aware diff (e.g. "git show -M5").

This patch does not make the pcbios platform functional for x86_64; it
merely allows it to compile without errors.

Signed-off-by: Michael Brown &lt;mcb30@ipxe.org&gt;
</content>
</entry>
<entry>
<title>[libc] Add ffs(), ffsl(), and ffsll()</title>
<updated>2015-03-16T15:40:53+00:00</updated>
<author>
<name>Michael Brown</name>
</author>
<published>2015-03-15T19:28:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/ipxe.git/commit/?id=79697c75eeba01f5068412e03bc5484152f98341'/>
<id>urn:sha1:79697c75eeba01f5068412e03bc5484152f98341</id>
<content type='text'>
Signed-off-by: Michael Brown &lt;mcb30@ipxe.org&gt;
</content>
</entry>
</feed>
