simonb
cbd32a724f
Sync with rev 1.9 of sys/arch/i386/stand/lib/loadfile.c:
...
another nit in error handling: don't try to print out a NULL
filename (which means "use default" and is dealt with properly
by open())
1999-04-17 11:24:16 +00:00
drochner
982c55e22c
another nit in error handling: don't try to print out a NULL filename
...
(which means "use default" and is dealt with properly by open())
1999-04-17 11:18:36 +00:00
ragge
e9689cc9bd
Use "access_type" in pmap_enter() more intelligent.
...
Allocate device register space bigger than the logical page size
from the kernel map, thus decreasing the pre-allocated page table memory.
1999-04-17 00:01:18 +00:00
thorpej
e49833cd68
Now that we have direct-mapped pool pages, we can garbage-collect VM_MBUF_SIZE
...
and don't need to allocate mb_map.
1999-04-16 21:47:11 +00:00
thorpej
4b603c180a
Use the same hack as pmap_zero_page() and pmap_copy_page() to provide
...
direct-mapped pool pages.
1999-04-16 21:45:19 +00:00
thorpej
3b29e1e158
Clean up the Rawhide interrupt code some more:
...
- Actually display the kn300 irq, not the MCPCIA irq, in the interrupt
string. Also, don't bother displaying device/pin on strays, since
it doesn't play will with shared interrupts that would happen due to
a PCI-PCI bridge.
- Shave a few more cycles out of the interrupt dispatch routine.
1999-04-16 21:29:47 +00:00
thorpej
48a53c250d
Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
...
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.
1999-04-16 21:15:29 +00:00
kleink
5e7ff129c8
Normalize path of files.sunos.
1999-04-16 11:13:38 +00:00
pk
0a737db1c7
`oldmon' proms need `putstr()' too.
1999-04-16 08:55:37 +00:00
ross
74de38f9a9
Really say goodbye to old wscons.
1999-04-16 07:24:13 +00:00
mhitch
bb2b8c8586
Change reading the ATAPI IDENTIFY data: a ZIP drive responds differently than my CDROM
...
and will cause the drive to hang on boot. The ZIP drive still does not work, but the
system no longer will hang,
1999-04-16 03:29:49 +00:00
thorpej
d38cab08e5
Add SGMAP stuff for Window 2, and rename Window 0's SGMAP stuff to indicate
...
its use.
1999-04-16 02:18:07 +00:00
explorer
6f9b6a2f1a
remove BUFPAGES= line for now (commented out)
1999-04-16 01:11:22 +00:00
explorer
927ebf9949
sync to the currently installed kernel
1999-04-16 01:09:25 +00:00
thorpej
1ddebc8444
Fix a silly bug present since rev 1.1; the direct-mapped window is
...
supposed to be Window 1, but a cut'n'paste error made it stomp over
Window 0, thus breaking ISA DMA. Fix this. (Confirmed to work with
floppy driver.)
While I'm here, do something I've been meaning to do for a while: change
Window 1 from a 1G at 2G to a 2G at 2G direct-mapped window, and add
a Window 2 of 1G at 1G SGMAP-mapped. Chain Window 2 to Window 1, and
use it as a fall-back for PCI DMA if the system has more than 2G of RAM.
1999-04-15 23:47:52 +00:00
thorpej
31c4e50d3a
- Change the "savunit[]" and "savirqs[]" arrays to ints, rather than chars.
...
The access is more efficient this way (and this was done in the interrupt
dispatch code, so some cycles are actually shaved), and gcc gets annoyed
when chars are used as array subscripts.
- Adjust for the fixed Rawhide console initialization.
- When mapping a PCI interrupt, don't always map device 1 to IRQ 16. Device
1 is only the internal 53c810 on MID 5, and is an invalid device number
on any other MID.
- Adjust for change mcpcia_config/mcpcia_softc structures.
- Nuke the kludgy linked list of mcpcia_softc structures. Instead, just
use savunit[v] to index into mcpcia_cd.cd_devs[] to find the MCPCIA
which has the stray interrupt.
- Some other minor cosmetic cleanup.
1999-04-15 22:37:25 +00:00
thorpej
592cdd4bda
Adjust for new register access arguments, and make one slight cosmetic
...
change.
1999-04-15 22:32:21 +00:00
thorpej
f2368c1301
CHIP_EX_MALLOC_SAFE() now must pay attention in class.
1999-04-15 22:31:16 +00:00
thorpej
279f30928f
Add support for a single statically-allocated MCPCIA configuration structure,
...
which holds state of the MCPCIA to which the console is attached.
- All MCPCIA info is now stored in the mcpcia_config structure; the
mcpcia_softc only contains a struct device and a pointer to one of these.
- If attaching the console MCPCIA, use the static configuration, else allocate
the substructure.
- Rename mcpcia_init() to mcpcia_init0(), and make it take a "mallocsafe"
argument.
- Implement a new mcpcia_init(), which looks for the MCPCIA which has the
EISA bridge attached. Initialize this MCPCIA as the console MCPCIA (the
console on the Rawhide is only allowed on this MCPCIA; firmware rule).
- Eliminate the kludgy linked listed of mcpcia_softcs. Just use mcpcia_cd
to find all configured instances.
Separate bug fix: Actually clear the MCPCIA error mask after probing for
PCI (and ISA) devices, don't just clear it twice in mcpcia_init0().
Some other slight cleanup.
1999-04-15 22:27:40 +00:00
thorpej
9af474a62c
- Add a comment explaining why we probe for MCPCIAs in the shuffled
...
MID order.
- Export the shuffled MID order; other files now need it.
- Don't derive the GID from the unit number of the mcbus. A user could
render his kernel non-bootable by using a different unit number in the
kernel config file. We (and the hardware) only support one MCBUS, so
simply use instance 0. Note that this will need to be adjusted if there
are even any multiple-MCBUS systems.
1999-04-15 22:19:52 +00:00
thorpej
9a4a0a3c81
DEC_KN300 no longer uses PROM console.
1999-04-15 22:15:38 +00:00
thorpej
1287bb8599
Always call the platform's cons_init routine (note, it may not do anything,
...
but it's a very handy place to put console-related debugging code in,
even if we're still using the PROM console).
1999-04-15 22:15:05 +00:00
thorpej
f3314e93e8
Add an empty dec_kn8ae_cons_init().
1999-04-15 22:13:41 +00:00
thorpej
02aa04c89e
Massive cleanup of the AlphaServer 4100 console initialization code.
...
Instead of using the PROM console until autoconfiguration is complete (at
which time we called dec_kn300_cons_init() directly!), make this work like
basically all of the other systems which have PCI attached consoles. That
is, initialize the PCI chipset which holds the console early, and perform
console initialization at the correct time.
This should make both PCI and ISA display consoles with PC keyboards work
(i.e. the deskside workstation version of the Rawhide).
1999-04-15 22:11:57 +00:00
thorpej
0df038ccb1
- Use the CTB_TURBOSLOT_* macros from rpb.h.
...
- Don't assume bus/slot == ISA display. Instead, test for TYPE_ISA.
- Some cosmetic (whitespace, mostly) cleanup.
1999-04-15 22:06:47 +00:00
thorpej
f03f59a5b8
Back out the change to swap Lev1map on MP systems that use the PROM console.
...
Basically, we have to completely nuke the _PMAP_USES_PROM_CONSOLE code from
orbit before MP is going to properly work.
1999-04-15 21:21:25 +00:00
ad
d79296c5e9
Disable ntohl/htonl due to duplication in libkern/arch/mips.
1999-04-15 15:30:46 +00:00
leo
84169631c6
Fix the IPL comparison. The previous version was plain wrong and caused
...
random panics in the pool allocator.
1999-04-15 09:15:29 +00:00
thorpej
e8e6061642
Slight braino in previous.
1999-04-14 23:55:35 +00:00
ragge
71a57b22eb
Use the pool allocator for mbufs instead of a separate submap.
1999-04-14 23:42:00 +00:00
thorpej
25a0e78bf3
Add macros to decode the `turboslot' member of the Console Terminal Block.
1999-04-14 23:28:31 +00:00
ragge
797a7428d6
First towards use of bus.h routines on vax. Allocate DMA memory for
...
LANCE chip on vaxstations.
1999-04-14 23:14:45 +00:00
ragge
397795c32d
Machines using KA48 must have memory mapped in, and use the same
...
addresses for console as KA46. From Michael Kukat.
1999-04-14 16:19:03 +00:00
christos
30ffed2123
remove bogus prototype for getopt
1999-04-14 15:22:46 +00:00
christos
c70b4ad2a1
Add prototype for getsecs
1999-04-14 15:22:07 +00:00
minoura
bb2c24d761
More size hacks. We can now run the installer on 4MB machines.
1999-04-14 14:13:11 +00:00
drochner
1ecbaaabf8
this is now sys/lib/libsa/ufs_ls.c
1999-04-14 13:31:49 +00:00
hpeyerl
6cde76c6fe
fix some copyright foo.
1999-04-14 12:56:33 +00:00
drochner
e4841b3edf
add prototypes, use ufs_ls() from mi libsa,
...
compile with -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
1999-04-14 11:53:43 +00:00
drochner
312eae2bf4
add prototypes, use ufs_ls() from mi libsa, revert to "void main()",
...
compile with -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
1999-04-14 11:45:39 +00:00
drochner
dd0ed4267b
add prototype
1999-04-14 11:19:23 +00:00
drochner
2d1e6a1f5a
add prototypes, slight formatting changes
1999-04-14 11:17:04 +00:00
drochner
ffd8d7c6d0
add prototypes
...
being here, format ala KNF
1999-04-14 10:57:59 +00:00
pk
87a17d4466
Initialize the VME bus tag.
1999-04-14 10:28:23 +00:00
pk
ee5af6c31e
Mask out 64-bit burst capability on sun4m's, since some models (SS20)
...
erroneously report this in their sbus properties.
1999-04-14 09:50:01 +00:00
pk
08e6e1fdc0
Fix TAB-jump lossage in previous.
1999-04-14 09:48:37 +00:00
pk
37653920ec
- try to identify multi-processor machines only on sun4m.
...
- mainbus_attach: on sun4's do not fall through to sun4c/sun4m configuration.
1999-04-14 09:16:11 +00:00
pk
570630211c
PROM likes to see CR-NL.
1999-04-14 09:12:46 +00:00
ad
33df642800
Leave font selection to 'rasops' until 'rasops1' has been completed and can
...
handle non {8,16} pixel wide fonts.
1999-04-13 19:02:38 +00:00
ad
d959cff2ca
Fonts for rcons are now handled in sys/dev/wsfont.
1999-04-13 18:59:15 +00:00
ad
0993fa2727
Add configuration glue needed by rasops, wsfont, rcons and the px driver.
1999-04-13 18:53:27 +00:00
ad
cf19d10b2a
Added console initalization glue to allow `px' device to function as the
...
console.
1999-04-13 18:50:51 +00:00
ad
5140c302ce
Bring sparc/sparc64 fb code and kernel configuration into line with
...
rcons changes.
1999-04-13 18:45:40 +00:00
kleink
a3417847c3
* Declaration mismatch: len is a size_t, not a pointer to one.
...
* Userlevel header: remove argument names from declaration, use
__{BEGIN,END}_DECLS to ensure correct linkage.
1999-04-13 16:52:37 +00:00
ad
8cd2881c35
Save colormap when fb device is opened, and restore upon close. Do not
...
fbconnect() 'pm' device again at attach time if it is the console.
1999-04-13 03:22:00 +00:00
ad
46dcc25b4a
Map keypad 'Enter' to 'Return' for console operation. Change error messages
...
in MouseInit() to allow gcc to fold the strings.
1999-04-13 03:19:28 +00:00
ad
7940da64de
Define PMAX_FBTYPE_PX. Changes to allow fbvar.h to be included with
...
dev/rcons/rcons.h.
1999-04-13 03:14:03 +00:00
ad
de43e7cc8d
Fixed licensing due to a foobar on my behalf.
1999-04-13 00:40:07 +00:00
ad
b30fc08f22
Initial import of `PX' driver.
1999-04-13 00:30:08 +00:00
pk
b16b8de052
Identify ourselves as a SCSI channel to the DMA chip.
1999-04-12 23:01:00 +00:00
pk
ca0b7aaa87
Ungarble the copyright notice.
1999-04-12 20:57:52 +00:00
pk
b13e5d1469
Quote "AS IS" as in the majority of Carnegy Mellon notices.
1999-04-12 20:38:17 +00:00
drochner
3b45055cd1
adapt to uvm_pagealloc() changes - use UVM_PGA_USERESERVE to allocate
...
page table pages
1999-04-12 17:59:29 +00:00
minoura
c12f6d6d4b
Reduce the kernel size.
...
- Disable many options and devices which is not required to install.
- Decrease the MINIROOTSIZE to fit with the actual embedded image.
1999-04-12 16:11:53 +00:00
simonb
b84e038e4b
Bump version number to 1.1 for default kernel names.
1999-04-12 05:46:57 +00:00
simonb
71c3fc3251
If only a device name is specified with no kernel name, try to load a
...
kernel from a default list of names. This list is netbsd, netbsd.bak,
netbsd.old, onetbsd and gennetbsd - all without and with a .gz
extension.
1999-04-12 05:19:25 +00:00
simonb
ab3de4de0e
Make the bootpath "N/rzY" with no trailing '/' valid by adding the extra
...
'/' before appending 'boot' to the path.
1999-04-12 05:14:51 +00:00
simonb
520c13bcc8
Fix an off-by-32 error - space was padded out to the 96th byte for the
...
DEC disk boot block header, but it's only 64 bytes long. Gives us
another 32 bytes in the first stage.
Don't use a roll-your-own START_FRAME size and offsets for the stack
and ra - use the <mips/asm.h> provided CALLFRAME_SIZ, CALLFRAME_RA and
CALLFRAME_SP
1999-04-12 03:53:13 +00:00
gwr
748b14525c
Fix unused variable warning
1999-04-12 01:30:22 +00:00
simonb
0a7e699d22
Add "WARNS?= 1" - woohoo!
1999-04-11 04:31:02 +00:00
simonb
cdc059d0d0
Use BOOTRZ instead of BOOTXX.
...
Add -DLIBSA_NO_DEV_IOCTL.
1999-04-11 04:28:14 +00:00
simonb
6247c771c1
Use BOOTRZ instead of BOOTXX.
...
Add a PROM callback for prom_close if not LIBSA_NO_DEV_CLOSE.
1999-04-11 04:27:53 +00:00
simonb
deb30f311a
Include <common.h> to get prototypes for PROM callbacks.
...
Use LIBSA_NO_DEV_CLOSE and BOOTRZ instead of SMALL.
In rzclose() call prom_close() on the descriptor if we're on a
pre-REX machine.
1999-04-11 04:27:30 +00:00
simonb
b2706c76c1
s/vmunix/netbsd/
...
Use BOOTRZ instead of SMALL.
1999-04-11 04:26:31 +00:00
simonb
558e5709dd
Use LIBSA_NO_DEV_CLOSE and LIBSA_NO_DEV_IOCTL instead of SMALL.
1999-04-11 04:26:06 +00:00
simonb
bc48dfc927
Clean up prototypes.
...
Print a message on failure to load or execute kernel.
1999-04-11 04:25:47 +00:00
simonb
f1e493608f
Move MKMAN to ../Makefile.inc.
1999-04-11 04:25:15 +00:00
simonb
c8ba78a09e
Move BINDIR, BINMODE to Makefile.inc.
...
Remove -DSMALL.
Define an empty LIBZ if building first stage bootblocks since LIBZ
defaults to /usr/lib/libz.a.
1999-04-11 04:24:41 +00:00
simonb
96fba8337e
Define BINDIR, BINMODE and MKMAN in the "standard" place.
1999-04-11 04:19:56 +00:00
simonb
9498a6da95
Clean up prototypes and entry variable usage.
1999-04-11 04:08:25 +00:00
simonb
2fb264a52e
Declare some prototypes for the pmax-specific libsa functions.
1999-04-11 04:05:46 +00:00
chs
f455dd6596
add a `flags' argument to uvm_pagealloc_strat().
...
define a flag UVM_PGA_USERESERVE to allow non-kernel object
allocations to use pages from the reserve.
use the new flag for allocations in pmap modules.
1999-04-11 04:04:04 +00:00
simonb
39b90701da
Include <stand.h> so we get a putchar() prototype.
1999-04-11 04:03:29 +00:00
cgd
050a43f655
start on a glorified system-examination console program.
1999-04-11 03:38:51 +00:00
cgd
7f28b25d23
add support for 'standalone programs', like kernels but not the kernel.
1999-04-11 03:36:21 +00:00
cgd
13fcfc2aeb
only conditionally set BINDIR to /usr/mdec
1999-04-11 02:51:21 +00:00
tron
4f3bbf516f
Regen from "GENERIC".
1999-04-10 21:36:59 +00:00
tron
7be185347a
Fix dependences and discard irrelevant "cpp" error message.
1999-04-10 21:36:26 +00:00
tron
92b1de5348
Add commented out declaration for "ipip" interfaces.
1999-04-10 21:23:27 +00:00
kleink
6cdc67693f
It's amazing how many typos I can invent in a new multi-line comment.
1999-04-10 17:31:02 +00:00
drochner
ca88198b65
while symbol support in DDB is good to have one _can_ live without it
1999-04-10 15:10:56 +00:00
drochner
13bff3d3e5
remove unneeded old-vm includes
1999-04-10 14:28:22 +00:00
drochner
010bce1d1a
add BUS_SPACE_ALIGNED_POINTER() definitions for completeness
1999-04-10 14:06:27 +00:00
scw
de18281718
Put some delays around the SCSI bus reset code.
1999-04-10 11:14:16 +00:00
gwr
a8d683c525
Fix compile error in: sys/lkm/vfs/miscfs/procfs
1999-04-10 02:15:46 +00:00
simonb
cda54b761e
Apply rev 1.8 of sys/arch/i386/stand/lib/loadfile.c:
...
fix error handling: almost all errors were ignored
YES, this will be made MI soon...
1999-04-10 01:52:33 +00:00
cgd
6d0fadbd19
be more consistent about use of 'cputype'. e.g. it's in a header, don't
...
bother 'externing' it everywhere!
1999-04-10 01:21:36 +00:00
drochner
7d5e1f9211
fix error handling: almost all errors were ignored
1999-04-09 20:12:57 +00:00
bad
201401bd9a
Enable the TROPIC based shared RAM Token-Ring drivers.
1999-04-09 18:17:35 +00:00
cgd
f262e02775
constify bootprog_*, move their definitions into common.h, and have
...
the generated vers.c include common.h to check against definitions.
1999-04-09 17:50:15 +00:00
minoura
6733198ebd
Fix the startup message.
...
attach_hook is now called without "mdX: " prefix.
1999-04-09 15:41:15 +00:00
drochner
04ef8b5750
actually include <net/if_ether.h> to get these constants
1999-04-09 09:34:13 +00:00
gwr
4fd30baf02
Better implementation of driver "match" function,
...
and warning/error cleanup.
1999-04-09 04:26:27 +00:00
gwr
1578ea0b12
Make sure Debugger is declared (even if no DDB).
...
The sun3 has one regardless of the DDB option.
Fixes kernel compile warning/errors.
1999-04-09 04:01:09 +00:00
thorpej
e468d4c8d9
Fix a bug in TBI optimization uncovered by the "access_type" changes. Thanks
...
to Bernd Ernesti for providing crash dumps to Charles Hannum who tracked
it down.
1999-04-09 00:38:10 +00:00
hubertf
bbb1c4b60f
Actually, we're in sync with GENERIC V1.55
1999-04-09 00:22:43 +00:00
drochner
552f55e726
Call bi_getbiosgeom() after loadfile() returned successfully. This avoids
...
a memory leak if loadfile() gets an error.
1999-04-08 18:21:15 +00:00
simonb
be4160066d
Allow the fake installation diskimage to be 2MB as well as 32MB in size.
1999-04-08 13:55:37 +00:00
drochner
31ca52f98b
add "poll" entry to i4btel device
1999-04-08 12:10:53 +00:00
drochner
0ead10436a
define VERSIONFILE, from John Darrow <John.P.Darrow@wheaton.edu>
...
per PR port-i386/7336
1999-04-08 10:23:23 +00:00
gwr
0a16f42840
Slim this down so it can be used as an Xkernel.
1999-04-08 07:10:20 +00:00
gwr
c8cdcb1f4c
sync with GENERIC
1999-04-08 07:00:58 +00:00
gwr
ab812ca7f3
sync with GENERIC3X
1999-04-08 06:49:54 +00:00
gwr
f6422020e5
Add opt_ddb.h
1999-04-08 05:07:35 +00:00
gwr
4d67424412
Make "dma" a real device so it can attach before esp.
...
Also pull in some changes from the sparc version.
1999-04-08 04:46:41 +00:00
gwr
6b0a331b5c
Make "dma" a real device so it can attach before esp.
1999-04-08 04:37:00 +00:00
gwr
fed408f387
Use the string kernel_arch to determine "sun3" vs "sun3x"
...
and leave the machine string as it was (make uses it).
1999-04-08 04:17:43 +00:00
gwr
8b27f916e1
Fix the IDPROM checksum. It should check only the first 16 bytes.
...
Also try to make the sun3 and sun3x versions more similar.
1999-04-08 04:08:01 +00:00
nisimura
dd8e585cec
- MIPS processors do not require to have memory barrier prior to read ops.
1999-04-08 03:14:35 +00:00
simonb
c7a769fc26
Make unconditional clock cycle counter display conditional on DEBUG
...
being defined.
1999-04-07 23:04:34 +00:00
scottr
d6fd16c828
vm_size_t -> vsize_t
1999-04-07 06:45:14 +00:00
cgd
587e1ba75e
save 4.3 bytes on the date string! 4 == day of week plus space,
...
.3 == a space on days of the month 1-9.
1999-04-07 06:30:34 +00:00
scottr
fd295b15e1
Turn avail_next, avail_range, and avail_remaining into local variables. Also,
...
change vm_size_t -> vsize_t.
1999-04-07 06:14:33 +00:00
gwr
0678dfb266
That last commit left pagemove() entering random mappings...
1999-04-07 06:07:59 +00:00
scottr
466895623f
Cleanup: GC unused externs, and some KNF.
1999-04-07 05:59:14 +00:00
pk
c40eb1cd97
Fix a pasto in copyright text which has been procreating like rabbits..
1999-04-06 20:09:18 +00:00
pk
016934b1fe
Move advertisement into a comment of its own.
1999-04-06 19:43:04 +00:00
pk
70f2ec45be
Duplicate clause number in copyright text.
1999-04-06 19:34:31 +00:00
pk
8d2456a432
Move advertisement text into a comment of its own.
1999-04-06 19:31:37 +00:00
pk
0e39bfc32c
remove duplicate line in copyright.
1999-04-06 19:28:41 +00:00
pk
5a47d424ae
Fix garbled word in copyright statement.
1999-04-06 19:27:48 +00:00
pk
23c3e1a4a1
Fix garbled words in copyright statement.
1999-04-06 19:26:32 +00:00
cgd
ff54a19cef
build/install this binary as bootxx.old, so that users won't get the
...
idea that they should be using it. (no point in renaming the whole
directory since it should be dead soon enough.)
1999-04-06 18:43:18 +00:00
mark
46b87f5da5
Changed the way in which virtual address space is reserved for the SA110
...
fast cache clean area as the recent pmap changes mean that the existing
approach no longer works. Fixes PR7272.
1999-04-06 06:57:00 +00:00
mark
c05b9ed27a
When handling a page fault, panic if the map is NULL so that we don't
...
dereference it when doing handled or modified emulation. This can happen
if fault are taken during early parts of the bootstrap, resulting in
recursive faulting.
1999-04-06 06:35:03 +00:00
simonb
b1ec416993
Don't build a.out kernels anymore.
1999-04-06 06:16:07 +00:00
scottr
e169535fc2
Include zsc.h so that SCC soft interrupts have a chance. Fixes PR 7313.
1999-04-06 05:55:06 +00:00
scottr
dc9ec7ace3
Sync with hp300.
1999-04-06 04:04:45 +00:00
scottr
fdd8445219
Prototype kvtop() here.
1999-04-06 03:40:23 +00:00
gwr
bcd555184b
Add the address of the DMA gate array (used by the esp driver).
1999-04-06 02:07:51 +00:00
cgd
1fddfb80a5
consistency in boot message printouts
1999-04-05 22:03:56 +00:00
cgd
54b5d8e275
always -D NETBSD_VERS
1999-04-05 22:03:48 +00:00
scw
e20f288fe5
Add a check to my last 'fix' which ensures the fault really
...
did happen in kernel mode.
1999-04-05 17:17:04 +00:00
gwr
95e8060c58
Move VM_PHYSSEG_MAX to the common vmparam.h (needed by LKMs).
1999-04-05 14:35:13 +00:00
gwr
2cc28dc7b6
Make it clear that MSGBUFSIZE is not user-adjustable.
1999-04-05 14:34:18 +00:00
mark
9ea7a42377
Added installation configuration for CATS kernels.
1999-04-05 07:30:43 +00:00
mark
e9dc39c682
Fix this so that it compiles when IRQSTATS is not defined.
1999-04-05 07:04:17 +00:00
cgd
ba10f0ca12
now that boot.c does the bootstrap name with a -D, the newvers scripts
...
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
1999-04-05 06:56:23 +00:00
cgd
d4e15df542
don't get the name from newvers, get it from a bootstrap-specific -D
...
in the Makefile. also, print the banner before we do things that
might cause us to print error messages.
1999-04-05 06:42:14 +00:00
scottr
bc071709f2
Pull in the many and various hp300 pmap changes that Jason's done
...
so far this year. There are very few appreciable differences left
between this code and the hp300 version.
1999-04-05 06:34:01 +00:00
cgd
d430800515
GC all support except contiguous block mode. the new installboot
...
takes care of it all better.
1999-04-05 05:48:12 +00:00
cgd
f8eb5f4b98
trim off unnecessary bits
1999-04-05 05:07:04 +00:00
cgd
b774b1837d
fix disk write size check
1999-04-05 05:01:44 +00:00
cgd
ebca60d395
come a little closer to compiling with warnings turned on
1999-04-05 04:39:42 +00:00
cgd
ae79d52642
i was fooling myself to believe that these would build with all warnings
1999-04-05 04:38:27 +00:00
cgd
f8fcd4d2be
-I goes in CPPFLAGS, not CFLAGS
1999-04-05 03:42:50 +00:00
cgd
bf165cb8fc
install bootxx_cd9660 and bootxx_ffs
1999-04-05 03:37:28 +00:00
cgd
6603c44a84
reorganize Makefiles so that warning flags aren't accidentally omitted,
...
and so that all programs and boot blocks are built.
1999-04-05 03:35:24 +00:00
cgd
a50cfa8576
add a new from-scratch (actually, from mkbootimage, but that's close
...
enough) implementation of installboot(8) which installs the new file
system specific boot blocks.
1999-04-05 03:07:37 +00:00
cgd
180d6f8b19
Moved to sys/arch/alpha/stand/installboot.old/installboot.c,v
1999-04-05 03:02:07 +00:00
cgd
b76e58f09c
Moved from sys/arch/alpha/stand/installboot/installboot.c,v
1999-04-05 03:02:06 +00:00
cgd
80eba52649
Moved to sys/arch/alpha/stand/installboot.old/extern.h,v
1999-04-05 03:02:05 +00:00
cgd
acb2102a7c
Moved from sys/arch/alpha/stand/installboot/extern.h,v
1999-04-05 03:02:04 +00:00
cgd
5549a89389
Moved to sys/arch/alpha/stand/installboot.old/cd9660.c,v
1999-04-05 03:02:03 +00:00
cgd
2e3c73533f
Moved from sys/arch/alpha/stand/installboot/cd9660.c,v
1999-04-05 03:02:02 +00:00
cgd
84d60a245d
Moved to sys/arch/alpha/stand/installboot.old/Makefile,v
1999-04-05 03:02:01 +00:00
cgd
5863b697a0
Moved from sys/arch/alpha/stand/installboot/Makefile,v
1999-04-05 03:02:00 +00:00
cgd
6ab8a12347
clean up, use disklabel.h boot block checksum macro, exit with
...
EXIT_SUCCESS and EXIT_FAILURE rather than 0 and 1.
1999-04-05 02:56:33 +00:00
cgd
eb5c725722
clean up for compiler warning flags
1999-04-05 02:55:38 +00:00
cgd
7a2f0695dd
clean up slightly, do a little #define trick to make checksumming
...
the boot block a little easier/more 'clean', and provide a macro to
checksum the boot block.
1999-04-05 02:45:47 +00:00
scw
f7a019c61a
Fix a problem I noticed a while back but had too many other things
...
in the air to deal with it.
Basically, following a kernel fault (eg. dereferencing a NULL pointer
in kernel mode) a DDB 'trace' did not show the function where the
fault occurred. For example:
db> trace
_Debugger()
_panic()
_trap()
faultstkadj()
_pool_drain()
_uvm_pageout()
_start_pagedaemon()
_proc_trampoline()
db>
The 'faultstkadj()' line here is bogus. It is shown because the return
address to 'trap()' happens to point there, and since faultstkadj() has
no stack frame, DDB assumes it was the faulting function. In this example,
the _real_ function was pool_reclaim(), but you would have to look at
the program counter at the time of the fault to figure that one out.
This fix makes the trace command do the dirty work for you by grubbing
around in 'trap()'s argument list to find the *real* PC value at the
time of the fault, replacing the 'faultstkadj()' line with the real
function's name.
1999-04-04 11:33:02 +00:00
mark
f187f77f1e
Update for change to isapnp_devmatch().
...
Fixes PR7303.
1999-04-03 23:53:48 +00:00
scw
dd69ae65fb
Sync with Jason's latest changes to hp300 pmap.
1999-04-03 13:15:16 +00:00
is
2ac445044e
make the Amiga bootblocks link again.
1999-04-03 09:18:41 +00:00
cgd
4cbbc316f2
add ustarboot, a ustar-capable unified bootstrap intended to be
...
mkbootimage'd and slapped on the front of a tar file.
1999-04-02 09:13:27 +00:00
cgd
e16ad7a3e4
this should have been gc'd with the disk->blkdev changes
1999-04-02 08:50:45 +00:00
cgd
b676fcfeca
add mkbootimage, a program to make a bootable image (i.e. prepend a boot
...
block, pad to a block boundary) from a console program (i.e. a boot
block, firmware upgrade executable, etc.)
1999-04-02 08:40:23 +00:00
ross
8969ff9e1e
Fix typo in FILE_FORMAT_CPPFLAGS.
1999-04-02 07:55:06 +00:00
cgd
bfa2f241f4
use 'struct boot_block' from disklabel.h
1999-04-02 07:34:49 +00:00
cgd
5d472dba93
define 'struct boot_block' which is the alpha (SRM) boot block
1999-04-02 07:32:33 +00:00
cgd
bfd7402544
use booted_dev_fd() and booted_dev_close()
1999-04-02 03:50:47 +00:00
cgd
bacc33029f
build the filesystem-specific primaries
1999-04-02 03:45:12 +00:00
cgd
60fb889b92
makefiles for some filesystem-using primary boot blocks. much as
...
i hate to say it, these still contain bugs that can't easily be
addressed yet.
1999-04-02 03:38:20 +00:00
cgd
6db093b04a
puts -> putstr
1999-04-02 03:35:54 +00:00
cgd
3b5c2ed522
a makefile template for filesystem-using primary boot blocks
1999-04-02 03:34:09 +00:00
cgd
47acf988d7
add a template for a filesystem-using primary boot block, just like
...
'boot' is a template for secondary and unified boot blocks.
1999-04-02 03:24:53 +00:00
cgd
1fe5f90d85
add a common putstr() function which just puts()'s the chars in
...
its argument string. implement a broken version of panic() in terms
of it, for cases where we need panic() but can't affort printf().
1999-04-02 03:23:49 +00:00
cgd
e1b1b6b39b
update for booted_dev and disk->blkdev changes.
1999-04-02 03:20:00 +00:00
cgd
f0bdf50326
abstract the prom device open/close into a separate module, which
...
provides the correct functions for primary, secondary, and unified
boot blocks. actually behave correctly (e.g. expect correct arguments,
perform correct operations) depending on which you are. also
some minor cleanup.
1999-04-02 03:19:08 +00:00
cgd
39ea91226c
move the boot/disk.* code to common/blkdev.*, and gut it. The previous
...
guts were actually functionally equivalent to the current guts, but were
much larger, filled with bugs, and indeed poked around at the disklabel
when some of those bugs prevented them from ever using the disklabel!
1999-04-02 03:17:28 +00:00
cgd
7c4cd2bb56
unrevert the changes made last night, now that 'installboot' has
...
had a few bugs fixed that let the problem slip in, and since bootxx's
Makefile now goes out of its way to satisfy installboot's undocumented
and totally unreasonable assumptions about the bootxx file it's operating
on. No point in fixing the assumptions, because sooner rather than later
this incarnation of installboot is going to die.
1999-04-02 03:11:57 +00:00
cgd
701c007366
correctly calculate the space left for block addresses, and avoid
...
assuming that there's always going to be space for the whole boot
block info struct. (the assumption would cause a malloc'd region
to be overrun, if it proved false.)
1999-04-02 02:47:45 +00:00
drochner
39fce9ba9d
remove leftover #endif
1999-04-01 20:50:52 +00:00
ragge
60d4b9c2bd
A bunch of small fixes to make boot work on most VAXen.
1999-04-01 20:40:07 +00:00
ragge
978ab908d4
Slimmed install kernel with md-root.
1999-04-01 20:36:32 +00:00
is
0d8a2e963a
snchronize with reality.
...
Actually, this should have been done months ago, but slipped the cracks.
1999-04-01 20:31:02 +00:00
is
03957f9d56
regenerate
1999-04-01 20:24:29 +00:00
drochner
5d86b86370
#ifdef out the last change for the branch
1999-04-01 19:36:09 +00:00
mhitch
94ac6e6084
Show 50ns period instead of 48ns for Ultra.
1999-04-01 17:27:22 +00:00
drochner
3497f157fd
On serious boot errors, dont lock the machine. Instead, wait 3 seconds
...
and call the ROM BASIC vector. This might behave differently on different
machines, but normally it allows to reboot without power-cycling.
1999-04-01 17:07:54 +00:00