mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-30 06:38:03 +08:00
i386: Make <machine/cpufunc.h> compile clean
This commit is contained in:
parent
07ff2c1910
commit
2fc413a47e
@ -172,6 +172,7 @@ mfence(void)
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
#ifndef __rtems__
|
||||
#define HAVE_INLINE_FFS
|
||||
|
||||
static __inline int
|
||||
@ -187,6 +188,7 @@ ffs(int mask)
|
||||
}
|
||||
|
||||
#define HAVE_INLINE_FLS
|
||||
#endif /* __rtems__ */
|
||||
|
||||
#ifndef __rtems__
|
||||
static __inline int
|
||||
@ -685,6 +687,7 @@ write_cyrix_reg(u_char reg, u_char data)
|
||||
outb(0x23, data);
|
||||
}
|
||||
|
||||
#ifndef __rtems__
|
||||
static __inline register_t
|
||||
intr_disable(void)
|
||||
{
|
||||
@ -700,6 +703,7 @@ intr_restore(register_t eflags)
|
||||
{
|
||||
write_eflags(eflags);
|
||||
}
|
||||
#endif /* __rtems__ */
|
||||
|
||||
#else /* !(__GNUCLIKE_ASM && __CC_SUPPORTS___INLINE) */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user