bitkeeper revision 1.1041.4.1 (40e49f12Fj3pygWG3LxLQ2tcwBx24A)

Fix common files when compiled without CONFIG_SMP (some x86-specific
files still don't work).
This commit is contained in:
kaf24@scramble.cl.cam.ac.uk committed 2004-07-01 23:32:34 +00:00
1 parent 788b1c4771
commit 85f794d3f0
7 files changed
+10 -2

No files matched your search

+1
View File
@@ -18,6 +18,7 @@
#include <xen/pci.h>
#include <xen/init.h>
#include <xen/delay.h>
#include <asm/io_apic.h>
#undef DEBUG
+1
View File
@@ -3,6 +3,7 @@
#include <xen/config.h>
#include <xen/types.h>
#include <asm/mpspec.h>
/*
* Intel IO-APIC support for SMP and UP systems.
+2
View File
@@ -180,6 +180,8 @@ static __inline__ int get_order(unsigned long size)
} while (size);
return order;
}
extern void zap_low_mappings(void);
#endif
#endif /* _I386_PAGE_H */
-1
View File
@@ -42,7 +42,6 @@ extern void smp_message_irq(int cpl, void *dev_id, struct pt_regs *regs);
extern void smp_send_reschedule(int cpu);
extern void smp_invalidate_rcv(void); /* Process an NMI */
extern void (*mtrr_hook) (void);
extern void zap_low_mappings (void);
/*
* On x86 all CPUs are mapped 1:1 to the APIC space.
+1
View File
@@ -15,6 +15,7 @@
#include <xen/time.h>
#include <xen/ac_timer.h>
#include <xen/delay.h>
#include <asm/atomic.h>
#define STACK_SIZE (2*PAGE_SIZE)
#include <asm/current.h>
+3 -1
View File
@@ -72,7 +72,9 @@ extern volatile int smp_msg_id;
/*
* These macros fold the SMP functionality into a single CPU system
*/
#define smp_send_event_check_mask(_m) ((void)0)
#define smp_send_event_check_cpu(_p) ((void)0)
#define smp_num_cpus 1
#define smp_processor_id() 0
#define hard_smp_processor_id() 0
+2
View File
@@ -54,6 +54,8 @@ typedef struct { int gcc_is_buggy; } spinlock_t;
#define spin_trylock(lock) ({1; })
#define spin_unlock_wait(lock) do { } while(0)
#define spin_unlock(lock) do { } while(0)
#define spin_lock_recursive(lock) do { } while(0)
#define spin_unlock_recursive(lock) do { } while(0)
#if (__GNUC__ > 2)
typedef struct { } rwlock_t;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.