Commit Graph

42582 Commits

Author SHA1 Message Date
matt
0e504287d7 Fix a problem when an exec page is mapped, modified, and then unmapped.
Make sure to either clear the execness or sync the page to the icache.

This fixes gdb testsuite failures.  Thanks for nathanw for testing.
2006-05-13 04:04:45 +00:00
lukem
176b81e4ff Convert to using CC instead of LD, as LDFLAGS is for CC not LD. 2006-05-13 03:37:47 +00:00
lukem
032741abf4 support MAKEVERBOSE 2006-05-13 03:19:28 +00:00
lukem
a6f0ba44b5 When creating BASE.rom, don't use BASE.bin as a temporary filename,
since the latter is a valid target name.
2006-05-13 02:47:03 +00:00
lukem
667bf36cad support MAKEVERBOSE 2006-05-13 02:33:40 +00:00
uwe
ada9aa3cee De-__P. 2006-05-12 23:35:24 +00:00
dogcow
dcc4a379f8 as mrg@ points out, including <bsd.own.mk> is the proper fix. 2006-05-12 16:45:12 +00:00
nathanw
a255fcef8d Fix a typo in a comment. 2006-05-12 16:01:05 +00:00
tsutsui
337a4c703f According to the i8259 manual, EOI, R, and SL bits belong to OCW2 register
so rename them OCW3_* -> OCW2_*.
2006-05-12 10:58:12 +00:00
dogcow
c242ce750a deal sanely(?) with when HAVE_GCC is undefined. 2006-05-12 06:43:55 +00:00
dogcow
bbea9a711c add more HAVE_GCC == 4 protection 2006-05-12 06:08:47 +00:00
simonb
c1924fc56d KNF, ANSIfy, white space clean up. 2006-05-12 06:05:22 +00:00
skrll
4fb473c54c Fix some comments. 2006-05-12 06:01:02 +00:00
skrll
a337e06c5e ANSIfy 2006-05-12 05:42:36 +00:00
lukem
68908e2212 Convert to using CC instead of LD, as LDFLAGS is for CC not LD. 2006-05-12 04:28:18 +00:00
skrll
6206b7dc5f P_PROFIL is held in p_flag of struct proc so test for it there. 2006-05-12 04:26:40 +00:00
mrg
3adabe6283 - -mcpu=i386 is gone in GCC4
- we need -Wno-attributes (to avoid __packed__ warnings)
- use -Wno-pointer-sign
- remove some redundancy from pxeboot/Makefile
2006-05-12 01:23:51 +00:00
mrg
aa75540c7c native_sigset13_to_sigset()'s first argument is a sigset13_t *. 2006-05-11 17:15:54 +00:00
yamt
ccc0bd2ab6 remove irqblock[] as no one uses it. reviewed by Ben Harris. 2006-05-11 12:05:37 +00:00
gdamore
9ecc473358 A zero mask means that the device should always be enabled. 2006-05-11 06:35:55 +00:00
mrg
cec5302033 don't shadow the kernel's devsw unnecessarily. 2006-05-11 00:48:44 +00:00
mrg
1515025461 avoid pointer sign mismatches. 2006-05-11 00:48:05 +00:00
bouyer
2b90da4613 Fix NULL pointer deref when a backend switches to closing without
have been connected.
Make sure we connect only once; avoid getting disk attached multiple times
when there are multiple block devices configured (the xenbus seems to call
the callbacks for all xbd when each of them comes up).
2006-05-10 21:31:49 +00:00
garbled
4ea28c9a6f enable raid in GENERIC. it works. 2006-05-10 19:25:31 +00:00
garbled
a83699fcd9 add MEMORY_DISK_SERVER=0. only saves 600bytes. lame. 2006-05-10 18:40:33 +00:00
garbled
f32de2a8cc Enable a few options from i386's INSTALL_SMALL that save as much space as
possible.  I think this should save about 10k on prep's bootfloppies.
2006-05-10 17:53:12 +00:00
garbled
cd01d819fb Move PCI_NETBSD_CONFIGURE to std.prep. Add *.local files like i386 has. 2006-05-10 17:28:41 +00:00
rjs
e0a415df7e Remove majors.arm32. 2006-05-10 13:36:28 +00:00
skrll
76425eeda5 ANSIfy startlwp 2006-05-10 10:26:40 +00:00
skrll
dfd91121ef Add KERNEL_PROC_UNLOCK(l) before userret in startlwp. 2006-05-10 10:04:14 +00:00
skrll
b053add405 Fix some comments. 2006-05-10 07:13:30 +00:00
skrll
a9f4c28a3d Fix a bunch of cast lvalues. 2006-05-10 06:24:02 +00:00
garbled
a6d48d192d Switch prep to use the MI mbr/disklabel code. 2006-05-10 02:49:53 +00:00
he
bdd1074671 Bump SYMTAB_SPACE so that the symbol table fits again. 2006-05-09 19:04:33 +00:00
he
9aea7f8bb4 Bump SYMTAB_SPACE so that it fits again. 2006-05-09 19:01:39 +00:00
rjs
1018410576 Fix boot failure problem with DDB enabled. 2006-05-09 18:13:57 +00:00
rjs
572c87fdd1 Enable generic soft interrupts. 2006-05-09 18:04:20 +00:00
rjs
d2b0eb4ed3 Update with softintr, evcnt and cpu_info changes from prep. 2006-05-09 18:02:32 +00:00
rjs
61dae3ad06 Remove __P. 2006-05-09 17:59:33 +00:00
rjs
78d31ae58c Load CPCB in cpu_mp_startup. 2006-05-09 16:37:39 +00:00
rjs
8c14e79960 KNF. 2006-05-09 14:07:13 +00:00
rjs
5e2e37863d Remove __P. 2006-05-09 14:04:38 +00:00
rjs
e146bfe23f Add entries for audio and wscons. 2006-05-09 14:00:07 +00:00
yamt
853a5f5c50 add a missing #. 2006-05-09 08:27:27 +00:00
garbled
5f1b3eb60e Use inb/outb macros instead of casting things to volatile. 2006-05-09 03:35:37 +00:00
garbled
5410dc443b convert some of the simple __asm statements to the standard powerpc
macros, like mtmsr().
2006-05-09 03:13:00 +00:00
garbled
ed0efbc5de de-__P these files. 2006-05-09 02:52:39 +00:00
garbled
cfbb4ec285 More KNF. That should be the rest of the .c files. 2006-05-09 02:48:36 +00:00
garbled
aa9567ed00 KNF these files. 2006-05-09 01:18:10 +00:00
garbled
e7b3b846b3 Fix something that never should have worked before, that got broken by
proplib change.  I'm assuming it was wierdness in the devprop API.
2006-05-08 23:12:13 +00:00
garbled
be39d7253e Switch prep over to evcnt(9). While I was here, I also switched it to
use struct cpu_info for the cpu stuff.  Tested on 7248 and 7043.
2006-05-08 17:08:34 +00:00
skrll
25958e5e07 s/4/BKPT_SIZE/ in PC_ADVANCE 2006-05-08 08:02:32 +00:00
rjs
f671d0e977 Put back full majors.hpcarm. 2006-05-07 22:11:47 +00:00
bouyer
3a0a2e12df Call xb_init_comms() once the event channel has been allocated for dom0. 2006-05-07 21:50:32 +00:00
bouyer
621b16009d Fix read for /kern/xen/xenbus: ignore offset. 2006-05-07 21:49:56 +00:00
bouyer
61ebbef433 Initialise a few things earlier, so that getc() works before the console
is probed for dom0. This makes -c and -d work on Xen3/dom0 kernels.
The kernel still gets a trap on Xen2/dom0.
2006-05-07 21:48:35 +00:00
rjs
6d0faff4f5 Remove majors.hpcarm. 2006-05-07 17:13:19 +00:00
rjs
0472dd9d9c A device node for apm is already declared in majors.arm32. 2006-05-07 16:33:56 +00:00
rjs
76d66cf27d Add entries for all devices. 2006-05-07 15:47:07 +00:00
bouyer
c96226e3fa Resolve conflicts from xen-3.0.2-2 import 2006-05-07 10:56:37 +00:00
bouyer
388f0b9508 Import non-DPLd Xen public headers from Xen 3.0.2-2 2006-05-07 10:54:39 +00:00
bouyer
c8a960c560 Add dom0 operation support for Xen3. Probably buggy, but it's enouth to have
xend and xenstored starting; xm info and xm list works.
2006-05-07 10:18:28 +00:00
simonb
5b933f2a90 Unwrap not-too-long long. 2006-05-07 04:45:03 +00:00
jmcneill
3dbc5b92c6 Add piixpm 2006-05-07 01:38:54 +00:00
jdc
0f4d7745b5 Match on subclass bridge/miscellaneous too.
Makes this work on an IBM Thinkpad T20.
OK'd jmcneill.
2006-05-06 20:44:29 +00:00
jmcneill
2b92252314 Add piixpcib(4), commented out. 2006-05-06 15:49:38 +00:00
jmcneill
3ab993c834 Add SpeedStep SMI support for Intel PIIX4 based Pentium III processors. 2006-05-06 15:46:48 +00:00
jld
efe3d96393 Use TAILQ_FOREACH instead of duplicating the code.
No change to compiled object file.
2006-05-05 23:45:52 +00:00
jld
78e3490d47 Have our dom0 periodically set Xen's time-of-day clock (much as Linux does).
That time is used by ~all domUs when they boot (or resume), and Linux by
default will pin the local clock to it; so, it's useful to correct its
drift as best we can.  A sysctl (machdep.xen_timepush_ticks) has been
added to allow changing the interval or disabling this feature.
2006-05-05 19:38:38 +00:00
jld
2aa6d50864 Suspend/resume support for xbd -- keep enough info on live I/O to replay.
The rest of suspend/resume isn't there yet, but the parts that touch
regular usage have been tested.  Discussed on port-xen on 2006-04-25;
approved by bouyer@.
2006-05-05 19:25:26 +00:00
thorpej
fb44a8574b Remove the devprop API and switch everthing over to the new proplib. Add
a new device_properties() accessor for device_t that returns the device's
property dictionary.
2006-05-05 18:04:41 +00:00
thorpej
948898912b Don't include <sys/endian.h> if building as a host tool. 2006-05-05 17:59:41 +00:00
rpaulo
2888212ca7 PR 33421: add ral at cardbus. From Pierrick Brossin. 2006-05-04 19:09:41 +00:00
yamt
1468e19297 implement splraiseipl() for sparc.
reviewed by Martin Husemann.

while i'm here, use macros for some MD constants (eg. IPL_ZS)
as suggested by Havard Eidnes.
2006-05-04 12:21:18 +00:00
yamt
4aed9e155a pull splraiseipl() for sparc64 from newlock branch.
reviewed by Martin Husemann.
2006-05-04 12:18:54 +00:00
simonb
0b342c0b59 Use config_stdsubmatch() instead of a local submatch function. 2006-05-04 10:53:06 +00:00
bouyer
97aadda462 Fix a race between xenconscn_getc() and xencons_handler() (which seems to be
triggered by recent xen3 hypervisor or tools): check sc->polling in
xencons_handler() and just return if set. Also, run xenconscn_getc() and putc()
at spltty().
While there, mark xencons_interface as volatile and use __UNVOLATILE() where
appropriate; and update the pointers in xencons_handler() if xenconscn_getc()
changed them (avoids replaying ddb commands in shell if ddb got called
by the magic string).
2006-05-03 20:22:34 +00:00
garbled
2baa5f42bc Generic soft interrupt support for prep. Mostly copied from macppc,
tested on 7248 and 7043.
2006-05-03 17:47:05 +00:00
drochner
76d85cf9ac -explicitely align "struct savexmm" so that we don't get surprised
if we play with the PCB
-remove historical "struct emcsts"; there is no support in context
 switching code for ages (if there has ever been)
2006-05-02 19:03:24 +00:00
drochner
7987283ca6 comment out FPU DNA handling; this cannot be reached tbomk
because that trap is dealt with in fpu.c
2006-05-02 18:51:15 +00:00
drochner
d50e999b43 fix typo in comment 2006-05-02 18:04:53 +00:00
rjs
712ccb18c3 Fix comment for cpu_switch(). 2006-04-30 19:50:19 +00:00
simonb
5a869abd1e Catch up and standardise pseudo-device lists - mostly add tap, bridge,
clockctl and ksyms.
2006-04-30 11:48:37 +00:00
tron
597441bff7 Add sip(4) to support the network port of an Acer Aspire 1705SCi. 2006-04-28 16:24:15 +00:00
jld
57a2f1d62a What corresponds to the last run of hardclock(9), and thus the current
value of time(9), is processed_system_time and not shadow_system_time.
2006-04-28 02:30:42 +00:00
simonb
aa879cde70 sgimips uses event counters for interrupts, don't need intrcnt/intrnames
any more.
2006-04-28 01:12:51 +00:00
simonb
94b9f48f1d G/c some ancient intrcnt code that isn't used anymore. 2006-04-28 00:58:19 +00:00
jld
7cc80f17e2 Put the "excessively fragmented I/O" warning printf under #ifdef DEBUG,
where it belonged in the first place.
2006-04-27 22:38:13 +00:00
jonathan
e0c6a70689 Add entries for svwsata(4) to amd64 GENERIC and INSTALL kernels,
to support SATA ports on Serverworks HT-1000 (aka bcm5785) chips.
2006-04-27 20:16:01 +00:00
garbled
64b69ee83d Support fixes for the Motorola Powerstack E1.
1) The E1 seems to have the int. siop wired to irq 14-level and the internal
   wdc wired to irq 14-edge.  special case and fail the wdc probe on E1's.
2) If we fail to map the NVRAM registers, return, rather than trying to talk
   to them and panic'ing the box.
3) revert my previous "fix" to pnpbus to make irq's default to level.  It
   was wrong, and didn't even fix the powerstack.

With this, we have limited PowerStack E1 support.  The machine cannot
talk to it's IDE controller, and cannot detect it's boot device
automatically, but it does come up and run. Tested with NFS root.
2006-04-26 19:48:01 +00:00
simonb
15f26a44dc Fix some comment tyops. 2006-04-25 03:56:16 +00:00
snj
d97db3840b s/allready/already/ 2006-04-25 02:19:31 +00:00
garbled
8937ee204d Make this work on 7024 and 7025 models by not repeating the base address
of the pci bus when we are a pci bus on a ppb.
2006-04-24 18:10:57 +00:00
jmcneill
ba3a7d2db2 Attach vesafb driver if available. 2006-04-24 14:15:47 +00:00
jmcneill
14b1ff949d Stub vesafb_cnattach. 2006-04-24 14:14:38 +00:00
jld
8d20bdba95 Don't leak an xbdreq when probing disks. 2006-04-22 23:59:50 +00:00
yamt
ffb731e056 adapt to iostat change. 2006-04-22 09:11:45 +00:00
cherry
40d4f67e3f FreeBSD RCS id tags.
Pointed out by Hubertf
2006-04-22 07:58:52 +00:00
tsutsui
be8fa802b7 Explicitly mask timer0 interrupt until cpu_initclocks(9). 2006-04-21 19:04:57 +00:00
tsutsui
d1f9bbe0d6 Fix an include path. 2006-04-21 18:21:30 +00:00
tsutsui
10918e2c75 Account interrupts by evcnt(9). 2006-04-21 18:17:45 +00:00
tsutsui
f35c65dfaa Handle interrupts in priority order. 2006-04-21 17:55:27 +00:00
tsutsui
39c93ac321 Oops, fix botch in previous. 2006-04-21 17:16:17 +00:00
tsutsui
fb8457daf7 Return if interrupt is handled in icu_intr(). 2006-04-21 17:14:08 +00:00
tsutsui
8187a233b2 Make a local variable static. 2006-04-21 17:04:26 +00:00
tsutsui
661d2895e2 - initialize cpuspeed and curcpu() according to cobalt model id
- switch to cpu cyclecounter based delay(9), taken from evbmips
2006-04-21 16:52:15 +00:00
tsutsui
bf95794e71 - add prefix ih_ to cookie_type member in struct cobalt_intrhand
- clear the cookie type in disestablish functions
- some cosmetics
2006-04-21 16:27:33 +00:00
tsutsui
f07646e1ff - remove "extern" from function declarations
- remove unused intrcnt[] declaration
2006-04-21 16:08:51 +00:00
tsutsui
205083b135 - replace magic numbers with a dumb macro
- fix typo
2006-04-21 15:46:07 +00:00
dogcow
3d7a8aef39 fix breakage due to iostats header twiddling 2006-04-20 18:58:06 +00:00
perry
f02ed04954 some rewording and reformatting to fit some lines in 80 colums,
especially when commented out.
2006-04-20 15:58:52 +00:00
christos
61f18cbf91 Make this compile again. 2006-04-20 13:23:14 +00:00
blymn
10df330c85 Prefix iostat structure elements with io_ 2006-04-20 12:13:51 +00:00
christos
19e3773ffa Apply fix from FreeBSD's advisory: fxrstor on AMD FPU's does not restore
FIP,FDP,FOP thus leaking other process's execution history.
2006-04-19 17:19:48 +00:00
drochner
1168954c68 adjust comments for the new location of wskbdmap_mfii.c,
addresses PR kern/33290 by henry nelson
2006-04-19 10:31:44 +00:00
he
c0f90d3a98 Follow up i/o statistics collection conversion, patterned after the sparc fd.c. 2006-04-19 06:16:00 +00:00
jld
88064d75f5 Raise time limit on sanity-check warning printf to 10s (from 10 ticks),
to avoid false postives on Xen 3, which doesn't update the shared time
info as often.
2006-04-18 21:19:01 +00:00
rjs
7f1dae0a6f Add PCKBCNOTEST option. 2006-04-18 20:06:38 +00:00
peter
d0cb07c7ca Back out my rev 1.14, the printf is actually quite useful and
all other arm code show this information too.
And while here, prettify the output a bit.
2006-04-18 17:50:25 +00:00
xtraeme
b663f8d6ee options<space><tab>FOO 2006-04-18 17:03:18 +00:00
rittera
be97fc5a95 A number of minor changes for NDIS. (OK'd by phil)
1. Removed the makeoptions line from arch/i386/conf/GENERIC.  Now
ndis_driver_data.h is simply copied into the kernel build directory instead
of editing the config file to specify its location.

2. Uncommented lines in files.i386 and files.pci related to NDIS.  NDIS will
not be compiled into the kernel unless the two lines are uncommented from
GENERIC (I checked using nm), so there is no reason for this to be commented
out.

3. Added ndiscvt to usr.sbin/Makefile.
2006-04-18 16:49:19 +00:00
tsutsui
e2f83bd318 Check more invalid devices in pci_conf_hook(9). 2006-04-18 12:26:45 +00:00
simonb
247e7a1d03 Don't install an empty <machine/mtpr.h> that seems to be an artifact of
when this port was created and has long since been removed from the i386
port.
2006-04-18 06:59:39 +00:00
martin
5e7dd1ed9a Invert carrier detect sense, from Jonathan A. Kollasch 2006-04-18 00:09:37 +00:00
pooka
37c14369ab Define the dcache size so that we can run our own homegrown cache
flush routine during startup.  XXX: I have absolutely no idea where
this managed to pick up DCACHE_SIZE from before.

closes port-evbarm/33276 by Peter Postma
2006-04-17 20:44:30 +00:00
he
f563f92980 It's NULLFS, not NULL. 2006-04-17 16:08:05 +00:00
jmmv
4208ccaafa Properly pass down the 'vs' cookie to pxa2x0_lcd_ioctl calls. Pointed out
by he@.
2006-04-17 15:59:47 +00:00
tsutsui
936c3743c7 Switch macepci to use MI pci_configure_bus(9) rather than its own fixup code.
Tested on my O2 with several devices, and ok'ed by sekiya.
2006-04-17 14:01:08 +00:00
jmcneill
8dec918f9f Redraw the screen immediately after initialization if SPLASHSCREEN is not
defined. From jmmv@
2006-04-17 13:59:01 +00:00
tsutsui
bf7d106360 Add adv at pci. Tested on my O2. 2006-04-17 12:46:35 +00:00
chris
35c6b9f8a4 Simplify delay loop by moving the maths to before the loop.
There is minimal risk of overflow unless something delays >134s.
2006-04-17 00:03:17 +00:00
chris
c75aeaa653 Use __insn_barrier() to prevent the compiler reordering splx/splraise
relative to the code they're supposed to protect.
2006-04-16 23:31:54 +00:00
tsutsui
35a607184b Mising -> Mixing 2006-04-16 16:39:36 +00:00
tsutsui
f5c7cb6a8d Fix function names in panic messages. 2006-04-16 16:29:34 +00:00
he
06d42ba224 Make this build again (replace indirection with field access). 2006-04-16 09:34:56 +00:00
tsutsui
c40d1f2d22 - make _ds_vaddr member vaddr_t instead of bus_addr_t
- use appropriate cache ops in bus_dmamap_sync() like other mips3 ports
2006-04-16 08:57:20 +00:00
tsutsui
cd453227e1 _ds_vaddr member in struct sgimips_bus_dma_segment is a virtual address,
so it should be vaddr_t rather than bus_addr_t.
2006-04-16 08:26:41 +00:00
tsutsui
c1842c746c _ds_vaddr member in struct cobalt_bus_dma_segment is a virtual address,
so it should be vaddr_t rather than bus_addr_t.
2006-04-16 08:10:09 +00:00
tsutsui
edf0da13d9 In !defined(PCI_NETBSD_CONFIGURE) case, check PCI_ID_REG and PCI_CLASS_REG
before CSR fixup.
2006-04-16 07:10:45 +00:00
tsutsui
f66776b16a Pass mips_dcache_align to pci_configure_bus(9) for cacheline_size. 2006-04-16 05:09:58 +00:00
nonaka
407f05e765 A port of NetBSD to the I-O DATA HDL-G "Giga LANDISK".
Please refer to following URL for this machine.
http://www.iodata.com/products/products.php?cat=HNP&sc=HDL&ts=2&tsc=14&sc=HDL&pId=HDL-G400U
2006-04-16 02:22:33 +00:00
nakayama
a6ca4ed73c Follow the ktrace-lwp merge. 2006-04-16 00:03:57 +00:00
matt
59ec00f1e2 Use M_ZERO instead of an explicit memset. 2006-04-15 17:54:12 +00:00
matt
8b8889400b No reason to do *(vaddr_t *)& dance. We only assign to vaddr_t 2006-04-15 17:52:56 +00:00
matt
9102bc5b5b Don't do a.out check unless EXEC_AOUT is present. 2006-04-15 17:51:34 +00:00
matt
7cafee35c3 Add ksyms
Add file-systems for NULL & TMPFS
2006-04-15 17:50:47 +00:00
jmmv
aec18036fd Remove the getwschar and putwschar accessops from wsdisplay drivers as
requested by uwe@.  These were wrong because they were receiving an
emulcookie yet they were accessops (thus having to receive an accesscookie).
Instead, just handle the WSDISPLAYIO_{GET,PUT}WSCHAR ioctls from the
driver's ioctl accessop.

As this reduces the amount of code needed to handle these operations to
two small functions in each driver, remove the WSDISPLAY_CHARFUNCS kernel
option.

Reviewed by, at least, uwe@ and macallan@.  No objections in tech-kern@.
2006-04-15 17:48:23 +00:00
matt
d4449c8a4e switch from MALLOC to malloc 2006-04-15 17:47:31 +00:00
jmmv
3947d9184e Add missing parameter to s3c24x0_lcd_{ioctl,mmap} functions (after the
change in wscons that modified their signature) to let this build again.
Pointed out by he@.
2006-04-15 17:00:11 +00:00
simonb
21ca328ade ANSIfy, white-space nits. 2006-04-15 16:47:30 +00:00