arch/sparc dismiss non-Unicode characters issue

This commit is contained in:
zouboan 2022-10-12 20:32:52 +08:00 committed by Alan Carvalho de Assis
parent 7d34ebdd4e
commit d3f84ba724
2 changed files with 4 additions and 12 deletions

View File

@ -324,7 +324,7 @@ __start:
set BM3803_REG,%g1
ld [%g1+4], %g2
or %g2, 0x4f, %g2 /**/
or %g2, 0x4f, %g2 !Enable read-modify-write cycle(no byte write strobe),maximum wait-states
st %g2, [%g1+4]
nop

View File

@ -49,19 +49,11 @@
void up_systemreset(void)
{
asm("st %g0,[%g1+0x90]"); /* ÐŽÈëÖжό¶±ðºÍÓÅÏÈ¿ØÖƌĎæÆ÷£¬ÆÁ±ÎËùÓÐÖÐ¶Ï */
asm("st %g0,[%g1+0x94]"); /* ÐŽÈëÖжÏÇëÇóŒÄŽæÆ÷,Çå³ýËùÓеÄÖÐ¶Ï */
asm("st %g0,[%g1+0x98]"); /* ÐŽÈëÇ¿ÖÆÖжόĎæÆ÷£¬Çå³ýËùÓÐÖÐ¶Ï */
(void)sparc_disable_interrupts();
/* Çå³ýËùÓб»×èÈûµÄÖÐ¶Ï */
/* reboot from ram */
asm("set 0xfffe,%g2"); /* ÉèÖÃÖжÏÇå³ýŒÄŽæÆ÷µÄÖµ */
asm("st %g2,[%g1+0x9c]"); /* ÐŽÈëÖжÏÇå³ýŒÄŽæÆ÷£¬Çå³ýËùÓеÄÖÐ¶Ï */
asm("set 0x1024, %l4");
asm("jmp %l4");
asm("nop");
asm("nop");
((void (*)(void))CONFIG_RAM_START)();
/* Wait for the reset */