mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 04:30:30 +08:00
i386: Port to RTEMS
- Update imported files to compile rtems-libbsd for i386 based BSPs - Currently does not support the option "dev_nic_e1000 = on"
This commit is contained in:

committed by
Sebastian Huber

parent
9215a81d08
commit
af291fa3a0
@@ -69,7 +69,9 @@ static const char rcsid[] =
|
||||
#endif
|
||||
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
#ifndef __rtems__
|
||||
#include <machine/pc/bios.h>
|
||||
#endif /* __rtems__ */
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
@@ -832,6 +834,7 @@ S_efi_map(size_t l2, void *p)
|
||||
#endif
|
||||
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
#ifndef __rtems__
|
||||
static int
|
||||
S_bios_smap_xattr(size_t l2, void *p)
|
||||
{
|
||||
@@ -850,6 +853,7 @@ S_bios_smap_xattr(size_t l2, void *p)
|
||||
(uintmax_t)smap->length);
|
||||
return (0);
|
||||
}
|
||||
#endif /* __rtems__ */
|
||||
#endif
|
||||
|
||||
static int
|
||||
@@ -1061,7 +1065,11 @@ show_var(int *oid, int nlen)
|
||||
#endif
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
else if (strcmp(fmt, "S,bios_smap_xattr") == 0)
|
||||
#ifndef __rtems__
|
||||
func = S_bios_smap_xattr;
|
||||
#else /* __rtems__ */
|
||||
func = NULL;
|
||||
#endif /* __rtems__ */
|
||||
#endif
|
||||
else {
|
||||
func = NULL;
|
||||
|
Reference in New Issue
Block a user