Commit Graph

244 Commits

Author SHA1 Message Date
dogcow
ef6f10f99b ...and since amd64 doesn't actually have enhanced speedstep (yet!), only
include the opt file on i386.
2006-06-13 17:37:06 +00:00
dogcow
9bdd85d12c we need opt_enhanced_speedstep.h to get whether ENHANCED_SPEEDSTEP is defined. 2006-06-13 17:30:05 +00:00
kardel
fcd5496328 Don't pick TSC by default on systems the have ENHANCED_SPEEDSTEP
compiled in. Many TSC's out there are sensitive to cpu frequency
changes. On these platforms we need to use other fixed frequency
timers (e. g. ACPI_PM_TIMER). Maybe we should add detection code
here whether TSC is sensible to cpu frequency changes.
2006-06-10 20:50:02 +00:00
kardel
9af3ab6763 add timecounter support (from branch simonb-timecounters) 2006-06-07 22:41:09 +00:00
tsutsui
5bc5ba3bc0 Use macro defined in <dev/ic/i8259reg.h>. Same binaries are generated. 2006-05-19 13:59:50 +00:00
elad
8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
jmcneill
ba3a7d2db2 Attach vesafb driver if available. 2006-04-24 14:15:47 +00:00
thorpej
2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00
thorpej
39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
bouyer
5aee9837e8 Add a comment saying why p can't be NULL here. Coverity ID 764. 2006-03-27 21:25:21 +00:00
erh
0ca5044c4a Fix Coverity issue 1471. Shouldn't actually be problem, but the array
bounds checks to figure out which signal to issue were off by one.
2006-03-17 06:31:58 +00:00
yamt
ec5a93183a merge yamt-uio_vmspace branch.
- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.
2006-03-01 12:38:10 +00:00
thorpej
83c5f95a8d Fix typo. 2006-02-26 06:17:44 +00:00
thorpej
8ac4586816 Use device_is_a() more. 2006-02-26 06:15:01 +00:00
thorpej
9d54e15b94 Use device_is_a(). 2006-02-26 06:12:59 +00:00
thorpej
458b3e43f7 Use device_parent(). 2006-02-23 05:37:46 +00:00
thorpej
58853410ae Use device_class() instead of accessing dv_class directly. 2006-02-21 04:32:38 +00:00
thorpej
d223e8477f Use aprint_*(). 2006-02-21 04:26:32 +00:00
tron
28fb66b731 Improve code probing for the Intel hardware RNG to avoid false detections.
See http://home.comcast.net/~andrex/hardware-RNG/doihave.html for details.
Problem pointed on by Thor Lancelot Simon on port-amd64 mailing list.
2006-02-19 23:10:16 +00:00
perry
fbae48b901 Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
2006-02-16 20:17:12 +00:00
kochi
fd13bfcc61 define acpi_intr_deferq as static 2006-02-16 09:22:16 +00:00
tron
cbb0e8c88b Share Intel hardware random number generator support between amd64 and
i386 port. This will benefit EM64T systems using Intel i9xx chipsets.
2006-02-12 18:16:01 +00:00
bouyer
36d7bdd35a Add back proper MPBIOS/MPACPI handling. 2006-02-07 20:38:43 +00:00
jmmv
6cf8f1a5d9 Revert yesterday's change that attempted to fix the detection of the
boot device when using a Multiboot boot loader.  It couldn't work because
these boot loaders do not pass a checksum of the disk so matchbiosdisk()
cannot really find any matches.  I should have gone to sleep before
commiting...

Found by xtraeme@.
2006-02-04 11:24:42 +00:00
jmmv
62c98fdb8d When booting an i386 kernel with Multiboot, properly detect the boot device
by looking it up in the x86_alldisks table (instead of trying to match it
to 'wd*' manually).

In order to do this, move the cpu_rootconf function from x86 common code
to amd64 and i386 specific one.  This way, i386 can do an extra step (call
the appropriate Multiboot code) in the appropriate place (after
x86_matchbiosdisks and before findroot()).
2006-02-03 23:33:30 +00:00
bouyer
aea4d25db5 Split move interrupt-related PCI functions from pci_machdep.c to
pci_intr_machdep.c. In Xen-3 registers access is done the normal way but
interrupts need custom setup. Proposed on port-amd64, port-i386 and
port-xen a week ago.
2006-02-03 19:58:20 +00:00
bouyer
fc23e0389e Change repne to rep for {ins,outs}{b,s,l} as proposed
to port-amd64, port-i386 and port-xen 2 weeks ago. Under Xen-3, a repne won't
loop (only the first value is read/written) while rep works as expected.
Linux and FreeBSD use rep, and documentation suggests that repne should
not be used with ins and outs instructions.
See http://mail-index.netbsd.org/port-xen/2006/01/22/0000.html for
details.
2006-02-03 19:55:58 +00:00
jmmv
0b879f1cfc Implement support for 'The Multiboot Specification' so that i386 kernels
can be booted directly from Multiboot-compliant boot loaders (e.g. GRUB).
See the added multiboot(8) manual page for more information.

No objections in tech-kern@; only positive comments.
2006-02-03 11:08:23 +00:00
christos
9c6e6ff8b2 Protect against uio_lwp being NULL from Pavel Cahyna 2006-01-14 23:49:59 +00:00
rpaulo
ef64dcf615 Kill __P. 2006-01-04 00:15:50 +00:00
jmmv
eb23406894 Add a 'struct bootinfo' to represent the bootinfo structure used in the
kernel by x86 platforms (instead of a simple char *).  This way, the code
in, e.g., lookup_bootinfo, is a bit easier to understand.

While here, move the lookup_bootinfo function used in x86 platforms (amd64,
i386 and xen) to a common file (x86/x86_machdep.c), as it was exactly the
same in all of them.
2005-12-30 13:37:57 +00:00
perry
2d542ba1f8 inline -> __inline 2005-12-28 19:09:29 +00:00
perry
50a256a3a0 __asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
2005-12-24 23:23:59 +00:00
perry
5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
christos
a98f67ae9c PR/32216: Nicolas Joly: Missing HTT feature display for Opterons dual-core CPUs 2005-12-02 17:11:19 +00:00
yamt
bc21da4cfb bus_dmamem_map: honour BUS_DMA_NOWAIT. noted by Manuel Bouyer.
bus_space_map: always do NOWAIT allocation as it used to be before yamt-km.

we have too many copies!
2005-11-24 13:08:32 +00:00
christos
d1219303ac PR/31885: Stephane Witzmann: Force pci mode 1 on SIS 741. 2005-11-16 16:08:36 +00:00
yamt
06085e8f52 - use sys/spl.h.
- add some IPL_ definitions.
2005-11-03 13:06:06 +00:00
yamt
0416d5be24 add splraiseipl(). 2005-10-29 11:07:45 +00:00
yamt
54007a40c0 remove duplicated spllpt(). 2005-10-28 10:34:18 +00:00
thorpej
5d49661ebb Turn bounce buffer stats into evcnts and enable them by default. 2005-09-20 04:48:10 +00:00
drochner
44bf0a7ee2 s/locdesc_t/int/g 2005-08-26 13:19:34 +00:00
bouyer
f60ca60293 Rename _PRIVATE_BUS_DMAMEM_ALLOC_RANGE to _BUS_DMAMEM_ALLOC_RANGE for
consistency with other macros defined in bus_private.h. Pointed out by
YAMAMOTO Takashi.
2005-08-22 11:09:39 +00:00
bouyer
7ce7159ca0 More adjustements to deal with Xen's physical <=> machine addresses mappings:
- Allow _bus_dmamem_alloc_range to be provided from external source:
  Use a _PRIVATE_BUS_DMAMEM_ALLOC_RANGE macro, defined to
  _bus_dmamem_alloc_range by default.
- avail_end is the end of the physical address range. Define a macro
 _BUS_AVAIL_END (defined by default to avail_end) and use it instead.
2005-08-20 19:18:11 +00:00
junyoung
ddfd23b21c BIOSDISK_EXT13INFO_V3 -> BIOSDISK_EXTINFO_V3
u_intNN_t -> uintNN_t
u_int -> unsigned int
Remove trailing spaces
2005-07-06 08:27:31 +00:00
cube
65570c38ef Move definitions for PCI_*_FIXUP to files.x86 so that ACPI compiles for
amd64...
2005-07-03 12:16:05 +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
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
blymn
646a1d4749 Fix a couple of sloppy casts
Convert u_int to uint
2005-06-01 13:11:47 +00:00