summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Remove an accidentally forgotten #ifdef. This could cause depletiongrog2001-09-041-2/+0
| | | | of mutexes if a lot of plexes are created and destroyed.
* MFS: change name of sysctl to something more diplomatic.julian2001-09-041-9/+9
|
* Kill init_t type, and minor white space changes to match original -stable ↵imp2001-09-041-4/+1
| | | | version
* Add support for changing the way that ToPIC csc interrupts are routed.imp2001-09-042-4/+42
| | | | | | | | | # Note: The ToPIC 100 and the ToPIC 97 datasheets are in disagreement # as to if this bit is supposed to be set or cleared to enable INTA routing # so I made my best guess. Also, comments about the various chipsets, including some grumpy ones about how vague the O2micro datasheets are.
* Move to using a chip function + function pointers to deal with theimp2001-09-045-159/+634
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function and csc interrupt routing path (eg, ISA or PCI) so that we can more easily switch between the two. When we don't have a card ISR, put the function interrupt into ISA mode. This effectively masks the interrupt since it happens once, and not again until we have an ISR. This should help hangs, and might help people that unwisely update the kernel w/o updating pccardd. This is done at mapirq time. Force CL-PD6729/30 to use ISA interrupt routing and maybe even detect the number of pccard slots properly (this is still WIP). We aren't going to support PCI interrupts for this release. A future release should support them, however. Shibata-san's 3.3V fixes are not included. Add a hack which should, in i386, rewrite IRQ 0 cardbus bridges to be IRQ 255, which should cause interrupts to be routed. This is mostly untested since my one tester disappeared after reporting nothing changed. Implement, but do not use, a power method called cardbus. It looked like a great way to get around the 3.3V problem, but it seems that you can only use it to power cardbus cards (I get no CIS when I enable it, so maybe we're programming things bogusly). GC the intr and argp stuff from the slot database. Improve the ToPIC support with the power hacks that Nakagawa-san published in FreeBSD Press and that Hiroyuki Aizu-san ported to -stable. The ToPIC hacks were for 3.3V support in ToPIC 100, but it looks like the '97 also has identical registers, so use them too. Add some #defines for the cardbus power stuff. Finally implement making CSC on the Ricoh chips ISA or PCI. This will allow polling mode to work on vaios, I think. Add some minor debugging. This should likely be cleaned up or put behing a bootverbose. Some of this work, and earlier work, was influanced by Chiharu Shibata-san's power handing patches posted to bsd-nomads:15866. MFC: Soon, if possible.
* We should not pass the size of the memory to bus_alloc_resource().non2001-09-044-4/+4
| | | | | | We should use 1 to request default iomem. Pointed-out-by: imp
* Values for the Toshiba ToPIC's Function Control Register.imp2001-09-041-0/+6
| | | | | These were lifted from Nakagawa-san's article in FreeBSD Press, as well as posts from hiroyuki Aizo-san and Chiharu Shibata-san.
* Add rwindow.c, forgotten earlier.jake2001-09-041-0/+1
|
* Make this compile.jake2001-09-041-0/+3
|
* Remove some stale definitions and update for new assembler code.jake2001-09-031-56/+28
|
* Add ktr traces to copy{in,out} and cpu_switch.jake2001-09-034-6/+198
| | | | | | Context switch the cwp value. The register usage in cpu_switch will be updated shortly to better reflect the fact that the current window may change.
* Add comments following what other architectures have.jake2001-09-031-1/+36
| | | | | Fiddle the register values in the trapframe so children returning from fork() return 0 (and success).
* Change tf_arg to uintptr_t from void * to reflect the fact thatjake2001-09-033-23/+10
| | | | | | non-pointer values may be passed in it. Add appropriate casts. The interrupt type is now passed in tf_arg instead tf_type.
* Implement a slightly different window spill/fill algorithm for dealingjake2001-09-036-1514/+2354
| | | | | | | | | | | | | | | | | | | | | with user windows in kernel mode. We split the windows using %otherwin, but instead of spilling user window directly to the pcb, we attempt to spill to user space. If this fails because a stack page is not resident (or the stack is smashed), the fault handler at tl 2 will detect the situation and resume at tl 1 again where recovery code can spill to the pcb. Any windows that have been saved to the pcb will be copied out to the user stack on return from kernel mode. Add a first stab at 32 bit window handling. This uses much of the same recovery code as above because the alignment of the stack pointer is used to detect 32 bit code. Attempting to spill a 32 bit window to a 64 bit stack, or vice versa, will cause an alignment fault. The recovery code then changes the window state to vector to a 32 bit spill/fill handler and retries the faulting instruction. Add ktr traces in useful places during trap processing. Adjust comments to reflect new code and add many more.
* Move the alternate global register stack to struct globaldata.jake2001-09-032-0/+12
|
* Add ktr traces.jake2001-09-031-0/+8
|
* Implement pv_bit_count which is used by pmap_ts_referenced.jake2001-09-036-253/+392
| | | | | | | | | | | | | | | | | | | | | | | Remove the modified tte bit and add a softwrite bit. Mappings are only writeable if they have been written to, thus in general modify just duplicates the write bit. The softwrite bit makes it easier to distinguish mappings which should be writeable but are not yet modified. Move the exec bit down one, it was being sign extended when used as an immediate operand. Use the lock bit to mean tsb page and remove the tsb bit. These are the only form of locked (tsb) entries we support and we need to conserve bits where possible. Implement pmap_copy_page and pmap_is_modified and friends. Detect mappings that are being being upgraded from read-only to read-write due to copy-on-write and update the write bit appropriately. Make trap_mmu_fault do the right thing for protection faults, which is necessary to implement copy on write correctly. Also handle a bunch more userland trap types and add ktr traces.
* Implement signals.jake2001-09-035-59/+278
|
* Move %ver definitions from pstate.h to ver.h. Add definitions for normaljake2001-09-032-26/+67
| | | | kernel pstate values, which include a memory store order override.
* Add simple macros for tracing in assembler files. There are quitejake2001-09-031-0/+87
| | | | | a few places where we cannot even call a function, and these have proven to be very useful debugging tools for such situations.
* Use the correct copyrights. Note where most of this came from.jake2001-09-039-58/+135
| | | | Requested by: obrien
* Bump UPAGES to 4. The pcb can be rather large.jake2001-09-031-1/+1
|
* mtx_savecrit is a pil level, not a pstate value, thus mtx_intr_enablejake2001-09-031-1/+1
| | | | was not doing its thing.
* Add a flushw() macro.jake2001-09-031-0/+4
|
* Add atomic_load and store functions without membars, fwiw.jake2001-09-031-5/+24
|
* The definition for ASI_IMMU_TAG_TARGET_REG was wrong. Sort.jake2001-09-031-12/+13
|
* Allow disabling of "arp moved" messages.alfred2001-09-031-6/+12
| | | | Submitted by: Stephen Hurd <deuce@lordlegacy.org>
* I really hope this is the right answer.julian2001-09-031-1/+3
| | | | | call ip_input directly but take the offset off the packet first if it's an IPV4 packet encapsulated.
* Call ip_input() instead of ipip_input()julian2001-09-031-1/+8
| | | | | when decoding encapsulated ipv4 packets. (allows line to compile again)
* One caller of rip_input failed to be converted in the last commit.julian2001-09-031-1/+1
|
* Patches from Keiichi SHIMA <keiichi@iij.ad.jp>julian2001-09-0323-75/+70
| | | | | | to make ip use the standard protosw structure again. Obtained from: Well, KAME I guess.
* Add a working version of setjmp/longjmp.dfr2001-09-034-27/+791
| | | | Obtained from: Intel's EFI toolkit.
* Add a new field, id_config_attr to the struct isa_device.yokota2001-09-033-1/+14
| | | | | It will be later used to store some flags to control PnP device configurations.
* Add recognition for ToPIC95Bimp2001-09-031-0/+3
|
* Since we're cross compiling from x86, ignore the x86 CPUTYPE by default.peter2001-09-031-0/+1
|
* Sigh. There are actually two ioctls ranges that need to be watched on thescottl2001-09-031-1/+1
| | | | linux side. This will all be over soon...
* Attach to a CD device even when the SCSI status is 'busy'.ken2001-09-031-0/+10
| | | | | Reported by: Thomas Quinot <thomas@cuivre.fr.eu.org> MFC after: 3 weeks
* Dont conflict with sysctl debug.mddebugpeter2001-09-031-1/+1
|
* Unindent a if (1) { that was left behind in the last commit.peter2001-09-032-92/+88
| | | | (commits were seperated to not obscure the real change)
* Argh. Make the ia64 kernel work in all situations. For some reason,peter2001-09-032-8/+6
| | | | | | | and I still dont know why, this was not failing on the non-kse kernel. It certainly should have since things were using linker_kernel_file unconditionally. This has highlighted a different problem though that means that trying to do a kldload on a non-dynamic kernel will implode.
* Fix the argument specifier for the PnP BIOS function 2yokota2001-09-032-2/+2
| | | | | | | (PNP_SET_DEVNODE). The second argument is not a segment:offset pointer, but a 16 bit short. MFC after: 4 weeks
* Match the declaration in net/netisr.h.obrien2001-09-031-1/+1
| | | | Submitted by: gcc 3.0.1
* Because we now store SCCLUN capabilities in firmware attributes, getmjacob2001-09-031-16/+19
| | | | | | rid of the silly test of isp_maxluns > 16 and use the attibutes directly. MFC after: 4 weeks
* Clarify issues about whether we have SCCLUN (65535 luns) or non-SCCLUN (16mjacob2001-09-031-31/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | luns) firmware for the Fibre Channel cards. We used to assume that if we didn't download firmware, we couldn't know what the firmware capability with respect to SCCLUNs is- and it's important because the lun field changes in the request queue entry based upon which firmware it is. At any rate, we *do* get back firmware attributes in mailbox register 6 when we do ABOUT FIRMWARE for all 2200/2300 cards- and for 2100 cards with at least 1.17.0 firmware. So- we now assume non-SCCLUN behaviour for 2100 cards with firmware < 1.17.0- and we check the firmware attributes for other cards (loaded firmware or not). This also allows us to get rid of the crappy test of isp_maxluns > 16- we simply can check firmware attributes for SCCLUN behaviour. This required an 'oops' fix to the outgoing mailbox count field for ABOUT FIRMWARE for FC cards. Also- while here, hardwire firmware revisions for loaded code for SBus cards. Apparently the 1.35 or 1.37 f/w we've been loading into isp1000 just doesn't report firmware revisions out to mailbox regs 1, 2 and 3 like everyone else. Grumble. Not that this fix hardly matters for FreeBSD. MFC after: 4 weeks
* Add some more firmware revision macros. Add firmware attributes fieldmjacob2001-09-031-1/+7
| | | | | to fcparam structure. MFC after: 4 weeks
* Return updated blocksize from setblocksize function.orion2001-09-031-1/+1
|
* Fix return value of cs4281chan_setblocksize.orion2001-09-031-1/+1
|
* Fix return value of svchan_setblocksize.orion2001-09-031-6/+18
| | | | Expand probing range.
* Fix return value of setblocksize functions. Recording is interspersedorion2001-09-032-2/+2
| | | | with silent intervals otherwise.
* + Blah, there was nothing wrong in rev 1.1 talking about the i386/NOTES.obrien2001-09-021-4/+11
| | | | | | I should have diff'ed the header with the Alpha GENERIC. + fix style nit + turn on NO_MODULES for now.
OpenPOWER on IntegriCloud