Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2002 14:39:19 -0800 (PST)
From:      Ian Dowse <iedowse@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/boot/i386/boot2 boot2.c
Message-ID:  <200201172239.g0HMdJO02908@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
iedowse     2002/01/17 14:39:19 PST

  Modified files:
    sys/boot/i386/boot2  boot2.c 
  Log:
  Oops, the previous revision (1.35) broke booting from floppies
  because the buffers we use could end up spanning a 64k boundary.
  Unfortunately it causes too much bloat (228 -> 72 bytes free) to
  just reinstate the old malloc() function.
  
  Instead, define a structure that contains all 4 buffers which must
  not cross 64k boundaries. We allocate a 64k-aligned instance in
  main() using the magic that was in the old boot2 malloc() function.
  This brings the free space down to 168 bytes, but that is still
  better than it was before revision 1.35 (136 bytes).
  
  Reported by:    Mike Brancato <funnyguy@digitalsmackdown.net>
  Pointy-hat to:  iedowse
  
  Revision  Changes    Path
  1.36      +18 -6     src/sys/boot/i386/boot2/boot2.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201172239.g0HMdJO02908>