Commit Graph

6689 Commits

Author SHA1 Message Date
junyoung
c53f251ee6 Add support for cd9660 file system to the i386 BIOS bootloader. 2005-06-22 06:06:34 +00:00
junyoung
e7cb351275 Cosmetic changes. 2005-06-22 05:30:13 +00:00
enami
230b1ca68c Backout part of previous since it breaks kernel build and not described
in the commit log.  I don't see merged log of ath(4) yet.
2005-06-22 01:51:03 +00:00
sekiya
a3df0e92f9 It turns out that pci_addr_fixup() doesn't require PCIBIOS either. Decouple,
run it from mainbus_attach().
2005-06-22 00:58:48 +00:00
junyoung
d2c188d7c7 Cosmetic changes. 2005-06-21 18:34:47 +00:00
junyoung
59c7a166e2 If any of libraries needed by the "boot" is rebuilt vers.c should be
regenerated so that the build date is updated accordingly.
2005-06-21 18:25:14 +00:00
junyoung
321d917810 ANSI, KNF, trailing spaces, and etc. 2005-06-21 18:16:59 +00:00
junyoung
38e1b7dac2 Remove trailing spaces. 2005-06-21 14:48:47 +00:00
junyoung
0b6edcdedb - It is worthless to endlessly try to boot unbootable images. If all predefined
boot images are failed to boot, fall into the prompt.
- Fix a garbage in previous commit.
2005-06-21 14:20:35 +00:00
junyoung
8ea8555169 More cosmetic changes. 2005-06-21 14:16:27 +00:00
junyoung
6b49899231 - KNF & cosmetic changes
- Remove #if 0'ed netbsd.el{,.gz} from bootfile list. I have no idea what
  those files are (emacs lisp source??? :-).
2005-06-21 14:13:40 +00:00
sekiya
087e54e558 Error out if obsolete fixup config directives are used.
Pointed out by wiz@
2005-06-21 11:46:25 +00:00
sekiya
0919f4d283 Rework the configuration scheme for PCI fixups:
* bus enumeration fixups are not PCIBIOS-specific, interrupt fixups are done
  by both PCIBIOS and ACPI.  The redundancy is very redundant.  Therefore,
  rename PCIBIOS_*_FIXUP to PCI_*_FIXUP, use PCI_INTR_FIXUP in place of
  ACPI_PCI_FIXUP, and change code refences to match.

* move the fixup defines from opt_pcibios.h to opt_pcifixup.h to reflect
  the above.

* fix up the PCI bus numbering in mainbus_attach(), right after we detect the
  configuration mode.  This probably renders the fixup in pcibios.c
  redundant -- but it should be harmless.

These changes make cardbus work in ACPI-only machines, when PCI_BUS_FIXUP
and PCI_INTR_FIXUP are defined.
2005-06-21 08:19:25 +00:00
sekiya
b7d7ac9d1a Fix uninitialized pointer problem in rbus code ... just because the kernel is
compiled with PCIBIOS_ADDR_FIXUP doesn't necessarily mean that
pcibios_addr_fixup() succeeded ...
2005-06-21 06:51:29 +00:00
kent
05ff5da3a7 add "azalia at pci" 2005-06-21 02:23:13 +00:00
sekiya
c354a96fdc Remove unneeded dependancy on PCIBIOS. 2005-06-20 11:04:46 +00:00
sekiya
d91bd456e7 pci_device_foreach(), pci_device_foreach_min(), pci_bridge_foreach(), and
pci_bridge_hook don't actually have any dependancies on PCIBIOS-specific code,
and they can be used to fixup PCI bus numbering in the absence of the BIOS.

To that end, decouple them from PCIBIOS.
2005-06-20 11:04:15 +00:00
atatat
df13e3579e Change the rest of the sysctl subsystem to use const consistently.
The __UNCONST macro is now used only where necessary and the RW macros
are gone.  Most of the changes here are consumers of the
sysctl_createv(9) interface that now takes a pair of const pointers
which used not to be.
2005-06-20 02:49:18 +00:00
chs
d4b8dc7f15 uncomment hme, add more missing NICs. 2005-06-19 00:23:43 +00:00
chs
e34855484a add missing NICs, uncomment firewire stuff. 2005-06-18 17:34:54 +00:00
chs
0f0104b6a9 alphabetize. 2005-06-18 17:34:18 +00:00
chs
4dd0fe2ab5 add txp. uncomment the firewire stuff. 2005-06-18 16:12:19 +00:00
seb
bc1b24046b Add missing entries in cache information array for, at least,
Pentium M 770, 760, 750, 740 and 730.

Approved by mrg@
2005-06-16 00:04:25 +00:00
junyoung
ef7e076715 Cosmetic changes. 2005-06-15 19:07:36 +00:00
junyoung
d659374d57 ANSI, KNF, de-__P, and various cosmetic changes. 2005-06-15 19:01:19 +00:00
junyoung
3bd71bdfb4 KNF & notably, use u_int rather than unsigned int for now for consistency.
This should be reversed eventually...
2005-06-15 08:03:07 +00:00
junyoung
0da67fb4ba Initial commit of cdboot, a primary boot loader that loads a secondary
boot loader directly from CD without performing floppy/hard disk emulation
as described by the El Torito specification.
2005-06-15 06:38:45 +00:00
christos
b329676140 print the actual device name in error message. 2005-06-15 01:52:39 +00:00
tron
8ff1e4e407 Get rid off the ugly S_SIZE() macro which breaks the build now that
bcmp() is a macro, too.
2005-06-14 18:25:16 +00:00
junyoung
5e872837fc Cosmetic changes. 2005-06-13 11:34:11 +00:00
junyoung
c3fc1c3df5 - Remove support for gcc < 2.7.x. Nobody is using such an old version
these days.
- s/u_int/uint/
- De-__P()
2005-06-13 11:33:02 +00:00
junyoung
7afdc17e75 ANSI, KNF, kill trailing spaces, and cosmetic changes. 2005-06-13 11:27:40 +00:00
junyoung
5b29e9631f ANSI, KNF, remove trailing spaces, and some other non-functional changes 2005-06-13 11:23:28 +00:00
junyoung
be35d82590 Remove trailing spaces. 2005-06-13 11:13:17 +00:00
dyoung
a37289db57 Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/.  That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such.  I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-06-12 19:46:15 +00:00
yamt
a61427049c remove some unsafe sti insns before INTRFASTEXIT, which
can allow infinite recursion of the handler.
2005-06-12 05:32:45 +00:00
matt
7728c19903 Reduce INSTALL_TINY by 1.3KB.
Support for a.out coredumps is now conditional on EXEC_AOUT, EXEC_COFF,
EXEC_ECOFF, or EXEC_MACHO, or LKM.  Since coredump_netbsd is the only user
of cpu_coredump, make that conditional too.  Lastly, add 'no options EXEC_AOUT'
so the EXEC_AOUT option in std.i386 can be overridden.
2005-06-12 00:24:32 +00:00
matt
e1245a3c46 Rework the coredump code to have no explicit knownledge of how coredump
i/o is done.  Instead, pass an opaque cookie which is then passed to a
new routine, coredump_write, which does the actual i/o.  This allows the
method of doing i/o to change without affecting any future MD code.
Also, make netbsd32_core.c [re]use core_netbsd.c (in a similar manner that
core_elf64.c uses core_elf32.c) and eliminate that code duplication.
cpu_coredump{,32} is now called twice, first with a NULL iocookie to fill
the core structure and a second to actually write md parts of the coredump.
All i/o is nolonger random access and is suitable for shipping over a stream.
2005-06-10 05:10:12 +00:00
tsutsui
4e54a2cc7c - Rename options NEW_BUFQ_STRATEGY -> options BUFQ_READPRIO.
(still commented out)
- Add (also commented out) options BUFQ_PRIOCSCAN.

Suggested by perry and soda on tech-kern.
Please refer options(4) for details for these options.
2005-06-09 14:43:29 +00:00
blymn
9182bfdb82 Remove veriexec so it can be made MI. 2005-06-03 12:39:16 +00:00
christos
4c0c764bc7 minor nits. 2005-06-02 13:04:05 +00:00
martin
9d33dc306b Fix qualify/shadow warnings. 2005-06-02 08:03:50 +00:00
drochner
4c60f4d510 one more "const" for multiprocessor, from Patrick Welche 2005-06-01 19:06:24 +00:00
drochner
89be678776 kill the "busname" attach arg for acpi, apm, pnpbios and vesabios,
and pass NULL "print" function pointers to their config_found functions
because they shouldn't be called anyway
2005-06-01 16:49:14 +00:00
drochner
ac2f70360c adapt to ddb constification 2005-06-01 16:36:42 +00:00
scw
8f4aee207b Declare the second arg of process_write_{fp,}regs() to be const.
This permits sh5 to continue to re-use those functions in cpu_setmcontext()
with the recent change to Makefile.kern.inc (revision 1.62).
2005-06-01 13:01:35 +00:00
tron
6b429e7ed5 Remove unused kernel configuration. 2005-06-01 09:44:12 +00:00
drochner
d033b4e4b0 as in apm, the "busname" thing is unnecessary
being here, fix constification problems and cleanup variable names
from function prototypes
2005-05-31 22:39:08 +00:00
drochner
5e6bfb3b86 inspired by the last commit -- apm_attach_args aren't necessary at all,
kill them
being here fix cast-qual problems in debug code
2005-05-31 21:47:22 +00:00
christos
2514b28c3f PR/30387: Nicolas Joly: -current i386 GENERIC_LAPTOP kernel compilation failure 2005-05-31 17:51:49 +00:00
christos
f6b4c20f18 s/GENASSYM/GENASSYM_CONF/ so we can use "GENASSYM" as the program name. 2005-05-31 04:03:08 +00:00
chs
b0a8a83e7b remove vestigal {,e}intr{names,cnt} symbols now that vmstat doesn't need them. 2005-05-31 00:45:02 +00:00
thorpej
5821e751d0 Use TOOL_GENASSYM. 2005-05-30 18:33:15 +00:00
christos
5cef1962c4 avoid shadowing of "shift" 2005-05-30 04:12:41 +00:00
christos
efc217b18f avoid variable shadowing. 2005-05-29 21:58:41 +00:00
christos
2056c915d2 avoid variable shadowing. 2005-05-29 21:34:23 +00:00
christos
4aeb136dff Add a lot more const. 2005-05-29 21:34:07 +00:00
christos
6bbf0077fc Avoid shadowed variables. 2005-05-29 21:33:01 +00:00
christos
daaa1cae60 avoid shadowed variables. 2005-05-29 21:32:37 +00:00
chs
c30be7db9d remove "#if 1" around some necessary code. 2005-05-29 15:58:33 +00:00
gavan
46233ce201 Workaround for issues seen on VIA C3-based systems. PR port-i386/26007
Tested on ML5000 board. This may not fix the problem on all variations of the
hardware, but it's likely that variations on the theme will. This workaround
is non-intrusive and should not affect any other CPUs.
2005-05-27 21:40:09 +00:00
kleink
4a6a03b162 Include <sys/cdefs.h> for __signed; related to lib/30072. 2005-05-25 20:58:00 +00:00
hubertf
e2f5fea5f3 Fix comments:
Comments in kernel config files start with #, and are not enclosed in /* */
Noted by Patrick Welche <prlw1@newn.cam.ac.uk> on current-users@
2005-05-17 17:20:41 +00:00
christos
362a4a0bd5 Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to
implement, xtoa(), but I think defining the samestring 50 times is a bit
too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
2005-05-17 04:14:57 +00:00
fvdl
631e44f47d Move linux_trap.c from sys/arch/i386/i386 to sys/arch/x86/x86, and share
it. Remove the amd64 linux_trap.c (which was just a stub with a printf
anyway).
2005-05-15 22:20:23 +00:00
elad
7f5f0c1f54 Change pseudo-device name from "verifiedexec" to "veriexec", as it appears
in majors.i386.
2005-05-06 04:42:24 +00:00
christos
d7dd731e02 add dependall and realdepend to the targets that we need to call in the
beginning. XXX: The real fix (handle dependencies in .BEGIN) is forthcoming.
2005-05-05 18:03:04 +00:00
augustss
8abde347bd Mention PCKBD_CNATTACH_MAY_FAIL, but don't define it. 2005-05-04 02:40:55 +00:00
augustss
93dd7186b9 Mention WSKBD_EVENT_AUTOREPEAT.
XXX All the WS options need to be added to options(4).
2005-05-04 01:55:24 +00:00
tron
12c1fb5b6d "loadfile_machdep.h" should not be installed as pointed out by
Izumi Tsutsui. This needs to be fixed in the build process.
2005-05-03 08:24:15 +00:00
kochi
42773dd406 Merge changes for ACPI-CA 20050408. 2005-05-02 14:54:46 +00:00
tron
450260eeec Install "loadfile_machdep.h" to fix build of "libsa". 2005-05-02 12:31:08 +00:00
christos
81e19b01e8 More .BEGIN lossage. 2005-05-01 03:07:12 +00:00
christos
5a5df3b859 .BEGIN cannot have dependencies. 2005-05-01 02:41:08 +00:00
christos
db24f1bda4 PR/9567: Arne H. Juul: .BEGIN targets should not use dependencies. 2005-05-01 00:31:23 +00:00
augustss
25a5dbc748 Mention UKBD_LAYOUT, which corresponds to PCKBD_LAYOUT for the ukbd driver. 2005-04-29 16:58:39 +00:00
augustss
8a3915972b Alphabetize. 2005-04-26 12:13:33 +00:00
lukem
3fd1802e62 Move the MI printing of `copyright' to the MD cpu_startup() code
where the printing of `version' is already performed.
This has the benefit of allowing the copyright to be available
via dmesg(8) on platforms which need the `msgbuf' to be setup
in cpu_startup() before printed output is remembered.
2005-04-25 15:02:02 +00:00
bouyer
8a73c8feef Xen runs only on i686 or newer processors, so remove useless options
MATH_EMULATE. Pointed out by Juan RP on port-xen.
2005-04-21 16:33:29 +00:00
yamt
7301e7ab7b sprinkle __used so that variables referenced from asm code don't get
optimized out.
2005-04-21 14:03:24 +00:00
blymn
8387760ed1 Rototill of the verified exec functionality.
* We now use hash tables instead of a list to store the in kernel
    fingerprints.
  * Fingerprint methods handling has been made more flexible, it is now
    even simpler to add new methods.
  * the loader no longer passes in magic numbers representing the
    fingerprint method so veriexecctl is not longer kernel specific.
  * fingerprint methods can be tailored out using options in the kernel
    config file.
  * more fingerprint methods added - rmd160, sha256/384/512
  * veriexecctl can now report the fingerprint methods supported by the
    running kernel.
  * regularised the naming of some portions of veriexec.
2005-04-20 13:44:45 +00:00
bouyer
b8171ad79a Remove
xenkbc at hypervisor
vga at hypervisor
they have been obsoleted by PCI and ISA support, and don't compile any more.
2005-04-17 14:44:14 +00:00
yamt
1d12c53188 add files which i forgot to add with arch/x86/x86/bus_dma.c rev.1.21. 2005-04-16 08:53:09 +00:00
yamt
fb4a1ff192 tweak x86 bus_dma code so that it can be used by xen port.
- distinguish paddr_t and bus_addr_t.
  for xen, use bus_addr_t in the sense of machine address.
- move _X86_BUS_DMA_PRIVATE part of bus.h into bus_private.h.
- remove special handling of xen_shm.  we can always grab
  machine address from pte.
2005-04-16 07:53:35 +00:00
itohy
d665949330 Add ukyopon(4). 2005-04-15 17:27:20 +00:00
perry
47e0ea84da change a set of spaces to " \t" 2005-04-10 23:02:01 +00:00
bouyer
0eb1762804 Add the ksym pseudo-device, for the benefit of kmem grovelers.
Pointed out by Jason Thorpe on port-xen.
2005-04-03 19:29:18 +00:00
jdolecek
6aef8a6e14 add tra* at mca? 2005-04-03 11:39:07 +00:00
yamt
e6d2a0e747 db_write_text: make this work on xen. 2005-04-01 13:00:57 +00:00
yamt
6b2d8b66a4 merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
  save some resources like pv_entry.  also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.
2005-04-01 11:59:21 +00:00
cube
78f44cbe4f Add attimer(4) configurations everywhere pcppi(4) exists, with the
following rule:
  If a pcppi device is enabled for an attachment, enable an attimer for the
  same attachement, otherwise comment it.
2005-03-25 23:28:43 +00:00
cube
98201da433 pcppi at acpi needs some more work. Leave it commented out for now. 2005-03-21 18:10:15 +00:00
xtraeme
f9dbeebf6f Add "pcppi* at acpi?" commented out. 2005-03-21 14:15:27 +00:00
bouyer
d0b115d1b9 Add PCI audio devices from i386/conf/GENERIC. 2005-03-18 16:32:33 +00:00
fvdl
486492d83a Check the passed in address as well as determining the maximum length
using VM_MAXUSER_ADDRESS in copyinstr and copyoutstr.

Problem originally fixed in OpenBSD/i386.
This fix suggested by Charles Hannum (mycroft at netbsd dot org).
2005-03-14 21:50:59 +00:00
dsl
37840e8766 Fix time calculation when:
p->p_rtime.tv_usec + tv.tv_usec < spc->spc_runtime.tv_usec
2005-03-12 16:33:45 +00:00
dsl
604ef02ccf You need to multply seconds by 10^9 to get nanoseconds! (not 10^6).
Remove some possible aliasing issues.
I actually suspect this code is returned a word-swapped 64bit value though!
2005-03-12 16:02:02 +00:00
dsl
1c1e4144e2 Use an archive library for libkern if we don't support LKMs.
Enough to get INSTALL_TINY small enough again.
Someone else can fix it next time...
2005-03-12 14:39:12 +00:00
bouyer
d8ac66d8b5 Move Xen kernel config files to arch/i386, so that they can be added to
the i386 release process. Make them include archi/i386/conf/GENERIC.local,
like other i386 GENERIC and INSTALL files.
2005-03-11 20:48:24 +00:00
bouyer
b3de8f0978 Define xen devices in i386/conf/majors.i386. This makes sure there won't
be conflics with regular i386 kernels.
2005-03-11 20:44:37 +00:00