From owner-freebsd-chat@FreeBSD.ORG Sun Jul 11 04:10:10 2004 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0127516A4CF for ; Sun, 11 Jul 2004 04:10:10 +0000 (GMT) Received: from ns3.tele-kom.ru (ns3.tele-kom.ru [217.107.251.251]) by mx1.FreeBSD.org (Postfix) with SMTP id B541D43D41 for ; Sun, 11 Jul 2004 04:10:08 +0000 (GMT) (envelope-from doublef@tele-kom.ru) Received: (qmail 27019 invoked from network); 11 Jul 2004 04:09:51 -0000 Received: from mx.tele-kom.ru (213.80.148.6) by ns.tele-kom.ru with SMTP; 11 Jul 2004 04:09:51 -0000 Received: (qmail 22000 invoked by uid 555); 11 Jul 2004 04:10:44 -0000 Received: from shark (213.80.149.135) by t-k.ru with TeleMail/2 id 1089519041-21959 for kdk@daleco.biz; Sun, 11 Jul 08:10:41 2004 +0400 (MSD) Received: by shark (Postfix, from userid 1000) id 03D5939F; Sun, 11 Jul 2004 07:52:29 +0400 (MSD) Date: Sun, 11 Jul 2004 07:52:29 +0400 From: Sergey Zaharchenko To: "Kevin D. Kinsey, DaleCo, S.P." Message-ID: <20040711035229.GA4340@shark.localdomain> References: <40F02ADB.1050106@daleco.biz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <40F02ADB.1050106@daleco.biz> User-Agent: Mutt/1.4.2.1i X-Listening-To: /Machina_Vremeni/Scvorez cc: chat@freebsd.org Subject: Re: Where should I look for info about about port syntax error(s)? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jul 2004 04:10:10 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 10, 2004 at 12:43:55PM -0500, Kevin D. Kinsey, DaleCo, S.P. probably wrote: > I'm trying to sort out an issue and am slightly overwhelmed > by the number of possible mailing lists I should be looking at... >=20 > I did "portupgrade -aRr" this week, and epiphany failed: >=20 > In file included from ContentHandler.cpp:30: > MozDownload.h:108: error: syntax error before `virtual' >=20 > Line 108 in "MozDownload.h" is: >=20 > virtual ~MozDownload(); >=20 > That's rendered in my editor as a superscript "tilde".=20 > I figured this to be one of those "easy fixes" that > I could perform; the tilde was the mistake, but removing > it gets me nowhere. What is *before* that line (as it says in the error message)? --=20 DoubleF I can read your mind, and you should be ashamed of yourself. --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA8Ll9wo7hT/9lVdwRAkq7AJ40XocXnw8Ab8KYc6sUj3J3TTwT2ACfQbkb mnJbo9EeK8X7bDEArzhBKJM= =RBhv -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf-- From owner-freebsd-chat@FreeBSD.ORG Thu Jul 15 00:58:29 2004 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D663516A4CE for ; Thu, 15 Jul 2004 00:58:29 +0000 (GMT) Received: from seven.Alameda.net (seven.alameda.net [64.81.53.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDF5E43D1F for ; Thu, 15 Jul 2004 00:58:29 +0000 (GMT) (envelope-from ulf@Alameda.net) Received: by seven.Alameda.net (Postfix, from userid 1000) id 5EE683A201; Wed, 14 Jul 2004 17:58:28 -0700 (PDT) Date: Wed, 14 Jul 2004 17:58:28 -0700 From: Ulf Zimmermann To: chat@FreeBSD.org Message-ID: <20040715005828.GA41460@seven.alameda.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Organization: Alameda Networks, Inc. X-Operating-System: FreeBSD 4.8-RELEASE-p5 Subject: 4-user KVM experiences? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ulf@Alameda.net List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2004 00:58:29 -0000 I currently have a Cybex Autoview 200 2-user, 8 computer KVM and love it. One feature I very much love, it allows me to have both user ports on the same computer and both keyboard/mouse can be used, very nice for training, showing things. Unfortunatly I need a 4-user KVM now, 8 computers would be still enough. I tried an Apex 4XP (1998 kvm), it doesn't allow the above feature, is 1024x768 max resolution and doesn't support handing screensaver putting the monitor into powersave through. I also tried a Raritan MX48, even with all Raritan cables, the image quality at 1280x1024 is pretty bad (example: Outlook new messages are bold black, non-new ones are black, hard to make out the difference). The Raritan also doesn't hand through the powersave for monitors. So anyone here who could recommend a KVM? -- Regards, Ulf. --------------------------------------------------------------------- Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204 You can find my resume at: http://seven.Alameda.net/~ulf/resume.html From owner-freebsd-chat@FreeBSD.ORG Thu Jul 15 02:40:36 2004 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 562FA16A4CE for ; Thu, 15 Jul 2004 02:40:36 +0000 (GMT) Received: from mail006.syd.optusnet.com.au (mail006.syd.optusnet.com.au [211.29.132.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5183943D55 for ; Thu, 15 Jul 2004 02:40:35 +0000 (GMT) (envelope-from syncman@optusnet.com.au) Received: from optusnet.com.au (c211-30-253-10.belrs1.nsw.optusnet.com.au [211.30.253.10]) (authenticated)i6F2eXx23794 for ; Thu, 15 Jul 2004 12:40:33 +1000 Message-ID: <40F5EE5B.9040703@optusnet.com.au> Date: Thu, 15 Jul 2004 12:39:23 +1000 From: Andrew Sinclair User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: chat@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: 4-user KVM experiences? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2004 02:40:36 -0000 Ulf Zimmermann wrote: > I currently have a Cybex Autoview 200 2-user, 8 computer KVM and love > it. One feature I very much love, it allows me to have both user ports > on the same computer and both keyboard/mouse can be used, very nice > for training, showing things. > > Unfortunatly I need a 4-user KVM now, 8 computers would be still enough. > I tried an Apex 4XP (1998 kvm), it doesn't allow the above feature, > is 1024x768 max resolution and doesn't support handing screensaver > putting the monitor into powersave through. I also tried a Raritan > MX48, even with all Raritan cables, the image quality at 1280x1024 > is pretty bad (example: Outlook new messages are bold black, non-new > ones are black, hard to make out the difference). The Raritan also > doesn't hand through the powersave for monitors. > > So anyone here who could recommend a KVM? > > > I have one of these: http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&category=11180&item=5709440955&rd=1 There is a slight ghosting effect on the analogue port in my computer but that would most likely be my GE-CUBE Raedon 9200SE video card. Other computers didn't have this. The video quality on all computers tested is otherwise very good. I think you could get a better deal than $90 though. This item will be listed for 7 days from the date this message was posted. From owner-freebsd-chat@FreeBSD.ORG Thu Jul 15 03:37:50 2004 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4755616A4CE for ; Thu, 15 Jul 2004 03:37:50 +0000 (GMT) Received: from mail001.syd.optusnet.com.au (mail001.syd.optusnet.com.au [211.29.132.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B19543D41 for ; Thu, 15 Jul 2004 03:37:49 +0000 (GMT) (envelope-from syncman@optusnet.com.au) Received: from optusnet.com.au (c211-30-253-10.belrs1.nsw.optusnet.com.au [211.30.253.10]) (authenticated)i6F3bl811689; Thu, 15 Jul 2004 13:37:47 +1000 Message-ID: <40F5FBC5.5020703@optusnet.com.au> Date: Thu, 15 Jul 2004 13:36:37 +1000 From: Andrew Sinclair User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: chat@freebsd.org References: <20040715005828.GA41460@seven.alameda.net> <40F5E9DF.2070204@optusnet.com.au> <20040715031538.GB41460@seven.alameda.net> In-Reply-To: <20040715031538.GB41460@seven.alameda.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: ulf@Alameda.net Subject: Re: 4-user KVM experiences? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2004 03:37:50 -0000 Ulf Zimmermann wrote: >On Thu, Jul 15, 2004 at 12:20:15PM +1000, Andrew Sinclair wrote: > > >>Ulf Zimmermann wrote: >> >> >> >>>I currently have a Cybex Autoview 200 2-user, 8 computer KVM and love >>>it. One feature I very much love, it allows me to have both user ports >>>on the same computer and both keyboard/mouse can be used, very nice >>>for training, showing things. >>> >>>Unfortunatly I need a 4-user KVM now, 8 computers would be still enough. >>>I tried an Apex 4XP (1998 kvm), it doesn't allow the above feature, >>>is 1024x768 max resolution and doesn't support handing screensaver >>>putting the monitor into powersave through. I also tried a Raritan >>>MX48, even with all Raritan cables, the image quality at 1280x1024 >>>is pretty bad (example: Outlook new messages are bold black, non-new >>>ones are black, hard to make out the difference). The Raritan also >>>doesn't hand through the powersave for monitors. >>> >>>So anyone here who could recommend a KVM? >>> >>> >>> >>> >>> >>I have one of these: >>http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&category=11180&item=5709440955&rd=1 >> >>There is a slight ghosting effect on the analogue port in my computer >>but that would most likely be my GE-CUBE Raedon 9200SE video card. Other >>computers didn't have this. The video quality on all computers tested is >>otherwise very good. >> >>I think you could get a better deal than $90 though. This item will be >>listed for 7 days from the date this message was posted. >> >> > >Reread my question :-). I asked for 4-User (ie. 4 times monitor, keyboard and >mouse) and 8 or more computers. > > > Thats going to cost you a fortune. If you have money to burn, Google is your friend: http://www.kvm-switches-online.com/multiple-user-kvm-switches.html (they have 4 user, 8+ computer switch) http://www.42u.com/kvm_switches_multi.htm (4 user 42 computer switch) From owner-freebsd-chat@FreeBSD.ORG Thu Jul 15 17:36:18 2004 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9E5616A4CF for ; Thu, 15 Jul 2004 17:36:18 +0000 (GMT) Received: from otter3.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5427543D46 for ; Thu, 15 Jul 2004 17:36:18 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by otter3.centtech.com (8.12.3/8.12.3) with ESMTP id i6FHaHE8097891 for ; Thu, 15 Jul 2004 12:36:17 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <40F6C086.3030306@centtech.com> Date: Thu, 15 Jul 2004 12:36:06 -0500 From: Eric Anderson User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-chat@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: AMD 64 machines with 32GB Memory? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2004 17:36:19 -0000 Does anyone have suggestions on a vendor that builds dual or quad Opteron machines that will support 32gb of memory? Eric -- ------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Talk sense to a fool and he calls you foolish. ------------------------------------------------------------------ From owner-freebsd-chat@FreeBSD.ORG Thu Jul 15 17:49:27 2004 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D1AD16A4CE for ; Thu, 15 Jul 2004 17:49:27 +0000 (GMT) Received: from seven.Alameda.net (seven.alameda.net [64.81.53.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1489343D1F for ; Thu, 15 Jul 2004 17:49:27 +0000 (GMT) (envelope-from ulf@Alameda.net) Received: by seven.Alameda.net (Postfix, from userid 1000) id D61AE3A206; Thu, 15 Jul 2004 10:49:26 -0700 (PDT) Date: Thu, 15 Jul 2004 10:49:26 -0700 From: Ulf Zimmermann To: Eric Anderson Message-ID: <20040715174926.GE41460@seven.alameda.net> References: <40F6C086.3030306@centtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40F6C086.3030306@centtech.com> User-Agent: Mutt/1.4.1i Organization: Alameda Networks, Inc. X-Operating-System: FreeBSD 4.8-RELEASE-p5 cc: freebsd-chat@freebsd.org Subject: Re: AMD 64 machines with 32GB Memory? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ulf@Alameda.net List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2004 17:49:27 -0000 On Thu, Jul 15, 2004 at 12:36:06PM -0500, Eric Anderson wrote: > Does anyone have suggestions on a vendor that builds dual or quad > Opteron machines that will support 32gb of memory? > > Eric > I believe the HP Proliant DL585 (quad Opteron) will take 32GB, the P4 version (DL580) does. -- Regards, Ulf. --------------------------------------------------------------------- Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204 You can find my resume at: http://seven.Alameda.net/~ulf/resume.html From owner-freebsd-chat@FreeBSD.ORG Thu Jul 15 17:52:32 2004 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5072116A4CE for ; Thu, 15 Jul 2004 17:52:32 +0000 (GMT) Received: from seven.Alameda.net (seven.alameda.net [64.81.53.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43EAD43D46 for ; Thu, 15 Jul 2004 17:52:32 +0000 (GMT) (envelope-from ulf@Alameda.net) Received: by seven.Alameda.net (Postfix, from userid 1000) id 0FD803A201; Thu, 15 Jul 2004 10:52:32 -0700 (PDT) Date: Thu, 15 Jul 2004 10:52:32 -0700 From: Ulf Zimmermann To: Ulf Zimmermann Message-ID: <20040715175231.GF41460@seven.alameda.net> References: <40F6C086.3030306@centtech.com> <20040715174926.GE41460@seven.alameda.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040715174926.GE41460@seven.alameda.net> User-Agent: Mutt/1.4.1i Organization: Alameda Networks, Inc. X-Operating-System: FreeBSD 4.8-RELEASE-p5 cc: Eric Anderson cc: freebsd-chat@freebsd.org Subject: Re: AMD 64 machines with 32GB Memory? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ulf@Alameda.net List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2004 17:52:32 -0000 On Thu, Jul 15, 2004 at 10:49:26AM -0700, Ulf Zimmermann wrote: > On Thu, Jul 15, 2004 at 12:36:06PM -0500, Eric Anderson wrote: > > Does anyone have suggestions on a vendor that builds dual or quad > > Opteron machines that will support 32gb of memory? > > > > Eric > > > > I believe the HP Proliant DL585 (quad Opteron) will take 32GB, the > P4 version (DL580) does. To reply to myself, the DL585 does 64GB. -- Regards, Ulf. --------------------------------------------------------------------- Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204 You can find my resume at: http://seven.Alameda.net/~ulf/resume.html From owner-freebsd-chat@FreeBSD.ORG Fri Jul 16 15:22:47 2004 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5083416A4CE for ; Fri, 16 Jul 2004 15:22:47 +0000 (GMT) Received: from door.intbel.ru (boos.intbel.ru [62.76.203.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7417643D1D for ; Fri, 16 Jul 2004 15:22:46 +0000 (GMT) (envelope-from breath@unix.net) Received: from [62.76.203.4] by door.intbel.ru (NTMail 7.00.0018/FR8724.21.ec44b0ca) with ESMTP id udoeuaaa for freebsd-chat@freebsd.org; Fri, 16 Jul 2004 00:43:19 +0400 To: freebsd-chat@freebsd.org Message-ID: From: breath Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Fri, 16 Jul 2004 00:39:33 +0400 User-Agent: Opera M2/7.50 (FreeBSD, build 673) Subject: Reboots after "OR AL,1 MOV CR0, EAX" on some computers. X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2004 15:22:47 -0000 Hi. I need some help. I think you'll be interested. I develop a little OS that will boot from floppy. It's still under construction and has about five thousand lines of assembly source now. I use Bochs emulator to debug it and after that I test it on my real computer. I have all working correctly on my compter. But I started to test it around other machines recently and encountered a problem I can't solve. But I'm sure there are lot of minds in FreeBSD world who know how to help me. I can't figure out what happens because on my computer I get all things well, but I can't conduct test of this kind on other computers. Here is the problem. My OS's boot loader (after loading the main module) switches CPU to very limited protected mode and jumps to module's entry point. After it, main module reloads all tables like GDT etc to make a good free environment for initialization and further running. Shortly: ON SOME COMPUTERS (MAYBE CPUS) I GET REBOOTING JUST ON 'JMP' INSTRUCTION AFTER PE BIT IS ENABLED. I've got no reboots on all i386, i486, i586 computers that I tryed to boot from. I have a Pentium III Celeron (Coppermine) 900MHz - no reboots. Also tested on some Pentium II 400MHz - no reboots. But on other side Pentium IV (don't remember speed) gave me a reboot. And other computer I was not able to see processor model (maybe PentiumIV !?) gave me a reboot too. Using endless loop stop points I figured out that reboot is before any instruction pointed by 'protected' label and that reboot happens after setting the PE bit. Here's very diminished boot sector code that reflects the error. It must be compiled with nasm as a binary so that result will be a floppy disk image file. Then it must be written to a floppy from scratch (from boot sector). Created floppy is expected to be bootable disk. Normal: When you boot from the floppy you get something like black screen and computer hangs up (but not reboots) Abnormal: When you boot from the floppy you get a screen splash and then back to reboot POST procedure. Here goes the code. PLEASE, even if you're not interested in this 'puzzle':( MAKE AND TEST IT ON YOUR COMPUTER. EMAIL ME RESULTS AND COMPUTER MODEL. It was HARD work to make this OS. I believe that some people understand me and will give me a clue. From my side I'll show them the full version. ;--------------------------------------------------------------------- ; Compile: %nasm thisfile.asm -o fd ; Insert a floppy ; Write (as root): #dd if=fd of=/dev/fd0 org 0x7C00 ; Expecting to be loaded at 7C00 by BIOS bits 16 real: cli xor ax, ax mov ss, ax mov sp, 0x7C00 ; Temp stack just under myself call real_open_A20 ; For 32 bit address space call real_init_gdt ; Load GDTR mov eax, cr0 or al, 0x1 ; cr0 |= PE mov cr0, eax ; If I place 'jmp $' here all computers stop here normally jmp 0x10: protected real_open_A20: .l1: in al, 0x64 test al, 0x2 jnz .l1 mov al, 0xD1 out 0x64, al .l2: in al, 0x64 test al, 0x2 jnz .l2 mov al, 0xDF out 0x60, al ret real_init_gdt: lgdt [.gdtr] ret .gdt0 dw 0x0000, 0x0000, 0x0000, 0x0000 .data dw 0xFFFF, 0x0000, 0x9200, 0x00CF .code dw 0xFFFF, 0x0000, 0x9800, 0x00CF .gdtr dw $ - .gdt0 - 1 dd .gdt0 bits 32 protected: ; Wherever I place 'jmp $' after the 'protected' label, ; on some computers I get reboot to hell. ; (In that case CS:IP is never points to 'jmp $' ; - something happens before) mov ax, 0x8 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov esp, 0x7C00 jmp $ times 512 - 2 - ($ - $$) db 0 ; Fill the rest of sector dw 0xAA55 ; Bootable sector sign times 1474560 - ($ - $$) db 0 ; Fill the rest of floppy ;--------------------------------------------------------------------- Best regards, Yuri Grebenkin breath@unix.net From owner-freebsd-chat@FreeBSD.ORG Fri Jul 16 15:22:53 2004 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44B1016A4CE for ; Fri, 16 Jul 2004 15:22:53 +0000 (GMT) Received: from door.intbel.ru (boos.intbel.ru [62.76.203.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5050A43D4C for ; Fri, 16 Jul 2004 15:22:52 +0000 (GMT) (envelope-from breath@unix.net) Received: from [62.76.203.4] by door.intbel.ru (NTMail 7.00.0018/FR8724.21.ec44b0ca) with ESMTP id wxneuaaa for freebsd-chat@freebsd.org; Fri, 16 Jul 2004 00:34:23 +0400 Date: Fri, 16 Jul 2004 00:30:36 +0400 To: freebsd-chat@freebsd.org From: breath Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/7.50 (FreeBSD, build 673) Subject: Reboots after "OR AL,1 MOV CR0, EAX" on some computers. X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2004 15:22:53 -0000 Hi. I need some help. I think you'll be interested. I develop a little OS that will boot from floppy. It's still under construction and has about five thousand lines of assembly source now. I use Bochs emulator to debug it and after that I test it on my real computer. I have all working correctly on my compter. But I started to test it around other machines recently and encountered a problem I can't solve. But I'm sure there are lot of minds in FreeBSD world who know how to help me. I can't figure out what happens because on my computer I get all things well, but I can't conduct test of this kind on other computers. Here is the problem. My OS's boot loader (after loading the main module) switches CPU to very limited protected mode and jumps to module's entry point. After it, main module reloads all tables like GDT etc to make a good free environment for initialization and further running. Shortly: ON SOME COMPUTERS (MAYBE CPUS) I GET REBOOTING JUST ON 'JMP' INSTRUCTION AFTER PE BIT IS ENABLED. I've got no reboots on all i386, i486, i586 computers that I tryed to boot from. I have a Pentium III Celeron (Coppermine) 900MHz - no reboots. Also tested on some Pentium II 400MHz - no reboots. But on other side Pentium IV (don't remember speed) gave me a reboot. And other computer I was not able to see processor model (maybe PentiumIV !?) gave me a reboot too. Using endless loop stop points I figured out that reboot is before any instruction pointed by 'protected' label and that reboot happens after setting the PE bit. Here's very diminished boot sector code that reflects the error. It must be compiled with nasm as a binary so that result will be a floppy disk image file. Then it must be written to a floppy from scratch (from boot sector). Created floppy is expected to be bootable disk. Normal: When you boot from the floppy you get something like black screen and computer hangs up (but not reboots) Abnormal: When you boot from the floppy you get a screen splash and then back to reboot POST procedure. Here goes the code. PLEASE, even if you're not interested in this 'puzzle':( MAKE AND TEST IT ON YOUR COMPUTER. EMAIL ME RESULTS AND COMPUTER MODEL. It was HARD work to make this OS. I believe that some people understand me and will give me a clue. From my side I'll show them the full version. ;--------------------------------------------------------------------- ; Compile: %nasm thisfile.asm -o fd ; Insert a floppy ; Write (as root): #dd if=fd of=/dev/fd0 org 0x7C00 ; Expecting to be loaded at 7C00 by BIOS bits 16 real: cli xor ax, ax mov ss, ax mov sp, 0x7C00 ; Temp stack just under myself call real_open_A20 ; For 32 bit address space call real_init_gdt ; Load GDTR mov eax, cr0 or al, 0x1 ; cr0 |= PE mov cr0, eax ; If I place 'jmp $' here all computers stop here normally jmp 0x10: protected real_open_A20: .l1: in al, 0x64 test al, 0x2 jnz .l1 mov al, 0xD1 out 0x64, al .l2: in al, 0x64 test al, 0x2 jnz .l2 mov al, 0xDF out 0x60, al ret real_init_gdt: lgdt [.gdtr] ret .gdt0 dw 0x0000, 0x0000, 0x0000, 0x0000 .data dw 0xFFFF, 0x0000, 0x9200, 0x00CF .code dw 0xFFFF, 0x0000, 0x9800, 0x00CF .gdtr dw $ - .gdt0 - 1 dd .gdt0 bits 32 protected: ; Wherever I place 'jmp $' after the 'protected' label, ; on some computers I get reboot to hell. ; (In that case CS:IP is never points to 'jmp $' ; - something happens before) mov ax, 0x8 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov esp, 0x7C00 jmp $ times 512 - 2 - ($ - $$) db 0 ; Fill the rest of sector dw 0xAA55 ; Bootable sector sign times 1474560 - ($ - $$) db 0 ; Fill the rest of floppy ;--------------------------------------------------------------------- Best regards, Yuri Grebenkin breath@unix.net