Commit Graph

5387 Commits

Author SHA1 Message Date
thorpej
7d9de8b2ad PMC_TYPE_I586 -> PMC_CLASS_I586
PMC_TYPE_I686 -> PMC_CLASS_I686
PMC_TYPE_K7 -> PMC_CLASS_K7

To reflect terminilogy used in pmc(3).
2002-08-09 05:28:08 +00:00
thorpej
7cbc5d60c1 Add macros to encode the "unit number" in the event selector. 2002-08-08 20:40:49 +00:00
thorpej
b12f663377 Define new-style PMC types for i586, i686, and K7 performance counters. 2002-08-08 18:37:39 +00:00
tron
38b5f64780 Redo last change. "pmc_evid_t" and "pmc_ctr_t" need to be visible for
userland because they are used in "sys/pmc.h".
2002-08-07 09:45:49 +00:00
tron
b145a3fa59 Embed "pmc_evid_t" and "pmc_ctr_t" into "if defined(_KERNEL)" and use
"__uint64_t" from "int_types.h". This fixes "lint" errors while
building "libc".
2002-08-07 09:34:54 +00:00
briggs
64a993291d Stubs for new pmc(9) interface. 2002-08-07 05:58:01 +00:00
briggs
d3cfa7ad3b Forward declare structures that are used here. 2002-08-07 05:38:47 +00:00
briggs
a27fd9df4d define pmc_evid_t, pmc_ctr_t. 2002-08-07 05:38:24 +00:00
briggs
ba45c803fd PERFCTRS is now defflagged in conf/files. 2002-08-07 05:18:21 +00:00
itojun
e5b5171ab5 integer overflow. from silvio@qualys.com 2002-08-06 22:46:11 +00:00
grant
3273a7757a add X note comment for INSECURE option.
addresses port-i386/17853 from hclsmith@yahoo.ca.
2002-08-06 12:09:42 +00:00
itojun
dc8b2582ca backout previous 2002-08-05 01:16:59 +00:00
itojun
08a994ac23 soekris device use 19200bps on boot, it seems 2002-08-05 01:14:58 +00:00
itojun
b41a39617e comment things out for smaller footprint 2002-08-03 15:52:20 +00:00
itojun
8dd04cdcd7 correct range check, have overflow check, fix type mismatches,
for cmap args and some other calls.  from openbsd
2002-08-03 00:12:48 +00:00
ichiro
2543e04449 chenge comment for wi(4)
- add vender Intersil
2002-08-02 05:26:44 +00:00
thorpej
6f79106887 Add dmoverio. 2002-08-02 00:45:37 +00:00
wiz
f3de6108f8 Sync (commented out) SHMMAXPGS value with vmparam.h.
Closes port-i386/12708 by Patrick Welche.
2002-07-22 11:05:59 +00:00
grant
6742cb1812 sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:36:17 +00:00
thorpej
3912e469dd Rename cdev_systrace_init() to cdev_clonemisc_init(), so it can
be properly used by any misc. cloning device.  While here, correct
a comment to indicate that "open" is the only entry point and that
everything else is handled with fileops.
2002-07-19 16:38:14 +00:00
kanaoka
69c8929084 - Disable Interrput before execute AcpiEnterSleepState().
- Add acpi_md_OsDisableInterrupt() for this.
2002-07-18 12:05:11 +00:00
kanaoka
6e5726c8c9 - Enable to enter sleep state S5 with ACPI. 2002-07-17 14:55:42 +00:00
drochner
08285ba648 explicitely set ds, es, fs and gs to 0 before calling kvm86;
use the right places in the trap frame (the 4 segment registers which
get loaded on a rti to VM86 mode) to set them for BIOS calls
(we have never set them to anything but 0 before, so it didn't matter)
2002-07-14 14:39:44 +00:00
drochner
ff2b8f83ec fix typo which made textmode check always succeed 2002-07-14 13:56:20 +00:00
drochner
ef054011f7 -if getting info for a mode fails, print out the mode
and continue with the next
-check that text modes are VGA compatible (haven't seen it
 otherwise yet, but to be sure...)
2002-07-11 10:02:21 +00:00
drochner
1719b0ab59 get some more info out of the VESA BIOS and attach subdevices for
8-bit pseudo color and text modes
still doesn't do anything useful
(It would be easy to attach a wsdisplay, but we have to cooperate with the
PCI or ISA attached VGA drivers. There are open issues.)
2002-07-10 19:15:42 +00:00
drochner
cd34aa2e82 add a function to read from the BIOS vm86
(most of it is already mapped to KVM, but it appears easier to me
to do it this way instead of a lot of range checks)
2002-07-10 19:09:35 +00:00
itojun
941a391c59 sync with GENERIC 1.501. comment out devices that are not present.
(you can strip it down even more by commenting out unneeded filesystems)
2002-07-10 08:41:28 +00:00
itojun
0e727055ba whitespace 2002-07-10 08:37:40 +00:00
kent
9dcee9625e Line 281-304:
Use %edi instead of %edx to keep destination address because memcpy() MAY
break %edx.
2002-07-10 05:56:44 +00:00
jdolecek
f4e3c06369 always include ci_s*_locks in struct cpu_info, so that the size doesn't depend
on DIAGNOSTIC/LOCKDEBUG settings
2002-07-09 22:28:30 +00:00
drochner
cff6339e49 attach "vesabios"
(well, not really yet)
2002-07-07 13:25:43 +00:00
drochner
2eb946d46c call kvm86's GPF handler 2002-07-07 13:24:36 +00:00
drochner
5641e4d726 Initialize the kernel vm86 code before autoconfiguration, so that
BIOS calls can be used for device probing etc.

And now it's getting nasty:
The kvm86 code needs a TSS, and it is most convenient to use proc0's
instead of doing some static allocation. (We might reconsider this if
we want to use vm86 for console initialization, ie much earlier.)
For the TSS slot to be allocated, we have to move the call to
i386_proc0_tss_ldt_init() up.
Since the npx code twiddles CR0 the corresponding pcb field must
be synchronized later. It would probably be cleaner to do this in
the npx driver.
2002-07-07 13:23:17 +00:00
drochner
bc442c7173 -if APM_USE_KVM86 is set, use BIOS calls in virtual 8086 mode
-make sure the register frame is really cleared before use
 (someone added a field to the frame later which didn't get zeroed)
2002-07-07 13:06:56 +00:00
drochner
da32c6df4a add definitions for the in-kernel vm86 code and vesabios attachment,
add an option APM_USE_KVM86 which does what its name implies
2002-07-07 13:03:47 +00:00
drochner
c359f53282 First cut on VESA BIOS access to get extended video modes and framebuffer
access. For now, there is just probing code.
2002-07-07 12:59:58 +00:00
drochner
3b22d7973b This is a (still experimental) framework to run BIOS code in a virtual
8086 machine. Ifff it works, it is much easier and more elegant than
going to real real mode:
-simpler code
-no need for "identity" memory mappings
-easy passing of buffers for bulk data to functions
-some more control
There is no interrupt support ATM, and it lacks a function to access
random virtual memory of the VM. MP issues to consider.
2002-07-07 12:56:34 +00:00
abs
eb73becae2 Ensure all INSTALL config files consistantly include PIPE_SOCKETPAIR,
MALLOC_NOINLINE, and VNODE_OP_NOINLINE. The exceptions are when they
include another config files that already defines the options, or if
they are for an embedded board, just define a few extra options, and
do not already define PIPE_SOCKETPAIR.
2002-07-05 13:40:10 +00:00
thorpej
011d4d5f44 Add kernel support for having userland provide the signal trampoline:
* struct sigacts gets a new sigact_sigdesc structure, which has the
  sigaction and the trampoline/version.  Version 0 means "legacy kernel
  provided trampoline".  Other versions are coordinated with machine-
  dependent code in libc.
* sigaction1() grows two more arguments -- the trampoline pointer and
  the trampoline version.
* A new __sigaction_sigtramp() system call is provided to register a
  trampoline along with a signal handler.
* The handler is no longer passed to sensig() functions.  Instead,
  sendsig() looks up the handler by peeking in the sigacts for the
  process getting the signal (since it has to look in there for the
  trampoline anyway).
* Native sendsig() functions now select the appropriate trampoline and
  its arguments based on the trampoline version in the sigacts.

Changes to libc to use the new facility will be checked in later.  Kernel
version not bumped; we will ride the 1.6C bump made recently.
2002-07-04 23:32:02 +00:00
fvdl
ffb9c17b1c Match parameter decl of init386 with reality. 2002-07-04 10:22:20 +00:00
yamt
7b17e9ce50 add KSTACK_CHECK_DR0. 2002-07-03 02:46:11 +00:00
christos
2a01227008 Add example use of WSDISPLAY_CHARFUNCS, from Julio Merino 2002-07-01 13:19:05 +00:00
thorpej
7f2925365c Add the kttcp device. 2002-06-28 23:29:26 +00:00
pooka
c558b464ba Assign COPTS instead of adding to it, avoids situation where -mi386
is mixed with -march=something_incompatible

suggested by thorpej
2002-06-27 20:44:08 +00:00
junyoung
db4ede9522 Add VGA_CONSOLE_ATI_BROKEN_FONTSEL (disabled by default). 2002-06-27 06:34:23 +00:00
drochner
8e82746524 avoid assembler warning 2002-06-26 12:20:29 +00:00
yamt
175fe41cad stack frames can be overwrapped for eg. softintr. 2002-06-26 08:18:01 +00:00
drochner
a548b203d4 use PCI_ID_CODE instead of a local macro (cosmetics) 2002-06-25 21:18:32 +00:00
lukem
214a01678d - replace all "scsibus* at XXXX" with a single "scsibus* at scsi?"
- replace all "atapibus* at XXXX" with a single "atapibus* at atapi?"
- replace all "audio* at XXXX" with a single "audio* at audiobus?"
- replace all "midi* at XXXX" (except "midi* at pcppi?") with a single
  "midi* at midibus?"
2002-06-25 03:12:04 +00:00