Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1055 → Rev 1056

/shark/trunk/drivers/linuxc26/linuxcomp.c
241,7 → 241,8
 
unsigned long pci_mem_start = 0x10000000;
 
signed long schedule_timeout(signed long timeout)
// added __attribute__ for gcc4 compatibility
__attribute__((regparm(3))) signed long schedule_timeout(signed long timeout)
{
struct timespec t,s,e;
 
335,13 → 336,15
init_waitqueue_head(&x->wait);
}
 
void complete(struct completion *x)
// added __attribute__ for gcc4 compatibility
__attribute__((regparm(3))) void complete(struct completion *x)
{
x->done++;
__wake_up_common(&x->wait, TASK_UNINTERRUPTIBLE | TASK_INTERRUPTIBLE, 1, 0);
}
 
void wait_for_completion(struct completion *x)
// added __attribute__ for gcc4 compatibility
__attribute__((regparm(3))) void wait_for_completion(struct completion *x)
{
spin_lock_irq(&x->wait.lock);
if (!x->done) {
465,7 → 468,8
 
struct page *mem_map = 0x0000;
 
int schedule_work(struct work_struct *work)
// added __attribute__ for gcc4 compatibility
__attribute__((regparm(3))) int schedule_work(struct work_struct *work)
{
return 0;
}