Re: Assembler coding help needed. [solved, patch enclosed]

From: John Baldwin (jhb_at_FreeBSD.org)
Date: 01/12/04

  • Next message: Julian Elischer: "Re: Where is FreeBSD going?"
    To: Martin Nilsson <martin@gneto.com>, Marcin Dalecki <mdcki@gmx.net>
    Date: Mon, 12 Jan 2004 15:30:20 -0500
    
    

    On Sunday 11 January 2004 04:39 pm, Martin Nilsson wrote:
    > Marcin Dalecki wrote:
    > > Martin Nilsson wrote:
    > >> I'm trying to find out why I can't boot 5.2 from USB CDROM on
    > >> Supermicro motherboards. (I have an old Gateway P3 that can!).
    > >>
    > >> I've found out that that only 0x20 of 0x4c sectors of the loader are
    > >> read in and it therfor traps when executed. (read is only called once).
    > >>
    > >> load_notrunc: sub %dh,%cl # Update count
    > >> push %eax # Save
    > >> call read # Read it in
    > >
    > > The fun will be ^^^^ here. The rest is self contained and
    > > doesn't depend on CPU variant or periphery.
    >
    > I found the problem!
    > The bios trashes %cx when reading from USB CD but not when reading from
    > ATAPI CD.
    >
    > The attached patch fixes this and two other small nits in
    > sys/boot/i386/cdboot/cdboot.s

    Thanks for the nit fixes.

    > Can somebody (jhb) commit this?
    >
    > This probably affects all Phoenix-Award bios equipped boxes. My old
    > Gateway with AMI BIOS works as it should.

    I will commit something similar. I will save %cx around the BIOS call itself
    in the read function.

    -- 
    John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
    "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Julian Elischer: "Re: Where is FreeBSD going?"

    Relevant Pages

    • Re: Bios Startup Screen
      ... After reading your message with greater care, I believe that you are on the ... right track by suggesting to contact the motherboard outfit. ... > All you have to do is press the entry keyto enter the BIOS; ... > instructions on how to install it. ...
      (alt.os.windows-xp)
    • proccessor incorrect
      ... my bios and windows have recently started reading my procesor as a 1500+ ... this is alot to run so i recently upgraded the power supply from a 350watt ... confusing part is its reading it as a 1500+ changing the whole name not just ... i have a windows xp sp1 sp2 wont work its a legal copy ive heard also bugs ...
      (microsoft.public.windowsxp.general)
    • Re: Old BIOS, Large EIDE Drive and setmax program
      ... More reading turned up a program called 'setmax' ... would be a samba share basically for me. ... the bios but Linux itself dealt with the drive without some additional ... I just used linux since it takes over from the bios effectively ...
      (comp.os.linux.hardware)
    • Re: +12 VOLT Indicator on Winbond Hardware Doctor
      ... How far out is the BIOS reading from the real reading? ... > calibrate the BIOS meter with a 3.5 digit meter. ... > voltage output. ...
      (microsoft.public.windowsxp.hardware)
    • How to change from a multi-processor HAL to a single-processor HAL
      ... I mistakenly installed W2K Pro while HyperThreading was enabled in the ... BIOS. ... My understanding (from reading in this NG) is that since W2K ...
      (microsoft.public.win2000.hardware)