From: Richard Henderson <rth@twiddle.net>
To: Richard Henderson <rth@redhat.com>,
axp-list mailing list <axp-list@redhat.com>
Subject: Re: [PATCH] [RESENT] compilation warnings 4/6
Date: Fri, 8 Nov 2002 21:51:22 -0800 [thread overview]
Message-ID: <20021108215122.D3169@twiddle.net> (raw)
In-Reply-To: <20021109010716.G18411@Marvin.DL8BCU.ampr.org>; from dl8bcu@dl8bcu.de on Sat, Nov 09, 2002 at 01:07:17AM +0000
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~
next prev parent reply other threads:[~2002-11-09 5:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox