Alexander Kabaev
7d80a3b493
pc98 boot2 is compiled with _KERNEL defined, and that makes non-static
...
bootinfo variable declaration visible. It conflicts with static
declaration in this file. Declare variable as globally visible in
order to resolve the conflict.
2007-04-06 20:50:24 +00:00
Ruslan Ermilov
593bbd2195
Revert the last change. Masking only 2 MSBs of the virtual address
...
to get the physical address doesn't work for all values of KVA_PAGES,
while masking 8 MSBs works for all values of KVA_PAGES that are
multiple of 4 for non-PAE and 8 for PAE. (This leaves us limited
with 12MB for non-PAE kernels and 14MB for PAE kernels.)
To get things right, we'd need to subtract the KERNBASE from the
virtual address (but KERNBASE is not easy to figure out from here),
or have physical addresses set properly in the ELF headers.
Discussed with: jhb
2006-11-02 17:28:38 +00:00
Ruslan Ermilov
da6d4298b7
Because the BTX mini-kernel now uses flat memory mode and clients
...
are no longer limited to a virtual address space of 16 megabytes,
only mask high two bits of a virtual address. This allows to load
larger kernels (up to 1 gigabyte). Not masking addresses at all
was a bad idea on machines with less than >3G of memory -- kernels
are linked at 0xc0xxxxxx, and that would attempt to load a kernel
at above 3G. By masking only two highest bits we stay within the
safe limits while still allowing to boot larger kernels.
(This is a safer reimplmentation of sys/boot/i386/boot2/boot.2.c
rev. 1.71.)
Prodded by: jhb
Tested by: nyan (pc98)
2006-10-29 14:50:58 +00:00
Tor Egge
a1e363f256
Add mnt_noasync counter to better handle interleaved calls to nmount(),
...
sync() and sync_fsync() without losing MNT_ASYNC. Add MNTK_ASYNC flag
which is set only when MNT_ASYNC is set and mnt_noasync is zero, and
check that flag instead of MNT_ASYNC before initiating async io.
2006-09-26 04:15:59 +00:00
Yoshihiro Takahashi
b42bfe1947
Fix build (s:pc98/cbus/cbus.h:pc98/pc98/pc98_machdep.h:)
...
Pointyhat to: nyan
2006-05-09 14:20:17 +00:00
Yoshihiro Takahashi
42244f27c2
Remove EPSON PC-386 note A/W/AE/WR support.
2005-09-14 12:39:06 +00:00
John Baldwin
5b09b18204
Print out the commands from /boot.config after parsing them so that they
...
output is sent to the correct console(s).
PR: kern/66425
Submitted by: Gavin Atkinson gavin at ury dot york dot ac dot uk
MFC after: 1 week
2005-05-27 19:26:11 +00:00
Yoshihiro Takahashi
d1725ef7ff
Change a directory layout for pc98.
...
- Move MD files into <arch>/<arch>.
- Move bus dependent files into <arch>/<bus>.
Rename some files to more suitable names.
Repo-copied by: peter
Discussed with: imp
2005-05-10 12:02:18 +00:00
Yoshihiro Takahashi
769f92857b
Remove ifdef PC98.
2005-05-08 14:17:28 +00:00
Yoshihiro Takahashi
ad42c2a5fd
Use DOSMID_386BSD rather than DOSPTYP_386BSD.
2005-05-08 11:15:38 +00:00
Warner Losh
722cb08d74
Fix buidling of boot blocks for pc98 with new links.
...
Submitted by: nyan@
2005-04-03 04:58:15 +00:00
Ruslan Ermilov
83c7ade90a
NOSHARED -> NO_SHARED
2004-12-21 09:59:45 +00:00
Ruslan Ermilov
e653b48c80
Start the dreaded NOFOO -> NO_FOO conversion.
...
OK'ed by: core
2004-12-21 08:47:35 +00:00
Scott Long
05d0bf79ed
Remove the last vestiges of the userconfig option. None of this actually
...
did anything, so this commit should be considered a NO-OP.
2004-12-01 04:59:33 +00:00
Yoshihiro Takahashi
cede9ec016
MFi386: revision 1.56 (Add -fno-unit-at-a-time to CFLAGS).
2004-09-18 00:12:04 +00:00
Yoshihiro Takahashi
c80f54d479
Fix new compiler error (s/bcopy/memcpy/).
2004-07-30 09:42:04 +00:00
Poul-Henning Kamp
ad165b6f6d
Unspam sys/boot, the dev_t commit should not have touched these.
...
Spotted by: peter
2004-06-16 18:21:22 +00:00
Poul-Henning Kamp
89c9c53da0
Do the dreaded s/dev_t/struct cdev */
...
Bump __FreeBSD_version accordingly.
2004-06-16 09:47:26 +00:00
Warner Losh
9e127f523c
Remove advertising clause from University of California Regent's license,
...
per letter dated July 22, 1999.
Approved by: core
2004-04-05 23:41:29 +00:00
Yoshihiro Takahashi
5e0eb6243d
MFi386: Factor out -nostdlib and use PROG.
2004-02-09 16:01:45 +00:00
Ruslan Ermilov
6ed6b4ab71
MFi386: Removed -elf and duplicate -ffreestanding.
2004-02-07 14:35:33 +00:00
Yoshihiro Takahashi
cc78dccee9
MFi386: Cleanups to sys/boot makefiles.
2004-02-07 12:19:44 +00:00
David E. O'Brien
7d4724590e
Use __FBSDID().
...
Also some minor style cleanups.
2003-09-08 09:11:32 +00:00
Yoshihiro Takahashi
943be5d359
Fixed build error with GCC 3.3.1
2003-07-13 08:13:52 +00:00
Poul-Henning Kamp
197e5e73ef
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.
2003-04-04 16:35:16 +00:00
Ruslan Ermilov
73f643b411
Fixed sys/boot/pc98/boot2/Makefile to use kern.mk and
...
get rid of bsd.kern.mk completely.
OK'ed by: bde
2003-03-02 21:18:40 +00:00
Yoshihiro Takahashi
271aee47ec
MFi386: Install the "boot" image which is boot1 + boot2.
2003-01-30 14:50:25 +00:00
Yoshihiro Takahashi
97a45538e4
Add SCSI MO device support.
...
Submitted by: Kawanobe Koh <kawanobe@st.rim.or.jp>
2003-01-06 13:43:15 +00:00
Yoshihiro Takahashi
404a379e4a
Rename the dos_partition structure for pc98 to pc98_partition.
2003-01-04 08:50:48 +00:00
Yoshihiro Takahashi
46ae965fca
Remove '-DUFS1_ONLY' from CFLAGS. It is not needed.
2002-10-10 14:03:00 +00:00
Poul-Henning Kamp
5765b4ef72
Move the definition of UFS1_ONLY into the Makefiles where it belongs.
...
Sponsored by: DARPA & NAI Labs.
2002-10-07 08:09:20 +00:00
Yoshihiro Takahashi
af64a99c32
Added some header files from -stable and fixed the boot[12] programs.
2002-10-03 16:20:14 +00:00
Ruslan Ermilov
d2893b161b
Drop support for COPY, -c has been the default mode of install(1)
...
for a long time now.
Approved by: bde
2002-07-29 09:40:17 +00:00
Yoshihiro Takahashi
a79f8552fb
Change include order.
2002-07-16 14:39:52 +00:00
Nick Hibma
44b279e2f6
Cosmetic change (align with other boot blocks):
...
CONSPEED -> COMSPEED
Approved by: nyan
2002-05-26 10:11:17 +00:00
Yoshihiro Takahashi
8b20c954cb
Fixed to build for GCC 3.1
2002-05-14 12:34:03 +00:00
David E. O'Brien
d1bdfb40fd
-ffreestanding is the word.
...
(also resort some CFLAGS such that the more "important" value are first so
they are easier to see)
2002-05-10 09:26:35 +00:00
Yoshihiro Takahashi
28a90658c4
Add -D_KERNEL to CFLAGS for ntohl().
2002-02-28 10:08:23 +00:00
Yoshihiro Takahashi
3b8a3187c8
Expand COMBRD(x) macro.
2002-02-01 14:48:44 +00:00
Yoshihiro Takahashi
716d0f6c04
Fixed sioreg.h path.
2001-11-02 15:15:09 +00:00
Kris Kennaway
56bded8a29
s/adress/address/
...
Inspired by: OpenBSD
MFC After: 1 week
2001-07-23 12:05:27 +00:00
Yoshihiro Takahashi
f040ac4cec
Update boot[12] program to compile ELF binary.
...
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> and
kawanobe@st.rim.or.jp (Kawanobe Koh)
2001-05-24 11:18:32 +00:00
Tim Vanderhoek
b0d9eb06f9
Make this compile in case anyone ever wants to use the PC98 booter
...
on an IBM machine. This fix matches i386/boot2/boot.c.
PR: kern/7903
2000-05-21 05:27:56 +00:00
Yoshihiro Takahashi
86a5a8c251
- Removed hi-resolution mode supports.
...
- Added a dummy partition table.
2000-05-03 04:35:25 +00:00
Peter Wemm
365c5db0a7
Add $FreeBSD$
2000-05-01 20:32:07 +00:00
Yoshihiro Takahashi
b638de134f
The printf function of boot2 can't recognize "%lx" format.
...
Submitted by: Nobuyuki Koganemaru <kogane@koganemaru.co.jp>
2000-04-14 14:25:13 +00:00
KATO Takenori
fdf884ea55
Separated serial boot block interface routine into NS16550 stuff and
...
i8251 stuff.
2000-03-30 09:25:03 +00:00
Poul-Henning Kamp
7d5961670c
Remove BAD144 support, it has already been disabled for some time.
1999-12-08 09:33:00 +00:00
Yoshihiro Takahashi
15e01db88b
Fixed warnings.
1999-11-16 11:59:19 +00:00
Yoshihiro Takahashi
1615de7614
Remove -mno-486 option and add -mpreferred-stack-boundary=2 option.
1999-11-16 11:56:38 +00:00