Merge branch 'master' into for-2.6.33
This commit is contained in:
@ -61,14 +61,14 @@ unsigned long lastfoffset = -1;
|
||||
unsigned long lastfrelno;
|
||||
btfixup *lastf;
|
||||
|
||||
void fatal(void) __attribute__((noreturn));
|
||||
void fatal(void)
|
||||
static void fatal(void) __attribute__((noreturn));
|
||||
static void fatal(void)
|
||||
{
|
||||
fprintf(stderr, "Malformed output from objdump\n%s\n", buffer);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
btfixup *find(int type, char *name)
|
||||
static btfixup *find(int type, char *name)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < last; i++) {
|
||||
@ -88,7 +88,7 @@ btfixup *find(int type, char *name)
|
||||
return array + last - 1;
|
||||
}
|
||||
|
||||
void set_mode (char *buffer)
|
||||
static void set_mode (char *buffer)
|
||||
{
|
||||
for (mode = 0;; mode++)
|
||||
if (buffer[mode] < '0' || buffer[mode] > '9')
|
||||
|
@ -35,17 +35,17 @@
|
||||
* as PROM looks for a.out image only.
|
||||
*/
|
||||
|
||||
unsigned short ld2(char *p)
|
||||
static unsigned short ld2(char *p)
|
||||
{
|
||||
return (p[0] << 8) | p[1];
|
||||
}
|
||||
|
||||
unsigned int ld4(char *p)
|
||||
static unsigned int ld4(char *p)
|
||||
{
|
||||
return (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3];
|
||||
}
|
||||
|
||||
void st4(char *p, unsigned int x)
|
||||
static void st4(char *p, unsigned int x)
|
||||
{
|
||||
p[0] = x >> 24;
|
||||
p[1] = x >> 16;
|
||||
@ -53,7 +53,7 @@ void st4(char *p, unsigned int x)
|
||||
p[3] = x;
|
||||
}
|
||||
|
||||
void usage(void)
|
||||
static void usage(void)
|
||||
{
|
||||
/* fs_img.gz is an image of initial ramdisk. */
|
||||
fprintf(stderr, "Usage: piggyback vmlinux.aout System.map fs_img.gz\n");
|
||||
@ -61,7 +61,7 @@ void usage(void)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
void die(char *str)
|
||||
static void die(char *str)
|
||||
{
|
||||
perror (str);
|
||||
exit(1);
|
||||
|
@ -32,7 +32,7 @@
|
||||
/* Note: run this on an a.out kernel (use elftoaout for it), as PROM looks for a.out image onlly
|
||||
usage: piggyback vmlinux System.map tail, where tail is gzipped fs of the initial ramdisk */
|
||||
|
||||
void die(char *str)
|
||||
static void die(char *str)
|
||||
{
|
||||
perror (str);
|
||||
exit(1);
|
||||
|
@ -63,6 +63,10 @@ do { __asm__ __volatile__("ba,pt %%xcc, 1f\n\t" \
|
||||
: : : "memory"); \
|
||||
} while (0)
|
||||
|
||||
/* The kernel always executes in TSO memory model these days,
|
||||
* and furthermore most sparc64 chips implement more stringent
|
||||
* memory ordering than required by the specifications.
|
||||
*/
|
||||
#define mb() membar_safe("#StoreLoad")
|
||||
#define rmb() __asm__ __volatile__("":::"memory")
|
||||
#define wmb() __asm__ __volatile__("":::"memory")
|
||||
|
@ -79,6 +79,7 @@ int of_set_property(struct device_node *dp, const char *name, void *val, int len
|
||||
|
||||
err = -ENODEV;
|
||||
|
||||
mutex_lock(&of_set_property_mutex);
|
||||
write_lock(&devtree_lock);
|
||||
prevp = &dp->properties;
|
||||
while (*prevp) {
|
||||
@ -88,9 +89,7 @@ int of_set_property(struct device_node *dp, const char *name, void *val, int len
|
||||
void *old_val = prop->value;
|
||||
int ret;
|
||||
|
||||
mutex_lock(&of_set_property_mutex);
|
||||
ret = prom_setprop(dp->node, name, val, len);
|
||||
mutex_unlock(&of_set_property_mutex);
|
||||
|
||||
err = -EINVAL;
|
||||
if (ret >= 0) {
|
||||
@ -109,6 +108,7 @@ int of_set_property(struct device_node *dp, const char *name, void *val, int len
|
||||
prevp = &(*prevp)->next;
|
||||
}
|
||||
write_unlock(&devtree_lock);
|
||||
mutex_unlock(&of_set_property_mutex);
|
||||
|
||||
/* XXX Upate procfs if necessary... */
|
||||
|
||||
|
@ -617,7 +617,7 @@ static void pmul(struct pt_regs *regs, unsigned int insn, unsigned int opf)
|
||||
rs2 = fps_regval(f, RS2(insn));
|
||||
|
||||
rd_val = 0;
|
||||
src2 = (rs2 >> (opf == FMUL8x16AU_OPF) ? 16 : 0);
|
||||
src2 = rs2 >> (opf == FMUL8x16AU_OPF ? 16 : 0);
|
||||
for (byte = 0; byte < 4; byte++) {
|
||||
u16 src1 = (rs1 >> (byte * 8)) & 0x00ff;
|
||||
u32 prod = src1 * src2;
|
||||
|
@ -45,7 +45,7 @@ extern void free_initmem(void);
|
||||
#define VMEMMAP_ALIGN(x) (((x)+VMEMMAP_CHUNK-1UL)&VMEMMAP_CHUNK_MASK)
|
||||
|
||||
#define VMEMMAP_SIZE ((((1UL << MAX_PHYSADDR_BITS) >> PAGE_SHIFT) * \
|
||||
sizeof(struct page *)) >> VMEMMAP_CHUNK_SHIFT)
|
||||
sizeof(struct page)) >> VMEMMAP_CHUNK_SHIFT)
|
||||
extern unsigned long vmemmap_table[VMEMMAP_SIZE];
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user