Commit Graph

8156 Commits

Author SHA1 Message Date
isaki
01850a5636 Remove duplicated definitions. 2009-03-01 09:23:27 +00:00
dyoung
247a5f8a77 Add isv(4). 2009-02-27 23:37:20 +00:00
jmcneill
8390afe513 PR# port-i386/38936: system can not power down via acpi
Merge change from amd64 machdep.c revision 1.42:

in cpu_reboot(), only halt the other CPUs after we've done the powerdown stuff.
the ACPI code may end up removing some pmap entries, which wants the other
CPUs to still be running to handle TLB invalidations.
2009-02-26 15:07:33 +00:00
jmcneill
7d16528c20 PR# port-i386/40751: power button does not work after halt
PR# kern/37506: Have to hold power button for 5 seconds to turn off Laptop
    after "halt" command.

Transfer the system from ACPI to Legacy mode if RB_HALT is set.
2009-02-26 13:56:46 +00:00
yamt
4b64c2cb3d - rewrite x86 nmi dispatcher so that establish and disesablish are safe
on a running system.
- adapt existing users of the api.  (elan)
- adapt tprof_pmi driver to use the api.
2009-02-24 06:03:54 +00:00
rmind
f7d3fa20ef Add ucas (CAS for user-space address) support for i386 and amd64.
API provides ucas_int() and ucas_ptr() for now.

Reviewed by <ad>.
2009-02-23 20:27:59 +00:00
ahoka
c0dfcdb337 Add a missing opt_multiboot.h into sys/arch/i386/i386/machdep.c.
Also do the missed rename of multiboot_ksyms_init to
multiboot_ksyms_addsyms_elf to compile with MULTIBOOT set.

This caused a minor and a more serious bug in the past:
- dmesg did not contain the information about the loader
- /dev/ksyms did not work when the kernel was booted with a
  multiboot bootloader (grub for example)

Ok by jmcneill, joerg.
2009-02-22 18:05:42 +00:00
jmcneill
2f56ffd259 Adjust for acpi_resource_parse aprint changes, noted by Jukka Salmi 2009-02-21 00:30:37 +00:00
jmcneill
f654d345dd Mark old vesabios/vesafb flags as obsolete, noted by cube 2009-02-19 13:06:49 +00:00
jmcneill
08224a94a7 Remove vesafb, it has been replaced by genfb on x86. 2009-02-19 00:54:08 +00:00
jmcneill
41a1bce5b4 Reorder command line parsing logic; previously the code assumed a string
containing the letter 'x' was a mode string (eg. 640x480), which prevented
the parser from picking up a mode number (eg. 0x101).
2009-02-17 23:17:39 +00:00
jmcneill
c4cff68cbd Fix typo in genfb line 2009-02-16 23:40:14 +00:00
jmcneill
57d51ea339 Add and enable genfb(4), and remove vesafb(4) section. 2009-02-16 22:43:47 +00:00
jmcneill
c6d7607b67 Bootloader modifications for generic framebuffer console support on i386
and amd64 where VESA VBE 2.0+ is available.

* Add helper library and stubs to invoke VBE bioscalls.
* Bump HEAP_START as we were already dangerously close to our limits.
* bootdataseg now allows access > 16MB so in the future we can scribble
  on the framebuffer.
* Pass BTINFO_FRAMEBUFFER parameters to kernel when configured.
* VBE modes are configured with the new 'vesa' command. Usage, when present:
    * vesa {enabled|disabled}
      Enable / disable linear framebuffer, default mode is 640x480x8. May
      be changed in the future to determine mode based on VBE/DDC where
      available.
    * vesa list
      List modes supported by the firmware that meet the following criteria:
	* linear framebuffer
	* packed pixel or direct colour mode
    * vesa {modenum|modestr}
      Enable specific VBE mode. The mode can be specified either as a
      VBE mode number (eg. 0x101) or as a string (eg. 800x600x16).
2009-02-16 22:39:30 +00:00
cube
ec543a2ce5 Convert the recently introduced awk command to retrieve the value of the
option MODULAR to using %MODULAR%.  While it is now possible to only
request the new version in the affected Makefiles, it is made mandatory for
everybody because I just fixed a bug in config(1) that would not make it
fail in the case of a syntax error in the Makefile template.
2009-02-15 01:58:01 +00:00
jmcneill
1ead3177d3 Add genfb(4) 2009-02-14 22:13:22 +00:00
cube
df0059e2e8 Don't set version deep in the source tree if it's older than the one in
conf/files.
2009-02-14 20:22:59 +00:00
apb
6c4fc39a9f Now that "options MODULAR" is handled via defflag, the Makefile
generated by config(1) in the kernel compile directory no longer
contains IDENT=-DMODULAR.  Instead, there's an opt_modular.h file that
might or might not contain "#define MODULAR 1".

Adapt to this by adding an OPT_MODULAR variable to relevant Makefiles,
set via an awk script that parses opt_modular.h.
2009-02-14 16:53:55 +00:00
abs
515e52158b Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
apb
0cc72e51ac Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
2009-02-13 22:41:00 +00:00
bouyer
24584a19d8 Add commented out PCI pass-through support:
#xpci* at xenbus ?                      #Xen3 PCI front end driver
#pci* at xpci ?
2009-02-13 21:18:43 +00:00
bouyer
97f5912f84 Add kernel config file for i386PAE dom0 kernel. 2009-02-13 21:14:46 +00:00
bouyer
40dab4ba52 Prepare for PCI frontend support in Xen3 domUs:
call x86_bus_space_init() and x86_bus_space_mallocok() if we have ISA or PCI
  devices configured; not only for non-Xen or dom0 Xen
On Xen, always call PHYSDEVOP_SET_IOPL on context switch
on amd64, also call PHYSDEVOP_SET_IOPL from x86_64_proc0_tss_ldt_init()
2009-02-13 20:42:24 +00:00
jnemeth
dd808e2b11 PR/40608 - Gao Ya'nan -- typo in comment 2009-02-11 07:24:40 +00:00
mrg
9bd6af36c2 move COMPAT_50 into MONOLITHIC, as pointed out by enami@. 2009-02-07 09:58:10 +00:00
jym
92ae85d18e Changes to MEMORY_RBFLAGS option:
- renamed to MEMORY_DISK_RBFLAGS to better fit the rest of the
MEMORY_DISK options(4)
- change default value to RB_AUTOBOOT instead of RB_SINGLE, and adapt
the config(5) files accordingly
- document this option inside options(4)

See also http://mail-index.netbsd.org/tech-kern/2008/12/25/msg003924.html

Reviewed by abs@ in private mail.
2009-02-06 18:50:26 +00:00
dyoung
758cabb9ef When elansc(4) is detached, restore BIOS settings on the SC520's
programmable interrupt controller (PIC).
2009-02-06 01:40:36 +00:00
dyoung
7d8d7e5e0f So that I can both detach and *re-attach* elanpar0, elanpex0, and
gpio0, let elansc(4) rescan for them.
2009-02-06 01:38:28 +00:00
dyoung
2c4e9d51df Explicitly initialize mem_cluster_cnt to 0 for my peace of mind. 2009-02-05 22:26:53 +00:00
christos
29358e4ac0 don't clear the screen unconditionally. Now controlled by an option.
Thanks enami
2009-01-30 14:09:44 +00:00
ad
12cbb1b52b Enable BUFQ_PRIOCSCAN by default. 2009-01-29 21:48:13 +00:00
christos
e5b8d3235c remove extra variable 2009-01-27 22:00:12 +00:00
christos
decf940784 factor out common reset code. 2009-01-27 21:59:24 +00:00
ad
454c144aec Make previous compile. 2009-01-27 21:13:57 +00:00
christos
55113bafff Attempt to force resets using two more methods:
1. Reset Control register at I/O port 0xcf9
2. Fast A20 and Init register at I/O port 0x92

Requested by ad@
2009-01-27 16:13:13 +00:00
rmind
6d73ddd355 Revert path of modules back to "/stand". 2009-01-24 22:14:44 +00:00
cegger
3334d8c83e add bwi(4) 2009-01-24 15:49:14 +00:00
haad
7c83fa3718 Add dm driver to ALL kernel. 2009-01-24 14:19:04 +00:00
cegger
e7239fcd13 add age(4) and atphy(4).
Requested by cube@
2009-01-24 14:11:07 +00:00
mrg
c6a4afa995 add COMPAT_50 to all the configs with COMPAT_40. 2009-01-24 05:06:05 +00:00
rmind
f0e51651e4 Change path to kernel modules from "/stand" to "/kernel".
Needs to go in before 5.0.  Proposed on <tech-kern>.
2009-01-24 00:29:12 +00:00
tsutsui
3088b745c1 Add esp at mca, so that daily build will detect botches in it. 2009-01-21 14:26:25 +00:00
tsutsui
69cf32a782 Replace time_t values in libsa sources with the following two types
to avoid unnecessary 64 bit ops which would make binaries larger:

satime_t (currently unsigned int):
 numbers in seconds returned by the machine dependent getsecs() function
 which are used to measure relative time

saseconds_t (currently int):
 numbers in seconds used to specify timeout to network drivers

Per discussion on current-users.
2009-01-12 11:32:43 +00:00
cegger
138eec15bb make kgdb_dev a dev_t 2009-01-11 10:20:53 +00:00
christos
461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
jakllsch
0f24b5edb2 Use ${VERSIONFILE} instead of ${.ALLSRC} to match Makefile.boot.
This change stops the full path of newvers_stand.sh from showing up in
pxeboot_ia32.bin.
2009-01-08 19:02:12 +00:00
pooka
e99d5fab49 Sprinkle comments explaining purpose of kobj_machdep(), per email from ad.
no functional change
2009-01-08 01:03:24 +00:00
apb
1b3dbf5d5b Make this compile with options DEBUG:
* Add missing close brace in do { ... } while(0)
* The return value from snprintb is an int and not usable with printf
  "%s" format; print the result buffer instead.
2009-01-05 20:46:22 +00:00
pooka
0531e32a05 !defined(_LKM) -> defined(_KERNEL_OPT) 2008-12-30 13:15:49 +00:00
pooka
2c52214ded _LKM -> _MODULE 2008-12-29 19:59:09 +00:00