nonaka
695f28419c
remove show CPU & L2 cache info routine.
2002-04-25 20:40:16 +00:00
nonaka
93dfb931be
Separate consinit.
2002-04-25 20:36:50 +00:00
atatat
d1b3852365
Add the INCLUDE_CONFIG_FILE option to all config files. In config
...
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
2002-04-25 15:06:20 +00:00
kleink
a5a0fd620b
Add ex(4).
2002-04-24 09:46:15 +00:00
kleink
3a03930d13
Add a third argument to pmap_bootstrap() which platform-specific
...
initialization can use to specify additional segment registers to be set
up in the kernel pmap.
2002-04-23 12:41:04 +00:00
augustss
7f7ab48604
Rename the audio "bus" attribute audiobus to avoid confusion with audio
...
device.
2002-04-22 09:41:19 +00:00
wiz
bc768c8abb
Remove unneeded cdev_decl(pms).
2002-04-19 02:15:59 +00:00
matt
66c475ca19
Use a common genassym.cf for all the PPC_MPC6XX ports. Add a makeoptions to
...
std.foo to indicate the directory to get genassym.cf from. Add an intrframe
to <powerpc/frame.h> and make trap_subr.S use symbolic offsets into it.
2002-04-18 20:08:05 +00:00
mycroft
8de6aa0fbc
This file is redundant now.
2002-04-17 02:27:14 +00:00
mycroft
a03e2b5e1e
Remove TLP_MATCH_* options.
2002-04-17 02:26:48 +00:00
mycroft
558b4fb278
Switch from de to tlp by default.
2002-04-17 02:22:41 +00:00
thorpej
eedd94475c
* Move the mii_bitbang attribute into dev/mii/files.mii
...
* Pull in dev/mii/files.mii from conf/files, rather than playing
the magic "files include order" dance in N machine-dependent
configuration definitions.
2002-04-16 20:50:16 +00:00
kleink
b1a7e54209
pmsi(4) is gone.
2002-04-16 07:42:19 +00:00
gmcgarry
6e066ba77a
Add commented-out USERCONF option. Mainly useful for install media
...
and can be optionally enabled based on miniroot and ramdisk size
requirements.
2002-04-12 08:10:45 +00:00
lukem
d213d804f7
Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
...
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
2002-04-02 05:30:34 +00:00
kleink
7df1d60bab
Bump version to note 601 support.
2002-03-26 00:11:54 +00:00
kleink
ccf604db9e
Adapt this to the 601's RTC.
2002-03-26 00:03:47 +00:00
nonaka
85b957a2b0
Already MBR_PTYPE_PREP is defined in sys/disklabel_mbr.h.
2002-03-17 23:45:57 +00:00
atatat
31144d9976
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
...
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
martin
94881fb123
Rename ISDN devices, per discussion on tech-kern. The network devices
...
become ippp (ISDN ppp) and irip (ISDN raw IP). The character device now
are called: /dev/isdn (isdnd <-> kernel communication), /dev/isdnctl (dialing
and other control), /dev/isdntrc* (tracing), /dev/isdnbchan* (raw B channel
access, i.e. for user land PPP) and /dev/isdntel* (telephone devices, i.e.
for answering machines).
2002-03-16 16:55:51 +00:00
lukem
cd19d52695
* rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
...
are now consistently named
* fold opt_mdsize.h into opt_md.h
2002-03-10 19:56:37 +00:00
chs
bd2a5f591d
switch all mpc6xx powerpc ports to NEWPMAP by default.
...
the old pmap is still available with the OLDPMAP option.
2002-03-09 23:35:56 +00:00
matt
e8db553326
Change LABELOFFSET to 0 to be more compatible with other MBR style ports.
2002-03-09 01:15:22 +00:00
sommerfeld
3406f0a3dd
The "gif*" tunnelling interface does everything ipip does.
...
Move usage example from ipip.4 to gif.4
Excise ipip and stitch up the scars.
2002-03-04 13:24:06 +00:00
simonb
64c7743a05
Don't "extern int cold;" - this is in <sys/kernel.h>.
2002-03-04 02:19:07 +00:00
wiz
1b7f309f0a
Correct misspellings of "failed".
2002-03-04 01:38:31 +00:00
kleink
98eeb8198f
Give block translations to I/O memory the Guarded attribute; from Matt Thomas.
2002-03-02 14:25:02 +00:00
matt
b7a4d57a9e
Now all MBR_* definitions come from <sys/disklabel_mbr.h>
2002-03-02 07:05:30 +00:00
simonb
4324f37586
Use "#define<tab>".
2002-02-28 03:17:23 +00:00
christos
6b030ee036
- define other DEV_ constants that the local port uses.
...
- delete cdev_decl(mm) since <sys/conf.h> does it.
2002-02-27 01:19:03 +00:00
kleink
5e6a2be4e0
For the time being, add a wrapper around GENERIC causing the tlp driver
...
to match the on-board 21040, which the de driver has issues with.
2002-02-26 19:02:50 +00:00
kleink
9fcf8c7e63
Add platform support for the Motorola Ultra Plus and Ultra 60x boards.
...
Note that this currently matches only the boards built into Bull Estrella
systems, as Bull chose to change the board identification string whose
original content is not known at this time.
2002-02-26 16:09:14 +00:00
kleink
5eb5b37d22
Add the same probe fig leaf as in the mk48txx attachment to prevent
...
false positives.
2002-02-26 15:28:38 +00:00
kleink
326c1b225d
Move the ext_intr() variant using the board interrupt vector register
...
into common code; it is not specific to the 6050, and in fact not even
specific to IBM-built hardware.
2002-02-26 00:30:10 +00:00
kleink
03cae416f5
Add an attachment for the MK48T18 RTC/NVRAM found on some Motorola boards.
2002-02-25 19:09:43 +00:00
kleink
d5fe2ac32f
Declare the id argument to pci_conf_hook(9) as pcireg_t, which is more
...
appropriate.
2002-02-25 00:34:13 +00:00
kleink
6805e97fff
Make the logic for wildcarding the I/O address actually achieve its purpose.
2002-02-25 00:04:49 +00:00
kleink
5410bbdb16
In order to support both indirect PCI configuration space access as well
...
as direct-mapped PCI configuration space access (such as implemented on
the IBM 27-82650 PCI Host Bridge), switch to a function vector based
PCI configuration space access implementation. The appropriate PCI
chipset tag is provided by platform-specific code.
2002-02-24 13:19:06 +00:00
kleink
73cdf7f537
Get rid of cf_unit misuse.
2002-02-24 11:22:00 +00:00
kleink
5b6184e81b
Upon reflection, really choose the right pseudo-segment for PCI memory space.
2002-02-24 10:58:41 +00:00
kleink
50838c01e1
Move battable entries for I/O to their correct pseudo-segment offsets;
...
while BAT spills currently don't happen, it should be possible for the
handlers to find them at the expected address anyway.
2002-02-24 10:56:54 +00:00
wiz
37e458fa45
strategy should have an 'r'. Inspired by similar change in OpenBSD.
2002-02-19 17:09:40 +00:00
kleink
02530a3ece
When enabling hardware interrupts at the end of cpu_startup(), splhigh()
...
cannot be used to mask them off for deferred processing as autoconfiguration
hasn't even started and thus the IPL_HIGH mask hasn't been calculated yet.
Instead, set the current mask manually to all-masked using splraise().
2002-02-11 23:01:37 +00:00
wiz
9baadd8ee5
"doesn't" should have an 's'.
2002-02-11 11:19:26 +00:00
wiz
f78eb76cbe
achive is not a good word.
2002-02-11 10:57:57 +00:00
wiz
3cc2ef9997
Update description for icsphy.
2002-02-10 17:36:52 +00:00
kleink
db6b1776e2
prep_intr_reg is mapped in kva space, so make it vaddr_t.
2002-02-10 00:54:39 +00:00
kleink
8785df9eae
Oops, typo in previous, too.
2002-02-06 12:26:02 +00:00
kleink
ec9a0b843e
* Fix typos and misusage !PMAP_MAP_POOLPAGE mb_map allocation.
...
* Use pmap_kenter_pa() for mapiodev().
2002-02-06 12:24:48 +00:00
nonaka
5d557da31c
s/asm/__asm__ volatile/
2002-02-04 16:17:36 +00:00
jdolecek
f32b3f4f89
Reduce the massive code duplication regarding joy(4). Split it into
...
MI and MD parts, and make ISA/ISAPNP/PCI joy(4) attachments MI.
2002-02-02 18:37:38 +00:00
jdolecek
6d265bd894
add options PIPE_SOCKETPAIR to individual kernel configs
...
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
2002-01-27 13:23:08 +00:00
nonaka
3c6fc4ebff
Fix panic at extent_free() in boot-time.
...
(ia->ia_io[0].ir_size is zero if noset iosiz in kernel config file.)
2002-01-21 16:26:58 +00:00
oster
39b858e3bf
Add new RF_* options for RAIDframe bits that are no longer built by default.
...
While we're here, enable RAIDframe (and RAID_AUTOCONFIG) by default for
architectures that I'm comfortable can deal with it being on by default.
Also: bump the number of 'raid' devices from 4 to 8, since 4 seems to
be insufficient in practise.
2002-01-19 18:45:06 +00:00
manu
5f90ae55b5
Added clockctl
2002-01-12 14:52:40 +00:00
thorpej
3835413bc1
Overhaul of the ISA autoconfiguration code to support direct
...
configuration of devices logically attached to the ISA bus:
* Change the isa_attach_args to have arrays of io, mem, irq, drq
resources.
* Add a "pnpnames" and a linked list of "pnpcompatnames" to the
isa_attach_args. If either of these members are non-NULL,
direct configuration of the bus is being performed. Add an
ISA_DIRECT_CONFIG() macro to test for this.
* Drivers are not allowed to modify the isa_attach_args unless
direct configuration is not being performed and the probe fucntion
is returning success.
* Adapt device drivers -- currently, all driver probe routines return
"no match" if ISA_DIRECT_CONFIG() evaluates to true.
2002-01-07 21:46:56 +00:00
augustss
b53ea42bf0
Update for new uhidev device attachment.
2001-12-28 17:37:01 +00:00
martin
b506d6e135
Add PPPoE to all generic kernels that should be able to use it.
...
XXX TODO: do this for INSTALL kernels too, add sysinst support and make the
XXX needed binaries available on the ramdisk root fs.
2001-12-28 12:21:52 +00:00
gmcgarry
bdd225baa1
Add a blurb to the top of all GENERIC files. This serves three purposes:
...
- to clarify some terminology
- to clarify the intention of the GENERIC file
- to cross-reference some useful man pages
2001-12-14 05:34:45 +00:00
lukem
b0b0a32ad7
Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
...
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
kleink
e1f611fa76
The MPC105 does not implement the IBM reference implementation's
...
Equipment Present Register (I/O port 0x080c), so perform L2 cache
detection here.
2001-12-12 10:18:48 +00:00
tv
8e6f7afb5b
MKfoo=no -> NOfoo
2001-12-12 01:48:43 +00:00
kleink
b52ac962b3
Add pci device.
2001-12-11 21:02:42 +00:00
kleink
a5abbc5b66
Add wsfont pseudo-device.
2001-12-11 20:49:18 +00:00
briggs
eca843c395
define __HAVE_NWSCONS for pckbc.
2001-12-10 22:42:54 +00:00
briggs
25e9f1f519
Provide basic bus_space_mmap(). Noted by self and in PR port-powerpc/14873.
...
This at least allows the compile to complete. There are still Issues with
vga_pci.c's assumptions about a PC-ish environment.
2001-12-10 20:30:21 +00:00
thorpej
636e9cd08b
Add a "cacheline_size" argument to pci_configure_bus(). It is used
...
to set the cacheline size in the BHLC register. This should be the
size of the largest D-cache line on a system.
2001-11-28 23:48:34 +00:00
lukem
ecb81c3f6d
- convert usage of "defopt" to "defflag" where the relevant option does
...
not support a value (e.g., it's to be used as "options FOO" instead of
"options FOO=xxx"). options that take a value were converted to
defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
atatat
2bf2c362fb
The bridge(4) pseudo-device no longer requires the port to
...
__HAVE_GENERIC_SOFT_INTERRUPTS, so add it back to all GENERIC configs.
2001-11-23 05:00:22 +00:00
soren
07c4b937eb
prep has no special dependencies on pccons; remove.
2001-11-21 22:40:45 +00:00
lukem
0fa231134c
- replace "defopt" with "defparam" for options which must take a value,
...
as config(8) will warn for value-less defparam options
- minor whitespace/formatting cleanup
- consolidate opt_tcp_recvspace.h and opt_tcp_sendspace.h into opt_tcp_space.h
2001-11-20 14:34:18 +00:00
lukem
03aef4723c
cleanup:
...
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
2001-11-20 12:56:17 +00:00
kleink
81611660e5
Fix printf format in DEBUG case.
2001-11-18 15:30:43 +00:00
kleink
4a41ec8583
In fdopen():
...
* Defer deref'ing of `un' until it's been initialized.
* Kludge around a false-positive uninitialized warning.
Brought to you by the graces of GCC 2.95.3.
2001-11-17 19:00:25 +00:00
kleink
117651c65e
Can't pass temporary storage to an inline assembly statement as input
...
operand; debunked by GCC 2.95.3 as uninitialized.
2001-11-17 18:55:57 +00:00
soren
662f877587
MAXSLP is defined to be a machine-independent scheduling parameter,
...
so move it into sys/param.h.
2001-11-15 18:06:11 +00:00
tv
5489b30b60
${MAKE} print-objdir -> ${PRINTOBJDIR}
2001-11-14 00:58:48 +00:00
augustss
c5477b70aa
The wsmux pseudo device does not need a count anymore.
2001-11-13 17:54:46 +00:00
scw
45e7238a02
Bump the version numbers of all bootloaders which use loadfile_elfXX() now
...
that it tries hard to avoid backwards seeks.
2001-11-09 19:53:11 +00:00
thorpej
b1ec255377
Add a "firstbus" argument to pci_configure_bus(), indicating the
...
first bus number to use, rather than always assuming that we should
start at bus #0 .
2001-11-09 19:29:12 +00:00
thorpej
e727e3f180
Split elf32 vs. elf64 handling in loadfile(), including support for
...
each separately and explicitly. BOOT_ELF is now BOOT_ELF32 and
BOOT_ELF64, and ELFSIZE should no longer be defined in loadfile_machdep.h.
2001-10-31 17:20:45 +00:00
thorpej
6fd8d278ed
pci_conf_interrupt() takes bus/dev/pin, not bus/dev/func.
2001-10-29 23:33:42 +00:00
augustss
1339e88a86
Add a new optional method, dev_ioctl, to the audio hardware driver interface.
...
It is called when an unrecognized ioctl() is performed on a device,
thus allowing ioctl()s that frob the hardware driver (like loading
microcode).
2001-10-03 00:04:47 +00:00
manu
dea90b1ed2
Linux emulation is no longer experimental, removed comment
2001-09-12 21:05:37 +00:00
chris
0e7661f023
Update pmap_update to now take the updated pmap as an argument.
...
This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment.
Currently this is a no-op on most platforms, so they should see no difference.
Reviewed by Jason.
2001-09-10 21:19:08 +00:00
tsutsui
6d1cb2df8e
Add pcn(4), sip(4) and tlp(4).
...
XXX epic(4) seems to have problem, while it works on macppc...
2001-09-05 11:54:43 +00:00
atatat
5f25c01eff
Comment out bridge pseudo devices from ports that don't
...
__HAVE_GENERIC_SOFT_INTERRUPTS. bridge(4) doesn't compile there.
2001-09-01 23:08:40 +00:00
atatat
97c67a9bae
Add bridge pseudo devices to GENERIC configs
2001-09-01 21:52:23 +00:00
briggs
c50646a1f3
Add adw
2001-08-29 17:37:47 +00:00
matt
550ffff41b
Make all powerpc ports use a common Makefile.powerpc (except walnut)
...
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.
2001-08-26 02:47:33 +00:00
chs
ba2c8088f4
use pmap_k* for buffer cache pages.
2001-08-24 04:34:25 +00:00
bjh21
ad2c12a28d
Bump version numbers of all bootloaders that use loadfile/ELF, to account for
...
my changes to symbol loading. I should probably have done this at the time,
but it's better late than never.
2001-08-02 12:24:05 +00:00
wiz
2f10ae1421
bcopy -> memcpy, bzero -> memset
2001-07-22 14:58:20 +00:00
wiz
fda9343e10
bcopy -> memmove
2001-07-22 14:57:50 +00:00
abs
01b024cd5b
Standardise TCP_COMPAT_42 as commented out, grouped with other COMPAT options,
...
and with the comment '4.2BSD TCP/IP bug compat. Not recommended'
Add commented out 'TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG'
(All hail amiga and atari which make some attempt to automate the
multiplicity of config files...)
2001-07-08 16:32:12 +00:00
matt
6357fdafe8
Add PM_SR
2001-07-01 21:39:17 +00:00
darcy
ce0ec1e208
Add System V semaphore resource limits to each GENERIC file that has an
...
option for System V semaphores. It appears that there are no overrides
in the code and each file has the following added.
options SYSVSEM # System V semaphores
+#options SEMMNI=10 # number of semaphore identifiers
+#options SEMMNS=60 # number of semaphores in system
+#options SEMUME=10 # max number of undo entries per process
+#options SEMMNU=30 # number of undo structures in system
options SYSVSHM # System V shared memory
If anyone thinks that this is incorrect for any of these files, please
correct it.
Note - the i386 port was not forgotten. It was done separately.
2001-06-30 11:00:31 +00:00
nonaka
afd99dc0b2
Add ahc(4), fxp(4), rtk(4)
2001-06-24 17:40:07 +00:00
tsutsui
12e908657b
Add iha(4), which works as well on my 7248.
2001-06-23 03:09:20 +00:00
matt
e6ea394a3a
#include <powerpc/spr.h> Use SPR_HID0 in place of 1008
2001-06-23 02:12:34 +00:00
matt
f0a0494c33
Allocate mb_map is PMAP_MAP_POOLPAGE is not defined.
2001-06-20 15:25:02 +00:00
nonaka
a68ff290b1
Sync reality.
2001-06-20 14:42:39 +00:00
nonaka
79c7d30f6d
- Add "siop at pci" and related line.
...
- Add "options PCI_NETBSD_CONFIGURE".
2001-06-20 14:37:46 +00:00
nonaka
992a1d0be4
Seprate model depended code. (based on arc 'struct platform')
...
files.prep:
- add new files entry.
pci_machdep.c:
- use dev/pci/pciconf.c instead of mine for pci io/mem addr/intr fixup.
cpu.c:
- separate code
machdep.c:
- call ident_platform()
mainbus.c:
- call pci_configure_bus(), if defined PCI_NETBSD_CONFIGURE
ibm_machdep.c:
- for IBM PReP generic
ibm_6050.c:
- for IBM Personal Power Series 830/850
ibm_7248.c:
- for IBM RS6000/43P deppendency
2001-06-20 14:35:23 +00:00
nonaka
dccc50da3c
ANSI'fy
2001-06-20 14:19:28 +00:00
nonaka
87f63a4997
print elcr reg, if defined DEBUG
2001-06-20 14:11:45 +00:00
nonaka
595d6a40b4
Back out last changes.
2001-06-19 11:56:27 +00:00
nonaka
b9c1984c7e
Back out last changes.
2001-06-19 11:36:17 +00:00
simonb
43eba60849
Make all the ppc delay() functions the same - formating change only, no
...
code changes. Step one of a unified ppc clock.c.
2001-06-19 08:34:49 +00:00
nonaka
03e1e2dc99
Add bus_dma entry.
2001-06-18 14:04:39 +00:00
christos
0f380fac15
Add an e_trapsignal member to struct emul, so that emulated processes can
...
send the appropriate signal depending on the trap type.
2001-06-18 02:00:48 +00:00
nonaka
31794a5423
NEWPMAP
2001-06-17 16:01:28 +00:00
nonaka
b83f37566d
identified prep model. (I missed it...)
2001-06-17 15:59:57 +00:00
nonaka
5098ff59f6
identified prep model.
2001-06-17 15:57:11 +00:00
nonaka
7f44dfec92
Compile again.
2001-06-15 15:53:27 +00:00
nonaka
80e152f0fc
Use new common bus.h framework.
2001-06-15 15:50:04 +00:00
nonaka
3a3661fb58
Delete unused function.
2001-06-15 15:24:03 +00:00
thorpej
8eb3b954f1
Don't need to prototype child_return() here, it's in <sys/proc.h>.
2001-06-14 22:56:55 +00:00
wiz
c03a48d64f
withough -> without
2001-06-13 10:45:57 +00:00
tsubai
bee211fc53
Move "file .../bus_dma.c" line to MD place.
...
Add options PPC_MPC6XX on missed ports.
XXX I think PPC_OEA is better name.
2001-06-12 17:13:34 +00:00
chs
821ec03ed9
replace vm_map{,_entry}_t with struct vm_map{,_entry} *.
2001-06-02 18:09:08 +00:00
simonb
37326d639b
Rename assembly files that are pre-processed by cpp to use an S suffix.
2001-06-01 04:20:04 +00:00
mrg
67afbd6270
use _KERNEL_OPT
2001-05-30 11:57:16 +00:00
mrg
3783ca5d30
define _KERNEL_OPT as well as _KERNEL. we will use this in the future to
...
get kernel "opt_foo.h" headers, rather than _KERNEL && !_LKM.
2001-05-29 02:20:20 +00:00
kleink
7918542181
Need <lib/libkern/libkern.h>.
2001-05-28 15:53:51 +00:00
chs
11a9651c8f
replace vm_page_t with struct vm_page *.
2001-05-26 21:27:10 +00:00
lukem
33e8c1a04f
delint: don't try & return something from void pci_intr_disestablish()
2001-05-15 14:48:57 +00:00
soren
945b972563
PPC machine type tags haven't been used for a while.
2001-05-03 13:11:24 +00:00
scw
2963ff5c58
Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point
...
in each tty driver to indirect through it.
This allows tty line-disciplines to handle poll(2) system calls.
2001-05-02 10:32:08 +00:00
thorpej
cf67ac7122
Per discussion w/ chuck and chuck, restructure the md page stuff
...
to use a structure called "vm_page_md", and use __HAVE_VM_PAGE_MD
and __HAVE_PMAP_PHYSSEG.
2001-05-01 02:19:13 +00:00
thorpej
2b27ac7a99
Add a VM_MDPAGE_MEMBERS macro that defines pmap-specific data for
...
each vm_page structure. Add a VM_MDPAGE_INIT() macro to init this
data when pages are initialized by UVM. These macros are mandatory,
but ports may #define them to nothing if they are not needed/used.
This deprecates struct pmap_physseg. As a transitional measure,
allow a port to #define PMAP_PHYSSEG so that it can continue to
use it until its pmap is converted to use VM_MDPAGE_MEMBERS.
Use all this stuff to eliminate a lot of extra work in the Alpha
pmap module (it's smaller and faster now). Changes to other pmap
modules will follow.
2001-04-29 22:44:31 +00:00
thorpej
1c3a62e066
Sprinkle pmap_update() calls after calls to:
...
- pmap_enter()
- pmap_remove()
- pmap_protect()
- pmap_kenter_pa()
- pmap_kremove()
as described in pmap(9).
These calls are relatively conservative. It may be possible to
optimize these a little more.
2001-04-24 04:30:50 +00:00
kleink
f06533a1ee
Add definitions of C99 integer format conversion macros.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-15 17:13:04 +00:00
kleink
739cb75837
Add definitions of C99 specified-width integer type limits.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-15 15:29:02 +00:00
kleink
cdcf9f46c5
Add definitions of C99 integer constant macros.
...
Tidy Makefiles up a little.
2001-04-14 22:46:19 +00:00
kleink
a7c20e5788
Add definitions of C99 integer constant macros.
2001-04-14 22:38:33 +00:00
kleink
7affdab52e
Add definitions of C99 minimum-width and greatest-width integer types.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-14 12:19:49 +00:00
thorpej
bf2dcec4f5
Remove the use of splimp() from the NetBSD kernel. splnet()
...
and only splnet() is allowed for the protection of data structures
used by network devices.
2001-04-13 23:29:55 +00:00
manu
4678df7c23
Cosmetic change
2001-04-04 17:08:07 +00:00
manu
15fbc5943f
Added a comented out COMPAT_LINUX option in GENERIC kernels of PowerPC ports
2001-04-03 19:50:43 +00:00
lukem
9f60674a47
now that duplicated stuff has been moved to sys/conf.h, remove unnecessary
...
defs for: lpt, joy, pc
2001-03-21 23:42:14 +00:00
lukem
723cd818d8
move duplicate definitions for:
...
pc, lpt, joy, ocis, apm, satlink, i4bctl, i4brbch, i4btel, i4btrc, i4b
from the port-specific arch/*/*/conf.c files into sys/conf.h
2001-03-21 22:25:52 +00:00
soren
912c115675
s/vm_page_alloc_memory/uvm_pglistalloc/ in panic message.
2001-03-21 18:40:28 +00:00
chs
ac3bc537bd
eliminate the KERN_* error codes in favor of the traditional E* codes.
...
the mapping is:
KERN_SUCCESS 0
KERN_INVALID_ADDRESS EFAULT
KERN_PROTECTION_FAILURE EACCES
KERN_NO_SPACE ENOMEM
KERN_INVALID_ARGUMENT EINVAL
KERN_FAILURE various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE ENOMEM
KERN_NOT_RECEIVER <unused>
KERN_NO_ACCESS <unused>
KERN_PAGES_LOCKED <unused>
2001-03-15 06:10:32 +00:00
thorpej
2c4c690f14
Add the BUS_DMA_STREAMING flag.
2001-03-07 22:42:16 +00:00
matt
af212d3fda
Use common switch / setfault / trampoline code. (except amigappc because
...
it doesn't use trap_subr.S either).
2001-02-25 20:34:24 +00:00
matt
e7811ad9b6
Move cpu_sysct and dump{mag,lo,siz} & cpu_dumpconf to powerpc_machdep.c.
...
dumpsys is still port-specific for now. XXX dumpsys is still a stub
on all powerpc ports.
2001-02-24 22:39:16 +00:00
matt
45f666cb9d
Remove setregs since it now lives in powerpc/powerpc/powerpc_machdep.c
2001-02-24 04:35:33 +00:00
cgd
8a986b2e96
convert to use getprogname()
2001-02-19 22:48:57 +00:00
briggs
2f624f78d6
Share a single pio.h instead of having 4 nearly-identical copies.
2001-02-05 19:33:54 +00:00
nonaka
21f8de1fcd
fix dup include ossaudio.
2001-01-23 14:12:25 +00:00
tsutsui
b19f9e6e7d
Add some working ISA devices:
...
ep* at isa? port ? irq ?
ne0 at isa? port 0x280 irq 9
ne1 at isa? port 0x300 irq 10
we0 at isa? port 0x280 iomem 0xd0000 irq 9
ne* at isapnp?
2001-01-20 11:40:50 +00:00
manu
3c98a504b9
Added previously created files for powerpc Linux compatibility to the kernel
...
config system
2001-01-19 01:51:16 +00:00
tv
e58532a4bf
No-op commit to force update to a non-"-kk" revision.
2001-01-18 17:47:58 +00:00
fvdl
c7f1462f3e
Add machdep file for procfs. Currently only used for linux-style
...
/proc/cpuinfo (only active when procfs is mounted with -o linux).
For ports other than the i386 this currently produces an empty
string.
2001-01-17 00:07:18 +00:00
nonaka
8492c6a9e8
Add prep installer
2001-01-16 16:53:57 +00:00
augustss
46130fb7e5
Add uyap.
2001-01-16 03:38:22 +00:00
thorpej
d74e432ed3
Make softclock a generic soft interrupt of the API is available,
...
adding the requisite void * argument to softclock().
2001-01-15 20:19:50 +00:00
martin
a261276f16
The i4b raw b-channel devices actually do have an ioctl routine,
...
so better add this to the cdevsw entry.
Noted by Bruno Achauer.
2001-01-14 11:17:28 +00:00
thorpej
d85a75f583
Make sure everybody has an splvm() and equate it with splimp() (splimp()
...
is the historical name for this interrupt level, and the historical name
is going to go away in the near future).
2001-01-14 02:00:37 +00:00
martin
5d0c67c603
When adding isdn devices I forgot to check chrtoblktbl.
...
Fix this know for the affected archs.
2001-01-09 20:51:04 +00:00
martin
f53c899649
Add isdn devices to all archs that seem to support at least one of the
...
necessary busses. Sync comments with reality for archs that already had
the devices.
2001-01-08 21:46:33 +00:00
tsutsui
52f9536913
Add isapnp devices.
...
XXX CS4232 is not probed properly.
2001-01-05 17:55:38 +00:00
tsutsui
d78ca7c54a
Add isapnp attachment for prep.
2001-01-05 17:49:43 +00:00
tsutsui
93f151b221
Define VM_MAX_KERNEL_BUF and PAGER_MAP_SIZE (from macppc)
...
so that the kernel can boot with 128MB memory.
XXX: How can we determine size of the buffer cache on UBC?
2000-12-30 07:10:21 +00:00
sommerfeld
851de295eb
Change pci_intr_map to get interrupt source information from a "struct
...
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".
This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.
Tested on alpha and i386; welcome to 1.5Q
2000-12-28 22:59:06 +00:00
tsutsui
7541fda9d4
Add missing printf args.
2000-12-22 18:16:37 +00:00
bouyer
c71f40d166
Add pseudo-device vlan
2000-12-19 10:42:02 +00:00
jdolecek
cacec11253
delete obsolete comment
2000-12-17 15:52:39 +00:00
mycroft
3418812d3c
Partial syscall cleanup, as per other ports.
2000-12-14 10:33:42 +00:00
matt
a8ea1009e7
Add ThinkPad 820 audio driver (attaches but does not yet work).
2000-12-06 23:42:34 +00:00
tsubai
1b4a9cb335
Move INTSTK and SPILLSTK definitions to locore.[Ss] to allow allocation of
...
them in early startup.
2000-12-04 17:05:50 +00:00
matt
305bef7250
Cleanup/fixup gten support. Add TNF copyright (opps). This now outputs
...
text correctly. There is no colormap support (e.g. the mechanisms are in
place but does yet talk to the hardware).
2000-12-02 05:46:46 +00:00
matt
0b76f4efdf
Add support for the IBM ThinkPad 820 G10 display (which is a WD90C24A behind
...
a funky PCI-VLBUS bridge).
2000-12-01 21:54:01 +00:00
matt
37ca010efd
Add generic ISA floppy support
2000-11-27 21:50:13 +00:00
matt
5cbf7c7a23
No longer needed. We use MI version now.
2000-11-27 17:04:13 +00:00
matt
a23d349584
Use MI md_root.c
2000-11-27 17:03:12 +00:00
matt
70e44cf083
Rework bus_space to conform the PReP I/O & MEM limits. Add a few debugging
...
printfs concerning interrupts.
2000-11-27 08:53:54 +00:00
nonaka
41b0daf516
- Add some PCMCIA devices.
...
- Commented out USB devices.
2000-11-22 16:15:44 +00:00
nonaka
ea05f33502
Set intrtype[irq] if interrupt type is IST_NONE.
2000-11-22 16:07:16 +00:00
matt
03b44427da
Make assym.h be generated again
...
Add pcmcia support to files.prep
Add isa_intr_alloc support.
2000-11-22 08:55:35 +00:00
chs
c62d17a551
rationalize the use of b_flags for geteblk() buffers.
...
rather than assigning to the whole field, set or clear individual flags,
which implies that the B_BUSY and B_INVAL flags will remain set.
this allows us to make the assertion in brelse() that B_BUSY is set,
which is the purpose of all this.
2000-11-20 08:24:08 +00:00
thorpej
d96bb89daf
Use <powerpc/powerpc/trap_subr.S>
2000-11-16 05:34:03 +00:00
thorpej
e6fa7f2fc8
Move the ISA DMA cookie into isadma_machdep.c.
2000-11-15 19:31:35 +00:00
augustss
eb9736c09a
Add uscanner.
2000-11-14 19:52:04 +00:00
ad
e6be92ad99
Pull in dev/i2o/files.i2o.
2000-11-08 19:48:51 +00:00
eeh
8c3f6a0d10
Adapt to new line discipline scheme.
2000-11-02 00:37:56 +00:00
jdolecek
b1f94e26ab
don't specify number of ptys if >= 16 (current default initial number)
...
pty comments: normalize and g/c what is no longer relevant
2000-09-24 15:59:26 +00:00
jdolecek
49c105ffdb
add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
...
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate
as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro
for hpcmips, use new bootverbose instead of it's own hpcmips_verbose
Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
2000-09-24 12:32:31 +00:00
nonaka
0079d5e3ba
Added installboot program.
2000-09-18 15:44:09 +00:00
thorpej
72a24b4eae
Add an align argument to uvm_map() and some callers of that
...
routine. Works similarly fto pmap_prefer(), but allows callers
to specify a minimum power-of-two alignment of the region.
How we ever got along without this for so long is beyond me.
2000-09-13 15:00:15 +00:00
thorpej
4db6fc7542
Make need_resched() take a "struct cpu_info *" argument. This
...
causes gives a primitive form of processor affinity. Its use in
roundrobin() still needs some work.
2000-08-25 01:04:06 +00:00
thorpej
58e7a6954b
Add spllock(). See spl(9) for details.
2000-08-22 19:46:26 +00:00
tsubai
365ec2aa42
Scheduler locking changes.
2000-08-21 18:46:03 +00:00
thorpej
23a7f255d4
Make sure we provide splsched() as described in spl(9).
2000-08-21 02:06:31 +00:00
nonaka
d07d2e70be
Fix link problem.
2000-08-14 17:51:41 +00:00
kleink
4fddd7dacc
* Make spllower()ing functions not return the previous priority level,
...
as specified in spl(9).
* In due course, ipmlement splx() via spllower().
2000-08-14 09:55:41 +00:00
kleink
1790b00d25
Replace the body of lcsplx() with an open-coded version of spllower()
...
and return the previous priority level, which is actually expected by
cpu_switch() in order to it be stashed into the PCB.
2000-08-14 08:58:39 +00:00
itojun
85dda25e94
move "options PULLDOWN_TEST" into sys/sys/mbuf.h (in #ifdef _KERNEL),
...
as it is no wthe default setting for everyone.
the reason we still use the name "PULLDOWN_TEST" while it is now default:
kame code sharing.
2000-08-13 01:31:15 +00:00
jdolecek
e25636b5da
g/c RB_DFLTROOT
...
I've tried hard to find also various usage() messages and remove the
appropriate flag from there as well, hopefully all occurences are covered.
2000-07-29 20:06:27 +00:00
jdolecek
d89f124868
switch to sys/conf/newvers_stand.sh for generation of version file
...
slighly adjust the Makefile WRT vers.c and SRCS & CLEANFILES
sync the message in boot/version with other ports using newvers_stand.sh
2000-07-21 21:57:23 +00:00
cgd
a5c13f9ad4
Kwality control:
...
* put #includes of opt headers and headers to get protos used by
net/netisr_dispatch.h in net/netisr.h (if !defined(_LOCORE)) (rather than
in netisr_dispatch.h itself, and potentially nowhere, respectively).
* require netisr.h to be included before netisr_dispatch.h.
* minor additional cleanup of both netisr.h and netisr_dispatch.h.
* clean up uses to remove now-unnecessary header file inclusions, and
local prototypes of the fns.
* convert netisr dispatch implementations which didn't use
netisr_dispatch.h (pc532) to use it.
2000-07-02 04:40:33 +00:00
itojun
d738f90fd7
raise MSIZE from 128 to 256.
...
- for sizeof(void *) == 8 arch, this is mandatory. MHLEN is too small
already (less than 80) and there are chances for unwanted packet loss due
to m_pullup restriction.
- for other cases, the change should avoid allocating clusters in most cases
(even when you have IPv4 IPsec tunnel, or IPv6 with moderate amount of
extension header)
portmasters: if your arch chokes with the change (high memory usage or
whatever), please backout the change for your arch.
2000-06-30 17:55:11 +00:00
itojun
d76ae83df8
add PULLDOWN_TEST for all the platforms.
...
XXX should be moved to somewhere else when stabilized
2000-06-30 17:10:15 +00:00
mrg
fa00dc597a
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
2000-06-29 07:44:02 +00:00
kleink
e695f72a2e
Add <machine/int_types.h>, which provides namespace-pure definitions
...
of exact-width integer types.
2000-06-26 15:42:16 +00:00
mrg
2f159a1bac
remove/move more mach vm header files:
...
<vm/pglist.h> -> <uvm/uvm_pglist.h>
<vm/vm_inherit.h> -> <uvm/uvm_inherit.h>
<vm/vm_kern.h> -> into <uvm/uvm_extern.h>
<vm/vm_object.h> -> nothing
<vm/vm_pager.h> -> into <uvm/uvm_pager.h>
also includes a bunch of <vm/vm_page.h> include removals (due to redudancy
with <vm/vm.h>), and a scattering of other similar headers.
2000-06-26 14:20:25 +00:00
simonb
889c658b5b
Change the kernel mmap interface so that the offset to map is an
...
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes. Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".
Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
2000-06-26 04:55:19 +00:00
fvdl
1ee7d22c0b
Remove prefix construction for softdeps. Add SOFTDEP option to GENERIC.
2000-06-22 20:27:49 +00:00
nonaka
8f7d8527db
- rewrite enable io/mem space code.
...
(rewriten by Tim Rightnour <garbled@netbsd.org>, thanks!)
- more fixup pci base address.
2000-06-21 14:09:33 +00:00
veego
223d7455c7
Remove the obsolete config fragments for kernel crypto, because the IPsec
...
crypto code is now in the kernel source tree.
2000-06-14 22:02:13 +00:00
tsubai
1bfa0fc6b6
Add cpu_counter().
2000-06-11 16:32:42 +00:00
soda
0f76c56f2d
increase number of parameters of pckbc_cnattach(), since offset of command port
...
is not 4 (KBCMDP), but 1 on jazz based platforms of arc port.
2000-06-09 04:58:32 +00:00
nonaka
25e58c2dc7
Added USB devices.
2000-06-08 13:16:55 +00:00
nonaka
48966cc65c
USB support
2000-06-08 13:16:23 +00:00
cgd
cffb580806
Implement the more flexiable `evcnt' interface as discussed (briefly) on
...
tech-kern and now documented in evcnt(9).
2000-06-04 19:14:14 +00:00
cgd
0b270a9dfb
booted_partition, not booted_parition...
2000-06-02 22:09:02 +00:00
matt
9169d99f2a
Don't pass booted_* to findroot/getdevice, access them via the globals.
...
Also, make findroot static. This eliminates unneeded clearing of them
and make their use consistent among the ports.
2000-06-01 15:38:20 +00:00
matt
c9aff328d9
Make booted_device global (and booted_parition for consitency).
...
Eliminate it from header files and other extern definitions.
2000-06-01 00:49:49 +00:00
cgd
47449a63d2
kill __P in these files. (I had to look at them anyway with an eye for
...
adding some protos... and adding them with __P seems wrong, but mixing
__P and not __P in the same file seems wrong too, so...)
2000-06-01 00:04:50 +00:00
nonaka
0e18211390
Fix maxpartitions, pointed out by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>
2000-05-31 14:28:26 +00:00
thorpej
8c2d00aaeb
Add a comment about needing to initialize p_cpu when multiple
...
processors are supported.
2000-05-31 05:09:14 +00:00
soren
39b5e9b4a2
ncr(4) wouldn't work, so s/ncr/siop/.
2000-05-27 02:19:34 +00:00
thorpej
a7d0570e67
First sweep at scheduler state cleanup. Collect MI scheduler
...
state into global and per-CPU scheduler state:
- Global state: sched_qs (run queues), sched_whichqs (bitmap
of non-empty run queues), sched_slpque (sleep queues).
NOTE: These may collectively move into a struct schedstate
at some point in the future.
- Per-CPU state, struct schedstate_percpu: spc_runtime
(time process on this CPU started running), spc_flags
(replaces struct proc's p_schedflags), and
spc_curpriority (usrpri of processes on this CPU).
- Every platform must now supply a struct cpu_info and
a curcpu() macro. Simplify existing cpu_info declarations
where appropriate.
- All references to per-CPU scheduler state now made through
curcpu(). NOTE: this will likely be adjusted in the future
after further changes to struct proc are made.
Tested on i386 and Alpha. Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.
2000-05-26 21:19:19 +00:00
thorpej
8964c35eca
Introduce a new process state distinct from SRUN called SONPROC
...
which indicates that the process is actually running on a
processor. Test against SONPROC as appropriate rather than
combinations of SRUN and curproc. Update all context switch code
to properly set SONPROC when the process becomes the current
process on the CPU.
2000-05-26 00:36:42 +00:00
thorpej
463931b3ba
Nuke dk_establish() from orbit except from those ports which still use
...
it to determine the boot device: mvme68k, pc532, macppc, ofppc. Those
platforms should be changed to use device_register(). In the mean time,
those ports defined __BROKEN_DK_ESTABLISH.
2000-05-16 05:45:44 +00:00
is
8f17fca445
fix tyop
2000-05-10 20:20:21 +00:00
hubertf
9f48bba3ae
Add "install" target, so "make install" after building the kernel
...
does something useful. The target can be redefined by putting a
install-kernel-${MACHINE_NAME} target that fits your needs into
/etc/mk.conf.
2000-05-09 00:56:21 +00:00
thorpej
6a33c86623
HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9 as well. Also,
...
make the use of -Wno-uninitialized explicit, don't rely on a compiler
hack to do it for us.
2000-05-09 00:32:19 +00:00
augustss
3a6e3a4670
Add (sometimes commented out) MIIVERBOSE option.
2000-05-08 13:49:44 +00:00
kleink
bd2d21b5d1
Display the VPD's PrintableModel item on startup.
2000-05-03 11:39:54 +00:00
nonaka
ad9dd901f1
mbr partition table parameter is little endian.
...
need to bswap.
2000-05-02 18:19:01 +00:00
nonaka
93f867f485
LABELOFFSET 42 -> 64
2000-05-02 18:13:04 +00:00
nonaka
2ed0c0fe88
add cn_bell to struct consdevs pccons.
2000-05-02 18:11:07 +00:00
kleink
0344f24921
Like, really block soft clock interrupts.
2000-05-01 10:52:29 +00:00
kleink
2c9e3487e0
Bump default data size to 32 MB.
2000-05-01 10:43:42 +00:00
thorpej
f51470a514
Require that each each MACHINE/MACHINE_ARCH supply a lock.h. This file
...
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED. These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case). Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.
These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.
2000-04-29 03:31:45 +00:00
itojun
3be41bae18
add stf pseudo interface (commented out due to possible security risks)
2000-04-19 06:50:27 +00:00
kleink
903fce95c7
* GC two unused variables.
...
* Printf format nits.
2000-04-16 14:44:03 +00:00
kleink
87e3081158
Make this actually configure.
2000-04-08 18:16:42 +00:00
nonaka
c1a7a27642
rewrite some bus_space functions like port-i386.
2000-03-27 16:45:41 +00:00
nonaka
567afae35f
add some devices
2000-03-25 04:13:54 +00:00
nonaka
31dc574dbc
more fixup pci base address
2000-03-25 04:12:20 +00:00
ws
b7570cae85
Update several ports to at least work again without IPKDB
...
after the update of that.
Sorry for breaking this with my last changes :-(.
Fixes PR#9671 by Lennart Augustsson.
2000-03-24 17:05:30 +00:00
thorpej
7b918b4088
New callout mechanism with two major improvements over the old
...
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 06:40:33 +00:00
cgd
7c35662066
add commented out option PCI_CONFIG_DUMP whever there's a PCIVERBOSE.
2000-03-22 00:58:16 +00:00
nonaka
0e99eebec3
bus_dma works. (at least de, le and vr work.)
2000-03-19 09:45:30 +00:00
tron
e86957458a
Install "machineendian_machdep.h".
2000-03-17 22:36:31 +00:00
mycroft
9e21b6555a
In the `MY THAT'S GROSS' department...
...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
2000-03-17 00:09:18 +00:00
soren
b4e10b0a4e
s/md/raid/ for RAIDframe major name.
2000-03-15 17:08:37 +00:00