Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1050 → Rev 1056

/shark/trunk/drivers/linuxc26/include/asm/byteorder.h
10,7 → 10,7
#include <linux/config.h>
#endif
 
static __inline__ __const__ __u32 ___arch__swab32(__u32 x)
static __inline__ __attribute__((const)) __u32 ___arch__swab32(__u32 x)
{
#ifdef CONFIG_X86_BSWAP
__asm__("bswap %0" : "=r" (x) : "0" (x));
26,7 → 26,7
 
/* gcc should generate this for open coded C now too. May be worth switching to
it because inline assembly cannot be scheduled. -AK */
static __inline__ __const__ __u16 ___arch__swab16(__u16 x)
static __inline__ __attribute__((const)) __u16 ___arch__swab16(__u16 x)
{
__asm__("xchgb %b0,%h0" /* swap bytes */
: "=q" (x)
/shark/trunk/drivers/linuxc26/include/asm/processor.h
83,7 → 83,6
 
extern struct cpuinfo_x86 boot_cpu_data;
extern struct cpuinfo_x86 new_cpu_data;
extern struct tss_struct init_tss[NR_CPUS];
extern struct tss_struct doublefault_tss;
 
#ifdef CONFIG_SMP
403,6 → 402,9
unsigned long stack[64];
} __attribute__((packed));
 
// moved here for gcc4 compatibility
extern struct tss_struct init_tss[NR_CPUS];
 
struct thread_struct {
/* cached TLS descriptors. */
struct desc_struct tls_array[GDT_ENTRY_TLS_ENTRIES];