mirror of
https://github.com/86Box/86Box.git
synced 2026-02-24 02:18:20 -07:00
Merge remote-tracking branch 'upstream/master' into feature/ich2
This commit is contained in:
@@ -157,8 +157,6 @@
|
||||
mem_set_access((smm ? ACCESS_CPU_SMM : ACCESS_CPU), 1, base, size, is_smram)
|
||||
#define mem_set_access_smram_bus(smm, base, size, is_smram) \
|
||||
mem_set_access((smm ? ACCESS_BUS_SMM : ACCESS_BUS), 1, base, size, is_smram)
|
||||
#define flushmmucache_cr3 \
|
||||
flushmmucache_nopc
|
||||
|
||||
typedef struct {
|
||||
uint16_t x : 5,
|
||||
@@ -228,7 +226,7 @@ typedef struct page_t {
|
||||
} page_t;
|
||||
|
||||
extern uint32_t purgable_page_list_head;
|
||||
static inline int
|
||||
__attribute__((always_inline)) static inline int
|
||||
page_in_evict_list(page_t *p)
|
||||
{
|
||||
return (p->evict_prev != EVICT_NOT_IN_LIST);
|
||||
@@ -415,7 +413,6 @@ extern void mem_reset_page_blocks(void);
|
||||
|
||||
extern void flushmmucache(void);
|
||||
extern void flushmmucache_nopc(void);
|
||||
extern void mmu_invalidate(uint32_t addr);
|
||||
|
||||
extern void mem_a20_init(void);
|
||||
extern void mem_a20_recalc(void);
|
||||
|
||||
@@ -66,6 +66,9 @@ extern void seekdir(DIR *, long);
|
||||
extern int closedir(DIR *);
|
||||
|
||||
# define rewinddir(dirp) seekdir(dirp, 0L)
|
||||
#elif defined(__FreeBSD__)
|
||||
/* FreeBSD uses dirent.h instead of sys/dir.h */
|
||||
# include <dirent.h>
|
||||
#else
|
||||
/* On linux and macOS, use the standard functions and types */
|
||||
# include <sys/dir.h>
|
||||
|
||||
Reference in New Issue
Block a user