Commit Graph

5370 Commits

Author SHA1 Message Date
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
lukem e3b23eaafd Switch from pccons to wscons, so that USB keyboards have a chance of
working.  From Grant Beattie <grant@netbsd.org>, with changes by me.
2002-06-24 16:14:13 +00:00
itojun 9f911945d5 handle IDT-less case just as linux does 2002-06-24 10:10:17 +00:00
itojun fe3778040b tabify 2002-06-24 10:10:16 +00:00
itojun 241389f5d8 make it at least compile/link - copy change to i386/locore.s (1.255 -> 1.256)
not sure if it is correct
2002-06-24 10:05:54 +00:00
thorpej f89b062ae7 During native signal delivery (and iBCS2, since it uses the native
sigcode), arrange to have the signal handler invoked directly, using
the trampoline only for the return path, saving a call insn.  Play
some other stack trickery in the trampoline to turn 2 pushl's into
one movl.
2002-06-23 22:18:49 +00:00
fvdl 73f40b9030 Add bge@pci attachment. 2002-06-22 23:13:37 +00:00
gmcgarry 02ca40e27f Make this compile with NETIF_DEBUG. 2002-06-21 23:18:45 +00:00
ross f46b777e48 ca* at cac? ==> ld* at cac? 2002-06-21 22:57:55 +00:00
thorpej 3d7cdd4ec5 Add support for auxillary busses on the Intel 82452 PCI-Host
bridge.  PR 17353, from MOCHIDA Shuji.
2002-06-21 16:03:33 +00:00
christos 0b3fc0988b Regen. 2002-06-18 17:22:10 +00:00
christos 88612aefe1 ${CC} 2002-06-18 17:21:53 +00:00
christos 48b4953ba1 simplify: use hexdump to produce the output in the desired form instead
of massaging it with sed.
2002-06-18 17:21:33 +00:00
drochner 8d0aee4e8d make it compile with ACPI_DEBUG
(removing the half-done debugging support, sorry)
2002-06-18 10:32:02 +00:00
tron cee165577f Fix typo which caused a build failure for kernels with diagnostic checks. 2002-06-18 09:56:33 +00:00
tshiozak 2d5fc6d0a9 add MD support for ACPI sleep/wakeup. 2002-06-18 07:56:12 +00:00
tshiozak 0c0fe6076b use AcpiHwRegister{Read,Write} functions instead of (obsoleted)
AcpiHwBitRegister{Read,Write}.
2002-06-18 07:53:05 +00:00
tshiozak c6d5efc480 auto-generated code from acpi_wakecode.S.
standard update process of this file :
  1. fix acpi_wakecode.S .
  2. commit acpi_wakecode.S .
  3. make -f Makefile.wakecode
  4. commit acpi_wakecode.h .
2002-06-18 07:41:15 +00:00