History log of /freebsd-10.3-release/sys/boot/pc98/libpc98/biosdisk.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 296373 04-Mar-2016 marius

- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1
builds.
- Update newvers.sh to reflect RC1.
- Update __FreeBSD_version to reflect 10.3.
- Update default pkg(8) configuration to use the quarterly branch.

Approved by: re (implicit)

# 294480 21-Jan-2016 jhb

MFC 292682:
Fix remaining direct tests of the carry flag in the v86 %eflags via a
magic number to use V86_CY() instead. These should have been fixed as
part of the cleanup in r226746 but were missed.

The md5 sums of the object files were unchanged, so there should be no
functional change.

PR: 205424
Submitted by: Alexander Kuleshov <kuleshovmail@gmail.com>


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 254015 07-Aug-2013 marcel

Change <sys/diskpc98.h> to not redefine the same symbols that are
being defined in <sys/diskmbr.h>. Instead give the symbols here a
"PC98_" prefix. This way, both <sys/diskmbr.h> and <sys/diskpc98.h>
can be included in the same C source file.

The renaming is trivial. The only gotcha is that DOSBBSECTOR is
also redefined from 0 to 1. This because DOSBBSECTOR was always
used in conjunction with an addition of 1. The PC98_BBSECTOR symbol
is defined as 1 and the expression is simplified.

Note: it is not believed that ports are seriously impacted; or at
all for that matter.

Approved by: nyan@


# 250333 07-May-2013 jhb

Don't pad disk partition sizes with leading zeros. This was already
fixed in a different way by the new disk code used for other
platforms.

MFC after: 1 week


# 235155 09-May-2012 avg

i386 boot: consolidate MAXBDDEV definition

MFC after: 1 month


# 200631 17-Dec-2009 nyan

Fix debug messages of bd_io().

MFC after: 1 week


# 190127 20-Mar-2009 nyan

Merge the missing changes from i386.
Teach the loader about the FAT partitions.


# 190029 19-Mar-2009 nyan

Use the common PC98_MID_* defines instead of a magic number.


# 176654 29-Feb-2008 nyan

MFi386: revision 1.55.

Tweak the verbose disk printing a bit.


# 172968 25-Oct-2007 nyan

MFi386: part of 1.52

Split the pc98_partition specific routine in bd_opendisk()
into bd_open_pc98().


# 172965 25-Oct-2007 nyan

MFi386: part of revision 1.51

Rework the read/write support in the bios disk driver some to cut down
on duplicated code.
- All of the bounce buffer and retry logic duplicated in bd_read() and
bd_write() are merged into a single bd_io() routine that takes an
extra direction argument. bd_read() and bd_write() are now simple
wrappers around bd_io().


# 172925 24-Oct-2007 nyan

MFi386: revision 1.50

Reindent the read/write code of bd_realstrategy() so it is more readable.


# 172921 24-Oct-2007 jhb

Slightly cleanup the 'bootdev' concept on x86 by changing the various
macros to treat the 'slice' field as a real part of the bootdev instead
of as hack that spans two other fields (adaptor (sic) and controller)
that are not used in any modern FreeBSD boot code.

MFC after: 1 week


# 163897 02-Nov-2006 marcel

Extend struct devdesc with a unit field, called d_unit. Promote the
device (kind) specific unit field to the common field. This change
allows a future version of libefi to work without requiring anything
more than what is defined in struct devdesc and as such makes it
possible to compile said version of libefi for different platforms
without requiring that those platforms have identical derivatives
of struct devdesc.


# 153598 21-Dec-2005 nyan

MFi386: revision 1.46.


# 146011 08-May-2005 nyan

Remove ifdef PC98.


# 146010 08-May-2005 nyan

Merged from libi386/biosdisk.c revisions 1.37 and 1.41.


# 130630 17-Jun-2004 phk

Fix another beak.

Seen by: pjd


# 130603 16-Jun-2004 phk

Unspam sys/boot, the dev_t commit should not have touched these.

Spotted by: peter


# 130601 16-Jun-2004 phk

My new keyboard can't spell.


# 130585 16-Jun-2004 phk

Do the dreaded s/dev_t/struct cdev */
Bump __FreeBSD_version accordingly.


# 130579 16-Jun-2004 phk

Premptively fix GCC3.4 issue: add break; after empty default: clauses.

PR: 65493
Submitted by: Pawel Worach <sajd@telia.com>


# 119880 08-Sep-2003 obrien

Use __FBSDID().
Also some minor style cleanups.


# 113083 04-Apr-2003 phk

Libdisk does not need to include <sys/diskslice.h> any more.

Move the remaining bits of <sys/diskslice.h> to <i386/include/bootinfo.h>

Move i386/pc98 specific bits from <sys/reboot.h> to
<i386/include/bootinfo.h> as well.

Adjust includes in sys/boot accordingly.


# 109638 21-Jan-2003 nyan

Use NDOSPART instead of NEXTDOSPART.


# 109559 20-Jan-2003 phk

Use NEXTDOSPART instead of MAX_SLICES.


# 108791 06-Jan-2003 nyan

Add SCSI MO device support.

Submitted by: Kawanobe Koh <kawanobe@st.rim.or.jp>


# 108650 04-Jan-2003 nyan

Rename the dos_partition structure for pc98 to pc98_partition.


# 104621 07-Oct-2002 nyan

Added '#include <sys/diskpc98.h>'.

Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh)


# 87734 12-Dec-2001 nyan

MFi386: revision 1.35 (Add support for writing to BIOS disks)


# 87599 10-Dec-2001 obrien

Update to C99, s/__FUNCTION__/__func__/,
also don't use ANSI string concatenation.


# 68358 05-Nov-2000 nyan

Merged from the following changes.

sys/boot/i386/btx/btx/Makefile 1.9
sys/boot/i386/btx/btx/btx.s 1.23
sys/boot/i386/libi386/biosdisk.c 1.32 and 1.33
sys/boot/i386/libi386/biosmem.c 1.5
sys/boot/i386/libi386/comconsole.c 1.8
sys/boot/i386/libi386/gatea20.c 1.3
sys/boot/i386/libi386/time.c 1.4
sys/boot/i386/libi386/vidconsole.c 1.13
sys/boot/i386/loader/Makefile 1.48
sys/boot/i386/loader/main.c 1.22


# 63101 14-Jul-2000 nyan

Merged from sys/boot/i386/libi386/biosdisk.c revision 1.31.


# 59777 30-Apr-2000 nyan

Sync with sys/boot/i386/libi386/biosdisk.c revision 1.30.


# 58871 31-Mar-2000 kato

Synced with following files:
src/sys/boot/i386/Makefile.inc 1.1
src/sys/boot/i386/btx/btx/btx.s 1.15
src/sys/boot/i386/btx/btxldr/Makefile 1.8
src/sys/boot/i386/btx/btxldr/btxldr.s 1.9
src/sys/boot/i386/libi386/biosdisk.c 1.29
src/sys/boot/i386/loader/Makefile 1.42
src/sys/boot/i386/loader/main.c 1.18
(entry point address of loader was not changed.)

Reviewed by: nyan


# 58165 17-Mar-2000 nyan

Sync with sys/boot/i386/libi386/biosdisk.c revision 1.27 and 1.28.

Submitted by: Kaho Toshikazu <kaho@elam.kais.kyoto-u.ac.jp>


# 55339 03-Jan-2000 nyan

Fixed to get the BIOS geometry.


# 54819 19-Dec-1999 nyan

- Supported the bd_getbigeom function and use this function to get BIOS
geometry.
- Use i386/libi386/bootinfo.c instead of pc98/libpc98/bootinfo.c.

Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>


# 54294 08-Dec-1999 phk

Remove BAD144 support, it has already been disabled for some time.


# 53207 16-Nov-1999 nyan

Cosmetic changes.


# 51586 23-Sep-1999 kato

- Fixed DMA 64k boundary problem.
- Test the processor flag to detect disk I/O BIOS errors.

Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>


# 50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


# 49426 05-Aug-1999 kato

- Don't assume that SCSI ID numbers of HDD units are contiguous. That
is, don't assume that SCSI ID corresponds to a unit number of da
device. Unit number of da device is provided by 2nd stage loader
and 3rd stage loader now use it.
- Fix drive letter to display.

Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>


# 49425 05-Aug-1999 kato

Provides discontinuous unit number support to make external FDD
bootable on 1 FDD PC98 machines. (When an external FDD unit is
installed, unit numbers become discontinuous.)

Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>


# 44467 04-Mar-1999 kato

Make loader be able to load 1.2MB fd on machines w/ 1.44MB fdd.

Sumbmitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>


# 44463 04-Mar-1999 kato

When SCSI IDs are not contiguous, the loader could not find correct
unit number for da device. This commit fixes this problem.

Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>


# 43561 03-Feb-1999 kato

PC98 version of new boot loader. Because boot2 has not yet ported,
files in boot2 directory are copies from legacy biosboot.

Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>