An error in u-boot-2009.08/cpu/arm920t/start.S
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/
Dear Tom,
Quoted 5 lines · In message <[email protected]>…
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
Signature · 6 lines
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
Quoted 10 lines · Wolfgang Denk
Dear Tom,
Quoted 4 lines · In message <[email protected]>…
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
Quoted 4 lines
Best regards,
Wolfgang Denk
Quoted 1 line
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
Quoted 7 lines · Alessandro Rubini
Quoted 1 line
Does someone have the s3c2410 manual?
2410UserManual.pdf:
USER'S MANUAL
S3C2410A ? 200MHz & 266MHz 32-Bit RISC Microprocessor Revision 1.0
Quoted 6 lines
[...]
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.
Quoted 1 line
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.
Quoted 2 lines
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
Quoted 1 line
/alessandro