Commit Graph

38699 Commits

Author SHA1 Message Date
thorpej
896bc924e1 Supply rr_1 and wr_1. 2004-05-17 22:00:47 +00:00
thorpej
984caa9835 Fix missing parenthesis in DIAGNOSTIC message. 2004-05-17 20:47:17 +00:00
mhitch
1f358dcd03 Add missing KERNEL_PROC_UNLOCK() in upcallret(). This should fix PR#22219
and maybe also PR#23731, which appears to be a duplicate of 22219.
2004-05-17 17:43:08 +00:00
joda
c80da893ae the EST and TM2 flags in the second cpuid register were swapped
(according AP-485); while here add a few more flags
2004-05-17 15:38:17 +00:00
chs
df674b2ca1 for instruction TLB miss traps, process the fault with VM_PROT_EXECUTE
instead of VM_PROT_READ (to support non-executable mappings).
2004-05-16 17:07:29 +00:00
chs
f6d0516ba0 in pmap_protect(), don't just return if the desired permissions include write.
we could be removing execute permission.
2004-05-16 17:07:07 +00:00
wiz
1249084227 "panicking" needs a k. 2004-05-16 15:44:10 +00:00
yamt
8956861179 curcpu: fix a typo. (cpuinfo -> cpu_info)
no functional difference.
2004-05-16 12:32:53 +00:00
he
b6e471013e Expand the ramdisk image size from 3m to 3148k so that the contents
fits again.
2004-05-14 17:00:21 +00:00
cl
c489489b14 - increase number of receive buffers
- handle case where last receive buffer is used
2004-05-14 14:23:35 +00:00
cl
4dd8e2b2cf use relative links: using $S fails if $S is relative to another dir
than the one where it's used
2004-05-14 14:07:46 +00:00
he
bf3ab88a22 Use lower optimization level (-O0) for miscfs/genfs/genfs_vnops.c
in order to avoid an internal compiler error with gcc 3.3.3 nb2.
2004-05-14 08:58:32 +00:00
yamt
66b2ec5ff7 fix a compile error in the case DDB && !GPROF.
the problem pointed by Jaka Jejcic on current-users@ and
by several others privately.
2004-05-13 20:30:39 +00:00
he
d05f876265 Avoid lint failure in setjmp.h; lint doesn't handle __attribute__
modified declarations.
2004-05-13 19:54:25 +00:00
pooka
40559f7fcc 10+ entries in the kernel sources can't be wrong ... no, wait, they can:
it really is "panicking" instead of "panicing", so revert rev 1.211

thanks to Klaus for holding the spelling bee
2004-05-13 16:34:22 +00:00
pooka
e2323790a2 typo in comment: panicking -> panicing 2004-05-13 15:20:18 +00:00
yamt
d94ff45112 call mcount in Xspllower. 2004-05-13 12:27:38 +00:00
yamt
ed15986b95 pmap_load: assert that being able to take ipis. 2004-05-13 12:24:05 +00:00
yamt
a87499d4ea witch_return: call Xspllower only when there're pending interrupts. 2004-05-13 12:15:01 +00:00
yamt
6b9fd4bdc5 npxsave_lwp: issue pause in a busy loop. 2004-05-13 12:13:20 +00:00
pk
cf098aff50 No need to pull in <bsd_openprom.h> explicitly. 2004-05-13 09:36:44 +00:00
yamt
3b6ad814b2 x86_ipi: call x86_pause() in busy loops. 2004-05-12 20:05:24 +00:00
yamt
d55112e112 add a comment to note that INTRFASTEXIT and trap() should be in sync. 2004-05-12 20:03:06 +00:00
cl
885c0b6fc9 ``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386.  The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets
2004-05-12 16:56:41 +00:00
pk
d5cc51b7d3 Remove obsolete `timerok' code, which dates back to when the timer/counter
interrupt handlers were pre-wired.
2004-05-12 15:44:28 +00:00
hannken
cdfa741c5c Make compat_16_sys___sigreturn14() work again.
The 4XX family has no PSL_RI bit in MSR.
The 403 (explora) runs with machine check enabled.
2004-05-12 14:38:17 +00:00
minoura
72c4550293 Populate kbdmap-related definitions to the userland.
Also g/c unused ioctls.
Pointed out by he.
2004-05-12 14:25:08 +00:00
yamt
5dac5f5d40 add a comment on mp_attrs. 2004-05-12 09:11:03 +00:00
wiz
0ef650eff0 Remove UCB ad clause from maximum entropy's license.
Ok'd by maximum entropy and board.
2004-05-12 00:38:11 +00:00
wiz
b83c30c098 Remove UCB ad clause from tsubai's license.
Ok'd by tsubai and board.
2004-05-12 00:34:25 +00:00
wiz
8785cb8fb1 Add commented out entries for ioat* and nsclpcsio*;
from Sergey Svishchev in private mail.
2004-05-11 23:07:35 +00:00
thorpej
07a9ee32ba Don't need cz or cy devices in INSTALL kernel, and they put space
pressure on install media.
2004-05-11 17:36:43 +00:00
yamt
ca5e02a5f6 _bus_dmamap_load_mbuf: check bounce_thresh in the case when we have paddr hint. 2004-05-11 11:31:34 +00:00
he
20bb5ba64c Provide multiple include protection. Fixes build problem in kdump. 2004-05-11 10:13:35 +00:00
drochner
19f047f8d0 SIGTRAMP_VALID() should not pollute the user namespace 2004-05-10 21:51:49 +00:00
cl
ba728d7531 Avoid overrun problems with the indexes of the slots in the
communication rings.
2004-05-10 01:39:39 +00:00
kleink
08e9a66ef3 s/wchat/wchar/ in a comment. 2004-05-09 19:50:30 +00:00
kleink
e984bcd6d6 G/c an orphaned #endif. 2004-05-09 19:48:38 +00:00
thorpej
d07c23b31a Use the BFD ELF headers rather than simply including <elf.h>. This
tool compiles on non-NetBSD now.

Note: We're not actually using BFD, just two header files that are
more conveniently laid out than our native header.  There is no GPL
infection from using the BFD headers.
2004-05-09 01:31:27 +00:00
kleink
7b3b647647 Factor out W{CHAR,INT}_{MAX,MIN} into their own header file. 2004-05-08 21:51:47 +00:00
dsl
17bfe85dd3 Make mbr_bootsel boot active partition if/when no menu items are output.
Stops users sitting in front of a system that is waiting for a keypress.
Just don't ask how I added more functionality AND got an extra 7 free bytes!
2004-05-08 21:18:22 +00:00
jmc
10f93b6733 Add proper include guards.. 2004-05-08 21:04:06 +00:00
minoura
452749792b #ifndef _XXX_H_ #define _XXX_H_ .... #endif 2004-05-08 08:40:08 +00:00
minoura
6915327794 An unexported header file was #included from an exported header file.
Introduce <machine/opmreg.h> and move some definitions useful to
userland progs.
2004-05-08 08:38:36 +00:00
cl
5359887820 Reboot machine when hypervisor signals "die" event. 2004-05-07 23:05:30 +00:00
cl
977bfc3501 Add support for domain0 operations:
- access to all physical memory
- access to hypervisor traps from userland
- setup/config Xen's network routing/firewall rules
2004-05-07 15:51:04 +00:00
itohy
52fc58caa3 Fix typos. Cleanup. 2004-05-07 15:21:04 +00:00
pk
a02ca1366c viking_module_error: check for unconfigured cpus. 2004-05-07 14:59:26 +00:00
cl
d877f23fb5 add support for hot-add/-remove of block devices 2004-05-07 14:15:11 +00:00
cl
8e658015da replace rdr6/ldr6 with the corresponding hypervisor traps 2004-05-07 14:01:33 +00:00
cl
e03778cac9 cleanup debugging code 2004-05-07 13:56:48 +00:00
cl
175b0c3bf7 check for AST on return from event handler to userland 2004-05-07 13:52:37 +00:00
cl
f61d1b4cce fix lazy fpu state saving 2004-05-07 13:48:32 +00:00
matt
886b18bf35 Add PT_MACHDEP_STRINGS so that kdump(1) can print out the PowerPC-specific
ptrace requests.
2004-05-06 22:53:02 +00:00
scw
225b2e0b2a Cast an integer type to a pointer type via intptr_t. 2004-05-06 10:51:15 +00:00
kochi
2cb143dddf Fix parameters for PPB_INTERRUPT_SWIZZLE macro.
The macro expects pin = 1..4 while previously passing 0..3.
2004-05-05 14:08:24 +00:00
kochi
6901f11fba Fix comment (mp_nbusses -> mp_nbus) 2004-05-05 04:51:28 +00:00
pk
0ba9b6aa91 `uvmexp.swtch++' is already done in exit1(). 2004-05-04 15:48:45 +00:00
lukem
191597b042 move machdep.est.cpu_brand to machdep.cpu_brand 2004-05-03 16:38:28 +00:00
kochi
be02821555 use M_ZERO for malloc 2004-05-03 14:02:56 +00:00
toshii
46c8f26134 #include acpi.h and some others to be able to powerdown via acpi. 2004-05-03 08:59:38 +00:00
kochi
b616cd6b52 don't use large stuff on stack.
(char devinfo[256] -> char *devinfo)
2004-05-03 07:08:46 +00:00
cl
2745d2d566 add missing break 2004-05-02 20:38:35 +00:00
martin
9c57555f1b When calculating the allocated symbol table size, round up the section
sizes with ELF_ALIGN().
Fixes PR port-sparc64/25429.
2004-05-02 19:45:55 +00:00
pk
1af1129600 The cpu_exit() detour is no longer necessary. 2004-05-02 11:22:06 +00:00
ragge
ee27da2673 Fix bug that were introduced together with the merge of nathanw_sa:
SCSI on VS2k/VS3100 stopped working.  Spotted and fixed by Anders Hjalmarsson.
This fixes PR#25307.
2004-05-02 08:16:52 +00:00
christos
4ad27a5358 add COMPAT_20 2004-05-02 03:13:34 +00:00
thorpej
ba494aaa83 COM_PXA2X0 is now defflag'd in sys/conf/files 2004-05-01 19:09:14 +00:00
thorpej
cdac01064e Rename the COM16650 option to COM_16650, for consistency with other
com variant options.
2004-05-01 19:03:59 +00:00
kochi
beb4a7fe16 specify static where appropriate. 2004-05-01 12:03:27 +00:00
pk
17e88886cc pmap_kremove4m,pmap_protect4m,pmap_extract4m: the `demap' lock needs interrupt
protection.
2004-05-01 08:20:11 +00:00
kochi
32cdfb5cac Enhance debug output for ICHx (with PIIX_DEBUG)
from Masanori Kanaoka
2004-05-01 06:35:10 +00:00
toshii
a73f92f0e2 Compile TSC support code when __x86_64__ is defined. 2004-04-30 17:58:04 +00:00
gendalia
ec36bf86ae Uncomment 'wd* at umass?' in GENERIC, add to GENERIC_LAPTOP.
supports the ISD's ATA protocol over Bulk-Only, used with the Archos studio
and Archos Jukebox products, among others.
2004-04-30 17:41:19 +00:00
fredb
2c8270471f - - "options" should be followed by <SPACE><TAB>.
- - restore "options COMPAT_20", no doubt commented out by mistake.
2004-04-30 15:55:10 +00:00
christos
b657953b30 Add and document PCIBIOS_LIBRETTO_FIXUP 2004-04-30 02:47:16 +00:00
christos
4eac397f2f Add code to deal with the losing Libretto L2/L3 pcibios. From Masanori
Kanaoka. I've been sitting on this code for 3 years, and have not done
anything better with it. It is ugly, it needs to be handled better, but
it is better to have it #ifdef'ed out rather than nothing.
2004-04-30 02:45:37 +00:00
christos
f117f546d1 Deal with edge versus level interrupts properly. From Masanori Kanaoka. 2004-04-30 02:44:03 +00:00
lukem
59fdcaadf2 add ENHANCED_SPEEDSTEP 2004-04-30 02:08:17 +00:00
lukem
2df026b026 Integrate support for Enhanced SpeedStep Technology (est) that
Michael Eriksson posted to port-i386 on 20031102, with various
modifications by me to work in the new sysctl(9) framework.

The code is enabled with 'options ENHANCED_SPEEDSTEP', and if
the CPU supports EST the following sysctl(8) nodes appear
(with the values that a Dell Inspiron 8600 + WUXGA with a
1.4GHz Pentium M CPU supports):
	machdep.est.cpu_brand = Intel(R) Pentium(R) M processor 1400MHz
	machdep.est.frequency.target = 1400
	machdep.est.frequency.current = 1400
	machdep.est.frequency.available = 1400 1200 1000 800 600

If EST support isn't available, the "machdep.est" sysctl sub-MIB
is not created.

Once we have a more general "CPU frequency" control API we can
migrate this code to using that.

Thanks to Michael Erikkson for providing this code!
2004-04-30 02:05:42 +00:00
lukem
3da1e3206a Add driver for Enhanced SpeedStep (in Pentium M processors),
written by Michael Eriksson and posted to port-i386 on 20031102.
(This is the driver "as is" - I'll commit the code to integrate it
into -current separately)
2004-04-30 01:56:12 +00:00
gendalia
6c64abac77 add raidframe and raid autoconfig support to the INSTALL kernel. 2004-04-29 20:42:39 +00:00
minoura
3a9e37fe76 Comment out ichlpcib.
There are at least 2 reports that it freezes upon startup.
http://mail-index.netbsd.org/current-users/2004/04/19/0016.html
2004-04-29 11:54:24 +00:00
fair
06f59ac1b2 Remove specific scsibus* at (hba device)? declarations for the new,
simple:

scsibus* at scsi?
2004-04-29 07:13:03 +00:00
fredb
befd757743 Protect against multiple inclusion. Lets "kdump" and "ktrace" build again
on mac68k.
2004-04-29 04:18:27 +00:00
rjs
c348bdead7 Add audio support. 2004-04-28 23:51:24 +00:00
rjs
0db69ac973 Use correct address for lpt0. 2004-04-28 23:49:42 +00:00
pk
84af51b7e0 Rename sc_hasiocache' => sc_cachecoherent'. Avoid the cache flush in
dma_load() if we have coherency.
2004-04-28 12:38:19 +00:00
pk
ff7821ed81 Fast trap handler for Illegal Instruction traps for (user space) FLUSH
instructions (these occur only on Cypress CPUs).
2004-04-28 12:36:48 +00:00
pk
fde3b5dfae Replace home-grown cachestats with event counters. 2004-04-27 16:37:43 +00:00
pk
cd955b850f Bits 0 (MMU Enable) and 1 (Fault inhibit) are common among the implementations
of the SRMMU control register. Reflect that fact in the definitions here.

Also add the swift `store allocate' bit.
2004-04-27 13:05:38 +00:00
pk
202c3ce64e Add instrumentation for `PMEG' management on sun4/4c. 2004-04-27 11:26:43 +00:00
pk
429ad918eb Limit buffer cache VM to prevent too many locked `PMEGs' on small sun4c
systems.
2004-04-27 11:25:24 +00:00
scw
9950f14938 Always disable interrupts at the start of DO_AST_AND_RESTORE_ALIGNMENT_FAULTS.
This addresses #2 of port-arm/23581 by Richard Earnshaw.

Many thanks to Richard for spotting the cause of this problem.
2004-04-27 07:13:16 +00:00
uwe
bbb41d52d5 Make focusManagerHook a tad more smart, so that it can correctly handle
the serial console speed combobox (last item in the kernel tab).
2004-04-27 00:04:38 +00:00
cl
79d1a31951 Move struct xen_netinfo into include/xen.h so that xen12load compiles again. 2004-04-26 23:54:42 +00:00
simonb
f95ed9ec0f Print the address of a problem instruction when we panic. 2004-04-26 22:29:07 +00:00
uwe
2adc0e696d Make sure that overzealous definition of __packed in <sys/cdefs.h>
doesn't break compilation with Microsoft compilers. Push/pop #pragma pack
around <sys/bootblock.h>.
2004-04-26 22:27:43 +00:00
simonb
24798155ac Enable top-down VM if USE_TOPDOWN_VM is defined. 2004-04-26 22:25:54 +00:00
uwe
e9b7546ec1 <machine/cdefs.h> is included by <sys/cdefs.h>, so there's no point
in including <sys/cdefs.h> from <machine/cdefs.h> again.
2004-04-26 22:14:55 +00:00