bitkeeper revision 1.1019 (40de8639yjRdZbQS_JrcVsHsaPIwZw)

smp.h, irq.h, config.h, sched_bvt.c, setup.c, pci-pc.c:
  Fix compile errors for latest GCC (3.4.0).
This commit is contained in:
kaf24@scramble.cl.cam.ac.uk committed 2004-06-27 08:32:57 +00:00
1 parent 813b214e01
commit f6f1621f7e
6 files changed
+19 -19

No files matched your search

+4 -4
View File
@@ -1020,12 +1020,12 @@ struct irq_routing_table * __devinit pcibios_get_irq_routing_table(void)
"xor %%ah, %%ah\n"
"1:"
: "=a" (ret),
"=b" (map),
"+m" (opt)
"=b" (map)
: "0" (PCIBIOS_GET_ROUTING_OPTIONS),
"1" (0),
"D" ((long) &opt),
"S" (&pci_indirect));
"D" (&opt),
"S" (&pci_indirect)
: "memory");
DBG("OK ret=%d, size=%d, map=%x\n", ret, opt.size, map);
if (ret & 0xff00)
printk(KERN_ERR "PCI: Error %02x when fetching IRQ routing table.\n", (ret >> 8) & 0xff);
+9 -9
View File
@@ -16,6 +16,15 @@
#include <asm/domain_page.h>
#include <asm/pdb.h>
extern void init_IRQ(void);
extern void trap_init(void);
extern void time_init(void);
extern void ac_timer_init(void);
extern void initialize_keytable();
extern int opt_nosmp, opt_watchdog, opt_noacpi;
extern int opt_ignorebiostables, opt_noht;
extern int do_timer_lists_from_pit;
char ignore_irq13; /* set if exception 16 works */
struct cpuinfo_x86 boot_cpu_data = { 0, 0, 0, 0, -1 };
@@ -96,8 +105,6 @@ void __init get_cpu_vendor(struct cpuinfo_x86 *c)
static void __init init_intel(struct cpuinfo_x86 *c)
{
extern int opt_noht, opt_noacpi;
/* SEP CPUID bug: Pentium Pro reports SEP but doesn't have it */
if ( c->x86 == 6 && c->x86_model < 3 && c->x86_mask < 3 )
clear_bit(X86_FEATURE_SEP, &c->x86_capability);
@@ -300,13 +307,6 @@ unsigned long pci_mem_start = 0x10000000;
void __init start_of_day(void)
{
extern void init_IRQ(void);
extern void trap_init(void);
extern void time_init(void);
extern void ac_timer_init(void);
extern void initialize_keytable();
extern int opt_nosmp, opt_watchdog, opt_noacpi, opt_ignorebiostables;
extern int do_timer_lists_from_pit;
unsigned long low_mem_size;
#ifdef MEMORY_GUARD
+4 -3
View File
@@ -96,7 +96,8 @@ static void __calc_evt(struct bvt_dom_info *inf)
*/
int bvt_alloc_task(struct domain *p)
{
if ( (BVT_INFO(p) = kmem_cache_alloc(dom_info_cache)) == NULL )
p->sched_priv = kmem_cache_alloc(dom_info_cache);
if ( p->sched_priv == NULL )
return -1;
return 0;
@@ -410,8 +411,8 @@ int bvt_init_scheduler()
for ( i = 0; i < NR_CPUS; i++ )
{
CPU_INFO(i) = kmalloc(sizeof(struct bvt_cpu_info));
if ( CPU_INFO(i) == NULL )
schedule_data[i].sched_priv = kmalloc(sizeof(struct bvt_cpu_info));
if ( schedule_data[i].sched_priv == NULL )
{
printk("Failed to allocate BVT scheduler per-CPU memory!\n");
return -1;
-1
View File
@@ -62,7 +62,6 @@
#define SLACK_DOMAIN_MEM_KILOBYTES 2048
/* Linkage for x86 */
#define FASTCALL(x) x __attribute__((regparm(3)))
#define asmlinkage __attribute__((regparm(0)))
#define __ALIGN .align 16,0x90
#define __ALIGN_STR ".align 16,0x90"
+1 -1
View File
@@ -66,7 +66,7 @@ extern void enable_8259A_irq(unsigned int irq);
extern int i8259A_irq_pending(unsigned int irq);
extern void make_8259A_irq(unsigned int irq);
extern void init_8259A(int aeoi);
extern void FASTCALL(send_IPI_self(int vector));
extern void send_IPI_self(int vector);
extern void init_VISWS_APIC_irqs(void);
extern void setup_IO_APIC(void);
extern void disable_IO_APIC(void);
+1 -1
View File
@@ -22,7 +22,7 @@
*/
extern void smp_send_stop(void);
extern void FASTCALL(smp_send_event_check_mask(unsigned long cpu_mask));
extern void smp_send_event_check_mask(unsigned long cpu_mask);
#define smp_send_event_check_cpu(_cpu) smp_send_event_check_mask(1<<(_cpu))
/*
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.