From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <8236b69bcd50ae4ebc333372f1cf824d@plan9.escet.urjc.es> To: 9fans@cse.psu.edu Subject: RE: [9fans] supported ipaq's? From: Fco.J.Ballesteros MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-yzgogwsebqmoktjpwkibnxubct" Date: Tue, 25 Jun 2002 18:46:27 +0200 Topicbox-Message-UUID: b8ba6fb8-eaca-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-yzgogwsebqmoktjpwkibnxubct Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I think I sent this before to 9fans, but here's it again. It's /sys/src/boot/arm/il.s. Let me know if you have problems with it. I haven't compiled it for so long... --upas-yzgogwsebqmoktjpwkibnxubct Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by aquamar; Tue Jun 25 17:56:22 MDT 2002 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.6.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 98FB619A6C; Tue, 25 Jun 2002 11:56:13 -0400 (EDT) Delivered-To: 9fans@cse.psu.edu Received: from mimesweeper.pigroup.co.uk (mailgate.pitechnology.co.uk [194.203.134.3]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 7365A19A6A for <9fans@cse.psu.edu>; Tue, 25 Jun 2002 11:55:14 -0400 (EDT) Received: from eagle.pigroup.co.uk (unverified) by mimesweeper.pigroup.co.uk (Content Technologies SMTPRS 2.0.15) with ESMTP id for <9fans@cse.psu.edu>; Tue, 25 Jun 2002 16:47:17 +0100 Received: by eagle.pigroup.co.uk with Internet Mail Service (5.5.2650.21) id ; Tue, 25 Jun 2002 16:56:24 +0100 Message-Id: From: Stephen Parker To: "'9fans@cse.psu.edu'" <9fans@cse.psu.edu> Subject: RE: [9fans] supported ipaq's? MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="ISO-8859-1" Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Tue, 25 Jun 2002 16:56:25 +0100 that sounds plausible. i'd like to try it. stephen -- Stephen Parker. Pi Technology. +44 (0)1223 203438. > -----Original Message----- > From: Fco.J.Ballesteros [mailto:nemo@plan9.escet.urjc.es] > Sent: 25 June 2002 16:54 > To: 9fans@cse.psu.edu > Subject: RE: [9fans] supported ipaq's? > > > If you get the `unrecognized magic number command' I can send you > an alternate 5l.s file that contains the magic number. > Is that your case? > --upas-yzgogwsebqmoktjpwkibnxubct Content-Type: multipart/mixed; boundary="upas-dfywjrzhafctetbqefjvhzcgfn" Content-Disposition: inline This is a multi-part message in MIME format. --upas-dfywjrzhafctetbqefjvhzcgfn Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit The following attachment had content that we can't prove to be harmless. To avoid possible automatic execution, we changed the content headers. The original header was: Content-Disposition: attachment; filename=il.s Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit --upas-dfywjrzhafctetbqefjvhzcgfn Content-Type: application/octet-stream Content-Disposition: attachment; filename="il.s.suspect" #include "mem.h" /* * Entered here from Compaq's bootldr. First relocate to * the location we're linked for and then copy back the * decompressed kernel. * * All */ TEXT _start(SB), $-4 MOVW $setR12(SB), R12 /* load the SB */ MOVW $1, R0 /* dance to make 5l think that the magic */ MOVW $1, R1 /* numbers in WORDs below are being used */ CMP.S R0, R1 /* and to align them to where bootldr wants */ BEQ _start2 WORD $0x016f2818 /* magic number to say we are a kernel */ WORD $0xc0008000 /* entry point address */ WORD $0 /* size?, or end of data? */ _start2: /* SVC mode, interrupts disabled */ MOVW $(PsrDirq|PsrDfiq|PsrMsvc), R1 MOVW R1, CPSR /* disable the MMU */ MOVW $0x130, R1 MCR CpMMU, 0, R1, C(CpControl), C(0x0) /* enable caches */ MRC CpMMU, 0, R0, C(CpControl), C(0x0) ORR $(CpCdcache|CpCicache|CpCwb), R0 MCR CpMMU, 0, R0, C(CpControl), C(0x0) /* flush caches */ MCR CpMMU, 0, R0, C(CpCacheFlush), C(0x7), 0 /* drain prefetch */ MOVW R0,R0 MOVW R0,R0 MOVW R0,R0 MOVW R0,R0 /* drain write buffer */ MCR CpMMU, 0, R0, C(CpCacheFlush), C(0xa), 4 /* relocate to where we expect to be */ MOVW $(512*1024),R3 MOVW $0xC0008000,R1 MOVW $0xC0200000,R2 ADD R1,R3 _relloop: MOVW (R1),R0 MOVW R0,(R2) ADD $4,R1 ADD $4,R2 CMP.S R1,R3 BNE _relloop MOVW $(MACHADDR+BY2PG), R13 /* stack */ SUB $4, R13 /* link */ /* jump to where we've been relocated */ MOVW $_relocated(SB),R15 TEXT _relocated(SB),$-4 BL main(SB) BL exit(SB) /* we shouldn't get here */ _mainloop: B _mainloop BL _div(SB) /* hack to get _div etc loaded */ TEXT mypc(SB),$-4 MOVW R14,R0 RET TEXT draincache(SB),$-4 /* write back any dirty data */ MOVW $0xe0000000,R0 ADD $(8*1024),R0,R1 _cfloop: MOVW.P 32(R0),R2 CMP.S R0,R1 BNE _cfloop /* drain write buffer and invalidate i&d cache contents */ MCR CpMMU, 0, R0, C(CpCacheFlush), C(0xa), 4 MCR CpMMU, 0, R0, C(CpCacheFlush), C(0x7), 0 /* drain prefetch */ MOVW R0,R0 MOVW R0,R0 MOVW R0,R0 MOVW R0,R0 /* disable caches */ MRC CpMMU, 0, R0, C(CpControl), C(0x0) BIC $(CpCdcache|CpCicache|CpCwb), R0 MCR CpMMU, 0, R0, C(CpControl), C(0x0) RET --upas-dfywjrzhafctetbqefjvhzcgfn-- --upas-yzgogwsebqmoktjpwkibnxubct--