public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] An error in u-boot-2009.08/cpu/arm920t/start.S
@ 2009-09-21  2:28 雷 高
  2009-11-22 21:23 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: 雷 高 @ 2009-09-21  2:28 UTC (permalink / raw)
  To: u-boot

In u-boot-2009.08/cpu/arm920t/start.S, the instruction of line 158 is "ldr??? r1, =0x3ff", but the effective bits in INTSUBMSK register of S3C2410 are [10...0]. So I think "0x3ff" is not right. The right value should be "0x7ff". 



      ___________________________________________________________ 
  ????????????????? 
http://card.mail.cn.yahoo.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] An error in u-boot-2009.08/cpu/arm920t/start.S
  2009-09-21  2:28 [U-Boot] An error in u-boot-2009.08/cpu/arm920t/start.S 雷 高
@ 2009-11-22 21:23 ` Wolfgang Denk
  2009-11-26  3:59   ` Tom
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2009-11-22 21:23 UTC (permalink / raw)
  To: u-boot

Dear Tom,

In message <902963.84935.qm@web15002.mail.cnb.yahoo.com> =?utf-8?B?6Zu3IOmrmA==?= wrote:
> 
> In u-boot-2009.08/cpu/arm920t/start.S, the instruction of line 158 is
> "ldr r1, x3ff", but the effective bits in INTSUBMSK register of
> S3C2410 are [10...0]. So I think "0x3ff" is not right. The right
> value should be "0x7ff".

What do you think?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"...all the  good  computer  designs  are  bootlegged;  the  formally
planned  products,  if  they  are built at all, are dogs!" - David E.
Lundstrom, "A Few Good Men From Univac", MIT Press, 1987

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] An error in u-boot-2009.08/cpu/arm920t/start.S
  2009-11-22 21:23 ` Wolfgang Denk
@ 2009-11-26  3:59   ` Tom
  2009-11-26  7:37     ` Alessandro Rubini
  0 siblings, 1 reply; 5+ messages in thread
From: Tom @ 2009-11-26  3:59 UTC (permalink / raw)
  To: u-boot

Wolfgang Denk wrote:
> Dear Tom,
> 
> In message <902963.84935.qm@web15002.mail.cnb.yahoo.com> =?utf-8?B?6Zu3IOmrmA==?= wrote:
>> In u-boot-2009.08/cpu/arm920t/start.S, the instruction of line 158 is
>> "ldr r1, x3ff", but the effective bits in INTSUBMSK register of
>> S3C2410 are [10...0]. So I think "0x3ff" is not right. The right
>> value should be "0x7ff".
> 
> What do you think?
> 

I am looking into this.
git log is unhelpful.  The commit happened in the initial import in 2002 (or 3?)
How does one look into the ancient history of u-boot?
Is there still a cvs version of the old src?

On the change, someone is wrong..
Does someone have the s3c2410 manual?
I have made a document request.
If someone could look this up and verify the bit extent is 11 or 10 bits that 
would be helpful.

Tom


> Best regards,
> 
> Wolfgang Denk
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] An error in u-boot-2009.08/cpu/arm920t/start.S
  2009-11-26  3:59   ` Tom
@ 2009-11-26  7:37     ` Alessandro Rubini
  2009-11-26 15:57       ` Tom
  0 siblings, 1 reply; 5+ messages in thread
From: Alessandro Rubini @ 2009-11-26  7:37 UTC (permalink / raw)
  To: u-boot

> Does someone have the s3c2410 manual?

2410UserManual.pdf:

   USER'S MANUAL
   S3C2410A ? 200MHz & 266MHz 32-Bit RISC Microprocessor Revision 1.0

   [...]

   INTERRUPT SUB MASK (INTSUBMSK) REGISTER This register has 11 bits each
   of which is related to an interrupt source. [...]

Bits 0..10 are valid, and Bit 10 is "INT_ADC".
Actually, I think masking all 32 bits can't have any adverse effect.
Also, reset value is documented to be 0x7FF (all masked).

/alessandro

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] An error in u-boot-2009.08/cpu/arm920t/start.S
  2009-11-26  7:37     ` Alessandro Rubini
@ 2009-11-26 15:57       ` Tom
  0 siblings, 0 replies; 5+ messages in thread
From: Tom @ 2009-11-26 15:57 UTC (permalink / raw)
  To: u-boot

Alessandro Rubini wrote:
>> Does someone have the s3c2410 manual?
> 
> 2410UserManual.pdf:
> 
>    USER'S MANUAL
>    S3C2410A ? 200MHz & 266MHz 32-Bit RISC Microprocessor Revision 1.0
> 
>    [...]
> 
>    INTERRUPT SUB MASK (INTSUBMSK) REGISTER This register has 11 bits each
>    of which is related to an interrupt source. [...]
> 
> Bits 0..10 are valid, and Bit 10 is "INT_ADC".

Yes

I have the manual now.

INTERRUPT SUB MASK (INTSUBMSK) REGISTER
This register has 11 bits each of which is related to an interrupt source.
If a specific bit is set to 1, the interrupt request from the corresponding
interrupt source is not serviced by the CPU (note that even in such a case,
the corresponding bit of the SUBSRCPND register is set to 1). If the mask bit
is 0, the interrupt request can be serviced.


> Actually, I think masking all 32 bits can't have any adverse effect.

No.
These are marked are resevered.
As reserved, we can not assume what the future meaning of these bits will
be.

> Also, reset value is documented to be 0x7FF (all masked).
>

Yes, the reset value is 7ff.
So I think this is a problem.

Please send a patch.
Thanks for finding this problem.
Tom

> /alessandro

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-26 15:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-21  2:28 [U-Boot] An error in u-boot-2009.08/cpu/arm920t/start.S 雷 高
2009-11-22 21:23 ` Wolfgang Denk
2009-11-26  3:59   ` Tom
2009-11-26  7:37     ` Alessandro Rubini
2009-11-26 15:57       ` Tom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox