From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9724ac79049bc26a724978dd60a219b2@gmx.de> To: 9fans@9fans.net Date: Thu, 8 Apr 2010 00:52:42 +0200 From: cinap_lenrek@gmx.de In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-ojhihbwcddxqcftohnnyudbavw" Subject: [9fans] bootiso.s fixed Topicbox-Message-UUID: fdb00bc2-ead5-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-ojhihbwcddxqcftohnnyudbavw Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit found it! the problem was the LBPB() to load byte 0 from the pvd for comparsion. i loaded it into rBX instead of rBL. found this out after dumping the buffer and noticed that the contents where the same on t23 and amd machine. it all works now. tested on t23, bochs, and amd machine and its blazing fast :) updated the tarballs: /n/sources/contrib/cinap_lenrek/tuttleboot.tgz http://9hal.ath.cx/usr/cinap_lenrek/tuttleboot.tgz attached the file and the diff to this mail... -- cinap --upas-ojhihbwcddxqcftohnnyudbavw Content-Disposition: inline Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit #include "x16.h" #include "mem.h" /* * simple Plan 9 bootblock for ISO9660 that can load a uncompressed a.out kernel * image. looks for 386/9pcload. if heres no 386 it searches 9pcload in the root. * this is a non floppy emulation el torito bootblock! * * Diagnostics are: * ♥ alive! * ? i/o error, will retry * ! i/o error, giving up * F bad a.out magic * S could not find the file * */ #define DATA32SEL SELECTOR(1, SELGDT, 0) #define EXEC32SEL SELECTOR(2, SELGDT, 0) #define EXEC16SEL SELECTOR(3, SELGDT, 0) #define FARRET \ BYTE $0xCB #define SWAPB(r) \ BYTE $0x0F; BYTE $(0xC8|r) #define XORAL(i) \ BYTE $0x34; BYTE $i /* 2048 byte sectors */ #define SECTSHIFT 0x0B #define BY2SECT (1<