Commit Graph

141137 Commits

Author SHA1 Message Date
tsutsui cf09fb3893 Fix pp_cisinfo[0] of the TEAC IDECARDII entry.
If pp_cisinfo[0] is NULL, current pcmcia_product_lookup()
never matches the device.
2005-11-07 16:37:28 +00:00
manu d72135b371 Include linux_machdep.h so that LINUX_UNAME_ARCH ges defined (fixes
uname emulation)
2005-11-07 14:17:45 +00:00
yamt 443e88c5cf some assym cleanup.
- move copyin and friends from locore.S to their own file, copy.S.
  share it between i386 and xen.
- defparam KERNBASE and kill KERNBASE_LOCORE hack.
- add more symbols to assym.h and use it where appropriate.
2005-11-07 11:42:34 +00:00
yamt 83c44381ee Xsoftnet: remove an unnecessary assignment. 2005-11-07 08:52:07 +00:00
erh cd42936263 Remove special hack for swapnetbsd.c when generating the makefile.
Instead, just add it to the list of files.
Make "prefix foo" lines actually work right when foo is an absolute path,
 and make sure the length calculations correspond to the output.
Provide a way to specify a file that will always be included, and a way
 to omit the prologue ("$S/") on that file.
2005-11-07 03:26:20 +00:00
manu a5d2387dbb regen 2005-11-06 21:50:28 +00:00
dsl 80c644a6b9 Explicitly default the input baud rate (c_ispeed) to the output baud rate (c_ospeed)
instead of setting it to zero.  Otherwise nothing ever sets it unless some code
explicitly changes the baud rate.  For a serial console (in particular) we want
to use the baud rate set by the bios (or whatever) and used by theboot code.
This is the way it was before a 'new version of com driver' was added in 1997 (rev 1.99)
2005-11-06 21:34:37 +00:00
snj 5a7eec5112 Add NetBSD 2.1. 2005-11-06 20:14:36 +00:00
manu 7505cb92a6 Back out sched_{set|get}affinity addition because it breaks the
build again on i386 now it is fixed for other archs (Tom's fix and
mine got in colision)
2005-11-06 18:16:31 +00:00
tsutsui 366c7b6131 dt_day in struct clock_ymdhms should be 1-31, not 0-365. 2005-11-06 17:50:37 +00:00
uwe 7541580e69 \(<= is the proper roff for <=. Fix another \*[Le] missed in the
previous commit.  While here, properly mark up minus in -p description.
2005-11-06 17:39:45 +00:00
tron 8cdb94228e Sync with changes in the "netbsd-3" branch. 2005-11-06 17:25:55 +00:00
rpaulo 033766f3a8 It's lilac-dmc.Berkeley.EDU, not lbl-csam.arpa. A 12 years old typo!
Also, \*[Le] doesn't seem to work well here, so replace it with '<='
as FreeBSD did. This problem was spotted by joerg@.
2005-11-06 16:40:55 +00:00
chs 5332333501 in amap_cow_now(), handle the case where we have to sleep and some of the
already-copied pages are paged out.  anons that have already been copied
will have refcount == 1, whereas anons that still need to be copied will
have refcount > 1.  fixes PR 25392, PR 30257, PR 31924.
2005-11-06 15:57:32 +00:00
tron 0c24d80f02 Regen with correct RCS Ids. 2005-11-06 14:25:48 +00:00
wiz a1e41eed09 Use config.h and add appropriate #if HAVE_FOO_H. 2005-11-06 12:40:02 +00:00
tsutsui 7d2d9d6fe1 Bump MAXPHYS from 32K to 64K.
asc.c has now its own asc_minphys(), and both osiop and oosiop at jazzio
work fine with 64K MAXPHYS.
2005-11-06 11:15:40 +00:00
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 830c0db95b NCRDMA_SETUP() should be called before NCR_SET_COUNT() and NCRCMD_DMA command
in ncr53c9x_select(). Tested with esp on SS1+ and sun3/80, and pcscp at pci.
2005-11-06 10:31:46 +00:00
rpaulo e15c104622 Add "Conexant CXT48". This should have a more meaningful name, but I
couldn't find it. So, I added this because it's better than printing
"unknown codec". When we find a more decent name later, we can change this.
2005-11-06 10:08:24 +00:00
manu 35f76b0ac2 ifdef out sched_{get|set}affinity for ports that don't use it yet. That
should fix build.
2005-11-05 23:44:25 +00:00
chs 58c15fb5d1 add a keyword for the uarea address. very useful with crashdumps. 2005-11-05 19:27:24 +00:00
yamt df6c7b914b nfs_read: return EISDIR rather than EPERM for !VREG files. 2005-11-05 19:21:14 +00:00
chs 3ea0c57c60 don't set fs_maxsymlinklen and fs_old_inodefmt twice,
we set them correctly the first time.  fixes PR 26995.
2005-11-05 19:15:54 +00:00
dsl b9a6294f9c When compiling with -Os put all strings into .rodata.str1.1 (ie byte aligned)
rather than putting those longer than 30 chars into .rodata.str1.32.
Apparantly gcc 3.4.4 has this change...
In spite of everything being compressed, this saves over 13k in the boot
floppies.
2005-11-05 18:29:53 +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
bouyer dfbaaaef48 ETHERCAP_VLAN_MTU is a flag for ec_capabilities, the size of the 802.1q
encaptulation header is ETHER_VLAN_ENCAP_LEN. Pointed out by der Mouse on
tech-kern.
2005-11-05 16:01:52 +00:00
martin 4daa98c618 Rename the wait channels (one was a copy&pasto, the other much too long) 2005-11-05 13:59:02 +00:00
wiz f0f9d6a437 Add compat #ifdefs from pkgsrc, to make syncing easier between the
two versions.
2005-11-05 13:11:02 +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
dogcow b3b0932a5d mirror manu's amd64 changes to implement linux sched_{seg,get}affinity;
the kernel and linux lkm now compile again.
2005-11-05 10:56:48 +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
dsl 4fba43286a Rework the checking of the typed size against the limit so we don't error
if the size is too large after we've rounded up to a cylinder boundary.
Stops silly errors (4170 > 4172) when partitions end at the end of the disk.
2005-11-05 09:58:32 +00:00
dsl f95e28696d Fix check for root being entirely inside the area that can be read on
systems where the bios doesn't support LBA reads.
Due to faked geometries the last few (over 30000!) sectors may not be reported
as being readable, but we expect them to be in swap.  So we don't force a
root+usr install in that case.
2005-11-05 09:55:34 +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
manu 2ae48df4fc regen 2005-11-05 08:11:30 +00:00
manu 0cf4b35fe6 Implement more of Linux futex(2) 2005-11-05 08:07:44 +00:00
manu 41455b2ed0 Implement Linux sched_{set|get}affinity 2005-11-05 08:06:58 +00:00
manu 67fcd6abf5 Fix build when LINUX_NPTL is not defined 2005-11-05 07:26:45 +00:00
manu 2cac35470c Fix a messed up patch 2005-11-05 00:58:57 +00:00
manu 88a5eb33ed Instead of ifdef'ing __amd64__ all the Linux NPTL stuff, introduce an
ifdef LINUX_NPTL.
Also implement SETTLS flag to Linux clone()
2005-11-05 00:47:26 +00:00
christos fe1de4d6e3 PR/32003: Brian Buhrow: msdosfs doesn't properly zero out high cluster data
on non-FAT32 msdos filesystems.
2005-11-04 21:04:20 +00:00
yamt a0a8d930a4 nfs_bioread: push delayed truncation and tweak loop accordingly.
PR/31926 from Jed Davis.
2005-11-04 19:39:30 +00:00
chs df018c387b make this compile on m68k by including sys/device.h explicitly.
on other platforms it's apparently included implicitly, probably through cpu.h.
2005-11-04 17:00:43 +00:00
manu b72e0d5382 Fix machine name returned by uname on Linux 2005-11-04 16:58:14 +00:00