* [PATCH] [RESENT] compilation warnings 1/6
@ 2002-11-09 1:00 Thorsten Kranzkowski
2002-11-09 1:03 ` [PATCH] [RESENT] compilation warnings 2/6 Thorsten Kranzkowski
2002-11-09 4:32 ` [PATCH] [RESENT] compilation warnings 1/6 Richard Henderson
0 siblings, 2 replies; 13+ messages in thread
From: Thorsten Kranzkowski @ 2002-11-09 1:00 UTC (permalink / raw)
To: Richard Henderson; +Cc: axp-list mailing list
Here it is again, commented and split up.
First, all the loop counters.
### cpu is loop counter with only positive values. make it match
### the definition of hwrpb->nr_processors.
diff -ur linux-2.5.46/arch/alpha/kernel/err_common.c linux-2.5.46-ds20/arch/alpha/kernel/err_common.c
--- linux-2.5.46/arch/alpha/kernel/err_common.c Wed Nov 6 19:04:14 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/err_common.c Fri Nov 8 23:29:27 2002
@@ -715,7 +715,7 @@
cdl_check_console_data_log(void)
{
struct percpu_struct *pcpu;
- int cpu;
+ unsigned long cpu;
for(cpu = 0; cpu < hwrpb->nr_processors; cpu++) {
pcpu = (struct percpu_struct *)
### i is a loop counter with only positive values
### make it match 'count'
diff -ur linux-2.5.46/arch/alpha/kernel/irq.c linux-2.5.46-ds20/arch/alpha/kernel/irq.c
--- linux-2.5.46/arch/alpha/kernel/irq.c Wed Nov 6 19:04:14 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/irq.c Fri Nov 8 23:29:27 2002
@@ -252,7 +252,7 @@
{
unsigned char hexnum [HEX_DIGITS];
unsigned long value;
- int i;
+ unsigned long i;
if (!count)
return -EINVAL;
### i is a loopcounter with only positive values
###
### for_each_mem_cluster is a loop with i as loopcounter. always positive.
###
### i is is again a positive loopcounter
###
diff -ur linux-2.5.46/arch/alpha/kernel/setup.c linux-2.5.46-ds20/arch/alpha/kernel/setup.c
--- linux-2.5.46/arch/alpha/kernel/setup.c Sat Oct 19 04:01:16 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/setup.c Fri Nov 8 23:34:16 2002
@@ -202,7 +202,7 @@
};
struct resource *io = &ioport_resource;
- long i;
+ unsigned long i;
if (hose_head) {
struct pci_controller *hose;
@@ -258,7 +258,7 @@
unsigned long start_kernel_pfn, end_kernel_pfn;
unsigned long bootmap_size, bootmap_pages, bootmap_start;
unsigned long start, end;
- int i;
+ unsigned int i;
/* Find free clusters, and init and free the bootmem accordingly. */
memdesc = (struct memdesc_struct *)
@@ -398,7 +398,7 @@
{
struct memclust_struct * cluster;
struct memdesc_struct * memdesc;
- int i;
+ unsigned int i;
memdesc = (struct memdesc_struct *)
(hwrpb->mddt_offset + (unsigned long) hwrpb);
### i is positive loop counter
###
diff -ur linux-2.5.46/arch/alpha/kernel/smp.c linux-2.5.46-ds20/arch/alpha/kernel/smp.c
--- linux-2.5.46/arch/alpha/kernel/smp.c Sat Oct 19 04:01:19 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/smp.c Fri Nov 8 23:29:27 2002
@@ -499,7 +499,7 @@
setup_smp(void)
{
struct percpu_struct *cpubase, *cpu;
- int i;
+ unsigned int i;
if (boot_cpuid != 0) {
printk(KERN_WARNING "SMP: Booting off cpu %d instead of 0?\n",
### i and j are positive loop counters.
###
diff -ur linux-2.5.46/arch/alpha/mm/init.c linux-2.5.46-ds20/arch/alpha/mm/init.c
--- linux-2.5.46/arch/alpha/mm/init.c Sat Oct 19 04:02:30 2002
+++ linux-2.5.46-ds20/arch/alpha/mm/init.c Fri Nov 8 23:29:27 2002
@@ -242,7 +242,7 @@
if (alpha_using_srm) {
static struct vm_struct console_remap_vm;
unsigned long vaddr = VMALLOC_START;
- long i, j;
+ unsigned long i, j;
/* Set up the third level PTEs and update the virtual
addresses of the CRB entries. */
--
| Thorsten Kranzkowski Internet: dl8bcu@dl8bcu.de |
| Mobile: ++49 170 1876134 Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH] [RESENT] compilation warnings 2/6
2002-11-09 1:00 [PATCH] [RESENT] compilation warnings 1/6 Thorsten Kranzkowski
@ 2002-11-09 1:03 ` Thorsten Kranzkowski
2002-11-09 1:05 ` [PATCH] [RESENT] compilation warnings 3/6 Thorsten Kranzkowski
2002-11-09 4:32 ` [PATCH] [RESENT] compilation warnings 1/6 Richard Henderson
1 sibling, 1 reply; 13+ messages in thread
From: Thorsten Kranzkowski @ 2002-11-09 1:03 UTC (permalink / raw)
To: Richard Henderson, axp-list mailing list
Part 2: variables in slightly more complex situations.
### osf_getdirentries has an unsigned int count but it's stored as
### signed int in a struct osf_dirent_callback.
### all users deal with positive values or struct osf_dirent_callback itself.
### settle down on unsigned int througout.
diff -ur linux-2.5.46/arch/alpha/kernel/osf_sys.c linux-2.5.46-ds20/arch/alpha/kernel/osf_sys.c
--- linux-2.5.46/arch/alpha/kernel/osf_sys.c Wed Nov 6 19:04:14 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/osf_sys.c Fri Nov 8 23:29:27 2002
@@ -104,7 +104,7 @@
struct osf_dirent_callback {
struct osf_dirent *dirent;
long *basep;
- int count;
+ unsigned int count;
int error;
};
@@ -114,7 +114,7 @@
{
struct osf_dirent *dirent;
struct osf_dirent_callback *buf = (struct osf_dirent_callback *) __buf;
- int reclen = ROUND_UP(NAME_OFFSET(dirent) + namlen + 1);
+ unsigned int reclen = ROUND_UP(NAME_OFFSET(dirent) + namlen + 1);
buf->error = -EINVAL; /* only used if we fail */
if (reclen > buf->count)
### member is initialized with a positive number and only compared
### a dozen times against unsigned values. make it unsigned, too.
diff -ur linux-2.5.46/arch/alpha/kernel/setup.c linux-2.5.46-ds20/arch/alpha/kernel/setup.c
--- linux-2.5.46/arch/alpha/kernel/setup.c Sat Oct 19 04:01:16 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/setup.c Fri Nov 8 23:51:35 2002
@@ -818,7 +818,7 @@
if (!vec) {
/* Member ID is a bit-field. */
- long member = (variation >> 10) & 0x3f;
+ unsigned long member = (variation >> 10) & 0x3f;
cpu &= 0xffffffff; /* make it usable */
--
| Thorsten Kranzkowski Internet: dl8bcu@dl8bcu.de |
| Mobile: ++49 170 1876134 Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH] [RESENT] compilation warnings 3/6
2002-11-09 1:03 ` [PATCH] [RESENT] compilation warnings 2/6 Thorsten Kranzkowski
@ 2002-11-09 1:05 ` Thorsten Kranzkowski
2002-11-09 1:07 ` [PATCH] [RESENT] compilation warnings 4/6 Thorsten Kranzkowski
2002-11-09 4:50 ` [PATCH] [RESENT] compilation warnings 3/6 Richard Henderson
0 siblings, 2 replies; 13+ messages in thread
From: Thorsten Kranzkowski @ 2002-11-09 1:05 UTC (permalink / raw)
To: Richard Henderson, axp-list mailing list
Part 3: these need a little bit more thought. please see aech comment.
### all callers use unsigned values. length is supposed positive
### so use unsigned int throughout
diff -ur linux-2.5.46/arch/alpha/kernel/err_common.c linux-2.5.46-ds20/arch/alpha/kernel/err_common.c
--- linux-2.5.46/arch/alpha/kernel/err_common.c Wed Nov 6 19:04:14 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/err_common.c Fri Nov 8 23:51:35 2002
@@ -34,10 +34,10 @@
* Generic
*/
void
-mchk_dump_mem(void *data, int length, char **annotation)
+mchk_dump_mem(void *data, unsigned int length, char **annotation)
{
unsigned long *ldata = data;
- int i;
+ unsigned int i;
for(i = 0; (i * sizeof(*ldata)) < length; i++) {
if (annotation && !annotation[i])
diff -ur linux-2.5.46/arch/alpha/kernel/err_impl.h linux-2.5.46-ds20/arch/alpha/kernel/err_impl.h
--- linux-2.5.46/arch/alpha/kernel/err_impl.h Wed Nov 6 19:04:14 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/err_impl.h Fri Nov 8 23:29:27 2002
@@ -133,7 +133,7 @@
*/
extern char *err_print_prefix;
-extern void mchk_dump_mem(void *, int, char **);
+extern void mchk_dump_mem(void *, unsigned int, char **);
extern void mchk_dump_logout_frame(struct el_common *);
extern void ev7_register_error_handlers(void);
extern void ev7_machine_check(u64, u64, struct pt_regs *);
### i is again a loopcounter with supposedly only positive values.
### OTOH this funktion needs more thought. In its current form
### it may copy arbitrary amounts of memory when given a negative
### value for namelen. 'len' should be removes altogether.
### I suppose the 'int namelen' is architecturally defined?
diff -ur linux-2.5.46/arch/alpha/kernel/osf_sys.c linux-2.5.46-ds20/arch/alpha/kernel/osf_sys.c
--- linux-2.5.46/arch/alpha/kernel/osf_sys.c Wed Nov 6 19:04:14 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/osf_sys.c Sat Nov 9 00:06:04 2002
@@ -521,8 +524,8 @@
asmlinkage int
osf_getdomainname(char *name, int namelen)
{
- unsigned len;
- int i, error;
+ unsigned len, i;
+ int error;
error = verify_area(VERIFY_WRITE, name, namelen);
if (error)
### hose->index is unsigned int but pci_controller_num is defined
### int everywhere. who is right?
diff -ur linux-2.5.46/arch/alpha/kernel/pci.c linux-2.5.46-ds20/arch/alpha/kernel/pci.c
--- linux-2.5.46/arch/alpha/kernel/pci.c Wed Nov 6 19:04:14 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/pci.c Fri Nov 8 23:29:27 2002
@@ -474,5 +474,5 @@
pci_controller_num(struct pci_dev *pdev)
{
struct pci_controller *hose = pdev->sysdata;
- return (hose ? hose->index : -ENXIO);
+ return (hose ? (int) hose->index : -ENXIO);
}
### bootmap_start is unsigned long. the -1 is used as a cookie not
### as a numerically negative value.
diff -ur linux-2.5.46/arch/alpha/kernel/setup.c linux-2.5.46-ds20/arch/alpha/kernel/setup.c
--- linux-2.5.46/arch/alpha/kernel/setup.c Sat Oct 19 04:01:16 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/setup.c Sat Nov 9 00:06:04 2002
@@ -327,7 +327,7 @@
}
}
- if (bootmap_start == -1) {
+ if (bootmap_start == ~0UL) {
max_low_pfn >>= 1;
goto try_again;
}
### .device_irq is int, local_config[].irq is unsigned int. -1 is used
### as a special value for both. ) make them both signed and keep -1 or
### make them unsigned and go with ~0U
### drq the same.
diff -ur linux-2.5.46/arch/alpha/kernel/smc37c669.c linux-2.5.46-ds20/arch/alpha/kernel/smc37c669.c
--- linux-2.5.46/arch/alpha/kernel/smc37c669.c Sat Oct 19 04:02:00 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/smc37c669.c Fri Nov 8 23:11:23 2002
@@ -970,8 +970,8 @@
static struct DEVICE_CONFIG {
unsigned int port1;
unsigned int port2;
- unsigned int irq;
- unsigned int drq;
+ int irq;
+ int drq;
} local_config [NUM_FUNCS];
/*
@@ -1097,11 +1097,11 @@
);
static int SMC37c669_xlate_irq(
- unsigned int irq
+ int irq
);
static int SMC37c669_xlate_drq(
- unsigned int drq
+ int drq
);
static spinlock_t smc_lock __cacheline_aligned = SPIN_LOCK_UNLOCKED;
@@ -2260,7 +2260,7 @@
**
**--
*/
-static int __init SMC37c669_xlate_irq ( unsigned int irq )
+static int __init SMC37c669_xlate_irq ( int irq )
{
int i, translated_irq = -1;
@@ -2312,7 +2312,7 @@
**
**--
*/
-static int __init SMC37c669_xlate_drq ( unsigned int drq )
+static int __init SMC37c669_xlate_drq ( int drq )
{
int i, translated_drq = -1;
--
| Thorsten Kranzkowski Internet: dl8bcu@dl8bcu.de |
| Mobile: ++49 170 1876134 Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH] [RESENT] compilation warnings 4/6
2002-11-09 1:05 ` [PATCH] [RESENT] compilation warnings 3/6 Thorsten Kranzkowski
@ 2002-11-09 1:07 ` Thorsten Kranzkowski
2002-11-09 1:08 ` [PATCH] [RESENT] compilation warnings 5/6 Thorsten Kranzkowski
` (2 more replies)
2002-11-09 4:50 ` [PATCH] [RESENT] compilation warnings 3/6 Richard Henderson
1 sibling, 3 replies; 13+ messages in thread
From: Thorsten Kranzkowski @ 2002-11-09 1:07 UTC (permalink / raw)
To: Richard Henderson, axp-list mailing list
Part 4: these are mostly casts. Hopefully I got the int<->long thing
right this time. stupid me.
### yes, I agree this is unsigned long. Thanks for reminding me that
### (unsigned) is actually (unsigned int)
diff -ur linux-2.5.46/arch/alpha/kernel/osf_sys.c linux-2.5.46-ds20/arch/alpha/kernel/osf_sys.c
--- linux-2.5.46/arch/alpha/kernel/osf_sys.c Wed Nov 6 19:04:14 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/osf_sys.c Sat Nov 9 00:25:18 2002
@@ -1416,14 +1419,14 @@
if (addr) {
addr = arch_get_unmapped_area_1 (PAGE_ALIGN(addr), len, limit);
- if (addr != -ENOMEM)
+ if (addr != (unsigned long) -ENOMEM)
return addr;
}
/* Next, try allocating at TASK_UNMAPPED_BASE. */
addr = arch_get_unmapped_area_1 (PAGE_ALIGN(TASK_UNMAPPED_BASE),
len, limit);
- if (addr != -ENOMEM)
+ if (addr != (unsigned long) -ENOMEM)
return addr;
/* Finally, try allocating in low memory. */
### type is a long parameter. it is explicitely normaized to positive
### values. the only caller supplies an unsigned long from hwrpb_struct.
### But there is this comment suggesting there are 'negative' values:
### /* Restore real CABRIO and EB66+ family names, ie EB64+ and EB66 */
### if (type < 0)
### type = -type;
### member can only be positive and is checked against positive constants.
### again the comment
### /* Restore real CABRIO and EB66+ family names, ie EB64+ and EB66 */
### otherwise type could be unsigned.
### i is also a loop counter with only positive values
diff -ur linux-2.5.46/arch/alpha/kernel/setup.c linux-2.5.46-ds20/arch/alpha/kernel/setup.c
--- linux-2.5.46/arch/alpha/kernel/setup.c Sat Oct 19 04:01:16 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/setup.c Sat Nov 9 00:25:18 2002
@@ -804,13 +804,13 @@
/* Search the system tables first... */
vec = NULL;
- if (type < N(systype_vecs)) {
+ if ((unsigned long)type < N(systype_vecs)) {
vec = systype_vecs[type];
} else if ((type > ST_API_BIAS) &&
- (type - ST_API_BIAS) < N(api_vecs)) {
+ ((unsigned long)type - ST_API_BIAS) < N(api_vecs)) {
vec = api_vecs[type - ST_API_BIAS];
} else if ((type > ST_UNOFFICIAL_BIAS) &&
- (type - ST_UNOFFICIAL_BIAS) < N(unofficial_vecs)) {
+ ((unsigned long)type - ST_UNOFFICIAL_BIAS) < N(unofficial_vecs)) {
vec = unofficial_vecs[type - ST_UNOFFICIAL_BIAS];
}
@@ -930,7 +930,7 @@
get_sysnames(long type, long variation, long cpu,
char **type_name, char **variation_name)
{
- long member;
+ unsigned long member;
/* Restore real CABRIO and EB66+ family names, ie EB64+ and EB66 */
if (type < 0)
@@ -938,13 +938,13 @@
/* If not in the tables, make it UNKNOWN,
else set type name to family */
- if (type < N(systype_names)) {
+ if ((unsigned long)type < N(systype_names)) {
*type_name = systype_names[type];
} else if ((type > ST_API_BIAS) &&
- (type - ST_API_BIAS) < N(api_names)) {
+ ((unsigned long)type - ST_API_BIAS) < N(api_names)) {
*type_name = api_names[type - ST_API_BIAS];
} else if ((type > ST_UNOFFICIAL_BIAS) &&
- (type - ST_UNOFFICIAL_BIAS) < N(unofficial_names)) {
+ ((unsigned long)type - ST_UNOFFICIAL_BIAS) < N(unofficial_names)) {
*type_name = unofficial_names[type - ST_UNOFFICIAL_BIAS];
} else {
*type_name = sys_unknown;
@@ -1042,7 +1042,8 @@
get_nr_processors(struct percpu_struct *cpubase, unsigned long num)
{
struct percpu_struct *cpu;
- int i, count = 0;
+ unsigned long i;
+ int count = 0;
for (i = 0; i < num; i++) {
cpu = (struct percpu_struct *)
### diff is normalized to positive values here, but needed signed during
### calculation. all the frequencies are unsigned long.
### so insert a cast here.
diff -ur linux-2.5.46/arch/alpha/kernel/time.c linux-2.5.46-ds20/arch/alpha/kernel/time.c
--- linux-2.5.46/arch/alpha/kernel/time.c Sat Oct 19 04:01:54 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/time.c Fri Nov 8 23:29:27 2002
@@ -316,7 +316,7 @@
diff = cycle_freq - est_cycle_freq;
if (diff < 0)
diff = -diff;
- if (diff > one_percent) {
+ if ((unsigned long)diff > one_percent) {
cycle_freq = est_cycle_freq;
printk("HWRPB cycle frequency bogus. "
"Estimated %lu Hz\n", cycle_freq);
### assignment from pointer to integer without a cast.
### ok, cast it.
diff -ur linux-2.5.46/arch/alpha/kernel/traps.c linux-2.5.46-ds20/arch/alpha/kernel/traps.c
--- linux-2.5.46/arch/alpha/kernel/traps.c Wed Nov 6 19:04:14 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/traps.c Fri Nov 8 23:29:27 2002
@@ -406,7 +406,7 @@
info.si_signo = SIGILL;
info.si_errno = 0;
info.si_code = ILL_ILLOPC;
- info.si_addr = regs.pc;
+ info.si_addr = (void *)regs.pc;
send_sig_info(SIGILL, &info, current);
}
@@ -429,7 +429,7 @@
info.si_signo = SIGILL;
info.si_errno = 0;
info.si_code = ILL_ILLOPC;
- info.si_addr = regs.pc;
+ info.si_addr = (void *)regs.pc;
force_sig_info(SIGILL, &info, current);
}
### to is already casted and from is already unsigned long. since we're
### doing bitops here, use unsigned long for both.
diff -ur linux-2.5.46/arch/alpha/lib/io.c linux-2.5.46-ds20/arch/alpha/lib/io.c
--- linux-2.5.46/arch/alpha/lib/io.c Sat Oct 19 04:02:27 2002
+++ linux-2.5.46-ds20/arch/alpha/lib/io.c Fri Nov 8 23:29:27 2002
@@ -414,7 +414,7 @@
/* Optimize co-aligned transfers. Everything else gets handled
a byte at a time. */
- if (count >= 8 && ((long)to & 7) == (from & 7)) {
+ if (count >= 8 && ((unsigned long)to & 7) == (from & 7)) {
count -= 8;
do {
*(u64 *)to = __raw_readq(from);
@@ -425,7 +425,7 @@
count += 8;
}
- if (count >= 4 && ((long)to & 3) == (from & 3)) {
+ if (count >= 4 && ((unsigned long)to & 3) == (from & 3)) {
count -= 4;
do {
*(u32 *)to = __raw_readl(from);
@@ -436,7 +436,7 @@
count += 4;
}
- if (count >= 2 && ((long)to & 1) == (from & 1)) {
+ if (count >= 2 && ((unsigned long)to & 1) == (from & 1)) {
count -= 2;
do {
*(u16 *)to = __raw_readw(from);
@@ -465,7 +465,7 @@
a byte at a time. */
/* FIXME -- align FROM. */
- if (count >= 8 && (to & 7) == ((long)from & 7)) {
+ if (count >= 8 && (to & 7) == ((unsigned long)from & 7)) {
count -= 8;
do {
__raw_writeq(*(const u64 *)from, to);
@@ -476,7 +476,7 @@
count += 8;
}
- if (count >= 4 && (to & 3) == ((long)from & 3)) {
+ if (count >= 4 && (to & 3) == ((unsigned long)from & 3)) {
count -= 4;
do {
__raw_writel(*(const u32 *)from, to);
@@ -487,7 +487,7 @@
count += 4;
}
- if (count >= 2 && (to & 1) == ((long)from & 1)) {
+ if (count >= 2 && (to & 1) == ((unsigned long)from & 1)) {
count -= 2;
do {
__raw_writew(*(const u16 *)from, to);
--
| Thorsten Kranzkowski Internet: dl8bcu@dl8bcu.de |
| Mobile: ++49 170 1876134 Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH] [RESENT] compilation warnings 5/6
2002-11-09 1:07 ` [PATCH] [RESENT] compilation warnings 4/6 Thorsten Kranzkowski
@ 2002-11-09 1:08 ` Thorsten Kranzkowski
2002-11-09 1:13 ` [PATCH] [RESENT] compilation warnings 6/6 Thorsten Kranzkowski
2002-11-09 1:47 ` [PATCH] [RESENT] compilation warnings 4/6 Michal Jaegermann
2002-11-09 5:51 ` Richard Henderson
2 siblings, 1 reply; 13+ messages in thread
From: Thorsten Kranzkowski @ 2002-11-09 1:08 UTC (permalink / raw)
To: Richard Henderson, axp-list mailing list
Part 5: various stuff that popped up along the way.
### 'implicit declaration of sys_swapon()' I failed to find it declared in
### a header so I filled it in right here.
### I'm open for better suggestions
diff -ur linux-2.5.46/arch/alpha/kernel/osf_sys.c linux-2.5.46-ds20/arch/alpha/kernel/osf_sys.c
--- linux-2.5.46/arch/alpha/kernel/osf_sys.c Wed Nov 6 19:04:14 2002
+++ linux-2.5.46-ds20/arch/alpha/kernel/osf_sys.c Sat Nov 9 00:38:12 2002
@@ -478,6 +478,9 @@
return error;
}
+
+asmlinkage long sys_swapon(const char * specialfile, int swap_flags); /* mm/swapfile.c */
+
asmlinkage int
osf_swapon(const char *path, int flags, int lowat, int hiwat)
{
### I'm sure nobody uses an unallowed register number. But gcc doesn't
### know that. Silence it.
diff -ur linux-2.5.46/arch/alpha/lib/fpreg.c linux-2.5.46-ds20/arch/alpha/lib/fpreg.c
--- linux-2.5.46/arch/alpha/lib/fpreg.c Sat Oct 19 04:02:24 2002
+++ linux-2.5.46-ds20/arch/alpha/lib/fpreg.c Fri Nov 8 23:29:27 2002
@@ -48,6 +48,7 @@
case 29: STT(29, val); break;
case 30: STT(30, val); break;
case 31: STT(31, val); break;
+ default: return 0;
}
return val;
}
@@ -141,6 +142,7 @@
case 29: STS(29, val); break;
case 30: STS(30, val); break;
case 31: STS(31, val); break;
+ default: return 0;
}
return val;
}
--
| Thorsten Kranzkowski Internet: dl8bcu@dl8bcu.de |
| Mobile: ++49 170 1876134 Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH] [RESENT] compilation warnings 6/6
2002-11-09 1:08 ` [PATCH] [RESENT] compilation warnings 5/6 Thorsten Kranzkowski
@ 2002-11-09 1:13 ` Thorsten Kranzkowski
0 siblings, 0 replies; 13+ messages in thread
From: Thorsten Kranzkowski @ 2002-11-09 1:13 UTC (permalink / raw)
To: Richard Henderson, axp-list mailing list
Part 6: This one is not about warnings but about a compilation error. It is
already included in Alans -ac tree.
Ok, that's it for now. Thank you all for your construktive input.
Thorsten,
wondering how many patches the other 2000 warnings will result in ... :)
diff -ur linux-2.5.46/include/asm-alpha/xor.h linux-2.5.46-ds20/include/asm-alpha/xor.h
--- linux-2.5.46/include/asm-alpha/xor.h Sat Oct 19 04:02:28 2002
+++ linux-2.5.46-ds20/include/asm-alpha/xor.h Wed Nov 6 19:12:44 2002
@@ -32,794 +32,794 @@
unsigned long *, unsigned long *,
unsigned long *, unsigned long *);
-asm("
- .text
- .align 3
- .ent xor_alpha_2
-xor_alpha_2:
- .prologue 0
- srl $16, 6, $16
- .align 4
-2:
- ldq $0,0($17)
- ldq $1,0($18)
- ldq $2,8($17)
- ldq $3,8($18)
-
- ldq $4,16($17)
- ldq $5,16($18)
- ldq $6,24($17)
- ldq $7,24($18)
-
- ldq $19,32($17)
- ldq $20,32($18)
- ldq $21,40($17)
- ldq $22,40($18)
-
- ldq $23,48($17)
- ldq $24,48($18)
- ldq $25,56($17)
- xor $0,$1,$0 # 7 cycles from $1 load
-
- ldq $27,56($18)
- xor $2,$3,$2
- stq $0,0($17)
- xor $4,$5,$4
-
- stq $2,8($17)
- xor $6,$7,$6
- stq $4,16($17)
- xor $19,$20,$19
-
- stq $6,24($17)
- xor $21,$22,$21
- stq $19,32($17)
- xor $23,$24,$23
-
- stq $21,40($17)
- xor $25,$27,$25
- stq $23,48($17)
- subq $16,1,$16
-
- stq $25,56($17)
- addq $17,64,$17
- addq $18,64,$18
- bgt $16,2b
-
- ret
- .end xor_alpha_2
-
- .align 3
- .ent xor_alpha_3
-xor_alpha_3:
- .prologue 0
- srl $16, 6, $16
- .align 4
-3:
- ldq $0,0($17)
- ldq $1,0($18)
- ldq $2,0($19)
- ldq $3,8($17)
-
- ldq $4,8($18)
- ldq $6,16($17)
- ldq $7,16($18)
- ldq $21,24($17)
-
- ldq $22,24($18)
- ldq $24,32($17)
- ldq $25,32($18)
- ldq $5,8($19)
-
- ldq $20,16($19)
- ldq $23,24($19)
- ldq $27,32($19)
- nop
-
- xor $0,$1,$1 # 8 cycles from $0 load
- xor $3,$4,$4 # 6 cycles from $4 load
- xor $6,$7,$7 # 6 cycles from $7 load
- xor $21,$22,$22 # 5 cycles from $22 load
-
- xor $1,$2,$2 # 9 cycles from $2 load
- xor $24,$25,$25 # 5 cycles from $25 load
- stq $2,0($17)
- xor $4,$5,$5 # 6 cycles from $5 load
-
- stq $5,8($17)
- xor $7,$20,$20 # 7 cycles from $20 load
- stq $20,16($17)
- xor $22,$23,$23 # 7 cycles from $23 load
-
- stq $23,24($17)
- xor $25,$27,$27 # 7 cycles from $27 load
- stq $27,32($17)
- nop
-
- ldq $0,40($17)
- ldq $1,40($18)
- ldq $3,48($17)
- ldq $4,48($18)
-
- ldq $6,56($17)
- ldq $7,56($18)
- ldq $2,40($19)
- ldq $5,48($19)
-
- ldq $20,56($19)
- xor $0,$1,$1 # 4 cycles from $1 load
- xor $3,$4,$4 # 5 cycles from $4 load
- xor $6,$7,$7 # 5 cycles from $7 load
-
- xor $1,$2,$2 # 4 cycles from $2 load
- xor $4,$5,$5 # 5 cycles from $5 load
- stq $2,40($17)
- xor $7,$20,$20 # 4 cycles from $20 load
-
- stq $5,48($17)
- subq $16,1,$16
- stq $20,56($17)
- addq $19,64,$19
-
- addq $18,64,$18
- addq $17,64,$17
- bgt $16,3b
- ret
- .end xor_alpha_3
-
- .align 3
- .ent xor_alpha_4
-xor_alpha_4:
- .prologue 0
- srl $16, 6, $16
- .align 4
-4:
- ldq $0,0($17)
- ldq $1,0($18)
- ldq $2,0($19)
- ldq $3,0($20)
-
- ldq $4,8($17)
- ldq $5,8($18)
- ldq $6,8($19)
- ldq $7,8($20)
-
- ldq $21,16($17)
- ldq $22,16($18)
- ldq $23,16($19)
- ldq $24,16($20)
-
- ldq $25,24($17)
- xor $0,$1,$1 # 6 cycles from $1 load
- ldq $27,24($18)
- xor $2,$3,$3 # 6 cycles from $3 load
-
- ldq $0,24($19)
- xor $1,$3,$3
- ldq $1,24($20)
- xor $4,$5,$5 # 7 cycles from $5 load
-
- stq $3,0($17)
- xor $6,$7,$7
- xor $21,$22,$22 # 7 cycles from $22 load
- xor $5,$7,$7
-
- stq $7,8($17)
- xor $23,$24,$24 # 7 cycles from $24 load
- ldq $2,32($17)
- xor $22,$24,$24
-
- ldq $3,32($18)
- ldq $4,32($19)
- ldq $5,32($20)
- xor $25,$27,$27 # 8 cycles from $27 load
-
- ldq $6,40($17)
- ldq $7,40($18)
- ldq $21,40($19)
- ldq $22,40($20)
-
- stq $24,16($17)
- xor $0,$1,$1 # 9 cycles from $1 load
- xor $2,$3,$3 # 5 cycles from $3 load
- xor $27,$1,$1
-
- stq $1,24($17)
- xor $4,$5,$5 # 5 cycles from $5 load
- ldq $23,48($17)
- ldq $24,48($18)
-
- ldq $25,48($19)
- xor $3,$5,$5
- ldq $27,48($20)
- ldq $0,56($17)
-
- ldq $1,56($18)
- ldq $2,56($19)
- xor $6,$7,$7 # 8 cycles from $6 load
- ldq $3,56($20)
-
- stq $5,32($17)
- xor $21,$22,$22 # 8 cycles from $22 load
- xor $7,$22,$22
- xor $23,$24,$24 # 5 cycles from $24 load
-
- stq $22,40($17)
- xor $25,$27,$27 # 5 cycles from $27 load
- xor $24,$27,$27
- xor $0,$1,$1 # 5 cycles from $1 load
-
- stq $27,48($17)
- xor $2,$3,$3 # 4 cycles from $3 load
- xor $1,$3,$3
- subq $16,1,$16
-
- stq $3,56($17)
- addq $20,64,$20
- addq $19,64,$19
- addq $18,64,$18
-
- addq $17,64,$17
- bgt $16,4b
- ret
- .end xor_alpha_4
-
- .align 3
- .ent xor_alpha_5
-xor_alpha_5:
- .prologue 0
- srl $16, 6, $16
- .align 4
-5:
- ldq $0,0($17)
- ldq $1,0($18)
- ldq $2,0($19)
- ldq $3,0($20)
-
- ldq $4,0($21)
- ldq $5,8($17)
- ldq $6,8($18)
- ldq $7,8($19)
-
- ldq $22,8($20)
- ldq $23,8($21)
- ldq $24,16($17)
- ldq $25,16($18)
-
- ldq $27,16($19)
- xor $0,$1,$1 # 6 cycles from $1 load
- ldq $28,16($20)
- xor $2,$3,$3 # 6 cycles from $3 load
-
- ldq $0,16($21)
- xor $1,$3,$3
- ldq $1,24($17)
- xor $3,$4,$4 # 7 cycles from $4 load
-
- stq $4,0($17)
- xor $5,$6,$6 # 7 cycles from $6 load
- xor $7,$22,$22 # 7 cycles from $22 load
- xor $6,$23,$23 # 7 cycles from $23 load
-
- ldq $2,24($18)
- xor $22,$23,$23
- ldq $3,24($19)
- xor $24,$25,$25 # 8 cycles from $25 load
-
- stq $23,8($17)
- xor $25,$27,$27 # 8 cycles from $27 load
- ldq $4,24($20)
- xor $28,$0,$0 # 7 cycles from $0 load
-
- ldq $5,24($21)
- xor $27,$0,$0
- ldq $6,32($17)
- ldq $7,32($18)
-
- stq $0,16($17)
- xor $1,$2,$2 # 6 cycles from $2 load
- ldq $22,32($19)
- xor $3,$4,$4 # 4 cycles from $4 load
-
- ldq $23,32($20)
- xor $2,$4,$4
- ldq $24,32($21)
- ldq $25,40($17)
-
- ldq $27,40($18)
- ldq $28,40($19)
- ldq $0,40($20)
- xor $4,$5,$5 # 7 cycles from $5 load
-
- stq $5,24($17)
- xor $6,$7,$7 # 7 cycles from $7 load
- ldq $1,40($21)
- ldq $2,48($17)
-
- ldq $3,48($18)
- xor $7,$22,$22 # 7 cycles from $22 load
- ldq $4,48($19)
- xor $23,$24,$24 # 6 cycles from $24 load
-
- ldq $5,48($20)
- xor $22,$24,$24
- ldq $6,48($21)
- xor $25,$27,$27 # 7 cycles from $27 load
-
- stq $24,32($17)
- xor $27,$28,$28 # 8 cycles from $28 load
- ldq $7,56($17)
- xor $0,$1,$1 # 6 cycles from $1 load
-
- ldq $22,56($18)
- ldq $23,56($19)
- ldq $24,56($20)
- ldq $25,56($21)
-
- xor $28,$1,$1
- xor $2,$3,$3 # 9 cycles from $3 load
- xor $3,$4,$4 # 9 cycles from $4 load
- xor $5,$6,$6 # 8 cycles from $6 load
-
- stq $1,40($17)
- xor $4,$6,$6
- xor $7,$22,$22 # 7 cycles from $22 load
- xor $23,$24,$24 # 6 cycles from $24 load
-
- stq $6,48($17)
- xor $22,$24,$24
- subq $16,1,$16
- xor $24,$25,$25 # 8 cycles from $25 load
-
- stq $25,56($17)
- addq $21,64,$21
- addq $20,64,$20
- addq $19,64,$19
-
- addq $18,64,$18
- addq $17,64,$17
- bgt $16,5b
- ret
- .end xor_alpha_5
-
- .align 3
- .ent xor_alpha_prefetch_2
-xor_alpha_prefetch_2:
- .prologue 0
- srl $16, 6, $16
-
- ldq $31, 0($17)
- ldq $31, 0($18)
-
- ldq $31, 64($17)
- ldq $31, 64($18)
-
- ldq $31, 128($17)
- ldq $31, 128($18)
-
- ldq $31, 192($17)
- ldq $31, 192($18)
- .align 4
-2:
- ldq $0,0($17)
- ldq $1,0($18)
- ldq $2,8($17)
- ldq $3,8($18)
-
- ldq $4,16($17)
- ldq $5,16($18)
- ldq $6,24($17)
- ldq $7,24($18)
-
- ldq $19,32($17)
- ldq $20,32($18)
- ldq $21,40($17)
- ldq $22,40($18)
-
- ldq $23,48($17)
- ldq $24,48($18)
- ldq $25,56($17)
- ldq $27,56($18)
-
- ldq $31,256($17)
- xor $0,$1,$0 # 8 cycles from $1 load
- ldq $31,256($18)
- xor $2,$3,$2
-
- stq $0,0($17)
- xor $4,$5,$4
- stq $2,8($17)
- xor $6,$7,$6
-
- stq $4,16($17)
- xor $19,$20,$19
- stq $6,24($17)
- xor $21,$22,$21
-
- stq $19,32($17)
- xor $23,$24,$23
- stq $21,40($17)
- xor $25,$27,$25
-
- stq $23,48($17)
- subq $16,1,$16
- stq $25,56($17)
- addq $17,64,$17
-
- addq $18,64,$18
- bgt $16,2b
- ret
- .end xor_alpha_prefetch_2
-
- .align 3
- .ent xor_alpha_prefetch_3
-xor_alpha_prefetch_3:
- .prologue 0
- srl $16, 6, $16
-
- ldq $31, 0($17)
- ldq $31, 0($18)
- ldq $31, 0($19)
-
- ldq $31, 64($17)
- ldq $31, 64($18)
- ldq $31, 64($19)
-
- ldq $31, 128($17)
- ldq $31, 128($18)
- ldq $31, 128($19)
-
- ldq $31, 192($17)
- ldq $31, 192($18)
- ldq $31, 192($19)
- .align 4
-3:
- ldq $0,0($17)
- ldq $1,0($18)
- ldq $2,0($19)
- ldq $3,8($17)
-
- ldq $4,8($18)
- ldq $6,16($17)
- ldq $7,16($18)
- ldq $21,24($17)
-
- ldq $22,24($18)
- ldq $24,32($17)
- ldq $25,32($18)
- ldq $5,8($19)
-
- ldq $20,16($19)
- ldq $23,24($19)
- ldq $27,32($19)
- nop
-
- xor $0,$1,$1 # 8 cycles from $0 load
- xor $3,$4,$4 # 7 cycles from $4 load
- xor $6,$7,$7 # 6 cycles from $7 load
- xor $21,$22,$22 # 5 cycles from $22 load
-
- xor $1,$2,$2 # 9 cycles from $2 load
- xor $24,$25,$25 # 5 cycles from $25 load
- stq $2,0($17)
- xor $4,$5,$5 # 6 cycles from $5 load
-
- stq $5,8($17)
- xor $7,$20,$20 # 7 cycles from $20 load
- stq $20,16($17)
- xor $22,$23,$23 # 7 cycles from $23 load
-
- stq $23,24($17)
- xor $25,$27,$27 # 7 cycles from $27 load
- stq $27,32($17)
- nop
-
- ldq $0,40($17)
- ldq $1,40($18)
- ldq $3,48($17)
- ldq $4,48($18)
-
- ldq $6,56($17)
- ldq $7,56($18)
- ldq $2,40($19)
- ldq $5,48($19)
-
- ldq $20,56($19)
- ldq $31,256($17)
- ldq $31,256($18)
- ldq $31,256($19)
-
- xor $0,$1,$1 # 6 cycles from $1 load
- xor $3,$4,$4 # 5 cycles from $4 load
- xor $6,$7,$7 # 5 cycles from $7 load
- xor $1,$2,$2 # 4 cycles from $2 load
-
- xor $4,$5,$5 # 5 cycles from $5 load
- xor $7,$20,$20 # 4 cycles from $20 load
- stq $2,40($17)
- subq $16,1,$16
-
- stq $5,48($17)
- addq $19,64,$19
- stq $20,56($17)
- addq $18,64,$18
-
- addq $17,64,$17
- bgt $16,3b
- ret
- .end xor_alpha_prefetch_3
-
- .align 3
- .ent xor_alpha_prefetch_4
-xor_alpha_prefetch_4:
- .prologue 0
- srl $16, 6, $16
-
- ldq $31, 0($17)
- ldq $31, 0($18)
- ldq $31, 0($19)
- ldq $31, 0($20)
-
- ldq $31, 64($17)
- ldq $31, 64($18)
- ldq $31, 64($19)
- ldq $31, 64($20)
-
- ldq $31, 128($17)
- ldq $31, 128($18)
- ldq $31, 128($19)
- ldq $31, 128($20)
-
- ldq $31, 192($17)
- ldq $31, 192($18)
- ldq $31, 192($19)
- ldq $31, 192($20)
- .align 4
-4:
- ldq $0,0($17)
- ldq $1,0($18)
- ldq $2,0($19)
- ldq $3,0($20)
-
- ldq $4,8($17)
- ldq $5,8($18)
- ldq $6,8($19)
- ldq $7,8($20)
-
- ldq $21,16($17)
- ldq $22,16($18)
- ldq $23,16($19)
- ldq $24,16($20)
-
- ldq $25,24($17)
- xor $0,$1,$1 # 6 cycles from $1 load
- ldq $27,24($18)
- xor $2,$3,$3 # 6 cycles from $3 load
-
- ldq $0,24($19)
- xor $1,$3,$3
- ldq $1,24($20)
- xor $4,$5,$5 # 7 cycles from $5 load
-
- stq $3,0($17)
- xor $6,$7,$7
- xor $21,$22,$22 # 7 cycles from $22 load
- xor $5,$7,$7
-
- stq $7,8($17)
- xor $23,$24,$24 # 7 cycles from $24 load
- ldq $2,32($17)
- xor $22,$24,$24
-
- ldq $3,32($18)
- ldq $4,32($19)
- ldq $5,32($20)
- xor $25,$27,$27 # 8 cycles from $27 load
-
- ldq $6,40($17)
- ldq $7,40($18)
- ldq $21,40($19)
- ldq $22,40($20)
-
- stq $24,16($17)
- xor $0,$1,$1 # 9 cycles from $1 load
- xor $2,$3,$3 # 5 cycles from $3 load
- xor $27,$1,$1
-
- stq $1,24($17)
- xor $4,$5,$5 # 5 cycles from $5 load
- ldq $23,48($17)
- xor $3,$5,$5
-
- ldq $24,48($18)
- ldq $25,48($19)
- ldq $27,48($20)
- ldq $0,56($17)
-
- ldq $1,56($18)
- ldq $2,56($19)
- ldq $3,56($20)
- xor $6,$7,$7 # 8 cycles from $6 load
-
- ldq $31,256($17)
- xor $21,$22,$22 # 8 cycles from $22 load
- ldq $31,256($18)
- xor $7,$22,$22
-
- ldq $31,256($19)
- xor $23,$24,$24 # 6 cycles from $24 load
- ldq $31,256($20)
- xor $25,$27,$27 # 6 cycles from $27 load
-
- stq $5,32($17)
- xor $24,$27,$27
- xor $0,$1,$1 # 7 cycles from $1 load
- xor $2,$3,$3 # 6 cycles from $3 load
-
- stq $22,40($17)
- xor $1,$3,$3
- stq $27,48($17)
- subq $16,1,$16
-
- stq $3,56($17)
- addq $20,64,$20
- addq $19,64,$19
- addq $18,64,$18
-
- addq $17,64,$17
- bgt $16,4b
- ret
- .end xor_alpha_prefetch_4
-
- .align 3
- .ent xor_alpha_prefetch_5
-xor_alpha_prefetch_5:
- .prologue 0
- srl $16, 6, $16
-
- ldq $31, 0($17)
- ldq $31, 0($18)
- ldq $31, 0($19)
- ldq $31, 0($20)
- ldq $31, 0($21)
-
- ldq $31, 64($17)
- ldq $31, 64($18)
- ldq $31, 64($19)
- ldq $31, 64($20)
- ldq $31, 64($21)
-
- ldq $31, 128($17)
- ldq $31, 128($18)
- ldq $31, 128($19)
- ldq $31, 128($20)
- ldq $31, 128($21)
-
- ldq $31, 192($17)
- ldq $31, 192($18)
- ldq $31, 192($19)
- ldq $31, 192($20)
- ldq $31, 192($21)
- .align 4
-5:
- ldq $0,0($17)
- ldq $1,0($18)
- ldq $2,0($19)
- ldq $3,0($20)
-
- ldq $4,0($21)
- ldq $5,8($17)
- ldq $6,8($18)
- ldq $7,8($19)
-
- ldq $22,8($20)
- ldq $23,8($21)
- ldq $24,16($17)
- ldq $25,16($18)
-
- ldq $27,16($19)
- xor $0,$1,$1 # 6 cycles from $1 load
- ldq $28,16($20)
- xor $2,$3,$3 # 6 cycles from $3 load
-
- ldq $0,16($21)
- xor $1,$3,$3
- ldq $1,24($17)
- xor $3,$4,$4 # 7 cycles from $4 load
-
- stq $4,0($17)
- xor $5,$6,$6 # 7 cycles from $6 load
- xor $7,$22,$22 # 7 cycles from $22 load
- xor $6,$23,$23 # 7 cycles from $23 load
-
- ldq $2,24($18)
- xor $22,$23,$23
- ldq $3,24($19)
- xor $24,$25,$25 # 8 cycles from $25 load
-
- stq $23,8($17)
- xor $25,$27,$27 # 8 cycles from $27 load
- ldq $4,24($20)
- xor $28,$0,$0 # 7 cycles from $0 load
-
- ldq $5,24($21)
- xor $27,$0,$0
- ldq $6,32($17)
- ldq $7,32($18)
-
- stq $0,16($17)
- xor $1,$2,$2 # 6 cycles from $2 load
- ldq $22,32($19)
- xor $3,$4,$4 # 4 cycles from $4 load
-
- ldq $23,32($20)
- xor $2,$4,$4
- ldq $24,32($21)
- ldq $25,40($17)
-
- ldq $27,40($18)
- ldq $28,40($19)
- ldq $0,40($20)
- xor $4,$5,$5 # 7 cycles from $5 load
-
- stq $5,24($17)
- xor $6,$7,$7 # 7 cycles from $7 load
- ldq $1,40($21)
- ldq $2,48($17)
-
- ldq $3,48($18)
- xor $7,$22,$22 # 7 cycles from $22 load
- ldq $4,48($19)
- xor $23,$24,$24 # 6 cycles from $24 load
-
- ldq $5,48($20)
- xor $22,$24,$24
- ldq $6,48($21)
- xor $25,$27,$27 # 7 cycles from $27 load
-
- stq $24,32($17)
- xor $27,$28,$28 # 8 cycles from $28 load
- ldq $7,56($17)
- xor $0,$1,$1 # 6 cycles from $1 load
-
- ldq $22,56($18)
- ldq $23,56($19)
- ldq $24,56($20)
- ldq $25,56($21)
-
- ldq $31,256($17)
- xor $28,$1,$1
- ldq $31,256($18)
- xor $2,$3,$3 # 9 cycles from $3 load
-
- ldq $31,256($19)
- xor $3,$4,$4 # 9 cycles from $4 load
- ldq $31,256($20)
- xor $5,$6,$6 # 8 cycles from $6 load
-
- stq $1,40($17)
- xor $4,$6,$6
- xor $7,$22,$22 # 7 cycles from $22 load
- xor $23,$24,$24 # 6 cycles from $24 load
-
- stq $6,48($17)
- xor $22,$24,$24
- ldq $31,256($21)
- xor $24,$25,$25 # 8 cycles from $25 load
-
- stq $25,56($17)
- subq $16,1,$16
- addq $21,64,$21
- addq $20,64,$20
-
- addq $19,64,$19
- addq $18,64,$18
- addq $17,64,$17
- bgt $16,5b
-
- ret
- .end xor_alpha_prefetch_5
-");
+asm(
+" .text \n"
+" .align 3 \n"
+" .ent xor_alpha_2 \n"
+"xor_alpha_2: \n"
+" .prologue 0 \n"
+" srl $16, 6, $16 \n"
+" .align 4 \n"
+"2: \n"
+" ldq $0,0($17) \n"
+" ldq $1,0($18) \n"
+" ldq $2,8($17) \n"
+" ldq $3,8($18) \n"
+" \n"
+" ldq $4,16($17) \n"
+" ldq $5,16($18) \n"
+" ldq $6,24($17) \n"
+" ldq $7,24($18) \n"
+" \n"
+" ldq $19,32($17) \n"
+" ldq $20,32($18) \n"
+" ldq $21,40($17) \n"
+" ldq $22,40($18) \n"
+" \n"
+" ldq $23,48($17) \n"
+" ldq $24,48($18) \n"
+" ldq $25,56($17) \n"
+" xor $0,$1,$0 # 7 cycles from $1 load \n"
+" \n"
+" ldq $27,56($18) \n"
+" xor $2,$3,$2 \n"
+" stq $0,0($17) \n"
+" xor $4,$5,$4 \n"
+" \n"
+" stq $2,8($17) \n"
+" xor $6,$7,$6 \n"
+" stq $4,16($17) \n"
+" xor $19,$20,$19 \n"
+" \n"
+" stq $6,24($17) \n"
+" xor $21,$22,$21 \n"
+" stq $19,32($17) \n"
+" xor $23,$24,$23 \n"
+" \n"
+" stq $21,40($17) \n"
+" xor $25,$27,$25 \n"
+" stq $23,48($17) \n"
+" subq $16,1,$16 \n"
+" \n"
+" stq $25,56($17) \n"
+" addq $17,64,$17 \n"
+" addq $18,64,$18 \n"
+" bgt $16,2b \n"
+" \n"
+" ret \n"
+" .end xor_alpha_2 \n"
+" \n"
+" .align 3 \n"
+" .ent xor_alpha_3 \n"
+"xor_alpha_3: \n"
+" .prologue 0 \n"
+" srl $16, 6, $16 \n"
+" .align 4 \n"
+"3: \n"
+" ldq $0,0($17) \n"
+" ldq $1,0($18) \n"
+" ldq $2,0($19) \n"
+" ldq $3,8($17) \n"
+" \n"
+" ldq $4,8($18) \n"
+" ldq $6,16($17) \n"
+" ldq $7,16($18) \n"
+" ldq $21,24($17) \n"
+" \n"
+" ldq $22,24($18) \n"
+" ldq $24,32($17) \n"
+" ldq $25,32($18) \n"
+" ldq $5,8($19) \n"
+" \n"
+" ldq $20,16($19) \n"
+" ldq $23,24($19) \n"
+" ldq $27,32($19) \n"
+" nop \n"
+" \n"
+" xor $0,$1,$1 # 8 cycles from $0 load \n"
+" xor $3,$4,$4 # 6 cycles from $4 load \n"
+" xor $6,$7,$7 # 6 cycles from $7 load \n"
+" xor $21,$22,$22 # 5 cycles from $22 load \n"
+" \n"
+" xor $1,$2,$2 # 9 cycles from $2 load \n"
+" xor $24,$25,$25 # 5 cycles from $25 load \n"
+" stq $2,0($17) \n"
+" xor $4,$5,$5 # 6 cycles from $5 load \n"
+" \n"
+" stq $5,8($17) \n"
+" xor $7,$20,$20 # 7 cycles from $20 load \n"
+" stq $20,16($17) \n"
+" xor $22,$23,$23 # 7 cycles from $23 load \n"
+" \n"
+" stq $23,24($17) \n"
+" xor $25,$27,$27 # 7 cycles from $27 load \n"
+" stq $27,32($17) \n"
+" nop \n"
+" \n"
+" ldq $0,40($17) \n"
+" ldq $1,40($18) \n"
+" ldq $3,48($17) \n"
+" ldq $4,48($18) \n"
+" \n"
+" ldq $6,56($17) \n"
+" ldq $7,56($18) \n"
+" ldq $2,40($19) \n"
+" ldq $5,48($19) \n"
+" \n"
+" ldq $20,56($19) \n"
+" xor $0,$1,$1 # 4 cycles from $1 load \n"
+" xor $3,$4,$4 # 5 cycles from $4 load \n"
+" xor $6,$7,$7 # 5 cycles from $7 load \n"
+" \n"
+" xor $1,$2,$2 # 4 cycles from $2 load \n"
+" xor $4,$5,$5 # 5 cycles from $5 load \n"
+" stq $2,40($17) \n"
+" xor $7,$20,$20 # 4 cycles from $20 load \n"
+" \n"
+" stq $5,48($17) \n"
+" subq $16,1,$16 \n"
+" stq $20,56($17) \n"
+" addq $19,64,$19 \n"
+" \n"
+" addq $18,64,$18 \n"
+" addq $17,64,$17 \n"
+" bgt $16,3b \n"
+" ret \n"
+" .end xor_alpha_3 \n"
+" \n"
+" .align 3 \n"
+" .ent xor_alpha_4 \n"
+"xor_alpha_4: \n"
+" .prologue 0 \n"
+" srl $16, 6, $16 \n"
+" .align 4 \n"
+"4: \n"
+" ldq $0,0($17) \n"
+" ldq $1,0($18) \n"
+" ldq $2,0($19) \n"
+" ldq $3,0($20) \n"
+" \n"
+" ldq $4,8($17) \n"
+" ldq $5,8($18) \n"
+" ldq $6,8($19) \n"
+" ldq $7,8($20) \n"
+" \n"
+" ldq $21,16($17) \n"
+" ldq $22,16($18) \n"
+" ldq $23,16($19) \n"
+" ldq $24,16($20) \n"
+" \n"
+" ldq $25,24($17) \n"
+" xor $0,$1,$1 # 6 cycles from $1 load \n"
+" ldq $27,24($18) \n"
+" xor $2,$3,$3 # 6 cycles from $3 load \n"
+" \n"
+" ldq $0,24($19) \n"
+" xor $1,$3,$3 \n"
+" ldq $1,24($20) \n"
+" xor $4,$5,$5 # 7 cycles from $5 load \n"
+" \n"
+" stq $3,0($17) \n"
+" xor $6,$7,$7 \n"
+" xor $21,$22,$22 # 7 cycles from $22 load \n"
+" xor $5,$7,$7 \n"
+" \n"
+" stq $7,8($17) \n"
+" xor $23,$24,$24 # 7 cycles from $24 load \n"
+" ldq $2,32($17) \n"
+" xor $22,$24,$24 \n"
+" \n"
+" ldq $3,32($18) \n"
+" ldq $4,32($19) \n"
+" ldq $5,32($20) \n"
+" xor $25,$27,$27 # 8 cycles from $27 load \n"
+" \n"
+" ldq $6,40($17) \n"
+" ldq $7,40($18) \n"
+" ldq $21,40($19) \n"
+" ldq $22,40($20) \n"
+" \n"
+" stq $24,16($17) \n"
+" xor $0,$1,$1 # 9 cycles from $1 load \n"
+" xor $2,$3,$3 # 5 cycles from $3 load \n"
+" xor $27,$1,$1 \n"
+" \n"
+" stq $1,24($17) \n"
+" xor $4,$5,$5 # 5 cycles from $5 load \n"
+" ldq $23,48($17) \n"
+" ldq $24,48($18) \n"
+" \n"
+" ldq $25,48($19) \n"
+" xor $3,$5,$5 \n"
+" ldq $27,48($20) \n"
+" ldq $0,56($17) \n"
+" \n"
+" ldq $1,56($18) \n"
+" ldq $2,56($19) \n"
+" xor $6,$7,$7 # 8 cycles from $6 load \n"
+" ldq $3,56($20) \n"
+" \n"
+" stq $5,32($17) \n"
+" xor $21,$22,$22 # 8 cycles from $22 load \n"
+" xor $7,$22,$22 \n"
+" xor $23,$24,$24 # 5 cycles from $24 load \n"
+" \n"
+" stq $22,40($17) \n"
+" xor $25,$27,$27 # 5 cycles from $27 load \n"
+" xor $24,$27,$27 \n"
+" xor $0,$1,$1 # 5 cycles from $1 load \n"
+" \n"
+" stq $27,48($17) \n"
+" xor $2,$3,$3 # 4 cycles from $3 load \n"
+" xor $1,$3,$3 \n"
+" subq $16,1,$16 \n"
+" \n"
+" stq $3,56($17) \n"
+" addq $20,64,$20 \n"
+" addq $19,64,$19 \n"
+" addq $18,64,$18 \n"
+" \n"
+" addq $17,64,$17 \n"
+" bgt $16,4b \n"
+" ret \n"
+" .end xor_alpha_4 \n"
+" \n"
+" .align 3 \n"
+" .ent xor_alpha_5 \n"
+"xor_alpha_5: \n"
+" .prologue 0 \n"
+" srl $16, 6, $16 \n"
+" .align 4 \n"
+"5: \n"
+" ldq $0,0($17) \n"
+" ldq $1,0($18) \n"
+" ldq $2,0($19) \n"
+" ldq $3,0($20) \n"
+" \n"
+" ldq $4,0($21) \n"
+" ldq $5,8($17) \n"
+" ldq $6,8($18) \n"
+" ldq $7,8($19) \n"
+" \n"
+" ldq $22,8($20) \n"
+" ldq $23,8($21) \n"
+" ldq $24,16($17) \n"
+" ldq $25,16($18) \n"
+" \n"
+" ldq $27,16($19) \n"
+" xor $0,$1,$1 # 6 cycles from $1 load \n"
+" ldq $28,16($20) \n"
+" xor $2,$3,$3 # 6 cycles from $3 load \n"
+" \n"
+" ldq $0,16($21) \n"
+" xor $1,$3,$3 \n"
+" ldq $1,24($17) \n"
+" xor $3,$4,$4 # 7 cycles from $4 load \n"
+" \n"
+" stq $4,0($17) \n"
+" xor $5,$6,$6 # 7 cycles from $6 load \n"
+" xor $7,$22,$22 # 7 cycles from $22 load \n"
+" xor $6,$23,$23 # 7 cycles from $23 load \n"
+" \n"
+" ldq $2,24($18) \n"
+" xor $22,$23,$23 \n"
+" ldq $3,24($19) \n"
+" xor $24,$25,$25 # 8 cycles from $25 load \n"
+" \n"
+" stq $23,8($17) \n"
+" xor $25,$27,$27 # 8 cycles from $27 load \n"
+" ldq $4,24($20) \n"
+" xor $28,$0,$0 # 7 cycles from $0 load \n"
+" \n"
+" ldq $5,24($21) \n"
+" xor $27,$0,$0 \n"
+" ldq $6,32($17) \n"
+" ldq $7,32($18) \n"
+" \n"
+" stq $0,16($17) \n"
+" xor $1,$2,$2 # 6 cycles from $2 load \n"
+" ldq $22,32($19) \n"
+" xor $3,$4,$4 # 4 cycles from $4 load \n"
+" \n"
+" ldq $23,32($20) \n"
+" xor $2,$4,$4 \n"
+" ldq $24,32($21) \n"
+" ldq $25,40($17) \n"
+" \n"
+" ldq $27,40($18) \n"
+" ldq $28,40($19) \n"
+" ldq $0,40($20) \n"
+" xor $4,$5,$5 # 7 cycles from $5 load \n"
+" \n"
+" stq $5,24($17) \n"
+" xor $6,$7,$7 # 7 cycles from $7 load \n"
+" ldq $1,40($21) \n"
+" ldq $2,48($17) \n"
+" \n"
+" ldq $3,48($18) \n"
+" xor $7,$22,$22 # 7 cycles from $22 load \n"
+" ldq $4,48($19) \n"
+" xor $23,$24,$24 # 6 cycles from $24 load \n"
+" \n"
+" ldq $5,48($20) \n"
+" xor $22,$24,$24 \n"
+" ldq $6,48($21) \n"
+" xor $25,$27,$27 # 7 cycles from $27 load \n"
+" \n"
+" stq $24,32($17) \n"
+" xor $27,$28,$28 # 8 cycles from $28 load \n"
+" ldq $7,56($17) \n"
+" xor $0,$1,$1 # 6 cycles from $1 load \n"
+" \n"
+" ldq $22,56($18) \n"
+" ldq $23,56($19) \n"
+" ldq $24,56($20) \n"
+" ldq $25,56($21) \n"
+" \n"
+" xor $28,$1,$1 \n"
+" xor $2,$3,$3 # 9 cycles from $3 load \n"
+" xor $3,$4,$4 # 9 cycles from $4 load \n"
+" xor $5,$6,$6 # 8 cycles from $6 load \n"
+" \n"
+" stq $1,40($17) \n"
+" xor $4,$6,$6 \n"
+" xor $7,$22,$22 # 7 cycles from $22 load \n"
+" xor $23,$24,$24 # 6 cycles from $24 load \n"
+" \n"
+" stq $6,48($17) \n"
+" xor $22,$24,$24 \n"
+" subq $16,1,$16 \n"
+" xor $24,$25,$25 # 8 cycles from $25 load \n"
+" \n"
+" stq $25,56($17) \n"
+" addq $21,64,$21 \n"
+" addq $20,64,$20 \n"
+" addq $19,64,$19 \n"
+" \n"
+" addq $18,64,$18 \n"
+" addq $17,64,$17 \n"
+" bgt $16,5b \n"
+" ret \n"
+" .end xor_alpha_5 \n"
+" \n"
+" .align 3 \n"
+" .ent xor_alpha_prefetch_2 \n"
+"xor_alpha_prefetch_2: \n"
+" .prologue 0 \n"
+" srl $16, 6, $16 \n"
+" \n"
+" ldq $31, 0($17) \n"
+" ldq $31, 0($18) \n"
+" \n"
+" ldq $31, 64($17) \n"
+" ldq $31, 64($18) \n"
+" \n"
+" ldq $31, 128($17) \n"
+" ldq $31, 128($18) \n"
+" \n"
+" ldq $31, 192($17) \n"
+" ldq $31, 192($18) \n"
+" .align 4 \n"
+"2: \n"
+" ldq $0,0($17) \n"
+" ldq $1,0($18) \n"
+" ldq $2,8($17) \n"
+" ldq $3,8($18) \n"
+" \n"
+" ldq $4,16($17) \n"
+" ldq $5,16($18) \n"
+" ldq $6,24($17) \n"
+" ldq $7,24($18) \n"
+" \n"
+" ldq $19,32($17) \n"
+" ldq $20,32($18) \n"
+" ldq $21,40($17) \n"
+" ldq $22,40($18) \n"
+" \n"
+" ldq $23,48($17) \n"
+" ldq $24,48($18) \n"
+" ldq $25,56($17) \n"
+" ldq $27,56($18) \n"
+" \n"
+" ldq $31,256($17) \n"
+" xor $0,$1,$0 # 8 cycles from $1 load \n"
+" ldq $31,256($18) \n"
+" xor $2,$3,$2 \n"
+" \n"
+" stq $0,0($17) \n"
+" xor $4,$5,$4 \n"
+" stq $2,8($17) \n"
+" xor $6,$7,$6 \n"
+" \n"
+" stq $4,16($17) \n"
+" xor $19,$20,$19 \n"
+" stq $6,24($17) \n"
+" xor $21,$22,$21 \n"
+" \n"
+" stq $19,32($17) \n"
+" xor $23,$24,$23 \n"
+" stq $21,40($17) \n"
+" xor $25,$27,$25 \n"
+" \n"
+" stq $23,48($17) \n"
+" subq $16,1,$16 \n"
+" stq $25,56($17) \n"
+" addq $17,64,$17 \n"
+" \n"
+" addq $18,64,$18 \n"
+" bgt $16,2b \n"
+" ret \n"
+" .end xor_alpha_prefetch_2 \n"
+" \n"
+" .align 3 \n"
+" .ent xor_alpha_prefetch_3 \n"
+"xor_alpha_prefetch_3: \n"
+" .prologue 0 \n"
+" srl $16, 6, $16 \n"
+" \n"
+" ldq $31, 0($17) \n"
+" ldq $31, 0($18) \n"
+" ldq $31, 0($19) \n"
+" \n"
+" ldq $31, 64($17) \n"
+" ldq $31, 64($18) \n"
+" ldq $31, 64($19) \n"
+" \n"
+" ldq $31, 128($17) \n"
+" ldq $31, 128($18) \n"
+" ldq $31, 128($19) \n"
+" \n"
+" ldq $31, 192($17) \n"
+" ldq $31, 192($18) \n"
+" ldq $31, 192($19) \n"
+" .align 4 \n"
+"3: \n"
+" ldq $0,0($17) \n"
+" ldq $1,0($18) \n"
+" ldq $2,0($19) \n"
+" ldq $3,8($17) \n"
+" \n"
+" ldq $4,8($18) \n"
+" ldq $6,16($17) \n"
+" ldq $7,16($18) \n"
+" ldq $21,24($17) \n"
+" \n"
+" ldq $22,24($18) \n"
+" ldq $24,32($17) \n"
+" ldq $25,32($18) \n"
+" ldq $5,8($19) \n"
+" \n"
+" ldq $20,16($19) \n"
+" ldq $23,24($19) \n"
+" ldq $27,32($19) \n"
+" nop \n"
+" \n"
+" xor $0,$1,$1 # 8 cycles from $0 load \n"
+" xor $3,$4,$4 # 7 cycles from $4 load \n"
+" xor $6,$7,$7 # 6 cycles from $7 load \n"
+" xor $21,$22,$22 # 5 cycles from $22 load \n"
+" \n"
+" xor $1,$2,$2 # 9 cycles from $2 load \n"
+" xor $24,$25,$25 # 5 cycles from $25 load \n"
+" stq $2,0($17) \n"
+" xor $4,$5,$5 # 6 cycles from $5 load \n"
+" \n"
+" stq $5,8($17) \n"
+" xor $7,$20,$20 # 7 cycles from $20 load \n"
+" stq $20,16($17) \n"
+" xor $22,$23,$23 # 7 cycles from $23 load \n"
+" \n"
+" stq $23,24($17) \n"
+" xor $25,$27,$27 # 7 cycles from $27 load \n"
+" stq $27,32($17) \n"
+" nop \n"
+" \n"
+" ldq $0,40($17) \n"
+" ldq $1,40($18) \n"
+" ldq $3,48($17) \n"
+" ldq $4,48($18) \n"
+" \n"
+" ldq $6,56($17) \n"
+" ldq $7,56($18) \n"
+" ldq $2,40($19) \n"
+" ldq $5,48($19) \n"
+" \n"
+" ldq $20,56($19) \n"
+" ldq $31,256($17) \n"
+" ldq $31,256($18) \n"
+" ldq $31,256($19) \n"
+" \n"
+" xor $0,$1,$1 # 6 cycles from $1 load \n"
+" xor $3,$4,$4 # 5 cycles from $4 load \n"
+" xor $6,$7,$7 # 5 cycles from $7 load \n"
+" xor $1,$2,$2 # 4 cycles from $2 load \n"
+" \n"
+" xor $4,$5,$5 # 5 cycles from $5 load \n"
+" xor $7,$20,$20 # 4 cycles from $20 load \n"
+" stq $2,40($17) \n"
+" subq $16,1,$16 \n"
+" \n"
+" stq $5,48($17) \n"
+" addq $19,64,$19 \n"
+" stq $20,56($17) \n"
+" addq $18,64,$18 \n"
+" \n"
+" addq $17,64,$17 \n"
+" bgt $16,3b \n"
+" ret \n"
+" .end xor_alpha_prefetch_3 \n"
+" \n"
+" .align 3 \n"
+" .ent xor_alpha_prefetch_4 \n"
+"xor_alpha_prefetch_4: \n"
+" .prologue 0 \n"
+" srl $16, 6, $16 \n"
+" \n"
+" ldq $31, 0($17) \n"
+" ldq $31, 0($18) \n"
+" ldq $31, 0($19) \n"
+" ldq $31, 0($20) \n"
+" \n"
+" ldq $31, 64($17) \n"
+" ldq $31, 64($18) \n"
+" ldq $31, 64($19) \n"
+" ldq $31, 64($20) \n"
+" \n"
+" ldq $31, 128($17) \n"
+" ldq $31, 128($18) \n"
+" ldq $31, 128($19) \n"
+" ldq $31, 128($20) \n"
+" \n"
+" ldq $31, 192($17) \n"
+" ldq $31, 192($18) \n"
+" ldq $31, 192($19) \n"
+" ldq $31, 192($20) \n"
+" .align 4 \n"
+"4: \n"
+" ldq $0,0($17) \n"
+" ldq $1,0($18) \n"
+" ldq $2,0($19) \n"
+" ldq $3,0($20) \n"
+" \n"
+" ldq $4,8($17) \n"
+" ldq $5,8($18) \n"
+" ldq $6,8($19) \n"
+" ldq $7,8($20) \n"
+" \n"
+" ldq $21,16($17) \n"
+" ldq $22,16($18) \n"
+" ldq $23,16($19) \n"
+" ldq $24,16($20) \n"
+" \n"
+" ldq $25,24($17) \n"
+" xor $0,$1,$1 # 6 cycles from $1 load \n"
+" ldq $27,24($18) \n"
+" xor $2,$3,$3 # 6 cycles from $3 load \n"
+" \n"
+" ldq $0,24($19) \n"
+" xor $1,$3,$3 \n"
+" ldq $1,24($20) \n"
+" xor $4,$5,$5 # 7 cycles from $5 load \n"
+" \n"
+" stq $3,0($17) \n"
+" xor $6,$7,$7 \n"
+" xor $21,$22,$22 # 7 cycles from $22 load \n"
+" xor $5,$7,$7 \n"
+" \n"
+" stq $7,8($17) \n"
+" xor $23,$24,$24 # 7 cycles from $24 load \n"
+" ldq $2,32($17) \n"
+" xor $22,$24,$24 \n"
+" \n"
+" ldq $3,32($18) \n"
+" ldq $4,32($19) \n"
+" ldq $5,32($20) \n"
+" xor $25,$27,$27 # 8 cycles from $27 load \n"
+" \n"
+" ldq $6,40($17) \n"
+" ldq $7,40($18) \n"
+" ldq $21,40($19) \n"
+" ldq $22,40($20) \n"
+" \n"
+" stq $24,16($17) \n"
+" xor $0,$1,$1 # 9 cycles from $1 load \n"
+" xor $2,$3,$3 # 5 cycles from $3 load \n"
+" xor $27,$1,$1 \n"
+" \n"
+" stq $1,24($17) \n"
+" xor $4,$5,$5 # 5 cycles from $5 load \n"
+" ldq $23,48($17) \n"
+" xor $3,$5,$5 \n"
+" \n"
+" ldq $24,48($18) \n"
+" ldq $25,48($19) \n"
+" ldq $27,48($20) \n"
+" ldq $0,56($17) \n"
+" \n"
+" ldq $1,56($18) \n"
+" ldq $2,56($19) \n"
+" ldq $3,56($20) \n"
+" xor $6,$7,$7 # 8 cycles from $6 load \n"
+" \n"
+" ldq $31,256($17) \n"
+" xor $21,$22,$22 # 8 cycles from $22 load \n"
+" ldq $31,256($18) \n"
+" xor $7,$22,$22 \n"
+" \n"
+" ldq $31,256($19) \n"
+" xor $23,$24,$24 # 6 cycles from $24 load \n"
+" ldq $31,256($20) \n"
+" xor $25,$27,$27 # 6 cycles from $27 load \n"
+" \n"
+" stq $5,32($17) \n"
+" xor $24,$27,$27 \n"
+" xor $0,$1,$1 # 7 cycles from $1 load \n"
+" xor $2,$3,$3 # 6 cycles from $3 load \n"
+" \n"
+" stq $22,40($17) \n"
+" xor $1,$3,$3 \n"
+" stq $27,48($17) \n"
+" subq $16,1,$16 \n"
+" \n"
+" stq $3,56($17) \n"
+" addq $20,64,$20 \n"
+" addq $19,64,$19 \n"
+" addq $18,64,$18 \n"
+" \n"
+" addq $17,64,$17 \n"
+" bgt $16,4b \n"
+" ret \n"
+" .end xor_alpha_prefetch_4 \n"
+" \n"
+" .align 3 \n"
+" .ent xor_alpha_prefetch_5 \n"
+"xor_alpha_prefetch_5: \n"
+" .prologue 0 \n"
+" srl $16, 6, $16 \n"
+" \n"
+" ldq $31, 0($17) \n"
+" ldq $31, 0($18) \n"
+" ldq $31, 0($19) \n"
+" ldq $31, 0($20) \n"
+" ldq $31, 0($21) \n"
+" \n"
+" ldq $31, 64($17) \n"
+" ldq $31, 64($18) \n"
+" ldq $31, 64($19) \n"
+" ldq $31, 64($20) \n"
+" ldq $31, 64($21) \n"
+" \n"
+" ldq $31, 128($17) \n"
+" ldq $31, 128($18) \n"
+" ldq $31, 128($19) \n"
+" ldq $31, 128($20) \n"
+" ldq $31, 128($21) \n"
+" \n"
+" ldq $31, 192($17) \n"
+" ldq $31, 192($18) \n"
+" ldq $31, 192($19) \n"
+" ldq $31, 192($20) \n"
+" ldq $31, 192($21) \n"
+" .align 4 \n"
+"5: \n"
+" ldq $0,0($17) \n"
+" ldq $1,0($18) \n"
+" ldq $2,0($19) \n"
+" ldq $3,0($20) \n"
+" \n"
+" ldq $4,0($21) \n"
+" ldq $5,8($17) \n"
+" ldq $6,8($18) \n"
+" ldq $7,8($19) \n"
+" \n"
+" ldq $22,8($20) \n"
+" ldq $23,8($21) \n"
+" ldq $24,16($17) \n"
+" ldq $25,16($18) \n"
+" \n"
+" ldq $27,16($19) \n"
+" xor $0,$1,$1 # 6 cycles from $1 load \n"
+" ldq $28,16($20) \n"
+" xor $2,$3,$3 # 6 cycles from $3 load \n"
+" \n"
+" ldq $0,16($21) \n"
+" xor $1,$3,$3 \n"
+" ldq $1,24($17) \n"
+" xor $3,$4,$4 # 7 cycles from $4 load \n"
+" \n"
+" stq $4,0($17) \n"
+" xor $5,$6,$6 # 7 cycles from $6 load \n"
+" xor $7,$22,$22 # 7 cycles from $22 load \n"
+" xor $6,$23,$23 # 7 cycles from $23 load \n"
+" \n"
+" ldq $2,24($18) \n"
+" xor $22,$23,$23 \n"
+" ldq $3,24($19) \n"
+" xor $24,$25,$25 # 8 cycles from $25 load \n"
+" \n"
+" stq $23,8($17) \n"
+" xor $25,$27,$27 # 8 cycles from $27 load \n"
+" ldq $4,24($20) \n"
+" xor $28,$0,$0 # 7 cycles from $0 load \n"
+" \n"
+" ldq $5,24($21) \n"
+" xor $27,$0,$0 \n"
+" ldq $6,32($17) \n"
+" ldq $7,32($18) \n"
+" \n"
+" stq $0,16($17) \n"
+" xor $1,$2,$2 # 6 cycles from $2 load \n"
+" ldq $22,32($19) \n"
+" xor $3,$4,$4 # 4 cycles from $4 load \n"
+" \n"
+" ldq $23,32($20) \n"
+" xor $2,$4,$4 \n"
+" ldq $24,32($21) \n"
+" ldq $25,40($17) \n"
+" \n"
+" ldq $27,40($18) \n"
+" ldq $28,40($19) \n"
+" ldq $0,40($20) \n"
+" xor $4,$5,$5 # 7 cycles from $5 load \n"
+" \n"
+" stq $5,24($17) \n"
+" xor $6,$7,$7 # 7 cycles from $7 load \n"
+" ldq $1,40($21) \n"
+" ldq $2,48($17) \n"
+" \n"
+" ldq $3,48($18) \n"
+" xor $7,$22,$22 # 7 cycles from $22 load \n"
+" ldq $4,48($19) \n"
+" xor $23,$24,$24 # 6 cycles from $24 load \n"
+" \n"
+" ldq $5,48($20) \n"
+" xor $22,$24,$24 \n"
+" ldq $6,48($21) \n"
+" xor $25,$27,$27 # 7 cycles from $27 load \n"
+" \n"
+" stq $24,32($17) \n"
+" xor $27,$28,$28 # 8 cycles from $28 load \n"
+" ldq $7,56($17) \n"
+" xor $0,$1,$1 # 6 cycles from $1 load \n"
+" \n"
+" ldq $22,56($18) \n"
+" ldq $23,56($19) \n"
+" ldq $24,56($20) \n"
+" ldq $25,56($21) \n"
+" \n"
+" ldq $31,256($17) \n"
+" xor $28,$1,$1 \n"
+" ldq $31,256($18) \n"
+" xor $2,$3,$3 # 9 cycles from $3 load \n"
+" \n"
+" ldq $31,256($19) \n"
+" xor $3,$4,$4 # 9 cycles from $4 load \n"
+" ldq $31,256($20) \n"
+" xor $5,$6,$6 # 8 cycles from $6 load \n"
+" \n"
+" stq $1,40($17) \n"
+" xor $4,$6,$6 \n"
+" xor $7,$22,$22 # 7 cycles from $22 load \n"
+" xor $23,$24,$24 # 6 cycles from $24 load \n"
+" \n"
+" stq $6,48($17) \n"
+" xor $22,$24,$24 \n"
+" ldq $31,256($21) \n"
+" xor $24,$25,$25 # 8 cycles from $25 load \n"
+" \n"
+" stq $25,56($17) \n"
+" subq $16,1,$16 \n"
+" addq $21,64,$21 \n"
+" addq $20,64,$20 \n"
+" \n"
+" addq $19,64,$19 \n"
+" addq $18,64,$18 \n"
+" addq $17,64,$17 \n"
+" bgt $16,5b \n"
+" \n"
+" ret \n"
+" .end xor_alpha_prefetch_5 \n"
+);
static struct xor_block_template xor_block_alpha = {
name: "alpha",
--
| Thorsten Kranzkowski Internet: dl8bcu@dl8bcu.de |
| Mobile: ++49 170 1876134 Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] [RESENT] compilation warnings 4/6
2002-11-09 1:07 ` [PATCH] [RESENT] compilation warnings 4/6 Thorsten Kranzkowski
2002-11-09 1:08 ` [PATCH] [RESENT] compilation warnings 5/6 Thorsten Kranzkowski
@ 2002-11-09 1:47 ` Michal Jaegermann
2002-11-09 5:51 ` Richard Henderson
2 siblings, 0 replies; 13+ messages in thread
From: Michal Jaegermann @ 2002-11-09 1:47 UTC (permalink / raw)
To: axp-list
On Sat, Nov 09, 2002 at 01:07:17AM +0000, Thorsten Kranzkowski wrote:
>
> diff -ur linux-2.5.46/arch/alpha/kernel/time.c linux-2.5.46-ds20/arch/alpha/kernel/time.c
....
> - if (diff > one_percent) {
> + if ((unsigned long)diff > one_percent) {
....
This reminds me and has really nothing to do with signs on casts. :-)
One percent is 36 secons per hour. With such big drift I was always
getting "frequncy bogus" and a clock which was loosing big time all the
time (bad puns somewhat intended :-). In kernels I am using currently I
have now dot_one_percent, i.e. I dropped that down by a factor of 100
and clocks started to behave. I see in /proc/cpu:
cycle frequency [Hz] : 796692134
instead of 800000000 as before and that is how it should be.
Michal
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] [RESENT] compilation warnings 1/6
2002-11-09 1:00 [PATCH] [RESENT] compilation warnings 1/6 Thorsten Kranzkowski
2002-11-09 1:03 ` [PATCH] [RESENT] compilation warnings 2/6 Thorsten Kranzkowski
@ 2002-11-09 4:32 ` Richard Henderson
1 sibling, 0 replies; 13+ messages in thread
From: Richard Henderson @ 2002-11-09 4:32 UTC (permalink / raw)
To: Richard Henderson, axp-list mailing list
On Sat, Nov 09, 2002 at 01:00:40AM +0000, Thorsten Kranzkowski wrote:
> +++ linux-2.5.46-ds20/arch/alpha/kernel/setup.c Fri Nov 8 23:34:16 2002
> @@ -202,7 +202,7 @@
> };
>
> struct resource *io = &ioport_resource;
> - long i;
> + unsigned long i;
For future reference, sizeof (and thus the N macro) returns a
value of type size_t. It's better to match when possible.
Thanks for the annotations. This is exactly what I was looking for.
First patch applied.
r~
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] [RESENT] compilation warnings 3/6
2002-11-09 1:05 ` [PATCH] [RESENT] compilation warnings 3/6 Thorsten Kranzkowski
2002-11-09 1:07 ` [PATCH] [RESENT] compilation warnings 4/6 Thorsten Kranzkowski
@ 2002-11-09 4:50 ` Richard Henderson
2002-11-09 19:14 ` Peter Rival
1 sibling, 1 reply; 13+ messages in thread
From: Richard Henderson @ 2002-11-09 4:50 UTC (permalink / raw)
To: Richard Henderson, axp-list mailing list
On Sat, Nov 09, 2002 at 01:05:03AM +0000, Thorsten Kranzkowski wrote:
> void
> -mchk_dump_mem(void *data, int length, char **annotation)
> +mchk_dump_mem(void *data, unsigned int length, char **annotation)
> {
> unsigned long *ldata = data;
> - int i;
> + unsigned int i;
>
> for(i = 0; (i * sizeof(*ldata)) < length; i++) {
Again, size_t seems to be exactly the right type.
> ### i is again a loopcounter with supposedly only positive values.
> ### OTOH this funktion needs more thought. In its current form
> ### it may copy arbitrary amounts of memory when given a negative
> ### value for namelen. 'len' should be removes altogether.
> ### I suppose the 'int namelen' is architecturally defined?
Can someone with access to Tru64 headers check the definition
of the getdomainname syscall?
I'm going to leave this hunk out for now.
> ### hose->index is unsigned int but pci_controller_num is defined
> ### int everywhere. who is right?
Eh, "int" is I guess by fiat. This is good enough.
r~
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] [RESENT] compilation warnings 4/6
2002-11-09 1:07 ` [PATCH] [RESENT] compilation warnings 4/6 Thorsten Kranzkowski
2002-11-09 1:08 ` [PATCH] [RESENT] compilation warnings 5/6 Thorsten Kranzkowski
2002-11-09 1:47 ` [PATCH] [RESENT] compilation warnings 4/6 Michal Jaegermann
@ 2002-11-09 5:51 ` Richard Henderson
2 siblings, 0 replies; 13+ messages in thread
From: Richard Henderson @ 2002-11-09 5:51 UTC (permalink / raw)
To: Richard Henderson, axp-list mailing list
On Sat, Nov 09, 2002 at 01:07:17AM +0000, Thorsten Kranzkowski wrote:
> ### type is a long parameter. it is explicitely normaized to positive
> ### values. the only caller supplies an unsigned long from hwrpb_struct.
> ### But there is this comment suggesting there are 'negative' values:
> ### /* Restore real CABRIO and EB66+ family names, ie EB64+ and EB66 */
> ### if (type < 0)
> ### type = -type;
I think maybe this is historical. I can't find where such
negation might be happening.
What I did find is
#if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_CABRIOLET)
/*
* CABRIO SRM may not set variation correctly, so here we test
* the high word of the interrupt summary register for the RAZ
* bits, and hope that a true EB64+ would read all ones...
*/
if (inw(0x806) != 0xffff) {
extern struct alpha_machine_vector cabriolet_mv;
printk("Detected Cabriolet: correcting HWRPB.\n");
hwrpb->sys_variation |= 2L << 10;
hwrpb_update_checksum(hwrpb);
alpha_mv = cabriolet_mv;
alpha_mv.init_irq();
return;
}
#endif /* GENERIC */
which looks like it might be serving the same function.
Indeed, looking at linux 2.0.0 sources we find in apecs_init,
/*
* JAE: HACK!!! for now, hardwire if configured...
* davidm: Older miniloader versions don't set the clockfrequency
* right, so hardcode it for now.
*/
if (hwrpb->sys_type == ST_DEC_EB64P) {
hwrpb->sys_type = ST_DEC_EBPC64;
}
and in asm/hwrpb.h,
#define ST_DEC_EB64P 20 /* EB64+ systype */
#define ST_DEC_EB66P -19 /* EB66 systype */
#define ST_DEC_EBPC64 -20 /* Cabriolet (AlphaPC64) systype */
So I think that all this can go away and we can just make type unsigned long.
> ### assignment from pointer to integer without a cast.
> ### ok, cast it.
[...]
> - info.si_addr = regs.pc;
> + info.si_addr = (void *)regs.pc;
Already in my tree.
r~
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] [RESENT] compilation warnings 3/6
2002-11-09 4:50 ` [PATCH] [RESENT] compilation warnings 3/6 Richard Henderson
@ 2002-11-09 19:14 ` Peter Rival
2002-11-09 21:29 ` Michal Jaegermann
2002-11-14 6:44 ` Richard Henderson
0 siblings, 2 replies; 13+ messages in thread
From: Peter Rival @ 2002-11-09 19:14 UTC (permalink / raw)
To: axp-list; +Cc: Richard Henderson
Richard Henderson wrote:
> On Sat, Nov 09, 2002 at 01:05:03AM +0000, Thorsten Kranzkowski wrote:
>
<snip>
>
> > ### i is again a loopcounter with supposedly only positive values.
> > ### OTOH this funktion needs more thought. In its current form
> > ### it may copy arbitrary amounts of memory when given a negative
> > ### value for namelen. 'len' should be removes altogether.
> > ### I suppose the 'int namelen' is architecturally defined?
>
> Can someone with access to Tru64 headers check the definition
> of the getdomainname syscall?
>
> I'm going to leave this hunk out for now.
>
Ask and ye shall receive. From a cscope database of V5.1A kernel
sources:
int
getdomainname(struct proc *p,
void *args,
long *retval)
{
...
}
Good 'nuff?
- Pete
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] [RESENT] compilation warnings 3/6
2002-11-09 19:14 ` Peter Rival
@ 2002-11-09 21:29 ` Michal Jaegermann
2002-11-14 6:44 ` Richard Henderson
1 sibling, 0 replies; 13+ messages in thread
From: Michal Jaegermann @ 2002-11-09 21:29 UTC (permalink / raw)
To: axp-list
On Sat, Nov 09, 2002 at 02:14:40PM -0500, Peter Rival wrote:
> Richard Henderson wrote:
>
> > On Sat, Nov 09, 2002 at 01:05:03AM +0000, Thorsten Kranzkowski wrote:
>
> <snip>
> >
> > > ### i is again a loopcounter with supposedly only positive values.
> > > ### OTOH this funktion needs more thought. In its current form
> > > ### it may copy arbitrary amounts of memory when given a negative
> > > ### value for namelen. 'len' should be removes altogether.
The current code for 'int osf_getdomainname(char *name, int namelen)'
goes like that:
unsigned len;
....
len = namelen;
if (namelen > 32)
len = 32;
...
Replacing that test with 'if (len > 32U)' would cut all negative values
for namelen to 32. Still likely a verify_area() call would end with an
error first; it has 'inline int verify_area(int type, const void * addr,
unsigned long size)' for a prototype. It is a good question if a code
like
.....
unsigned len = namelen;
int i, error;
if (len > 32)
len = 32;
error = verify_area(VERIFY_WRITE, name, len);
if (error)
goto out;
.....
would be not preferable. Maybe not. It would "mask" some weird
arguments.
> > > ### I suppose the 'int namelen' is architecturally defined?
> >
> > Can someone with access to Tru64 headers check the definition
> > of the getdomainname syscall?
> >
> > I'm going to leave this hunk out for now.
> >
>
> Ask and ye shall receive. From a cscope database of V5.1A kernel
> sources:
>
> int
> getdomainname(struct proc *p,
> void *args,
> long *retval)
> {
> ...
> }
Is this for a system call? If yes then an interface between
versions 4 and 5 would be totally different. Hm.... Other surprises?
Michal
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] [RESENT] compilation warnings 3/6
2002-11-09 19:14 ` Peter Rival
2002-11-09 21:29 ` Michal Jaegermann
@ 2002-11-14 6:44 ` Richard Henderson
1 sibling, 0 replies; 13+ messages in thread
From: Richard Henderson @ 2002-11-14 6:44 UTC (permalink / raw)
To: axp-list; +Cc: Richard Henderson
On Sat, Nov 09, 2002 at 02:14:40PM -0500, Peter Rival wrote:
> Ask and ye shall receive. From a cscope database of V5.1A kernel
> sources:
>
> int
> getdomainname(struct proc *p,
> void *args,
> long *retval)
> {
> ...
> }
>
> Good 'nuff?
Nope. This is not the actual user/kernel interface. My guess is
that this function pulls out arguments from "args" in some fashion.
Easier: what's the userland syscall look like?
r~
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2002-11-14 6:44 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-09 1:00 [PATCH] [RESENT] compilation warnings 1/6 Thorsten Kranzkowski
2002-11-09 1:03 ` [PATCH] [RESENT] compilation warnings 2/6 Thorsten Kranzkowski
2002-11-09 1:05 ` [PATCH] [RESENT] compilation warnings 3/6 Thorsten Kranzkowski
2002-11-09 1:07 ` [PATCH] [RESENT] compilation warnings 4/6 Thorsten Kranzkowski
2002-11-09 1:08 ` [PATCH] [RESENT] compilation warnings 5/6 Thorsten Kranzkowski
2002-11-09 1:13 ` [PATCH] [RESENT] compilation warnings 6/6 Thorsten Kranzkowski
2002-11-09 1:47 ` [PATCH] [RESENT] compilation warnings 4/6 Michal Jaegermann
2002-11-09 5:51 ` Richard Henderson
2002-11-09 4:50 ` [PATCH] [RESENT] compilation warnings 3/6 Richard Henderson
2002-11-09 19:14 ` Peter Rival
2002-11-09 21:29 ` Michal Jaegermann
2002-11-14 6:44 ` Richard Henderson
2002-11-09 4:32 ` [PATCH] [RESENT] compilation warnings 1/6 Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox