jdolecek
58ed62e500
Constraint 'blkcnt' of lfs_markv() syscall by 64KB. Reviewed by
...
Konrad Schroder <perseant@NetBSD.org>.
2001-08-03 06:02:42 +00:00
jdolecek
332bb4894a
bound check mount args more thoroughly
2001-08-03 06:00:13 +00:00
jdolecek
c650c8d91c
make local 'nsops' same unsigned type as the value we store there in sys_semop()
2001-08-03 05:58:18 +00:00
thorpej
518ad20222
Upon further reading of the manual, don't save the MXCSR-at-last-exception.
...
Its status bits are sticky, and unaffacted by FNINIT.
2001-08-03 01:46:08 +00:00
tsutsui
38016b0ba8
Fix some typos in newer ALi M5229 support. Approved by bouyer.
2001-08-03 01:31:08 +00:00
thorpej
099e93139b
In setregs(), initialize the process's MXCSR to the reset-default
...
value as documented in the IA-32 Instruction Set Reference (in the
description of the LDMXCSR insn).
2001-08-03 01:24:39 +00:00
thorpej
cfb1fd004d
Don't clobber the MXCSR when we fake FNINIT.
2001-08-03 01:21:34 +00:00
thorpej
f72ee0a9c6
Remember the MXCSR at last-exception the way we do the FPU SW/TW.
2001-08-03 01:11:49 +00:00
groo
3f5acd41c2
Remove trailing "U" on KERNBASE introduced in last commit.
...
Breaks assembly of locore.
2001-08-03 01:03:10 +00:00
thorpej
6e331fdd9f
Define KERNTEXTOFF in terms of KERNBASE.
2001-08-03 00:47:59 +00:00
thorpej
8f308d671e
Adapt to new FPU save format in PCB.
2001-08-03 00:41:46 +00:00
bjh21
8c3ac05de9
Bump version for * command addition.
2001-08-03 00:41:12 +00:00
bjh21
33452511ed
Add a single * command, *boot26, so that the module can be manually invoked
...
after it's loaded.
2001-08-03 00:40:23 +00:00
bjh21
b471d90032
Add OS_Module.
2001-08-03 00:32:30 +00:00
bjh21
6e82ab9796
Wrap boot26 in a minimal relocatable module. When *RMRun, it just copies the
...
existing boot26 code to 0x8000 and runs it.
2001-08-02 23:55:55 +00:00
bjh21
3e749936d6
Script to generate a help string for a RISC OS module from the same sources
...
as newvers_stand.sh uses.
2001-08-02 23:47:07 +00:00
bjh21
4eebbc71e2
Don't force booters to have srt0.S at the start if they don't want to.
...
Also allow them to override the filetype they end up with.
2001-08-02 23:38:04 +00:00
eeh
09c1ee004c
Fix bcopy.
2001-08-02 22:41:32 +00:00
assar
a9eb6b2c79
(*fs_mount): do not get the parent vnode back from namei to just release it
2001-08-02 22:40:58 +00:00
thorpej
08b77f43f0
Deal with the SSE FPU save format.
2001-08-02 22:04:57 +00:00
thorpej
f0449fd933
- Rename cpu_use_fxsave to i386_use_fxsave.
...
- If we detect SSE/SSE2 support in the CPU, enable SSE exceptions
and set i386_has_{sse,sse2} as appropriate.
- Expose i386_use_fxsave and i386_has_{sse,sse2} through sysctl
as machdep.{osfsxr,sse,sse2}.
2001-08-02 22:04:28 +00:00
thorpej
99a7f640fe
Add support for saving/restoring SSE/SSE2 state using FXSAVE/FXRSTOR.
...
Reviewed by Frank.
2001-08-02 21:04:43 +00:00
bjh21
a2ac0e50f5
Bump version number for loadfile changes.
2001-08-02 20:24:03 +00:00
ichiro
9ada1599ca
implement rx/tx protocol routine of atmel microcontroller.
2001-08-02 18:51:00 +00:00
matt
d4a7b6fc1c
Fix non-properly ifdef'ed SUN4 only code.
2001-08-02 18:06:22 +00:00
bjh21
10414d85a9
Undo version bump. The sparc ofwboot doesn't use loadfile().
2001-08-02 16:22:46 +00:00
toshii
5424e08a49
Change the start address to load the kernel. We have 768k more free
...
memory now.
2001-08-02 14:45:40 +00:00
toshii
7aac1bef3b
Don't assume KERNEL_TEXT_BASE >= 0xc0080000.
2001-08-02 14:42:08 +00:00
toshii
f2c68887e0
Check if sc->sc_dc is NULL, so that non-console hpcfb can attach without
...
a panic.
2001-08-02 14:40:04 +00:00
itojun
47133068ba
do not break from loop even if m_len == 0. it's valid to have
...
mbuf with m_len == 0 in mbuf chain.
2001-08-02 13:37:51 +00:00
bouyer
f7c2f13a54
Properly setup timings for ata-4 controllers, including UDMA modes.
...
Tested on a brand new ("dual USB ?") ibook.
2001-08-02 12:41:39 +00:00
bjh21
ad2c12a28d
Bump version numbers of all bootloaders that use loadfile/ELF, to account for
...
my changes to symbol loading. I should probably have done this at the time,
but it's better late than never.
2001-08-02 12:24:05 +00:00
itojun
ce781443e0
pass replay sequence number on sadb_x_sa2 (it's outside of PF_KEY standard
...
anyways).
2001-08-02 12:10:14 +00:00
itojun
b26591525e
remove "register" variable specifier. sync with kame
2001-08-02 11:32:14 +00:00
sato
5215d66720
add MC-R700 battery parameters.
2001-08-02 11:21:27 +00:00
sato
2746e887bc
turn pwctl_debug to 0
2001-08-02 09:47:18 +00:00
shin
ad4858224a
make this file compilable without TX39IRDEBUG.
2001-08-02 04:30:01 +00:00
eeh
afa694c704
Sync bzero w/libc version.
2001-08-02 01:47:47 +00:00
itojun
32c36b5e14
fix logic to free up ifqueue on if_detach(). prev pointer was incorrectly set.
2001-08-02 01:42:38 +00:00
ad
aaf3c7c88b
Hook in the mly control interface on i386.
2001-08-01 20:54:16 +00:00
thorpej
4b584bf5bb
Add several more Intel cache info entries, and fetch the CFLUSH
...
line size if we have the CFLUSH insn.
2001-08-01 19:50:48 +00:00
thorpej
ebbd9cd428
Add some more CPUID feature bits.
2001-08-01 18:47:38 +00:00
eeh
5cfec63f0d
Integrate fixes from userland memset.
2001-08-01 17:01:26 +00:00
tsutsui
2c44aa6dfd
Remove unused pciide_print() declaration. From OpenBSD.
2001-08-01 16:29:21 +00:00
rjs
faf8b4c913
Update from hpcarm with changes to probe routine and test for chip ID.
2001-08-01 14:02:58 +00:00
ichiro
d9f2bbf31f
add initialization of GPDR pin direction to ipaqpcic_init(sc).
...
add judgment of complete of the Card (SAPCIC_STATUS_READY)
2001-08-01 13:18:44 +00:00
haya
3d57cec099
Add new entry for intel ICH2 LPC interrupt router. It has
...
upper compatibility with piix.
2001-08-01 09:11:19 +00:00
ichiro
1af1e2f9eb
implement a atmelgpio.c
...
this is initial version, only frame.
2001-08-01 07:59:43 +00:00
ichiro
e1eef3118a
add entry of Atmel microcontroller and uda1341 codec
2001-08-01 07:03:45 +00:00
ichiro
a179a1a6b1
i mistake
...
reverse a change
2001-08-01 07:02:54 +00:00
ichiro
1b56a92cf9
add entry of Atmel microcontroller and uda1341 codec
2001-08-01 06:59:17 +00:00
ichiro
4c5c9a1509
add register of GPCLK/UART1 (SACOM1_BASE)
2001-08-01 06:43:50 +00:00
ichiro
286cc764db
add more register of DUAL PCMCIA SLEEVE for iPAQ
2001-08-01 06:14:31 +00:00
dante
26c61e2dd0
change\n\tswitch (scsiq->host_status)\nto\n\tswitch (scsiq->scsi_status)\nin adw_isr_callback()
2001-07-31 23:12:01 +00:00
jdolecek
98cdfa790c
fix typo for previous in I386_CPU case
2001-07-31 22:52:44 +00:00
bjh21
286faf2070
Extra sanity checking on ELF headers: Make sure the bootloader actually
...
loaded (or claims to have loaded) everything we need.
2001-07-31 22:31:47 +00:00
matt
f8e21592da
regen
2001-07-31 22:30:07 +00:00
matt
b2c29c20ae
Add pci ids for the Intel 80312 I/O companion chip for the
...
Intel 80200 XScale processor.
2001-07-31 22:27:25 +00:00
bjh21
acf574f63e
When loading ELF, zero out:
...
The e_shstrndx field in the ELF header, since we don't load .shstrtab.
The sh_name field in each section header, for the same reason.
The sh_offset field for any section we don't load.
This means the kernel has some chance of knowing what it's being given. It
also means that the behaviour of old kernels with new loaders should be
deterministic (if not terribly useful: they still can't find the symbol
table).
2001-07-31 22:11:57 +00:00
ichiro
1af74c304d
iPAQ uses Atmel microcontroller to service a few peripheral devices
...
(Touch panel, Battery status, button events, and others status)
2001-07-31 21:33:03 +00:00
bjh21
30f144749a
G/C "off", since it was just tracking the difference between maxp and elfp.
2001-07-31 21:09:52 +00:00
bjh21
67a82e1d4e
Fix a small memory leak when counting the size of the symbol table (shp was
...
ALLOC'ed if (LOAD_SYM|COUNT_SYM), but FREEd if (LOAD_SYM)).
2001-07-31 20:03:03 +00:00
bjh21
1a35da3617
When loading an ELF kernel, don't load all the STRTAB sections. Instead, just
...
load those STRTAB sections that are referenced by a SYMTAB that we're loading.
The main advantage of this is that (at least with the binaries output by my
ARM ELF linker) this removes the need to seek backwards through the file, which
is a big win when loading a gzipped kernel.
While we're here, don't allocate space for string tables we don't load.
2001-07-31 19:20:29 +00:00
bjh21
34c3239d32
Don't depend on the bootloader's having loaded the .shstrtab section
...
in order to load the symbol table. Instead of using the sections
called ".symtab" and ".strtab", use the first SYMTAB section (the
ELF spec says there should currently only be one) and the STRTAB
section that's linked to it. I believe this is more robust, and it
certainly makes life easier for the bootloader.
2001-07-31 19:14:18 +00:00
thorpej
c43f8649d2
Set up function pointers for copyin/copyout in preparation for
...
adding optimized versions for various CPU classes/models.
Split the 386 version of copyout into a separate routine, and
add a 486 version that doesn't have the class/page-writeability
check.
2001-07-31 18:28:58 +00:00
christos
e01e4819af
regen.
2001-07-31 17:01:34 +00:00
christos
4d31855a1c
recognize dlink-660+, from jandberg@netbsd.org (Jukka Andberg)
2001-07-31 17:01:15 +00:00
matt
03b77c0534
Add a CPU_XSCALE defopt (for eventual support).
2001-07-31 17:00:24 +00:00
jdolecek
5664c34574
all outstanding MCA bugs fixed, woo-hoo :)
2001-07-31 13:16:25 +00:00
jdolecek
2b7d2123cd
Make console polling (cnpollc/cngetc) work on IBM PS/2 keyboard controller
...
using level triggered interrupts, which livelocks calling intr routine
if the data register is not read in the interrupt routine, as it's case
when polling after interrupts are enabled during boot.
Block all interrupts when polling for keypress, and modify intr routine
to read and store value from data register. The latter one is to avoid
losing a keypress when one would manage to press a key when kernel is
not in spl-guarded code section.
Tested with classic pccons, 'pcconskbd at pckbc' and 'pckbd at pckbc'
configurations, on i386.
2001-07-31 13:15:28 +00:00
ichiro
6a036b85d9
correct interrupt pipe of USB-RSAQ1.
...
sc_intr_iface was defined newly,
and interface of interrupt was kept in sc_intr_iface.
2001-07-31 12:33:11 +00:00
sato
52d89f6cf1
Abort redrawing when screen switch was requested.
...
Set virtual text vram when other one is drawing framebuffer.
2001-07-31 10:50:06 +00:00
sato
387ddeb6f1
change DPRINTF() to VPRINTF() in pwctl_hardpower().
2001-07-31 10:37:49 +00:00
eeh
5bacff5834
Code cleanup and optimization.
2001-07-31 06:58:09 +00:00
eeh
830be13fa2
Dump some enums that make lint unhappy and we never really use anyway.
2001-07-31 06:55:46 +00:00
chs
fb5f7652b6
fix think-o in pmap_kenter_pa().
2001-07-31 05:29:24 +00:00
atatat
124ae5b65c
Add an easy way to dump the message buffer from ddb.
2001-07-31 04:28:16 +00:00
thorpej
35df06a642
Carve off the code that builds a TCP data packet into its own
...
function, and inline it, except when profiling... so we can
profile it.
2001-07-31 02:25:22 +00:00
chs
0d8e804191
fix typo in previous.
2001-07-31 02:17:27 +00:00
ad
aae284be36
Oops, put back the initalization of "done" in mly_thread().
2001-07-31 02:07:14 +00:00
thorpej
938720eea4
Count the number of times we "self-quench" (ip_output() returns
...
ENOBUFS), and don't inline tcp_segsize() if profiling.
2001-07-31 00:57:45 +00:00
ad
5226d11119
Assume that me->lun contains the device number if this event is for a
...
logical device.
2001-07-30 23:49:51 +00:00
ad
2fa020ae0b
- Forget to report events from logical devices.
...
- Cosmetic changes.
2001-07-30 23:46:28 +00:00
ad
12c4049d31
Don't match boards with a PCI class code of `I2O'.
2001-07-30 23:29:08 +00:00
jdolecek
50f76258ac
Check the passed file handle length _before_, not _after_ copyin()
2001-07-30 22:51:06 +00:00
fvdl
02e4c3348c
Check the length of a passed in filehandle to the mount call before
...
doing a copyin. From Ken Ashcraft @ Stanford via Constantine Sapuntzakis.
2001-07-30 22:23:42 +00:00
eeh
8180bfa441
Add missing `error'.
2001-07-30 22:04:08 +00:00
jdolecek
2d5bc65e0b
enable KERNFS, it's used by installation
2001-07-30 21:50:48 +00:00
scw
6e0195e742
Make the set_page_cacheable/set_page_cacheinhibit functions do the
...
right thing on 68030 again.
2001-07-30 21:32:49 +00:00
scw
da3836f00d
Flush the caches in pmap_remove_mapping() when PRM_CFLUSH is specified.
...
Also, flush the ATC for the page in pmap_kenter_pa() after setting up the
mapping. With any luck this last one might just solve the 060 problems I've
been seeing...
2001-07-30 21:25:08 +00:00
jdolecek
b0f8b119a2
fix comment
2001-07-30 20:51:29 +00:00
thorpej
8fc6974449
Oops, make Rx interrupt deferral actually work.
2001-07-30 20:12:10 +00:00
ad
87da05b00f
Note mly(4).
2001-07-30 20:02:58 +00:00
ad
3b1828355b
Add a driver for Mylex AcceleRAID and eXtremeRAID controllers with v6
...
firmware. Based off the FreeBSD driver, and re-worked by tls, erh and I.
2001-07-30 19:59:04 +00:00
jdolecek
b0178f25e3
Move GENERIC_PS2 to GENERIC_PS2TINY, update comments to reflect this config is
...
intended for small memory machines.
Update INSTALL_PS2 appropriately.
2001-07-30 18:24:07 +00:00
jdolecek
3531778254
add MCA stuff, for IBM PS/2
2001-07-30 18:03:54 +00:00
mhitch
1dcdcbf286
The memmap structure contains the memory bitmap returned by the PROM
...
getbitmap() call.
2001-07-30 17:05:51 +00:00
rjs
6b65fea380
Remove unused hpc includes.
2001-07-30 16:23:09 +00:00
rjs
9013c85405
Update from hpcarm to remove iPAQ egpio code.
2001-07-30 16:20:06 +00:00
rjs
51bc7258f8
Update from hpcarm with MCP base definition.
2001-07-30 16:08:42 +00:00
rjs
c79059dd3f
Update from hpcarm to remove iPAQ and Jornada specific #defines.
2001-07-30 15:58:56 +00:00
pooka
fe42be1734
make elf64_copyargs() of type int also per the recent copyargs changes
2001-07-30 14:07:25 +00:00
joda
210e7a63b4
fix pointer/structure mismatch in some dprintf's
2001-07-30 13:10:30 +00:00
rjs
b85ae98e65
Update from hpcarm with MCP register definition.
2001-07-30 12:19:04 +00:00
itojun
39bc63e6b3
raise IFF_UP on SIOCSIFADDR. commented by tv@netbsd, sync with kame
2001-07-30 11:12:58 +00:00
rjs
495d108bd3
Update from hpcarm with cookie change.
2001-07-30 10:55:49 +00:00
rjs
9b65c24aa5
Remove unused LCD definitions.
2001-07-30 10:50:59 +00:00
rjs
1304d2220e
Mirror removal from hpcarm.
2001-07-30 10:48:31 +00:00
rjs
499d1068e8
Update from hpcarm.
2001-07-30 10:46:08 +00:00
rjs
e35b542831
Mirror removal from hpcarm.
2001-07-30 10:33:59 +00:00
rjs
730b1a57ac
Copy from hpcarm.
2001-07-30 10:17:21 +00:00
chs
75b9f41751
adjust the hack to build the SRT*.o files.
2001-07-30 00:10:20 +00:00
chs
690a630673
increase the memory disk size, it needs to be bigger with ELF.
2001-07-30 00:09:08 +00:00
chs
29f6bd03da
use pmap_k* for buffer cache pages.
2001-07-29 23:56:33 +00:00
chs
5ad381c2a0
use pmap_k* in pagemove().
2001-07-29 23:51:40 +00:00
christos
934898bc32
Adjust to the new copyargs() footprint.
2001-07-29 21:28:45 +00:00
christos
b474b9ac65
carry on the copyargs() and exit1() changes from kern_exec.c
2001-07-29 21:28:20 +00:00
christos
781411d393
adjust to the new copyargs footprint and cleanup debugging.
2001-07-29 21:26:07 +00:00
christos
f2a8a907b4
simplify an expression.
2001-07-29 21:24:23 +00:00
christos
3e1e7a68e5
adjust to the new copyargs footprint
2001-07-29 21:22:58 +00:00
christos
e2b51c04af
- make copyargs function return the reason it failed and pass a pointer to
...
the stack, so that it can be modified.
- pass the error code in the exit code in addition to aborting.
- kill the second exit1() call; it does not make any sense.
2001-07-29 21:22:42 +00:00
christos
b92cbe7184
now that we know what the traps mean, print their name in debug mode.
2001-07-29 19:31:41 +00:00
christos
d5dfcf76de
a bit more mach glue.
2001-07-29 19:30:56 +00:00
toshii
9221ef3b13
Make hpcarm kernel build after arm/arm32 file move.
2001-07-29 15:21:33 +00:00
chris
fa4e4d9668
Rework the pmap_release code to not have to walk the ptpt, it now uses a uvm_object to track the allocated vm_pages, this means it can free off the entries in the uvm_object.
...
Testing shows that it's about 5% faster on the make configure step for gmake.
2001-07-29 12:45:27 +00:00
chris
89415a32e2
PR 13581
...
Add empty pmap.h and vmparam.h to make userland happier.
2001-07-29 09:50:07 +00:00
chris
af16732a3a
Fix for PR 13580.
...
Make sysarch include sys/stdint.h so it picks up the a definition of uintptr_t.
2001-07-29 08:37:56 +00:00
itojun
cad488d032
sync gif interface code with latest kame.
...
IFF_RUNNING is clearified. attach/detach logic is more clearner.
the old code mistakenly set IFF_UP by itself, now the behavior is gone.
2001-07-29 05:08:32 +00:00
itojun
c4a687384b
make sure to cleanup software interrupt queues (like ipintrq)
...
on interface detach, otherwise we will have a dangling pointer
from m->m_pkthdr.rcvif.
2001-07-29 03:28:30 +00:00
matt
691dacb39a
This is needed anymore and should have been removed a while ago.
2001-07-29 00:35:41 +00:00
matt
ed87139e40
Remove opt_footbridge from conf.c
...
Use dev/ic/i8253reg.h instead of private timerreg.h
2001-07-29 00:34:44 +00:00
bjh21
1ede42fe57
Add <machine/sysarch.h> to go with sysarch().
2001-07-28 19:14:00 +00:00
bjh21
c5ae075e50
Add a very simple sysarch() implementation so that libarm32 will work.
...
This should go when arm26 uses cpufunc like everyone else.
2001-07-28 19:12:50 +00:00
chris
9f04d8d670
A couple of tidy ups to pmap:
...
pmap_t -> struct pmap * in pmap.c and pmap.h
kernel_pmap -> pmap_kernel() everywhere.
Compiled and booted on riscpc and cats.
2001-07-28 18:12:43 +00:00
chs
e2de9310c3
fix pmap_extract() to handle unmapped kernel addresses.
2001-07-28 17:18:59 +00:00
chris
17ecd4e41a
Update Makefile.arm32 for the newly moved locore.S and genassym.cf
2001-07-28 15:50:40 +00:00
chris
4a126d9937
finish moving common arm32 bits out into arm/arm32.
2001-07-28 15:08:10 +00:00
bjh21
0847de74d2
Add copyright notices. Use MEMC_PHYS_BASE rather than 0x02000000.
2001-07-28 13:49:25 +00:00
bjh21
ddf906b00d
Use ld -N (OMAGIC), since this saves the 32k of RAM (by not putting a gap
...
between text and data) and means that loadfile only needs one backward seek
to load the file rather than two (which is important for gzipped kernels).
2001-07-28 13:48:32 +00:00
chris
27f96e8440
Move the generic arm32 files into arm/arm32 from arm32/arm32, tested kernel builds on cats and riscpc.
2001-07-28 13:28:03 +00:00
chris
9c823196e0
Change -x into -X for linking, it makes traces more meaningful.
2001-07-28 13:24:24 +00:00
tsutsui
6be7c15373
bcopy -> memcpy
2001-07-28 13:21:26 +00:00
tsutsui
88fbdda31f
bcopy -> memcpy
2001-07-28 13:08:34 +00:00
bjh21
f3b9fa04ed
Only declare kernel objects ifdef _KERNEL.
2001-07-28 12:53:06 +00:00
bjh21
ec79dd3942
Add installation glue.
2001-07-28 12:44:54 +00:00
tsutsui
99297e58cb
We no longer have MI ncr(4) driver.
2001-07-28 12:42:34 +00:00
chris
37dc65af43
bzero->memset
2001-07-28 12:29:58 +00:00
chris
338f184d45
Fixup stray interrupt handler's return address.
2001-07-28 12:28:56 +00:00
tsutsui
690c5b1ae3
Enable the Acard UIDE controllers by default.
...
My WDC MDMA-only (non-UDMA) drives did not work on the Acard controllers,
but it turns out that the problem was not Acard specific.
These WDC drives do not work on the ESS ISAPnP wdc port nor on
macppc obio wdc port neither, and another Quantum MDMA-only drive
works fine on the Acard.
These WDC drives work fine on my i386 pciide (which is initialized
by the BIOS), so maybe we have to do something in MI wdc to initialize
such drives properly...
2001-07-28 12:07:11 +00:00
chris
0481f078a0
bzero -> memset
2001-07-28 11:17:15 +00:00
scw
d750508a87
Hook the error interrupt only once, otherwise we'd fail when hooking
...
the interrupt for the 2nd DRAM board where two boards are present.
2001-07-28 08:30:23 +00:00
matt
218b61dcd1
Change clock_t and time_t to more LP64 friendly types.
2001-07-28 07:43:07 +00:00
matt
36dc943f75
Change ARM-ELF to LP64 friendly types.
2001-07-28 07:42:28 +00:00
matt
f47c5bbd3d
Under ELF, change clock_t and time_t to int's (more LP64 friendly).
2001-07-28 05:04:45 +00:00
itojun
888b31fb38
indent fix
2001-07-28 01:13:56 +00:00
pooka
4ec277f9ee
regen
2001-07-28 00:33:43 +00:00
pooka
70cd305a5d
3c556 V.90 MiniPCI modem
2001-07-28 00:33:01 +00:00
bjh21
9139a37393
New arm26 bootloader. Mostly a translation of BBBB into C, using libsa so
...
we get goodies like gzipped kernels for free.
2001-07-27 23:13:49 +00:00
bjh21
0ad24007df
Add assorted stuff that we need in order to shut RISC OS down cleanly.
2001-07-27 23:09:15 +00:00
thorpej
fab087b3a2
Tell the MII layer to advertise PAUSE capability, and configure
...
the chip's PAUSE threshold.
2001-07-27 22:46:20 +00:00
thorpej
7459c35d44
Clean up 1000BASE-SX autonegotiation, and add a way to advertise
...
PAUSE capability.
2001-07-27 22:44:59 +00:00
scw
27ae3aab7c
Blah, yet another nit: s/irq/ipl/
2001-07-27 21:56:10 +00:00
scw
ea00e7cda2
Don't bother trying to initiate a DRAM scrub on startup as it requires
...
frobbing with registers which are marked as "For Test Purposes [only]".
2001-07-27 21:54:07 +00:00
thorpej
9e74a14e1f
Add a sysctl to frob sb_max.
2001-07-27 21:19:09 +00:00
bjh21
d8372315a2
Rudimentary OS_Byte support, and an extra VDU variable.
2001-07-27 21:10:04 +00:00
bjh21
d939fd1e55
Add support for OS_ReadVduVariables, with #defines for the variables that BBBB
...
uses.
2001-07-27 20:49:09 +00:00
scw
c184f03348
Remove Mistakenly Left In comments around some `#ifdef DIAGNOSTIC' tests.
2001-07-27 20:48:58 +00:00
bjh21
a24c2adedf
Limit the heap so as to allow 4 KB of stack, which should be enough for most
...
purposes.
2001-07-27 20:48:20 +00:00
scw
8343a1492f
Forgot to shift the DRAM Bank identifiers by four.
2001-07-27 20:33:35 +00:00
thorpej
59612894e1
Now that M_TRAILINGSPACE() checks buffer writeability properly,
...
we can greatly simplify sbcompress(). Slightly modified from
a similar change in FreeBSD.
2001-07-27 19:27:49 +00:00
scw
f169034d7f
Fix a braino in the check for a jumper across pins 1-2 of J1 (mvme1[67]7).
...
Spotted by Chuck Silvers.
2001-07-27 18:58:23 +00:00
scw
9ac6178585
memc attaches at mainbus now.
2001-07-27 18:40:27 +00:00
scw
7e2f2acb8e
Flesh out the memory controller driver (at least for the MCECC chip)
...
and attach it at mainbus since it depends both PCCChip2 and VMEChip2
(or the VMEChip2 interrupter) starting first.
We can finally enable, detect and log DRAM ECC errors.
(The PROM disabled ECC checks by default)
2001-07-27 18:38:54 +00:00
thorpej
4333749c7a
Use the bit-swapped OUI for the 5221. (Have I mentioned that I really
...
don't like how the current MII_OUI() works?)
2001-07-27 17:58:20 +00:00
thorpej
773c261d65
Add a 3Com 3c905B internal PHY.
2001-07-27 17:55:34 +00:00
thorpej
3d3c5fa78c
Regen; added a 3Com 3c905B internal PHY made by Broadcom.
2001-07-27 17:55:07 +00:00
thorpej
4063cb411b
Fixup some Broadcom entries, add an entry for Broadcom PHY that
...
is built-in to some 3Com 3c905B cards.
2001-07-27 17:54:40 +00:00
tsutsui
1f1c7b96d8
Fix some comments and remove an unused define. Partially from OpenBSD.
2001-07-27 16:16:34 +00:00
tsutsui
aa9c31f0c3
Pull up some changes from OpenBSD's iha.c rev 1.6:
...
- rename tul_* functions/variables iha_* for consistency
- disable updating EEPROM routine, which does not work anyway
- make iha_rate_tbl[] const
2001-07-27 15:51:14 +00:00
tsutsui
5a7161cf2a
Pull up some changes from OpenBSD's iha.c rev 1.5:
...
- minor code cleanups
- rename some functions for better consistensy/clarity
- consolidate extended message generation into new function
- a couple of minor code clarifications to eliminate extra return
statements and make absolutely sure actscb is NULL during a reselect
2001-07-27 15:10:56 +00:00
ragge
f5abeb5b4b
Set MAXPHYS to 64k instead of 63k.
2001-07-27 12:58:21 +00:00
ragge
39a7595b28
Calculation of unibus map register size was wrong.
2001-07-27 12:57:20 +00:00
itojun
182b1e5191
do not #ifdef KEY_DEBUG in header. sync with kame
2001-07-27 04:48:13 +00:00
oster
99020323e6
Nuke the 5 NULL parameters from rf_DoAccess(). Observe that 4 of
...
the variables are passed directly to rf_AllocRaidAccDesc(), and the 5th
isn't even used. Hunt them down and nuke them too.
2001-07-27 03:30:07 +00:00
thorpej
fe97433fcd
All CORKSCREWs have MII.
2001-07-27 02:33:34 +00:00
thorpej
f532a911f0
Chipset is CORKSCREW for the 3c515.
2001-07-27 02:13:26 +00:00
thorpej
f9616582f4
Regen -- added 3c515 for the ep driver.
2001-07-27 02:12:57 +00:00
thorpej
d3ee9bd16e
Add the 3c515 for the "ep" driver.
2001-07-27 02:12:19 +00:00
itojun
66c75f4967
do not check in_dstaddr on in_{add,scrub}prefix, otherwise linklocal
...
address manipulation could choke. sync with kame
2001-07-27 02:04:08 +00:00
lukem
3cd4afc9e3
- multiple include protection
...
- pull in <ufs/ufs/dinode.h> for ufs_daddr_t
- mark a few fields as being "UNUSED" (because they are)
2001-07-27 01:28:06 +00:00
lukem
c358141302
multiple include protection
2001-07-27 01:24:54 +00:00
bjh21
ea2ae3689c
Twiddle.
2001-07-27 01:03:34 +00:00
bjh21
f68048b4eb
Fix bug in xosgbpb_read: Check the correct register when deciding whether to
...
store result.
2001-07-27 01:02:44 +00:00
bjh21
5080e94490
OS_Args only really has two cases (reading and setting values). Use a generic
...
assembler veneer for each of these, and implement the calls to read and set
specific values as macros.
2001-07-27 00:37:38 +00:00
thorpej
0fb6b9a8f8
Rework the interrupt code, shaving some cycles off in the process.
...
Rather than an "iointr" routine that decomposes a vector into an
IRQ, we maintain a vector table directly, hooking up each "iointr"
routine at the correct vector. This also allows us to hook device
interrupts up to specific vectors (c.f. Jensen).
We can shave even more cycles off, here, and I will, but it requires
some changes to the alpha_shared_intr stuff.
2001-07-27 00:25:18 +00:00
bjh21
2256fe3c2a
Clear the BSS at startup, since objdump --outputformat=binary seems not to
...
output the BSS.
2001-07-27 00:21:18 +00:00
bjh21
218ce892b1
Fix up a left-over SWINE in os_writec.
2001-07-27 00:00:25 +00:00
wiz
79b57114c9
auxilary -> auxiliary
2001-07-26 23:07:57 +00:00
wiz
e11d04474c
issueing -> issuing
2001-07-26 22:55:12 +00:00
wiz
7b3241693f
aquired -> acquired, issueing -> issuing
2001-07-26 22:54:34 +00:00
wiz
035b63a542
auxilliary -> auxiliary
2001-07-26 22:53:13 +00:00
wiz
41df6b74a9
partiton -> partition
2001-07-26 22:47:34 +00:00
bjh21
7a181053ec
Makefile for building standalone programs to run under RISC OS.
...
Not used yet, but it will be.
2001-07-26 22:16:26 +00:00
bjh21
9315195522
Simple library to interface stand-alone programs to RISC OS.
...
This comes in two parts: riscoscalls.[Sh] provide definitions, and thin
wrappers around RISC OS SWIs (in the style of OsLib) for the use of both the
rest of the library and client code. The rest of the library provides a
compatibility layer for libsa.
2001-07-26 22:11:08 +00:00
thorpej
fb384a3827
Strictly cosmetic changes.
2001-07-26 22:08:34 +00:00
thorpej
52654926a4
Slight cosmetic change.
2001-07-26 21:47:04 +00:00
mjl
ab94842af6
Add rnd entropy gathering.
2001-07-26 21:31:45 +00:00
jdolecek
bd21ec5d2e
lfs_writeseg(): make el_size a size_t (cosmetic only, no functional change)
2001-07-26 20:20:15 +00:00
bouyer
8e2205572d
Better support for newer ALI M5229 chipsets: support Ultra/66 for rev >= 0xC2,
...
Ultra/100 for revs >= 0xC4.
The the generic PCIIDE interupt routine for chipsets rev >= 0xC2 in native
mode, it seems that newer chipsets don't have the ACER_CHIDS register :(
From Linux and FreeBSD.
2001-07-26 20:02:21 +00:00
jdolecek
528ab39cef
make local variable 'len' in wi_set_nwkey() size_t (hence unsigned)
...
this one is merely cosmetic, no functional change
2001-07-26 19:46:01 +00:00
jdolecek
b834e97632
make local variable 'len' in awi_wep_setnkey() size_t (hence unsigned)
...
this one is merely cosmetic, no functional change
2001-07-26 19:40:59 +00:00
thorpej
fcc2e4e5f6
Use pool_cache_*() for mbufs and clusters. While we don't use the
...
ctor/dtor feature, it's still faster to allocate from the cache groups
than it is from the pool (cache groups are analogous to "magazines"
in the Solaris SLAB allocator).
2001-07-26 19:05:04 +00:00
thorpej
2a6aa3926d
Add an M_READONLY() macro, which evaluates to true if the mbuf's
...
data area is not to be written to. This is the case for mbufs with
external storage which is either a non-cluster or a cluster referenced
by multiple mbufs.
Change M_LEADINGSPACE() and M_TRAILINGSPACE() to use M_READONLY(),
rather than their own testing for M_EXT. Previously, M_LEADINGSPACE()
treated all M_EXT mbufs as read-only (which causes an extra mbuf to
be needlessly allocated when sending large TCP packets), and
M_TRAILINGSPACE() previously did not treat any external storage as
read-only (could lead to data corruption of external storage buffers!).
2001-07-26 17:24:59 +00:00
tsutsui
5309850228
Fix timeout overflow caused by "scsictl format" on machines HZ==100.
2001-07-26 15:51:04 +00:00
drochner
d2ef97080c
make sure clockframe is __packed
2001-07-26 15:46:58 +00:00
drochner
b841a8e7cc
pmap_changebit() requires pv tracking, so replace it by manual PTE construction
2001-07-26 15:45:51 +00:00
drochner
688026c828
use pmap_kenter/remove in pagemove() to make it work with memory mapped
...
by pmap_kenter_pa() (ie buffer pages)
2001-07-26 15:43:39 +00:00
drochner
2286fed799
incorporate patch from Chuck Silvers which basically reduces
...
pmap_kenter_pa() / pmap_kremove() to the basics - ie, removes pv tracking
2001-07-26 15:41:14 +00:00
ad
4950b7867f
Map both memory and IO space, but prefer using memory space.
2001-07-26 15:35:20 +00:00
wiz
30b2bf87ed
Various typos in comments (neccessary, sceme, choise, ...).
2001-07-26 15:05:07 +00:00
jdolecek
875b784599
pipe_create(): explicitly zero whole memory returned from pool_get(), instead
...
of some selective pieces. This fixes problem with NEW_PIPE in kernels
with DEBUG option, reported via e-mail by Chuck Silvers.
sys_pipe(): g/c fdp, provide it at the chunk of FreeBSD code where it's used
2001-07-26 14:14:28 +00:00
ad
3b6c996d19
- Stop the system drive status check when re-configuring in order to
...
avoid a issuing a possibly spurious warning.
- Squash some nits.
2001-07-26 12:38:03 +00:00
ad
7a92f3b65a
Don't map I/O space if we have already have a good memory mapping.
2001-07-26 12:36:16 +00:00
tsubai
8ab2c794fd
Make this compile w/o -DMIPS3.
2001-07-26 11:46:44 +00:00
tsubai
071e4602d9
Avoid panic when polling is used.
2001-07-26 11:44:06 +00:00
tsubai
1b3871ef0f
Change description of handler-ID == 195.
2001-07-26 11:36:40 +00:00
tsubai
bacce8fb4c
Fix a warning when compiled w/o DDB.
2001-07-26 11:23:37 +00:00
lukem
714cac851d
if printing the value of fs_clean, say 'fs_clean' instead of 'fs_flags' ...
2001-07-26 07:58:55 +00:00
lukem
fcf7f6cd06
fix spelo
2001-07-26 07:55:54 +00:00
itojun
dc1d7df811
do not initialize rmx_mtu on RTM_ADD.
...
on gateway change, copy rmx_mtu from gateway only under the following condition:
- current MTU is not locked
- current MTU was discovered via PMTUD
XXX if gateway has MTU == 0, current MTU is set to 0 and we are going to
rediscover PMTU again. is it good or bad?
2001-07-26 05:47:37 +00:00
minoura
6ec544c64d
implement pmap_k{enter_pa,remove}() correctly.
...
other misc cleanup.
patch written by chs; equivalent to hp300 pmap.c:1.95.
2001-07-26 02:21:58 +00:00
itojun
fd5e7077a3
allocate ipsec policy buffer attached to pcb in in*_pcballoc, before
...
giving anyone accesses to pcb (do not reveal an inconsistent ones).
sync with kame
2001-07-25 23:28:02 +00:00
thorpej
ae69446f0f
Back out previous -- christos needs to update his lint(1).
2001-07-25 23:05:04 +00:00
christos
8228035453
fix non-portable bitmap warning.
2001-07-25 22:41:10 +00:00
thorpej
4a416b823f
Fix 1000BASE-X duplex negotiation. That'll teach me to read the
...
manual more carefully next time.
2001-07-25 22:00:43 +00:00
bouyer
21bcee4ec1
Return() if piomode == -1 (i.e. we have no drives), avoid reading an array with
...
a negative offset.
Thanks to Andrew Cagney for pointing this out.
2001-07-25 20:26:33 +00:00
tsutsui
9d5b24f779
Apply pmap_k{enter_pa,remove} patches provided by Chuck Silvers.
2001-07-25 15:59:48 +00:00
tsutsui
6fa8cc9467
Sync with hp300/vm_machdep.c rev 1.60:
...
> use pmap_k* for pagemove().
> call pmap_remove() explicitly in vunmapbuf() in preparation for
> upcoming UVM changes.
2001-07-25 15:56:30 +00:00
tsutsui
5db9f9aa7c
Cosmetics. (some KNF, typo etc.)
2001-07-25 15:48:09 +00:00
thorpej
799abef5f4
Jumbo frames do not currently work (chip goes catatonic -- silicon bug?),
...
so don't set the capability.
2001-07-25 15:44:48 +00:00
drochner
23204e4b5f
document 3c90xb support
...
use default settings which make more sense (for me)
2001-07-25 12:51:44 +00:00
drochner
a3cdd518ad
make it compile after i82557reg.h changes
2001-07-25 12:47:34 +00:00
aymeric
16d48eec82
These programs are for the host, not for the target, to execute.
2001-07-25 12:32:48 +00:00
kanaoka
be5153a923
- Increase Early TX threshold if underrun occurred.
2001-07-25 09:57:31 +00:00
itojun
a21ce80cd6
ifindex2ifnet could return NULL if if_detach() is used (pcmcia card
...
removal and such).
2001-07-25 09:23:46 +00:00
itojun
efe956a93f
do not copy rmx_mtu on RTM_ADD/RESOLVE. the fragment was mistakenly
...
introduced on 1.25, from other *bsd via kame. from thorpej
2001-07-25 07:13:44 +00:00
itojun
0cd424b3ce
ifidex2ifnet could contain NULL after if_detach(). sync with kame
2001-07-25 06:59:51 +00:00
itojun
49f2e6958f
g/c #if 0'ed fragment. sync with kame.
2001-07-25 06:05:16 +00:00
eeh
7950c7dffd
Don't match ebus nodes not called "ebus" like the ones on hme cards.
2001-07-25 03:49:54 +00:00
thorpej
a20e50f72a
Duh, braino in last -- only kick the interface if we actually set
...
the MTU.
2001-07-25 03:18:46 +00:00