Commit Graph

41397 Commits

Author SHA1 Message Date
tsutsui
5c3034f5b3 - <machine/param.h> says:
"XXX Maxphys temporary changed to 32K while SCSI driver is fixed."
  I (and soda) don't know what the "SCSI driver" is, but add local
  asc_minphys() to limit max xfer size only for asc.c for now.
- According to old asc.c driver, DMA_START() is called before NCR_CMD_DMA
  command. I'm not sure which DMAC or ASC should be started first, but
  move DMA command from asc_dma_go() to asc_dma_setup().
- Disable NCR_F_DMASELECT (which allows DMA xfer for select command)
  since it caused some problem on PICA.

Now gxemul-0.3.6.2 reaches mountroot() sd0 (but can't exec /sbin/init yet).
2005-11-06 11:09:17 +00:00
tsutsui
0f4f57561c Add pcscp (aka DC-390) at pci, which is confirmed working. 2005-11-06 10:35:13 +00:00
tsutsui
85e05fc4a2 Remove unused and incorrect MIPS_KSEG2_TO_PHYS() and MIPS_PHYS_TO_KSEG2()
macro.
2005-11-05 18:17:36 +00:00
tsutsui
e3fd6c6a46 Make MIPS3_PG_SHIFT a variable and initialize it accordingly
in mips_vector_init() if options MIPS3_4100 is specified
so that kernels which have options MIPS3_4100 also work
on other MIPS3 CPUs.

XXX: now should we rename options MIPS3_4100 to options ENABLE_MIPS_R4100,
XXX: or just make MIPS3_PG_SHIFT always a variable?
2005-11-05 11:57:25 +00:00
tsutsui
67e4c0b956 Check MIPS_PRID_IMPL(cpu_id) for MIPS3_4100 CPUs at runtime to
initialize the MIPS_COP_0_TLB_PG_MASK register with their specific value.
2005-11-05 11:08:41 +00:00
tsutsui
d9c04bf638 Most use of mips_paddr_to_tlbpfn() is inside if (MIPS_HAS_R4K_MMU) so
call mips[13]_paddr_to_tlbpfn() directly instead.
2005-11-05 10:57:49 +00:00
tsutsui
6305a3d092 Remove #undef MIPS3_4100 from these files since mipsX_subr.S no longer has
#if defined(MIPS3_4100) statements.
2005-11-05 10:39:26 +00:00
tsutsui
e54d906c60 Add empty <machine/wired_map.h> for the MI mips/wired_map.c. 2005-11-05 09:54:48 +00:00
tsutsui
fdb3b14bb4 Adapt arc port to the new MI mips3 wired map functions.
Tested on NEC-RD94 with several PCI and jazzio devices.
2005-11-05 09:50:50 +00:00
tsutsui
74f4d162fb Add MI mips3 wired map functions based on patch in port-mips/31915
from Garrett D'Amore of Tadpole Computer Inc.
Please refer discussion filed in the PR for details.
2005-11-05 09:46:07 +00:00
tsutsui
78422d0423 Check MIPS3_CONFIG_CS and adjust csizebase at runtime on MIPS_R4100 CPUs,
and remove "XXXCDC: THIS MIPS3_4100 SPECIAL CASE SHOULD GO AWAY" part
from cpuregs.h. Tested on gxemul.

BTW, cache.c doesn't have MIPS_RC32364 config which was added
in mips_machdep.c rev 1.101?
2005-11-04 16:19:31 +00:00
rpaulo
3de46f226c PR 31996: fix the comments for MPBIOS and MPACPI. By Damon Brodie. 2005-11-03 23:12:16 +00:00
chs
72d7d84d98 regen 2005-11-03 16:49:09 +00:00
chs
59fddeceaa turn off DEBUG and DIAGNOSTIC in GENERIC kernels so that they
are compatible with the LKMs that are part of the release.
2005-11-03 16:48:29 +00:00
yamt
06085e8f52 - use sys/spl.h.
- add some IPL_ definitions.
2005-11-03 13:06:06 +00:00
bjh21
24f32d9b06 Put the "cache chip bug" message back on a line of its own after the CPU type
is announced, which is where it was before 1997.  This finally stops the
CPU attachment message overflowing a line on an ELC.
2005-11-01 22:49:17 +00:00
bjh21
58654bce56 Fix second "no drives attached" message (as seen on sun4c) so as not to
include the device name, since this message is printed on the same line
as the attach message anyway.
2005-11-01 21:00:56 +00:00
christos
f1e915cc01 Split the linux syscall out to make the code easier to read and maintain. 2005-11-01 16:28:28 +00:00
manu
e326d4a34d Linux does not seems to set rdx on syscall exit. 2005-11-01 09:13:48 +00:00
chs
df1287ee8b fix crash dumps on m68k platforms, cpu_kcore_hdr_t is larger than
512 bytes now so we need a bigger buffer.  PR 26958.
2005-10-30 15:49:39 +00:00
tsutsui
5797e5013d DELAY() is done (though the implementation is MIPS3 dependent). 2005-10-30 07:55:46 +00:00
tsutsui
bdf356473e Use new delay(9) for DELAY(9). 2005-10-30 07:53:16 +00:00
sekiya
bfa9ff2e95 sparc needs mostly the same compilation flags for standalone build as does
sparc64.  Move them out of the sparc64 conditional.

Okayed by martin@
2005-10-30 07:50:31 +00:00
tsutsui
bc7a643d4f Use mips3_cp0_count_read() for precise microtime(9).
XXX microtime(9) function should be moved from machdep.c to timer.c?
2005-10-30 05:27:14 +00:00
tsutsui
2f451ddebd Use #define<space> for consistency. 2005-10-30 04:40:43 +00:00
tsutsui
48c586e2b6 According to the new mips3_cp0_count_read() based delay(9),
NEC-JC94 seems to have 200MHz clock, not 150MHz.
2005-10-30 04:35:49 +00:00
tsutsui
49b8c2626d - use mips3_cp0_count_read() for delay(9).
- delay(9) should take unsigned int, not int.
2005-10-30 04:34:03 +00:00
tsutsui
c0caafab2b Set up ci_cpu_freq, ci_cycles_per_hz and ci_divisor_delay in curcpu()
from platform->clock.
2005-10-30 04:31:22 +00:00
jdc
14eb3fca0f Don't drop to ddb in the default case if ddb.onpanic is 0.
OK'd by martin@.
2005-10-29 21:18:28 +00:00
christos
44545da4e2 Fix more debug const fallout from Hauke Fath. 2005-10-29 16:34:19 +00:00
yamt
fd96f3e9ea pull splraiseipl() from newlock branch. 2005-10-29 14:38:51 +00:00
yamt
0416d5be24 add splraiseipl(). 2005-10-29 11:07:45 +00:00
christos
57e242fa1e PR/31942: Hauke Fath: -current DEBUG kernel build fails because of gcc whining 2005-10-28 21:54:52 +00:00
yamt
54007a40c0 remove duplicated spllpt(). 2005-10-28 10:34:18 +00:00
martin
eb8540417a Follow the lead of the sparc port:
- move md_flags back to mdproc, because we only have per-proc flags
   currently
 - implement cpu_proc_fork() to init p_md.md_flags on fork
2005-10-27 20:43:30 +00:00
uwe
bf5bead380 We need to init p_md.md_flags on fork, so implement cpu_proc_fork(). 2005-10-27 00:36:16 +00:00
uwe
3fe7beb89b DIAGNOSTIC code should not whine about software traps 0x90..0x9f that will
never be specified and thus are free for ABI conforming programs to use.
2005-10-27 00:04:55 +00:00
uwe
05fa81f9b0 Report T_RANGECHECK as ILL_ILLOPN. 2005-10-26 23:41:56 +00:00
uwe
ab5d782da8 Move md_flags back to mdproc. MDP_FIXALIGN, the only flag we have, is
per-process, not per-lwp.  We don't have per-lwp flags currently.
2005-10-26 23:21:47 +00:00
uwe
060dedbbf7 Comment change: Clarify meaning of some user traps. 2005-10-26 22:37:18 +00:00
uwe
29511150ab Add missing extern to make the definition of softnet_cookie into a declaration. 2005-10-26 21:11:05 +00:00
uwe
7781633361 Cosmetic. Kill __P. Remove few remaining paramter names in
prototypes.  CONSTCOND in while (0).  Move wcopy/wzero declarations
with the rest of machdep.c.  Add some blank lines for readability.
2005-10-26 20:52:33 +00:00
uwe
5c38a3d254 sigcode is needed only for COMPAT_16. 2005-10-26 01:30:20 +00:00
uwe
0e0096c441 Compute c_totalsize for split caches correctly: it's max, not sum (and
we even have that documented in cache.h).  Initialize c_nlines for
split caches.

This should fix srmmu cache flush routines for split I/D caches that
has been broken since cache.c revision 1.79 started using c_nlines.
2005-10-25 22:12:07 +00:00
uwe
c2ec5cfaef Sync c_linesize and c_nlines comments with reality. 2005-10-25 22:03:43 +00:00
peter
1c9957b31e - Remove options PORTMASTER (not used any code).
- Add (commented out) options DEBUG.
- Add "pseudo-device ksyms".
2005-10-23 15:34:19 +00:00
peter
70417e76a9 Make this compile when DEBUG is defined. 2005-10-23 15:30:02 +00:00
peter
5280269a8f Add a dummy WSKBDIO_GETLEDS, to make "wsconsctl -ka" work. 2005-10-23 15:27:06 +00:00
peter
61eb4528fc Remove the DEBUG define, this should be set in the config file. 2005-10-23 15:21:08 +00:00
peter
8a5e924b94 - Use ANSI function decls.
- KNF.
2005-10-23 15:19:58 +00:00
peter
fcadfb2052 - Use ANSI function decls.
- Add static, KNF.
- Print a newline in the attach routine for pretty dmesg output.
2005-10-23 15:18:54 +00:00
peter
d62e20c6c5 Minor KNF. 2005-10-23 15:15:39 +00:00
peter
14b26643ea - Merge Interrupt/SPL related stuff from hpcarm/hpcarm/stubs.c.
PR/17346 from Kevin Lo.  ok by ichiro@
- Remove __P.
- Use ANSI functions decls.
- Minor KNF.
2005-10-23 15:15:09 +00:00
peter
83a03b3e58 Use arm/arm32/stubs.c instead of hpcarm/hpcarm/stubs.c to reduce
duplicated code. PR/17346 from Kevin Lo.  ok by ichiro@
2005-10-23 15:14:39 +00:00
peter
70500cd708 - Remove __P.
- Use ANSI function decls.
- Put some debug information into #ifdef DEBUG.
2005-10-23 15:08:18 +00:00
peter
ab405b2010 - Remove __P.
- Use ANSI function decls.
- Tweak some comments.
- Fix a few typos.
- KNF.
2005-10-23 15:06:35 +00:00
peter
545de90bdb Fix some typos. 2005-10-23 15:04:43 +00:00
peter
6a6d8015e0 Fix a typo. 2005-10-23 15:02:48 +00:00
peter
f2afca5030 - Remove __P.
- Remove var names in function declaration.
2005-10-23 15:02:30 +00:00
nonaka
2f7c0c1f96 fix EMODE instruction cache range index op. 2005-10-22 15:13:38 +00:00
he
d13dea3067 Make it possible to use <sys/disklabel.h> from assembly source by
introducing OMIT_DKTYPENUMS and OMIT_FSTYPENUMS, which omits the
declaration of the enums.  Use this in the vax boot code to make
it build again.  Also use __CONCAT() instead of ##.
2005-10-21 21:10:45 +00:00
dbj
237f025382 strip arm mapping symbols for ddb using STRIPFLAGS instead of SYSTEM_LD_TAIL
this works even for kernels compiled with -g and doesn't interfere with gdb
2005-10-21 14:40:03 +00:00
hamajima
0f9691137b Fix write sequence to PHY.
I write a data first, but I wrote a command first.
2005-10-19 14:01:49 +00:00
dyoung
e0b6419887 Define AH_REGOPS_FUNC because the macppc HAL uses the register
read/write functions to access the hardware.
2005-10-19 09:02:52 +00:00
dyoung
fde2c4b7ca No need to create opt_ah.h in these makefiles, config(8) takes care
of it.
2005-10-19 09:01:27 +00:00
tsutsui
c264961875 TAB/space cleanup. 2005-10-18 11:31:12 +00:00
tsutsui
c68fe159b9 Pass proper values to MI wsmouse_input(9):
http://mail-index.netbsd.org/port-sgimips/2005/10/18/0000.html

Ok'ed by Steve Rumble.
2005-10-18 11:20:48 +00:00
sekiya
8c83f7b667 Restore missing call to r5k_enable_sdcache(). Its' removal was a thinko
on my part -- the COP0 SC presence test fails on r5k IP22, but
r5k_enable_sdcache() will DTRT regardless.

Pointed out by tsutsui@
2005-10-18 00:47:07 +00:00
yamt
464cf44f6c dksubr: do b_blkno -> b_rawblkno translation earlier so that bufq can uses it. 2005-10-18 00:14:43 +00:00
he
dffb25a969 Complete the renaming gpio -> ppcgpio for evbppc, to make room for
the MI gpio.  Internal static functions in gpio_opb.c are not
renamed here, but the softc type is renamed together with the attach
declaration data.
2005-10-16 16:35:44 +00:00
uwe
b388366e8f Shave off one instruction in _syscall. 2005-10-16 16:34:17 +00:00
uwe
d0155fac59 Trim trailing whitespace. 2005-10-16 14:36:28 +00:00
yamt
aec75b1cc6 - change the way to specify a bufq strategy. (by string rather than by number)
- rather than embedding bufq_state in driver softc,
  have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
  from sys/bufq.h to sys/bufq_impl.h.
  (is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c.  (not tested)
2005-10-15 17:29:10 +00:00
itohy
9a9aac9079 pwr_sw_ctrl(): do not panic() if panic has already happened
to avoid infinite panic recursion (this is called by cpu_reboot()).
2005-10-15 16:16:38 +00:00
itohy
d1e6cc9002 Add code to parse device name specified in the boot prompt.
Update boot version to 1.3.
2005-10-15 11:34:17 +00:00
itohy
f1b7dcd6f3 When read from a disk partition, add the partition offset properly.
Do not use NULL address for disklabel buffer (wow).
2005-10-15 10:58:06 +00:00
tsutsui
61d9372a28 All of FIREPOWER_ES, FIREPOWER_MX and FIREPOWER_LX require
the same platinit function, so don't check them separately.
2005-10-15 02:17:48 +00:00
xtraeme
46b58a0a77 Enable atu(4). Requested by Martijn van Buul via PR pkg/30243. 2005-10-14 23:26:10 +00:00
heas
bfceed8072 Add major for twe(4), so that management applications have a /dev entry to use. 2005-10-14 22:02:42 +00:00
riz
2feefaad21 Move a little more under #if NGPIO > 0 2005-10-14 19:21:07 +00:00
jmc
a64b99061e Rename gpio to ppcgpio to resolve naming conflicts w. gpio framework 2005-10-13 21:38:11 +00:00
tron
b0a88753d6 Make build of ISO9660 boot loader work if no object directories are used. 2005-10-12 15:27:39 +00:00
christos
9435516e6b More Dothan entries from OpenBSD. 2005-10-12 04:20:59 +00:00
drochner
e8d3f46495 kill gba_name in attach arg, specify interface attribute 2005-10-11 15:59:16 +00:00
drochner
69f432c06d -put gpio stuff inside #if NGPIO > 0
-kill gba_name in attach arg, specify interface attribute
2005-10-11 15:58:37 +00:00
christos
22239aa432 handle MMX faults as floating exceptions. Tested by Hauke Fath; matlab
passes all its regression suite without panicking the kernel.
2005-10-10 21:08:01 +00:00
christos
d2f0c36e85 Add defines for the control and status bits of the 80387. 2005-10-10 21:07:17 +00:00
christos
eb3977b72c Don't get confused if T_USER is set; instead print the correct trap. 2005-10-10 18:13:39 +00:00
dsl
76ed960bec Add sk ethernet as found on ASUS A8V.
Increase ramdisk to 5MB, costs virtually nothing.
2005-10-10 17:24:38 +00:00
dsl
3e17d26fb5 include "INSTALL" then modify it - so we get the same device 2005-10-10 15:40:37 +00:00
pooka
6c4ca17312 foreach NOTEACHED make the comment say NOTREACHED 2005-10-10 09:58:54 +00:00
tsutsui
73d1e286b2 Define MIPS3_PG_SIZE_MASK_TO_SIZE() macro in the MI mips header. 2005-10-10 02:14:43 +00:00
hubertf
2d4a7ba907 Find second qe interface, taken from the INSTALL file.
Reported by someone on IRCnet #NetBSD.
2005-10-10 01:06:24 +00:00
bouyer
65679198a8 Also remove pkt_next now that packets are not recorded in a per-page list. 2005-10-08 20:23:59 +00:00
bouyer
0e12d49f1c If a domain has more than one interface, a page can hold packets for different
xennetback instances. To support this, more fields from xni_page to xni_pkt.
This would also have the effect to move more code into the
while (!SLIST_EMPTY(&pkt_page->xni_pkt_head)) loop in xennetback_tx_free().
By passing xni_pkt instead of xni_page to xennetback_tx_free we can
avoid the loop, and the xni_pkt_head list completely. There is even a sligh
performance increase if the domU deals with xni_txring->event properly.

Based on comments from YAMAMOTO Takashi.
2005-10-08 20:22:05 +00:00
uwe
a8930f8104 Sync with GENERIC (1.180). 2005-10-08 01:49:40 +00:00
macallan
c2b05b7fce Check for 'i2c-bus' child and if found look for i2c devices there instead of
directly under the ki2c node.
Needed for newer ( 2005? ) OpenFirmware.
2005-10-07 23:53:11 +00:00
tsutsui
e9882e57f5 Sync with GENERIC:
- add options P1003_1B_SEMAPHORE
- add #file-system TMPFS
- add #options UFS_DIRHASH
- add #options ALTQ*
- enable pseudo-device fss
- add #pseudo-device pf*
- options<space><tab>
2005-10-07 18:04:51 +00:00
tsutsui
fcfdd9abaa options<space><tab> 2005-10-07 18:01:39 +00:00
tsutsui
eed1fcb469 Regen from GENERIC.in rev 1.44:
> Add (commented out) file-system TMPFS in a proper file.

XXX: It seems `INSTALL_CONFIGURATION' in GENERIC.in should be reorganaized.
2005-10-07 17:51:07 +00:00
tsutsui
2c0da89986 Add (commented out) file-system TMPFS in a proper file. 2005-10-07 17:46:33 +00:00
riz
4b5421222c Add support for the gpio(4) framework to the elansc(4) system controller.
From Alexander Yurchenko (grange@openbsd), via OpenBSD.
Approved by jmcneill.
2005-10-07 15:59:49 +00:00
abs
9644b9239b At least ASUS also put the ITE8712F at 0xc00 - noted by Juan RP 2005-10-07 08:18:13 +00:00
dyoung
fef03960e4 Ensure we don't build the libraries twice: move the .WAIT after
the first subdirectory that uses the libraries.  That subdirectory
is bootxx_ffsv1, not bootxx_cd9660.
2005-10-06 21:39:41 +00:00
tsutsui
777c677da8 Sync with GENERIC:
- add indent
- add commented out file-system TMPFS
- enable PFIL_HOOLS
- space cosmetics
2005-10-06 15:13:26 +00:00
tsutsui
57c9eba3ac cosmetics. 2005-10-06 15:12:01 +00:00
tsutsui
e955c959e4 Add (commented out) file-system TMPFS. 2005-10-06 14:59:13 +00:00
dyoung
00d2915456 Build and install /usr/mdec/bootxx_cd9660, a primary boot loader
for ISO9660 filesystems.
2005-10-06 08:22:58 +00:00
dyoung
310a1a8dcf Change the layout of cdboot to meet installboot(8)'s expectations:
MBR+NetBSD disklabel+boot parameters.  Invoke the secondary boot
loader with a pointer to the boot parameters.
2005-10-06 08:19:46 +00:00
simonb
5c33a825aa KNF. 2005-10-06 02:23:51 +00:00
tsutsui
17b2c3c86e On converting sgimips disklabel into BSD disklabel, don't take
dp_secbytes in the SGI volume header because the ARCS firmware ignores it.
Instead, leave the hardware default value set by each driver and
adjust offset values in the SGI volhdr according to the real sector size.

Fixes "resource shortage" messages on mounting a bootable CD-ROM image
which has the SGI volhdr. See posts on port-sgimips for details:
http://mail-index.netbsd.org/port-sgimips/2005/09/12/0000.html
http://mail-index.netbsd.org/port-sgimips/2005/09/12/0001.html
http://mail-index.netbsd.org/port-sgimips/2005/09/14/0000.html
2005-10-04 14:47:50 +00:00
bouyer
181bca1deb Fix problem pointed out by YAMAMOTO Takashi:
In theory mbufs can have an infinite life time and could block the transmit
ring (as slots are released when the mbuf external storage is freed). To
avoid this, when we're processing the last slot of the ring copy the buffer
and release the slot immediatly.
2005-10-03 22:15:44 +00:00
bouyer
056ae51459 Comment out options MCLSHIFT, YAMAMOTO Takashi says this will cause
"suboptimal flowcontrol" in the socket code. Still worth it in a
routing/bridging setup, though.
2005-10-03 20:50:25 +00:00
manu
bc210edac8 Fix COMPAT_DARWIN build. This closes PR#31336 2005-10-03 17:11:25 +00:00
bouyer
24accead84 Add
options         MCLSHIFT=12
in order to avoid a copy when a mbuf cluster has to be sent to a domU
(which is the common case when the packet comes from a physical network
interface).
2005-10-02 21:53:16 +00:00
bouyer
213d74cfef Major improvements to the network backend, leading to a 0-copy transmit and
receive system:
- on the receive side, attach the mapped buffer as external storage
  instead of copying it. As a mapped buffer may not live much longer, we
  have to deal with the fact that one page of buffer may containt several
  packets, and it's not possible to map them several times. Use a hashed list
  to keep track of mapped pages, and use reference counters.
- on the transmit side, when MCLBYTES == PAGE_SIZE, give away the mbuf
  cluster page when possible instead of copying it. Keep a pool of physical
  pages to map in place of the page we give away. When copying, use a
  pool_cache(9) to manage copy buffers (use mclpool_cache when
  MCLBYTES == PAGE_SIZE, otherwise use a private pool/pool_cache) instead
  of a local list. This should reduce the number of hypercalls and MMU
  operations in the copy case as well.
2005-10-02 21:49:23 +00:00
bouyer
8b47a87eb6 Have xennet_start() schedule a software interrupt to defer processing of the
send queue. This give upper layer an opportunity to queue up all available
packets before starting to process them. This reduce the number of interrupt
generated on the backend, and the time spent doing hypercalls in a significant
way.
2005-10-02 21:39:41 +00:00
chs
8eaf597e57 typo. 2005-10-02 17:53:23 +00:00
chs
8b17730eac put mcount.c in the normal object list, so that "make depend" works.
use a gcc attribute to prevent it from being instrumented.
2005-10-02 15:34:17 +00:00
chs
708b1a54c3 remove unnecessary extern declaration. 2005-10-02 15:10:16 +00:00
chs
c4cc0529a0 make this compile again after stricter warnings and compat changes. 2005-10-02 15:07:41 +00:00
tsutsui
97776d231d - Use mtc0/mfc0 rather than dmtc0/dmtc0 for the PageMask register.
- Tidy up some comments.
2005-10-01 02:05:19 +00:00
macallan
a07be5404a fix borked MicroSPARC IIep microtime() from previous version. 2005-09-30 22:09:29 +00:00
abs
97f580372a If we're enabling ipfilter then we should really have IPFILTER_LOG 2005-09-29 17:21:24 +00:00
tsutsui
0c1404101b - Remove duplicated #include.
- kseg2iobufsize should be vsize_t, not vaddr_t.
2005-09-29 10:39:43 +00:00
chs
c0f26b2223 remove unnecessary includes. 2005-09-27 15:06:43 +00:00
macallan
2f6c0aa9c0 fix a typo 2005-09-27 15:04:26 +00:00
chs
94be8205d7 make this compile again. 2005-09-27 14:37:06 +00:00
macallan
c247bb3437 rename gpio -> macgpio to avoid conflicts with gpio framework 2005-09-27 14:34:15 +00:00
chs
0b934711f4 avoid calling into the pool code while PSL_EE is off.
the pool code can do spl*()/splx(), and splx() requires PSL_EE to be on.
2005-09-27 08:03:11 +00:00
jmcneill
9ea1878225 Add (commented out) definition of gpio attachment to nsclpcsio 2005-09-27 02:57:47 +00:00
jmcneill
dfb097e283 Add (commented out) definition of isa at gscpcib 2005-09-27 02:57:02 +00:00
jmcneill
7ad695546c Add (commented out) definitions for gscpcib and the equivalent gpio
attachment.
2005-09-27 02:47:42 +00:00
jmcneill
777503501e Add NS Geode PCI-ISA bridge GPIO support. 2005-09-27 02:42:44 +00:00
uwe
300c8b0563 Move new bus space methods to be with the rest of the bus space
related functions.
2005-09-25 23:14:06 +00:00
uwe
76a5b67165 Use mspcic_read_stream_N to access error addresses. They don't need
to be byteswapped.
2005-09-25 22:52:30 +00:00
uwe
b98b97fe7f Stream versions of mspcic_read/write_N. 2005-09-25 22:50:57 +00:00
uwe
cfe232b1e4 G/c msiiep_swap_endian, it's no longer used now that we run without
byteswapping in the PCIC.
2005-09-25 21:57:02 +00:00
uwe
94e8dfaa23 G/c unused variable. 2005-09-25 20:49:43 +00:00
macallan
61f989aeaf Added comments about (ab)use of auxreg bits in SPARCbooks 2005-09-25 00:08:59 +00:00
macallan
c4a1cd0ef7 Put the CPU to sleep when idle 2005-09-25 00:06:52 +00:00
macallan
e98ce31365 Put the SPARCbook 3GX and 3GS CPU to sleep when idle 2005-09-25 00:06:13 +00:00
macallan
9d06f6badc add a function pointer to struct cpu_info:
void idlespin(struct cpu_info *)
which is called whenever the CPU is idle and uvm_pageidlezero() has nothing to
do
2005-09-24 22:44:44 +00:00
macallan
9a8bbeeb14 Run the MicroSPARC IIep PCI bus without endianness translation.
This allows us to run X without any additional code changes.
2005-09-24 22:30:15 +00:00
christos
a30629f4bf need compat/sys/signfo.h 2005-09-24 21:34:59 +00:00
uwe
811a624920 ANSI. KNF. 2005-09-24 01:07:25 +00:00
uwe
7d140fd026 No argument names in function declarations. 2005-09-24 00:51:21 +00:00
uwe
d15ed57aa1 G/c unused fields in mspcic_softc. 2005-09-24 00:49:23 +00:00
uwe
5f93873eda Shuffle the code to be more readable. Simplify. 2005-09-24 00:35:08 +00:00
uwe
7ef52537c9 Whitespace nits. 2005-09-24 00:12:20 +00:00
uwe
6ac484d14b Whitespace nit. 2005-09-23 23:29:29 +00:00
uwe
b05347bffe Introduce mspcic_{read,write}_N instead of using struct syntax. This
is the first step to make PCIC run without byteswapping - which is
necessary for X server support.  Current macros are still just a
kludgy shim over struct syntax, but accesses to PCIC in the .c files
are now marked up properly.
2005-09-23 23:22:57 +00:00
macallan
53ea55fd08 Added macros for bus_space_mmap() and bus_space_vaddr() 2005-09-23 18:53:16 +00:00
macallan
aaddad0a64 forgot to commit this along with ofb.c 2005-09-23 17:51:37 +00:00
dyoung
ca9595c087 Suppress false 'WARNING: LAST RESET DUE TO WATCHDOG EXPIRATION!'
indications by clearing the WDOVF status flag for real.  The way
to do that is by writing 1, not 0.
2005-09-22 19:34:58 +00:00
dyoung
9a5e721b1e Cosmetic: s/writing writing/writing/ in comments. 2005-09-22 18:57:39 +00:00
macallan
178f17c813 - center output to match firmware settings when using the ROM font
- allow the super user to mmap() the PCI IO area corresponding to ofb at offset
  0xf2000000 - needed by some XFree drivers ( approved by Bill Studenmund )
- add a hack to allow mmap()ing offset 0xa0000 - 0xbffff if not covered by the
  regular framebuffer mapping at offset 0 ( disabled by default, use options
  OFB_FAKE_VGA_FB ) - this allows buggy XFree drivers which expect the VGA
  framebuffer at this address to work.
2005-09-22 18:16:56 +00:00
chs
6a0a597fbf pull in changes from i386 profile.h:
- allow profiling of MP kernels, add a spinlock around the body of mcount().
   fixes PR 31360.
 - save and restore eflags instead of just doing cli/sti.
2005-09-22 15:47:03 +00:00
simonb
279a125665 TAB police. 2005-09-22 07:13:27 +00:00
dyoung
65eb42952c Add a driver for the watchdog timer on the AMD Geode SC1100. 2005-09-22 07:09:35 +00:00
dyoung
36f0c93a20 Reset the AMD Geode SC1100. Previously, the Geode hung after
printing "resetting...".  Now it really restarts.

Code from FreeBSD.  Description of what the code does by me.
2005-09-22 06:45:03 +00:00
bouyer
8519a64973 inline 2 trivial functions that are called often (according to profiling
data).
2005-09-20 20:33:53 +00:00
bouyer
0b1f7e4a8c When disconnecting a device, we have to wait for pending I/O before releasing
the ressources (this can lead to a dom0 kernel crash when destroying a domain
with active I/O going). For this, add a refcount to struct xbdback_instance,
and defer CMSG_BLKIF_BE_DISCONNECT reply until refcount is back to 0 (which
means all queued buffers have completed).
Based on patch sent by Jed Davis on port-xen.
2005-09-20 20:29:18 +00:00
christos
8de29063ea - Bump default data size from 128M to 256M, allows the java interpreter to
start up without unlimit.
- Bump max data size from 2G to 3G. The actual space we are allowed to allocate
  is somewhere between 2G and 3G, so trying to allocate above that will fail.
- Bump max stack size from 32M to 64M.

Approved by fvdl
2005-09-20 16:38:58 +00:00
thorpej
5d49661ebb Turn bounce buffer stats into evcnts and enable them by default. 2005-09-20 04:48:10 +00:00
nsmrtks
6b6e3ae6ad Add diagnostic message. (for debugging with 060) 2005-09-18 16:12:34 +00:00
chs
3d217d24ea use a .BEGIN target to make the various symlinks,
the previous way had problems with parallel make.
2005-09-17 16:49:25 +00:00
yamt
d597202302 make VMSWAP optional again. 2005-09-17 14:38:38 +00:00
yamt
7e71f567e4 include "conf/std". 2005-09-17 09:44:05 +00:00
uwe
04b13834d6 Drop obsolete bus_space_* compat defs. 2005-09-15 18:34:03 +00:00
he
2f1d097559 The compat signal / signalvar headers are only needed under COMPAT_13
and COMPAT_OSF1, so make the header inclusion conditional as well.
2005-09-14 21:48:14 +00:00
he
6f5b98e680 Another file needing <compat/sys/signal.h> and <compat/sys/signalvar.h>
for native_sigset_to_sigset13().
2005-09-14 19:30:45 +00:00
he
e1e0525260 Another set of files needing <compat/sys/signal.h> and
<compat/sys/signalvar.h> for native_sigset13_to_sigset().
2005-09-14 19:27:48 +00:00
bouyer
67d1ec35c9 Enable systrace for Xen, there's no reasons for it to be disabled.
Pointed out by Sascha Retzki on port-Xen.
2005-09-14 19:06:15 +00:00
martin
adcdbe2c3d Now that process_frame() is a macro (done "unannounced" in arm's
include/frame.h), don't try to define an inline function with the
same name and same contents.
2005-09-14 18:26:31 +00:00
martin
b00f137222 Add missing <compat/...> includes 2005-09-14 17:52:24 +00:00
he
eff8bc0ba5 Another file which needs <compat/sys/signal.h> and <compat/sys/signalvar.h>
for native_sigset_to_sigset13.

Also fix something which must obviously be a typo:
COMAT_ULTRIX -> COMPAT_ULTRIX.
2005-09-14 17:38:40 +00:00
he
26fd5709f4 Another file which needs <compat/sys/signal.h> and <compat/sys/signalvar.h>
for native_sigset_to_sigset13().
2005-09-14 17:28:14 +00:00
he
1fb5939a51 This file also needs <compat/sys/signal.h> and <compat/sys/signalvar.h>
for native_sigset13_to_sigset().
2005-09-14 17:24:56 +00:00
he
3451426813 This file also needs <compat/sys/signal.h> and <compat/sys/signalvar.h>
for native_sigset_to_sigset13.
2005-09-14 17:22:50 +00:00
chs
43070602ec need to include <compat/sys/ucontext.h> here. 2005-09-14 16:19:27 +00:00
he
1d4573eec9 We need <compat/sys/signal.h> and <compat/sys/signalvar.h> here
for native_sigset13_to_sigset, sigset13_t, and sigvec.
The includes in sparc's machdep.c is conditional on COMPAT_13, as is
the use of native_sigset13_to_sigset.
2005-09-14 15:03:50 +00:00
he
acd01ac82f Need <compat/sys/sigtypes.h> here for sigset13_t. 2005-09-14 15:00:16 +00:00
he
80a9d6b5a5 Now that process_frame() is a macro (done "unannounced" in arm's
include/frame.h), don't try to define an inline function with the
same name and same contents.
2005-09-14 10:51:22 +00:00
tron
b03866ace9 Add 10 Gigabit Ethernet drivers dge(4) and xge(4). 2005-09-14 08:22:24 +00:00
christos
afffbeb330 split compat_16 functions to their own file and make this compile again. 2005-09-13 22:07:47 +00:00
christos
d3949dc269 compat reorg. 2005-09-13 03:23:34 +00:00
christos
ba2a95bba7 compat code reorg. Other archs will need similar changes... 2005-09-13 01:43:29 +00:00
bouyer
241368ab96 Check that m_copyback() didn't fail. Pointed out by YAMAMOTO Takashi. 2005-09-12 16:30:46 +00:00
tsutsui
a369ae7ab2 Add esiop at pci, which just works. 2005-09-12 15:36:19 +00:00
yamt
55dd3a28d4 remove no longer used macros. 2005-09-12 12:41:06 +00:00
yamt
8dcf8ba6e2 xennet_start: don't allocate cluster mbufs unless needed. 2005-09-12 12:40:43 +00:00
he
dc4ed2e4cb Patterned after next68k, omit inclusion of <sys/device.h> if we
are not in _KERNEL.  This should work around our lint problems
related to "unspecified-size array at end of struct" constructs.
2005-09-11 23:15:18 +00:00
chs
c36910e9cd remove the part of rev. 1.168 that skips TLB invalidations in pmap_enter().
it's wrong for wired mappings.  fixes PR 29804.
2005-09-11 14:30:31 +00:00
chs
355ecfe43b fix typo. 2005-09-11 13:42:40 +00:00
bouyer
4f6680c241 Use MCLGET() instead of local list of buffers. Garbage-collect
struct xennet_txbuf usage.
2005-09-11 13:20:00 +00:00
bouyer
acad751169 Remplace MEXTMALLOC/memcpy with m_copyback. 2005-09-11 11:44:52 +00:00
jmmv
ec93365612 Initial addition of tmpfs, an efficient memory file-system. This project
was developed as part of Google's Summer of Code 2005 program.  This
change adds the kernel code, the mount_tmpfs utility, a regression test
suite and does all other related changes to integrate these.

The file-system is still *experimental*.  Therefore, it is disabled by
default in all kernels.  However, as typically done, a commented-out
entry is added in them to ease its setup.

Note that I haven't commited the required mountd(8) changes to be able
to export tmpfs file-systems because NFS support is still very unstable
and because, before enabling it, I'd like to do some other changes.

OK'ed by my project mentor, William Studenmund (wrstuden@).
2005-09-10 19:20:48 +00:00
bouyer
b069bb656c The line number in the PCI interrupt register can be larger than 31 on
some hardware, depending on how Xen set things up. So bump NR_PIRQ from 32
to 256.
2005-09-10 18:24:35 +00:00
bouyer
b75ba03dd4 Add a vm_prot_t parameter to pmap_remap_pages(), and use it for the new PTE
instead to always trying PG_RW and falling back to PG_RO if this fails.
Use uvm_map_checkprot() in IOCTL_PRIVCMD_MMAP and IOCTL_PRIVCMD_MMAP_BATCH
to compute the appropriate vm_prot_t for pmap_remap_pages().
Thanks to Jed Davis for pointing out uvm_map_checkprot().
2005-09-10 18:00:49 +00:00
bouyer
ba9c8cd0c3 Apply patch from Jed Davis, posted to port-xen:
Implement IOCTL_PRIVCMD_MMAPBATCH, as a loop calling pmap_remap_pages().
XXX this should do the MMU operations in batch.
2005-09-10 15:48:10 +00:00
bouyer
8dfe5bc813 Apply patch from Jed Davis, posted to port-xen:
In pmap_remap_pages() new mappings are created (PG_RW|PG_M). When saving
a domain, the hypervisor will refuse to map the foreing pages RW.
As a temporary measure, retry the mapping read-only if PG_RW fails, so that
domain save will work. Also fix the PTP's wire_count if the MMU update
fails (prevent a kernel panic).
2005-09-10 15:46:04 +00:00
bouyer
7558bd0a7c Fix typo reported by Jed Davis on port-xen:
IOCTL_PRIVCMD_GET_MACH2PHYS_START_MFN is a read, not a write.
2005-09-10 15:41:54 +00:00
dsl
b92fde2f23 Remove KERNFS, it was only used to implement dmesg - the binary is smaller! 2005-09-10 14:53:34 +00:00
kiyohara
e13c2b8b41 Add configuration file for 'PCMCIA adapter BOX' supported kernel. 2005-09-10 04:34:39 +00:00
uwe
45626bf3d9 ANSIfy. 2005-09-10 02:22:33 +00:00
uwe
8f3c0c67f1 Hanlde NMI on microSPARC-IIep.
We don't do much useful except reporting, but that's better than to
stupidly use sun4m handler and wedge the machine.  May need to revisit
what's fatal.

Prodding by macallan@
2005-09-10 01:27:54 +00:00
uwe
531fd682f7 Add definitions for microSPARC-IIep memory fault registers. 2005-09-10 01:23:19 +00:00
uwe
5820e018a3 Add bitmask string for system interrupt pending register. 2005-09-10 01:01:40 +00:00
uwe
3355ba0044 u_intN_t -> uintN_t 2005-09-10 00:44:08 +00:00
tsutsui
60528befec Link ip2xboot as OMAGIC by -N option for ld(1) as well as ip3xboot.
Tested by sekiya.
2005-09-09 17:27:18 +00:00
drochner
727527c99b remove "dev" locators from cardbus device definitions, it doesn't
make sense technically and might be removed
2005-09-09 16:26:19 +00:00
rpaulo
2855760133 Enable WSDISPLAY_SCROLLSUPPORT by default. 2005-09-09 13:43:39 +00:00
tsutsui
5b3a55a74a This file no longer has "#if defined(MIPS3_4100)" so remove
"XXX MIPS3_4100 is still special" comment.
(though some other files still have "special" code which should go away)
2005-09-08 15:19:58 +00:00
tsutsui
e17fe7c64d Initilize CP0 pagemask register properly.
Fixes PR 30590 and some other mips port.
2005-09-08 15:17:23 +00:00
tsutsui
95d5cf1493 Add mips3_cp0_pg_mask_write() to initialize pagemask register. 2005-09-08 15:13:23 +00:00
tsutsui
bd2843f4ab Add definitions of Vr41xx specific pagemask values.
It supports 1k-256kbytes/page.
2005-09-08 15:11:43 +00:00
drochner
14071aa79e fix an obvious mistake where the original instruction
is restored after a simulated single-step,
also use VM_PROT_ALL to get maximal permission for patching
instructions instead of VM_PROT_DEFAULT whose semantics
are not that defined
2005-09-07 20:28:08 +00:00
drochner
caf67252d3 sync with next68k: include <sys/devive.h> explicitely because this is the
documented header for "evcnt" stuff
(should be separated, later)
2005-09-07 19:58:12 +00:00
drochner
8311fb86aa namespace sanity: don't expose compatibility sigcontext stuff
unnecessarily
2005-09-07 19:42:51 +00:00
drochner
41f06eac8c include machine/intr.h only in the _KERNEL case, as
most other ports do.
(In the -KERNEL case, it is needed because the spl*()
stuff ought to be pulled in by <sys/param.h> per the
manpages.)
This saves some namespace headaches.
2005-09-07 19:39:51 +00:00
drochner
9e7bc072c7 namespace sanity: kill includes which are not
used directly
2005-09-07 19:35:37 +00:00
drochner
0ffd1b3340 include <sys/devive.h> explicitely because this is the
documented header for "evcnt" stuff
(should be separated, later)
2005-09-07 19:33:20 +00:00
aymeric
f4cc8f97e3 make the "tags" target work again by using the common trick of splitting some
of the arguments to ctags using echo start-of-xxx | xargs ctags rest-of-xxx
2005-09-06 21:57:47 +00:00
kleink
aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
kleink
bdfc943920 Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.

Also change this to use the proc argument instead of curproc.
2005-09-06 20:46:38 +00:00
kleink
1020316c01 Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.

Also, dispose of a redundant instance of that check.
2005-09-06 20:24:01 +00:00
kleink
e2cef34883 signed -> __signed 2005-09-06 19:18:23 +00:00
simonb
b665007462 Include <sys/systm.h>; needed for printf() and strcmp() in the
non-DEBUG case.
2005-09-06 12:22:43 +00:00
dogcow
12c72179ee after discussion with dyoung, add rtw* at cardbus 2005-09-06 02:03:52 +00:00
kiyohara
7463900213 Reorder. 2005-09-05 19:05:20 +00:00
kiyohara
17587c6104 Support LCD screen driver for PERSONA SH3 machines. 2005-09-05 18:54:10 +00:00
uwe
88fc0ed1ac Since we have ipf/pf in the config (commented out), add pertinent
options as well (commented out too).
2005-09-04 16:07:46 +00:00
kiyohara
db37c957e1 Support the 'PCMCIA adapter BOX' for OpenBlockS266. 2005-09-04 15:23:55 +00:00
shige
044ec00fc2 Support LED-control via sysctl (on=1/off=0).
Sysctl name: hw.obsled.led{1,2,4}.

Submitted by kiyohara.
2005-09-04 12:20:15 +00:00
isaki
100f9bce03 typo in comment. (since 1994?!) 2005-09-04 10:41:36 +00:00
isaki
7da7168234 typo in comment. 2005-09-04 10:40:51 +00:00
kiyohara
e8ae1a1119 Support 'PCMCIA adapter BOX' for OpenBlockS266. 2005-09-04 07:24:57 +00:00
uwe
13830db076 Tell hpcfb that framebuffer fetches 16-bit pixels as little endian. 2005-09-04 01:01:29 +00:00
dsl
d802408333 Remove support for ATAPI and SCSI tapes from INSTALL and INSTALL_TINY.
This (just about) counteracts the bloat added by the 64bit inode changes
and the the larger data structures of the new ioconf.c.
The 'st' driver got fingered itself because of it's own size increase
caused by the addition of the stats.
2005-09-03 20:38:07 +00:00
yamt
2cebed8c78 don't include uvm_extern.h twice. 2005-09-01 02:19:40 +00:00
yamt
c6b465a33e revert rev.1.99 as it is no longer necessary. 2005-09-01 02:18:19 +00:00
he
2a3f4bfe4a This one needs "pseudo-device md 1". Patch taken from PR evbppc/31097.
Fixes build problem.
2005-08-31 15:23:06 +00:00
he
0bd65b04de Now that uvm_extern.h no longer includes uvm_fault.h, we need to include
the latter explicitly.
2005-08-31 07:07:29 +00:00
tsutsui
912e6b6757 options<space><tab> 2005-08-28 13:23:22 +00:00
uwe
b2023157bb Add WSDISPLAY_CUSTOM_OUTPUT &co. 2005-08-28 00:28:41 +00:00
drochner
44bf0a7ee2 s/locdesc_t/int/g 2005-08-26 13:19:34 +00:00
drochner
1f9cf5d3b7 kill some more simple submatch() functions, use config_stdsubmatch() 2005-08-26 11:49:13 +00:00
drochner
096c3e1d2c kill some more simple submatch() functions, use config_stdsubmatch() 2005-08-26 10:13:05 +00:00
drochner
e6a178f21f kill a number of autoconf submatch functions which follow the
standard scheme:
if (<configured> != <wildcard> && <configured> != <real>)
	then fail
else
	ask device match function

This is handled by config_stdsubmatch() now.
2005-08-25 22:33:18 +00:00