christos
5317a4673a
Use new loadfile
1999-04-28 09:14:07 +00:00
christos
a030d021a7
Use new loadfile.c
1999-04-28 09:13:51 +00:00
christos
0766a607d4
MD defines for the MI loadfile
1999-04-28 09:10:07 +00:00
thorpej
b8073b401b
Garbage-collect the VM_MBUF_SIZE constant. Instead, use the size
...
(nmbclusters * mclbytes), so that the right amount of KVA space is
allocated if those variables are patched.
1999-04-26 22:46:44 +00:00
abs
0d2cfcdb5a
Update vanity config
1999-04-26 18:30:45 +00:00
simonb
5d8b1ef3e4
g/c REAL_CLISTS.
1999-04-25 02:56:26 +00:00
drochner
ca053f4364
remove an "unmodified" so that the copyright notice will hopefully match
...
pk's "BSD-style (clauses: 2; no acknowledgements)" pattern
1999-04-22 10:27:16 +00:00
fvdl
3fb6f009a4
Handle instruction prefixes (skip them, in our case).
1999-04-22 00:23:33 +00:00
mycroft
0e603b27d7
+LFS +MFS
1999-04-19 16:57:06 +00:00
drochner
2519327c42
oops - forgot half of it
1999-04-17 16:52:06 +00:00
drochner
9684e9a613
disable the "aria" sound board per default until the problems with its
...
"probe" functions are solved (gives false positives)
1999-04-17 16:50:26 +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
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
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
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
b13e5d1469
Quote "AS IS" as in the majority of Carnegy Mellon notices.
1999-04-12 20:38:17 +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
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
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
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
pk
c40eb1cd97
Fix a pasto in copyright text which has been procreating like rabbits..
1999-04-06 20:09:18 +00:00
drochner
5d86b86370
#ifdef out the last change for the branch
1999-04-01 19:36:09 +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
drochner
99a84ef740
sync to changed biosdisk interface again
1999-04-01 16:09:49 +00:00
thorpej
2f832df90c
Do proc0's TSS and LDT initialization at the end of configure() (i.e.
...
once the FPU has been attached).
1999-04-01 00:37:50 +00:00
thorpej
967b8c433c
Don't call configure() from cpu_startup().
1999-04-01 00:17:45 +00:00
mycroft
94590084d7
Enable rnd.
1999-03-31 14:16:20 +00:00
fvdl
fb1b0e7a0b
Shifting ecx without explicit prefix in real mode won't work.
1999-03-30 22:35:21 +00:00
drochner
17de7b2576
adapt to set_geometry change: we don't have to correct the geometry
...
anymore
1999-03-30 17:58:05 +00:00
drochner
62031ff978
fix some disk handling problems introduced in the last commits:
...
-read retries were botched, use the right sector count
-read-ahead buffer was effectively unused
-concentrate the handling of the weird BIOS geometry report at one place
-fallback for old floppies left cylinder count uninitialized
1999-03-30 17:55:48 +00:00
drochner
4feae58ec1
sync to changed geometry handling in the standalone code
1999-03-30 11:51:35 +00:00
bouyer
20cfe22bc8
Needs to include opt_bufcache.h.
1999-03-30 08:21:54 +00:00
perry
55adc1e16e
remove BROKEN_LPT_DELAY option
1999-03-29 21:51:25 +00:00
drochner
2396efd0b7
add a commented out WS_KERNEL_BG option, closes PR port-i386/7271
...
by Charlie Root <root@theprovider.com>
1999-03-29 19:57:34 +00:00
mycroft
7c33a450ba
Recalculate delaytab[]. We need to round up in case we were on the edge of a
...
tick and the hardware mysteriously responds fast enough that the delay ends
up being 1 tick short. An unlikely event, but just in case anything actually
relies on this...
1999-03-29 17:54:34 +00:00
mycroft
c40877ff9d
delay(): For small values of n, use a fixed lookup table. Also use
...
rtclock_tval as the limit, since this is what we actually programmed the chip
for.
1999-03-29 17:33:29 +00:00
fvdl
1e3ed49ca1
Remove debugging printf.
1999-03-28 19:55:51 +00:00
fvdl
b815df141c
Only use the total number of sectors information field from the EDD if
...
the bit is set that declares the geometry valid. The spec itself says
that this field isn't covered by the "geometry valid" bit, but at
least one BIOS implements it that way.
1999-03-28 19:41:27 +00:00
abs
67f5f8fa08
Another vanity config
1999-03-28 01:09:48 +00:00
nathanw
95b075be1e
Remove commented-out uaudio declaration;
...
we don't actually have support for it.
1999-03-27 23:27:57 +00:00
kleink
65dd935211
Typo.
1999-03-27 11:42:12 +00:00
explorer
f644cf78d0
remove EXPERIMENTAL comment, enable /dev/random in GENERIC kernels
1999-03-27 07:04:35 +00:00
mycroft
93768384ee
Fix a bug in pmap_collect_pv(), even though nobody currently uses it:
...
When we put a page on the collection list, we must subtract NPVPPG from the
total free count: one for each pv_entry that's free in that page, and one for
each free pv_entry in other pages that we're going to eat by moving the ones
in the page being collected.
1999-03-27 05:57:02 +00:00
mycroft
12d512bbb7
Oops; vm_offset_t -> vaddr_t.
1999-03-27 00:30:06 +00:00
mycroft
9c6b797796
Changes for modified pmap_enter() API:
...
* Map the message buffer with access_type = VM_PROT_READ|VM_PROT_WRITE `just
because'.
* Map the file system buffers with access_type = VM_PROT_READ|VM_PROT_WRITE to
avoid possible problems with pagemove().
* Do not use VM_PROT_EXEC with either of the above.
* Map pages for /dev/mem with access_type = prot. Also, DO NOT use
pmap_kenter() for this, as we DO NOT want to lose modification information.
* Map pages in dumpsys() with VM_PROT_READ.
* Map pages in m68k mappedcopyin()/mappedcopyout() and writeback() with
access_type = prot.
* For now, bus_dma*(), pmap_map(), vmapbuf(), and similar functions still use
access_type = 0. This should probably be revisited.
1999-03-26 23:41:25 +00:00
perry
b476609d5f
fix typo
1999-03-25 17:06:38 +00:00
explorer
bdf33ae1f0
add entry for lmc* at pci?
1999-03-25 03:35:26 +00:00
perry
ea0f7990a8
add a (commented out) BROKEN_LPT_DELAY
1999-03-25 02:22:21 +00:00
tron
1eb060a0ba
Remove remaining "ifdef UVM" checks.
1999-03-24 11:23:45 +00:00
tron
e1d80e2d51
Don't include "opt_uvm.h" any more.
1999-03-24 11:21:47 +00:00
mrg
ca5f9685bb
clean up kernel/config files files for machVM lossage.
1999-03-24 06:06:09 +00:00
mrg
d2397ac5f7
completely remove Mach VM support. all that is left is the all the
...
header files as UVM still uses (most of) these.
1999-03-24 05:50:49 +00:00
drochner
76fa1751fe
Add a macro to check for sufficient pointer alignment in bus.h context,
...
"BUS_SPACE_ALIGNED_POINTER()".
Equal to the param.h "ALIGNED_POINTER()" normally, but obeys additional
requirements of the bus_space_xxx_n() macros. (BUS_SPACE_DEBUG)
1999-03-23 21:29:03 +00:00
bad
b5348881aa
Add tcic PCMCIA controller.
1999-03-23 20:08:55 +00:00
bad
23d89d53f3
config(8) glue for the TCIC PCMCIA backend.
1999-03-23 20:07:39 +00:00
christos
f36829e285
s/DEBUG/LDT_DEBUG/ This got too verbose when running Wine.
1999-03-23 15:48:19 +00:00
bad
fee4297b62
Add IBM and 3COM ISA Token-Ring drivers.
1999-03-22 23:43:30 +00:00
mycroft
6ada3afd8b
Reject variant numbers which are too large (so that a new version of isapnpdevs
...
with an old driver will not lose mysteriously).
1999-03-22 10:00:09 +00:00
mycroft
2cccf3bd4a
Update callers of isapnp_devmatch().
1999-03-22 09:44:12 +00:00
mycroft
a873302b17
Add a SonicVibes.
1999-03-22 07:51:28 +00:00
mycroft
2fba0f875b
More sound cards for testing...
1999-03-22 07:50:29 +00:00
thorpej
a77ccfe460
Garbage-collect.
1999-03-20 01:40:25 +00:00
cgd
d324c9f2f6
pull isa_machdep.h in from machine/ instead of from $(MACHINE)/isa/
1999-03-19 05:13:16 +00:00
cgd
37d2c204a7
Moved to arch/i386/include/isa_machdep.h,v
1999-03-19 05:02:11 +00:00
cgd
7b5fe5e402
Moved from arch/i386/isa/isa_machdep.h,v
1999-03-19 05:02:10 +00:00
cgd
d00106ee06
if you pull in isavar.h, you don't need isa_machdep.h.
1999-03-19 04:58:45 +00:00
cgd
6d371b2fa9
Moved to arch/i386/include/pci_machdep.h,v
1999-03-19 03:36:14 +00:00
cgd
2ee7faa480
Moved from arch/i386/pci/pci_machdep.h,v
1999-03-19 03:36:13 +00:00
cgd
d6d5f13551
Moved to arch/i386/include/isapnp_machdep.h,v
1999-03-19 03:18:54 +00:00
cgd
6d9d9e12e2
Moved from arch/i386/isa/isapnp_machdep.h,v
1999-03-19 03:18:53 +00:00
cgd
a12c0565ed
Moved from ../eisa/eisa_machdep.h,v
1999-03-19 02:56:59 +00:00
cgd
67ba5610b9
Moved to eisa_machdep.h,v
1999-03-19 02:56:58 +00:00
chs
ab7269f62a
if uvm_fault() fails with KERN_RESOURCE_SHORTAGE, send a SIGKILL
...
and print a message about it. this will be used to recover from
out-of-swap conditions.
1999-03-18 04:56:01 +00:00
sommerfe
bc533621ed
defopt MINIROOTSIZE
1999-03-17 18:59:21 +00:00
sommerfe
a9a3ed03ee
Build kernels -Os. Appears to generate smaller code than -O1 or -O2
1999-03-17 18:40:30 +00:00
chs
1edbaac92c
when destroying a pmap, unlock it before freeing it to keep LOCKDEBUG happy.
1999-03-17 01:34:04 +00:00
drochner
937ba3a513
add prototype WSDISPLAY_DEFAULTSCREENS option, improve wscons related
...
comments
1999-03-16 16:31:54 +00:00
christos
16f90e3d2a
Enable EXEC_ELF32... It only adds 4K to the kernel, and makes an ELF
...
install floppy to work (from Andrew Gillham)
1999-03-15 07:22:18 +00:00
mycroft
deab09f540
Only need one of vga_isa and vga_pci.
1999-03-14 10:34:18 +00:00
mycroft
cac14a50bc
Update to -current, switch to wscons.
1999-03-14 10:31:43 +00:00
sommerfe
82f8a7dee9
Turn off biosboot_ser until makefile issues get worked out..
1999-03-14 05:50:38 +00:00
fvdl
35d517b9f1
Hack to make biosboot_ser work.
...
XXX The makefile structure in src/sys/arch/i386/stand is very bad.
1999-03-14 00:04:06 +00:00
tron
32e0182e15
$(OBJS) -> ${OBJS}
1999-03-13 20:58:25 +00:00
perry
21ce7a4f23
nuke ovbcopy reference
1999-03-12 23:08:11 +00:00
sommerfe
fc47c0c742
Also build serial bootblocks by default, installing into
...
/usr/mdec/biosboot_ser.sym
Change Makefile.booters to not assume `version' file is in source directory.
1999-03-12 16:07:57 +00:00
sommerfe
df8e0043e3
Fix compile warning in getcomaddr()
1999-03-12 04:14:37 +00:00
fvdl
8371eb7a88
Clean up the BIOS disk matching code a bit (better naming, one structure
...
and sysctl to export to userland). Also, only use total number of sectors
given in the extended parameters if the physical chs geometry is
marked invalid. Hopefully fixes a problem where BIOSs would not correctly
fill in this field.
1999-03-12 01:01:41 +00:00
fvdl
bc38bb1052
Declare nhd to be unsigned char, as we're only copying one byte to it.
...
From Matthias Drochner.
1999-03-11 12:34:36 +00:00
sommerfe
2ec4ac3d65
Increase default MSGBUFSIZE due to more and chattier drivers in -current
1999-03-10 18:02:22 +00:00
drochner
b477d700f2
add support for 3c905b TX
1999-03-10 10:37:38 +00:00
mycroft
5ec1e5beab
Add an ieee.h.
1999-03-10 08:13:01 +00:00
fvdl
bdb770bc34
Create a list of native disks too, and make it retrievable. It contains
...
all matching BIOS disks per entry, so that we have complete match info.
Enable the matching code.
1999-03-10 01:28:24 +00:00
fvdl
06d4fb4d0d
While at it, add K6-III recognition too.
1999-03-09 16:05:34 +00:00
fvdl
70a96d92da
Recognize Pentium III
1999-03-09 15:48:15 +00:00
drochner
743494ae88
add a function to pass the "memory map" ie the outcome of INT15/0xe820,
...
to the kernel
1999-03-08 21:44:48 +00:00
drochner
6fb323453d
add a definition to pass the "memory map", ie the outcome of INT15/0xe820,
...
to the kernel
1999-03-08 21:42:48 +00:00
drochner
0cb921e61e
change the interface for getmementry() to hold the iterator in an
...
argument and to return success or error explicitely.
Now we can "error" and "end of list" cleanly; this should fix the
problem where the last list element was ignored.
1999-03-08 21:38:28 +00:00
fvdl
1cd0b43e81
bios disk matching needs more work for a few cases. Disable until
...
I have time to look at it further.
1999-03-08 01:26:00 +00:00
fvdl
eed16d934a
Match BIOS <-> NetBSD devices after autoconf. Match by a checksum
...
and a partition table compare. Define a sysctl to get the info
out.
1999-03-08 00:12:28 +00:00
fvdl
5db52a7a6b
Add some fields to the already defined, but unused, bootinfo structure
...
for BIOS geometry. Define CPU_BIOS_GEOM sysctl value in cpu.h.
1999-03-08 00:10:42 +00:00
fvdl
f8e221511b
* query BIOS geometry information, possibly using the int 13 extensions.
...
* pass them on to the kernel
* print a message if the 2nd stage bootloader returns (i.e. fails)
instead of just hanging.
1999-03-08 00:09:24 +00:00
he
e9f9c1625e
Add handling of OMAGIC files, where exec header isn't part of the
...
text segment. Needed for woring installboot, since biosboot.sym is OMAGIC.
1999-03-07 20:03:44 +00:00
fvdl
5a32d4bb8b
Make bootblocks really work this time. From Christos.
1999-03-05 20:33:08 +00:00
mycroft
69d7e3bcdc
Nuke wdc at isapnp.
1999-03-05 07:33:42 +00:00
christos
4b494ca224
Fix the symbol reading problem...
1999-03-04 20:46:23 +00:00
simonb
1397fd691b
fix spel.
1999-03-01 12:46:16 +00:00
explorer
3ebb419571
Update to slightly altered rnd_attach_source() api
1999-02-28 17:08:05 +00:00
drochner
d57c7b76ca
replace ENTRY() label in data segment which broke the code completely
1999-02-28 11:45:44 +00:00
scottr
d32ed292af
defopt BUFCACHE and BUFPAGES.
1999-02-27 06:39:34 +00:00
christos
e13149e632
Don't need to stick the interpreter at 0 anymore, it relocates itself.
1999-02-25 10:18:04 +00:00
drochner
9e8c9e9594
-pull in exec.c, needed since loadfile.c
...
-don't pull in tftp.c anymore, it's in libsa now
1999-02-24 19:38:17 +00:00
drochner
f1d1de8c7a
moved to mi lib/libsa
1999-02-24 19:32:34 +00:00
mycroft
0dbf3ab3ca
Use DMAMODE_DEMAND. Not tested, but presumed to work.
1999-02-22 02:56:13 +00:00
drochner
eac4e51111
redirect the linker's stderr to the protocol file too
1999-02-19 19:53:01 +00:00
drochner
cb2e02af94
Make this compile and work again after the assembler update.
...
The new assembler doesn't allow 16-bit relocations involving arithmetics
with 32-bit variables. (The old one did silently truncate, which was
the right thing in our case.) Further, the new assembler uses to scatter
size prefixes around if the size of the operation is not explicitely
specified, even if the result is nonsense, eg for moves to segment
registers or control registers.
Add some debugging code (generating printouts) and comments.
Remove the !BOOTROM code which was intended for a DOS harness but isn't
that useful anymore.
Some cleanup and formatting to make it more similar to the other
startup code variants.
1999-02-19 19:48:06 +00:00
drochner
fd3ad59373
make the ethernet address an unsigned char array to avoid sign extension
...
when it is printed
1999-02-19 19:30:46 +00:00
drochner
0ce9e35aae
add boot ROM support for the DMA-only 3com network adapters, tested with
...
3c900b-Combo only for now
1999-02-19 19:22:52 +00:00
mycroft
59e2f9373d
Indicate which IRQ is being used for compatibility interrupts.
1999-02-19 18:01:27 +00:00
mycroft
4449a6ef39
Kill vestiges of isa_establish().
1999-02-19 16:15:06 +00:00
mycroft
88281a63ff
Only use the PnP PCIC attachment.
1999-02-19 00:04:58 +00:00
mycroft
d9f4f0e31a
Add PCMCIA goo.
1999-02-18 21:58:18 +00:00
abs
e54f9521b8
Update IDE comments, from yoavcs@inter.net.il
1999-02-16 17:46:17 +00:00
dean
6dc3d1eae8
Put back bsd.own.mk and added comment explaining why it must be included.
1999-02-14 02:56:19 +00:00
christos
21485fd1d6
noise reduction.
1999-02-13 16:45:28 +00:00
christos
f2da4dfc95
Support __syscall for COMPAT_AOUT properly.
1999-02-13 16:10:44 +00:00
lukem
dcab0210a0
convert from NOxxx= to MKxxx=no.
...
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
dean
c372a9b915
Remove bsd.own.mk include
1999-02-12 23:48:46 +00:00
cjs
8a3ac60bb8
Change NOMAN to MKMAN.
1999-02-12 05:15:35 +00:00
cjs
3e90f302b6
Don't give exit() a parameter, as libstand version doesn't take one.
1999-02-12 05:14:22 +00:00
christos
85333355d2
Add COMPAT_AOUT glue.
1999-02-11 20:14:28 +00:00
christos
b7ff80b7fb
Fix reversed test in my changes to compat_freebsd (thanks charles!)
1999-02-10 16:52:02 +00:00
christos
fe9e04762b
PR/6962: Paul Shupak: FreeBSD ELF emulation bits.
1999-02-10 07:10:59 +00:00
tron
2fefe24803
Remove "lib" directory only during "make cleandir" so that ".depend"
...
doesn't get nuked during "make clean".
1999-02-07 18:25:54 +00:00
drochner
b2c4a7b933
use mi data conversion functions, simplify inittodr() and resettodr()
1999-02-07 17:29:26 +00:00
drochner
36be191753
-pull in mi date conversion functions
...
-include files.vme (not worth much normally, but makes it easy to
plug in something)
1999-02-07 17:25:31 +00:00
christos
636b3ee69b
s/JUMP/JMP/ like every other arch.
1999-02-07 17:20:00 +00:00
drochner
0f145938b4
put all century related code into an own function clock_expandyear(),
...
touch the CMOS century byte only if the CMOS contents passes a
checksum test which qualifies it as "known compliant"
1999-02-07 16:18:00 +00:00
tron
08c7376961
Remove "lib" directory created during build process while doing
...
"make clean" or "make cleandir".
1999-02-07 13:39:36 +00:00
drochner
bce7f71843
sort the dependencies between terminal devices a bit and add consistency
...
checks to catch conflicting devices at compile time
1999-02-06 18:46:21 +00:00
thorpej
6a75ade4bc
The x86 does not have strict alignment requirements, so define
...
__NO_STRICT_ALIGNMENT here.
1999-02-05 22:13:12 +00:00
bouyer
1123e3e286
Mention pciide(4).
1999-02-02 16:18:17 +00:00
christos
0c8f3a4f31
Don't use obsolete sgtty crap.
1999-02-02 13:00:19 +00:00
he
38e33af591
Enable DDB, but with DDB_ONPANIC=0.
1999-02-01 16:16:52 +00:00
cjs
a3793dc8e8
Add a missing tab for cosmetic purposes.
1999-02-01 01:36:21 +00:00
christos
736a561afb
Add my name in the copyright, since the code looks very different now.
1999-01-30 17:51:52 +00:00
christos
5699d1ab3d
Remove exec.c from here. I want to make it obvious that it has to be built
...
with different flags from dosboot and biosboot. Although right now this
does not make a difference because we are building the libraries twice,
it can make a difference when we share the builds.
1999-01-30 17:46:53 +00:00
christos
07b1febfb8
- Use MARK_ENTRY instead of MARK_START.
...
- ELF changes. Now an ELF installboot installs ELF bootblocks properly.
1999-01-30 17:45:42 +00:00
christos
371363a158
Add exec.c here and bump version for elf.
...
XXX: This code has not been tested!
1999-01-30 17:44:10 +00:00
christos
25fc1fa758
Add exec.c here...
1999-01-30 17:43:38 +00:00
christos
ad9c7a287c
Remove exec.o, and make necessary changes for elf.
1999-01-30 17:43:10 +00:00
drochner
cf06eef09a
make wscons the default
1999-01-30 13:44:25 +00:00
thorpej
191dab44fa
Um, last rev was kind of backwards... actually build exec.o so that
...
the boot block links.
1999-01-29 22:13:42 +00:00
christos
e58bb79483
Merge XMS changes from exec_fromdos.c
1999-01-29 18:49:08 +00:00
christos
e25e5c88f9
Both booters need exec.o now.
1999-01-29 18:47:58 +00:00
christos
35ca0db06c
Revert, wrong place for this.
1999-01-29 18:47:24 +00:00
christos
6cadeb1ea6
Add exec.c here.
1999-01-29 18:46:15 +00:00
christos
3c7776f1b6
exec.c has all the info now.
1999-01-29 18:45:34 +00:00
christos
89cc672d98
Jason forgot to make the disklabel_mbr.h changes for this and ows me 5 hours
...
of debugging.
1999-01-29 18:45:12 +00:00
christos
722d35a400
Add the ability to get the size of the loaded image without actually
...
loading. This is useful for dos loading and installboot.
1999-01-29 18:44:09 +00:00
christos
7a7391de52
Simplify by using new feature of getting the load size.
1999-01-29 18:43:11 +00:00
christos
1e39fefac4
Remove -g accidental addition
1999-01-29 18:41:50 +00:00
bouyer
0bc97aaca7
In match_harddisk(), ignore "empty drive" type errors as well (from Soren S.
...
Jorvang).
1999-01-29 11:20:34 +00:00
cjs
82a6d74841
Turn on NTP PLL by default.
1999-01-29 00:01:22 +00:00
cjs
99a170d159
Have NTP PLL on by default.
1999-01-29 00:00:17 +00:00
christos
74d863263c
Use loadfile() to load the bootblocks, so that we are going to be able
...
eventually to load boot blocks with this. Unfortunately the elf assembler
chokes currently on our bootblocks, so the ELF portion does not work (yet).
1999-01-28 22:47:25 +00:00
christos
f1fd49f426
Add support for selectively loading sections, and make this compile in
...
userland with -DINSTALLBOOT
1999-01-28 22:45:06 +00:00
christos
9fa73628c9
Minor changes to prototypes.
1999-01-28 20:22:31 +00:00
christos
63546de24a
Remove a.out loading code and use loadfile.c for everything.
...
Populate the btinfo_symtab structure.
1999-01-28 20:21:24 +00:00
christos
0fcf083702
Add loadfile.c (stolen from Jason's alpha/stand/common/loadfile.c)
...
loadfile.h contains macros that are supposed to be MD, but loadfile.c is now MI.
Fixes:
- a.out support
- pass information values via an array not global variables
- don't assume that you can access memory directly.
- remove MD parts
- remove some printfs.
XXX: loadfile.c needs to be moved somewhere where other ports can use it.
XXX2: read() routines on the i386 don't appear to set errno on failure.
1999-01-28 20:18:31 +00:00
christos
408aa9a669
Bump number to 2.6 and say ELF works!
...
But, this is not selfhosting yet. I need to fix the installboot crap.
[i.e. you need the a.out tools to build it and install it].
1999-01-28 20:12:49 +00:00
christos
72ba98061e
Add btinfo_symtab, to pass symbol table information.
...
Actually the current ddb_init interface sucks, since there is no
magic number for a.out and it applies heuristics. It would be nice
if the boot blocks passed more info.
1999-01-28 20:10:55 +00:00
christos
c46e7e7756
Use btinfo_symtab to find the symbol table if it is available.
1999-01-28 20:06:31 +00:00
christos
6922bd9c58
Add ELF bits. -N does not work, because ld does not compute the correct
...
memsz.
1999-01-28 20:04:54 +00:00
drochner
c6ca838916
defopt PCI_CONF_MODE
1999-01-28 12:43:13 +00:00
thorpej
af39050d19
Use MBR_MAGIC defintions in <sys/disklabel_mbr.h>
1999-01-27 21:20:18 +00:00
thorpej
f077362c41
Use the MI <sys/disklabel_mbr.h>, not our own machine-dependent
...
definitions.
1999-01-27 20:54:56 +00:00
christos
be52cd1738
Fix this properly, using gcc assembly syntax (thanks ws!)
1999-01-26 17:07:06 +00:00
christos
d102972c3a
Add a missing _C_LABEL(). Now an ELF kernel builds (if one removes the
...
-z flag from the ld line, in the Makefile)
1999-01-26 14:28:05 +00:00
christos
12bbb63ed7
move the assembly functions to locore.s and make the variables used by
...
them non-static
1999-01-26 14:27:08 +00:00
christos
d95840263e
add prototypes for the assembly functions that moved to locore.s
1999-01-26 14:25:02 +00:00
christos
0339b8e4dd
ifdef __ELF__ the softintr inline since we cannot use _C_LABEL to produce
...
a name. XXX: Is there a better way?
1999-01-26 14:22:23 +00:00
christos
3bbb84a4a9
- move the npx assembly routines from npx.c here, so that we can use _C_LABEL
...
etc, to produce the correct names for elf and a.out
- correct a missing _C_LABEL problem.
1999-01-26 14:21:20 +00:00
cgd
c9d7f12836
kill accidental 'options MSGBUFSIZE...' that crept in to rev 1.89.
...
while a larger message buffer size might be a good idea (even as the
default), the existing definition here was way too large and was, in
fact, accidental!
1999-01-25 05:10:03 +00:00
mycroft
897a8a7f29
Mark [hn]to[nh][ls]() with __const__, so they are subject to CSE.
1999-01-24 12:55:01 +00:00
drochner
6fe2522d57
second round of mouse renaming: psm->pms
1999-01-23 16:10:47 +00:00
drochner
b384cb4978
update for mouse renaming
...
document wscons-compatible bus mice
1999-01-23 15:38:11 +00:00
drochner
c5b4780e5b
update for mouse renaming
1999-01-23 15:35:21 +00:00
drochner
2589333219
the cdevsw entries are for the backwards compatible mice now
1999-01-23 15:13:28 +00:00
drochner
f7138b4416
busmice have wsmouse attribute now
...
add backwards compatible mice
update for pms->opms renaming
1999-01-23 15:09:55 +00:00
drochner
4120bf17c4
rename the autoconfiguration related symbols to opms* to avoid namespace
...
collisions with an mi wscons-capable pms driver
1999-01-23 15:07:10 +00:00
drochner
6ad1646ffb
provide backwards-compatible busmouse drivers
...
(technically identical to lms.c/mms.c)
1999-01-23 15:05:39 +00:00
drochner
45ecb32709
make the busmice work with wscons
1999-01-23 15:03:50 +00:00
tron
cba7ce0e5c
Add "ipip" network interfaces.
1999-01-22 22:47:16 +00:00
thorpej
6ead44025b
Fixup some usage of _C_LABEL().
1999-01-22 22:43:44 +00:00
mycroft
ec253b6315
Use __builtin_next_arg(). Fixed PR 6862.
1999-01-22 14:14:32 +00:00
sakamoto
7da2ee9edd
Add vr driver.
1999-01-22 05:40:16 +00:00
christos
28b4668c17
Move prototypes to mi code; add MD constant for padding
1999-01-21 23:11:45 +00:00
christos
4384281c67
move the mi context setting code out of here.
1999-01-21 23:07:20 +00:00
christos
4e3e5d021d
Avoid void * arithm in a debugging printf, and remove extraneous void *
...
casts.
1999-01-21 22:58:11 +00:00
mycroft
399318b456
Vanity config files.
1999-01-21 09:58:26 +00:00
mycroft
74a54bbbc8
wscons.
1999-01-21 02:54:08 +00:00
mycroft
1e9146db5d
sync
1999-01-21 02:50:21 +00:00
mycroft
516af72df3
-ccd +vnd
1999-01-20 22:48:42 +00:00
mycroft
7ef318056c
sync
1999-01-20 11:15:56 +00:00
thorpej
2fb041ce0a
No need for <sys/mtio.h>
1999-01-19 18:18:41 +00:00
drochner
67589898ca
Be more cautious about writing to the CMOS century byte. Update it only
...
if it contained a "19" before. There are machines (in particular PS/2
descendants) which have a checksum at this place.
Introduce a patchable kernel variable "rtc_update_century" to modify
the behaviour: 1="always update" (for testing and if one wants to set
the clock back) or -1="never touch".
1999-01-18 10:50:23 +00:00
he
30cc2d95cb
Actually handle small boot blocks (<=15 blocks) correctly in the ffs case.
1999-01-17 18:16:16 +00:00
chuck
8bd992a5f6
remove non MNN code
1999-01-16 20:30:34 +00:00
he
4155434b1c
Fix uninitialized `inode' variable in save_ffs(), fixing port-i386/6682.
1999-01-16 18:26:47 +00:00
tron
3601b98911
Add missing backslashes between continued lines.
1999-01-16 06:24:07 +00:00
bouyer
62a77e9dfe
Oups, need byte_swap.h too. Pointed out by Robert V. Baron
1999-01-16 02:20:26 +00:00
thorpej
8922647c58
Some minor, mostly costmetic, changes to CPPFLAGS/CFLAGS.
1999-01-15 23:37:05 +00:00
bouyer
dc306354b0
Move the bswap functions from libutil to libc (this bups the
...
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
1999-01-15 13:31:15 +00:00
cgd
ba831d2c43
update for present reality
1999-01-14 04:44:23 +00:00
cgd
f3c3f37dc8
update for ed split
1999-01-14 04:26:46 +00:00
kleink
657d577aeb
Pull in <errno.h> instead of <sys/errno.h> for declaration of errno.
1999-01-11 22:21:30 +00:00
christos
e0c19ac888
We cannot relocate our interpreter (yet).
1999-01-11 11:02:50 +00:00
christos
e293d1bc34
Add ELF crap.
1999-01-11 11:02:16 +00:00
thorpej
e598335d1c
Garbage-collect `mbutl'.
1999-01-09 22:10:12 +00:00
augustss
fc5f9ee81d
Add -Wpointer-arith warning since `void *' arithmetic is not ANSI C.
1999-01-08 19:26:12 +00:00
augustss
332d7c138f
Avoid arithmetic on `void *' since that's not ANSI C.
1999-01-08 18:10:35 +00:00
kleink
5f79ea56a1
Rearrange the emulation-specific setregs() entry to set up the FPU control
...
word *after* calling the native setregs(), which would clobber it again.
1999-01-08 11:59:38 +00:00
thorpej
2a3368ed6e
Add the `pcscp' driver.
1999-01-06 23:30:53 +00:00
drochner
d8a0ea9858
correct a comment about implemented keyboard layouts
1999-01-06 12:17:49 +00:00
christos
c7f9823bf0
C_LABEL has no _ if __ELF__
1998-12-23 15:09:48 +00:00
tron
b471830935
Sync with GENERIC.
1998-12-23 09:46:07 +00:00
nathanw
4d2e9f8e9d
Add "pcic0 at pci?".
1998-12-20 17:56:18 +00:00
nathanw
788ff053de
Fix up support for PCI attachments of pcic devices on i386 in general,
...
and the Cirrus Logic CL-PD6729 in particular.
From danw@mit.edu in PR port-i386/6436.
1998-12-20 17:53:28 +00:00
he
a127a479d7
Add 'ex' driver and various mii stuff, from GENERIC.
1998-12-19 20:06:30 +00:00
he
bdafd9591e
Add "ustarfs" as a recognized boot file system type, and bump version number.
1998-12-19 19:44:56 +00:00
he
2cfee96f35
Implement -b option, similar to on alpha, required for ustar floppy support.
1998-12-19 19:17:23 +00:00
drochner
dafe2a2b81
Some BIOSes return occasionally with carry set from APM_CPU_IDLE/BUSY
...
calls, without setting a defined error code. This leads to annoying
output. Put the printout inside APMDEBUG.
1998-12-19 14:46:10 +00:00
tron
67693a18b7
Sync with "GENERIC" and fix description.
1998-12-17 00:07:08 +00:00
christos
5b07a26bc4
Add a commented out entry for tcom.
1998-12-16 11:42:07 +00:00
kleink
1b6a24c1d4
Support for compound statements enclosed in parenthes to appear as
...
expressions is a GNU C extension; mark as such them with __extension__ to
suppress portability warnings. Addresses kern/3562 and misc/6185, as suggested
by Dave Sainty <dave@dtsp.co.nz>.
1998-12-16 11:11:02 +00:00
christos
a6406e330a
1000000000 nsec != 2^32 nsec. (from kleink). Also had eax and edx backwards.
1998-12-15 16:10:42 +00:00
christos
80f51bcef4
Add an entry point for the solaris 2.6 fast trap vectors, used by the
...
high resolution timer calls.
1998-12-13 19:31:26 +00:00
christos
4959a9fca6
Add defines for the fast trap vectors.
1998-12-13 19:27:51 +00:00
christos
885e96c95e
Correct problem with UESP, still does not work properly.
1998-12-13 18:07:27 +00:00
mycroft
b28c62f40d
Run async_update() even if something is select()ing.
1998-12-12 17:29:39 +00:00
drochner
be595f36c4
document support for Intel 82557/82558
1998-12-12 15:51:49 +00:00
drochner
6f71e420f3
add support for the Intel 82557/82558 fast ethernet chip
1998-12-12 15:47:05 +00:00
augustss
e481435c53
Add sv driver.
1998-12-10 19:01:41 +00:00
augustss
3334421666
Comment out sv audio device, the driver is not in the tree yet.
1998-12-10 15:46:20 +00:00
augustss
8398f3a4db
Add ugen, a generic USB driver.
1998-12-08 15:52:31 +00:00
thorpej
2d7f8f3343
Support both a.out and Elf32 symbols in DDB.
1998-12-04 20:19:22 +00:00
thorpej
da572a137f
Argh, fix the ANSI CPP version of the a.out WARN_REFERENCES().
1998-12-02 21:16:46 +00:00
bouyer
ab57245c0f
Document the use of flags to set/disable PIO/DMA/UDMA modes.
1998-12-02 10:54:26 +00:00
thorpej
a6f7e0c05a
Implement WARN_REFERENCES().
1998-12-02 00:58:42 +00:00
thorpej
1e7ec4d50e
Use _C_LABEL() to generate C labels in assembly code, don't prepend an
...
underscore (_) directly. (XXX Except in a few places, where traditional
CPP's macro evaluation semantics break things, so we test for __ELF__
directly in those places).
1998-12-01 04:30:59 +00:00
thorpej
ff78cf69cf
Move cdev_usb_init() and cdev_usbdev_init() to <sys/conf.h>
1998-11-29 06:56:13 +00:00
fvdl
82d0f812ab
Save and restore pcb_onfault in a few copy functions that may be called
...
from a context where we can't afford to clobber it. Mostly from
Charles Hannum.
1998-11-26 23:47:36 +00:00
pk
4dc534f05d
Export the pcmciabus' attribute on the
pcic' controller.
1998-11-26 15:35:58 +00:00
christos
1eebc10d76
add aha at isapnp?
1998-11-23 20:47:03 +00:00
oster
dd377fd943
Remove erroneous duplicate lines in cdev_sw[]. Now things are lined
...
up right and RAIDframe can find it's block device again.
1998-11-22 15:51:04 +00:00
drochner
1c0cc94837
Update for INT13 support.
...
XXX We can't easily emulate this here due to the 16-bit-pointer
call interface.
1998-11-22 15:44:03 +00:00
drochner
7e21eb25d4
Set the p-v list head to NULL if there are no valid mappings.
...
This should be not necessary because the pv_pmap member is already set to
NULL in this case which should keep the pv_next pointer from being
followed. However, PR port-i386/5291 reports that this measure helps in
at least one case (VINO).
Reviewed by Chuck Cranor, final fix is functionally identical to the PR's
proposal.
1998-11-20 17:44:39 +00:00
tron
45d30cea9d
Sync with GENERIC.
1998-11-20 11:50:29 +00:00
kml
ba30effcf8
Changes to support a HIPPI Framing Protocol device, which allows raw
...
HIPPI packets to be written without having to go through the network
stack.
1998-11-20 04:12:57 +00:00
mrg
db3051d720
fix problems in many d_mmap routines:
...
- returned EOPNOTSUPP rather than -1.
- no check for negative offset.
many of these fix potential security problems in these drivers.
XXX XXX XXX
the d_mmap cdev routine should be changed to have a prototype like:
paddr_t (*d_mmap) __P((dev_t, off_t, int));
by someone!
1998-11-19 15:38:20 +00:00
he
db360b9524
Bump ramdisk size by 100 blocks -- ran out of space.
1998-11-19 11:43:57 +00:00
oster
cf5710c839
Added a (commented out) configuration line for the RAIDframe device driver.
1998-11-16 16:44:55 +00:00
marc
c48ce4626f
Avoid irq 5 and 7, the most likely cause of problems on modern laptops.
1998-11-16 07:23:28 +00:00
perry
0c20c72cf9
(mostly) fix kernel tags support. from Frederick Bruckman in pr-6445.
1998-11-15 20:36:30 +00:00
christos
9a95622add
cast _mcount args to u_long, to avoid lint warnings.
1998-11-13 13:50:52 +00:00
lukem
6ff594779a
oops - missing ","
1998-11-13 06:11:42 +00:00
oster
c74d32c5fc
Updating of bdev's and cdev's to support RAIDframe.
1998-11-13 04:47:03 +00:00
rvb
b148b1ea84
Oops, I didn't mean to let that last commit get out. Though
...
maybe Havard should look at the changes (to make INSTALL smaller)
and see if any are general/reasonable for everyone.
1998-11-12 21:51:02 +00:00
thorpej
05c4e40b41
defopt the APM options.
1998-11-12 21:32:16 +00:00
rvb
7f2a4a5331
Perry said I should ... enable pms0 for GENERIC
1998-11-12 21:12:34 +00:00
thorpej
b29c33e2a0
Update for the new state of the world: pciide, wscons, and a slight
...
change in how PCI-Host bridges are matched.
1998-11-12 01:04:06 +00:00
tron
76a221aca5
Sync with "GENERIC".
1998-11-12 00:57:29 +00:00
ws
18f9174133
Some BIOSs insist on patching the Bios Parameter Block for some drives
...
(e.g. LS-120). Make room for this.
1998-11-11 16:46:38 +00:00
thorpej
49c62c4336
Changes to support fork_kthread():
...
- cpu_set_kpc() now takes void *arg third argument, passed to the
entry point.
- cpu_fork() allows parent to be non-curproc iff parent is proc0.
When forking non-curproc, assume its state has already been saved.
- Adjust various pieces of machine-dependent code to account of all of this.
1998-11-11 06:41:23 +00:00
bouyer
5f9fa9aaaa
Add and enable the pciide driver.
1998-11-10 14:09:15 +00:00
drochner
1f23f4e047
add poll entry for (optional add-on) i4b raw device
1998-11-07 17:28:57 +00:00
jonathan
cdd3abe7a9
Pull MBR-scanning code and NetbSD-partition-finding into a separate
...
function, rathe than duplicating in readdisklabel() and writedisklabel().
XXX should really make MBR code MI, and share with other MBR-using ports
(e.g., arc, arm32 MBR label-scanning code).
1998-11-07 04:39:03 +00:00
jonathan
a581370fce
apply previous change to writedisklabel() as well as readdisklabel().
1998-11-07 01:30:57 +00:00
jonathan
45aa097296
Change COMPAT_386BSD_MBRPART: don't break on match, so that if there's more
...
than one DOSTYP_386BSD partition, we pick the last one, not the first.
That's what our install tools do/did with multiple ID-165 partitions.
1998-11-07 01:08:00 +00:00
tron
63b722221a
Sync with "GENERIC".
1998-11-06 20:29:52 +00:00
mellon
3cc58a69cc
Fix a signed/unsigned thinko (this is cgd's fix)
1998-11-05 15:59:00 +00:00
thorpej
74b81e824e
Add "ukphy".
1998-11-05 00:38:10 +00:00
fvdl
21ab4a980a
Add the 'ex' driver, a DMA driver for 3Com 90x and 90xB cards.
1998-11-04 00:31:59 +00:00
thorpej
6768f892cc
Add sqphy.
1998-11-03 23:52:50 +00:00
thorpej
ec38cdc6d9
Add icsphy*.
1998-11-03 00:12:45 +00:00
hubertf
e45fa5e3bb
add version for libkeycap
1998-11-01 17:14:27 +00:00
hubertf
eccf9ccdd8
s|share/misc|share/pcvt|
1998-11-01 16:37:06 +00:00
lukem
d04b2d9043
implement BUFCACHE, which sets the size of the buffer cache to BUFCACHE %
...
of physmem. if not set (or == 0), falls back to old sizing method.
1998-11-01 09:51:09 +00:00
lukem
80e1cdcee7
s/milieconds/milliseconds/
1998-10-30 13:47:02 +00:00
ws
2791cf041a
Fix a thinko which still prevented this to run on non-int13-ext machines.
...
Thanks to entropy@zippy.bernstein.com for pointing this out and testing the fix.
1998-10-30 12:16:59 +00:00