Commit Graph

497 Commits

Author SHA1 Message Date
dsl
1943909639 Support booting from a netbsd partition in the MBR extended partition. 2003-07-07 13:32:42 +00:00
dsl
48046920d6 Fix copyright - it got mangled earlier.
Added a mention of Wolfgang Solfrank - there are probably only comments left
from the much older mbr.S that he contributed.
(Wolfgang pointed out the mangled copyright, but doesn't object to the removal
of the Tools GmbH one.)
2003-07-02 14:35:51 +00:00
simonb
ad51219ae3 Make this work without a populated destdir:
machine and x86 symlinks.
 Include from right places.
 Don't depend on LIBCRT0,etc.

Also for the bootxx programs, keep the ELF object during the build
process.
2003-07-01 13:36:59 +00:00
thorpej
221d313d7c Allow SOURCES to be overridden. 2003-06-30 17:54:06 +00:00
thorpej
7401047528 Add a way to force (at compile time) use of int13 extensions. 2003-06-25 04:21:51 +00:00
tron
64e5c9eb7c Remove "lib" directory in "cleandir" target. 2003-06-24 09:38:35 +00:00
martin
cd7023a3eb Backout previous, this file is not affected by kernel options. 2003-06-23 14:48:37 +00:00
martin
d505b18964 Make sure to include opt_foo.h if a defflag option FOO is used. 2003-06-23 11:00:59 +00:00
thorpej
84b00019df Comment out DEBUG_MEMSIZE. 2003-05-24 03:38:58 +00:00
dsl
341c4563e3 Incorrect sector number passed to boot1 in floppy (no mbr) case 2003-05-15 08:50:53 +00:00
dsl
f9bb4eea5d Build my new i386 bootcode 2003-05-12 14:48:56 +00:00
dsl
18e1c04d74 Don't override PROG from subdir Makefile
Install into /usr/mdec
2003-05-12 14:35:54 +00:00
dsl
5ba5335a38 Install into /usr/mdec 2003-05-12 14:34:55 +00:00
dsl
0e9fdbb612 Remove some unused defines 2003-05-12 14:33:49 +00:00
fvdl
e5ad654753 Silence a gcc 3 warning about a 'x = ++x % foo' construct. 2003-05-09 00:16:55 +00:00
fvdl
daea75d74a installboot is compiled in native mode on amd64, unlike the other
things around here. Hence, the machine/ include dir must actually
point to its own.
2003-05-09 00:11:26 +00:00
fvdl
2ade80fac8 A fraglist entry struct must be packed, to make installboot dtrt on amd64. 2003-05-08 23:09:30 +00:00
christos
9dbe78f136 This is a host program. Don't use errx. 2003-05-08 13:42:17 +00:00
fvdl
94cad743e8 Use ${MACHINE} when generating the version string, not plain 'i386'. 2003-05-05 20:49:10 +00:00
hubertf
76a6e18152 use nm(1) to output decimal values immediately, instead of relying on a
(non-working) sh(1) construct.

Reviewed by simonb & bjh21.
2003-05-05 13:38:23 +00:00
dbj
3359b0ac58 force nm addresses in hex and add 0x prefix before handing numerical
expression to the shell.
2003-05-05 02:47:42 +00:00
lukem
83fa31ab4c be consistent with other Makefiles here and invoke "rm -f" separately to ln -s 2003-05-04 06:32:39 +00:00
lukem
1d22d3e3ca replace "ln -sf .... $@" with "rm -f $@ && ln -s .... $@"
since the latter works correctly ...
2003-05-04 06:25:10 +00:00
fvdl
91ccfbdaab Clean up machine include dir handling a tad. 2003-05-03 17:54:21 +00:00
dsl
cbcf556e10 Build mbr code here (instead of in sbin/fdisk/mbr) 2003-04-30 19:52:17 +00:00
dsl
798f520353 Set BFL_NEWMBR flag so that fdisk can differenciate between new and old mbr code. 2003-04-29 10:24:24 +00:00
dsl
b40733ee1b Master Boot Record (mbr) code:
mbr:		boots active partition
mbr_bootsel:	menu selection for partitions 1 to 4
mbr_ext:	menu selection for partitions 1 to 4 and extended partitions
Based on code from sbin/fdisk/mbr_bootsel.
Needs a new fdisk to configure mbr_ext and correctly set default menu selection.(Not yet built by defaulat)
2003-04-28 12:19:05 +00:00
fvdl
043f21d9ea x86_64 -> amd64 2003-04-26 19:14:17 +00:00
fvdl
caaaf66e32 x86_64 -> amd64 2003-04-26 19:13:37 +00:00
dsl
82d4d158d2 Missing end of comment 2003-04-24 17:41:03 +00:00
dsl
c9a0a49ac7 Don't use ENTRY - it aligns the label and we can't afford the space.
Adjust coding to save 2 more bytes (assume 'D' flag clear - it is)
2003-04-24 17:40:32 +00:00
dsl
cf4ada7934 Fix code that scans extended partition list 2003-04-24 17:37:54 +00:00
dsl
60c3e62a42 Add files for 2nd stage boot loader 2003-04-16 22:36:14 +00:00
dsl
b10e65e490 Uncomment line that deletes tempory file 2003-04-16 22:34:00 +00:00
dsl
415cb92c98 Add functions needed by new boot code 2003-04-16 22:30:40 +00:00
dsl
2737b135d5 bootxx: bootstrap code - installable by MI installboot.
Loads /boot using filesystem accesses (rather than a list of block numbers)
2003-04-16 22:27:35 +00:00
dsl
eb2692a8d2 bootxx: bootstrap code - installable by MI installboot.
Loads /boot using filesystem accesses (rather than a list of block numbers)
2003-04-16 22:16:36 +00:00
dsl
fe778b7b70 Remove definition of LIBSA_SUPPORT_UFS2, the source will only build separate
ufsv1 and ufsv2 objects (the merged one was too large for the code that only
supported a single fs type).
2003-04-16 19:03:33 +00:00
dsl
586810c59b Routines to switch between 16bit real and 32bit protected modes 2003-04-16 17:38:43 +00:00
dsl
0c5af93233 Add some debug prints to the memory size code 2003-04-16 15:03:59 +00:00
dsl
cb61d88cb5 Add baud_rate arg to cominit_d 2003-04-16 14:58:32 +00:00
dsl
e60ac53619 Modify baud rate handling to make it easier to take it from a variable.
Default to 9600 if the requested baud rate is illegal.
2003-04-16 14:56:55 +00:00
dsl
d5b5933e8c remove unused defines 2003-04-16 14:23:11 +00:00
dsl
616c6baa61 Add code to parse V3.x bios disk information.
This should let NetBSD guarantee to tie together the bios disk numbers
with the physical hardware.
#defined out because I don't have a system with a bios that supports it.
2003-04-16 14:22:29 +00:00
dsl
621f25533d Add cvs version, delete unused definition 2003-04-16 13:49:21 +00:00
dsl
2ae46742a2 Add prototyps for all the asm bios/dos calls 2003-04-16 13:47:53 +00:00
dsl
4cf0478777 additional support routines for boot code 2003-04-16 13:24:09 +00:00
dsl
1d68743dfc C code now sets length of disk info structure 2003-04-16 12:45:10 +00:00
dsl
7119639d07 used daddr_t for disk block numbers,
add definitions for v2 and v3 disk info structures
2003-04-16 12:43:45 +00:00
dsl
fd18f39232 Use daddr_t for disk block numbers,
Set size of extended disk info structure in the C code
2003-04-16 12:41:03 +00:00