Commit Graph

50845 Commits

Author SHA1 Message Date
jym
753d396585 Fix typos in comments. 2010-02-09 22:51:13 +00:00
tonio
88a63eed07 Fix typo in comment 2010-02-09 22:44:43 +00:00
tonio
b8d0856cd9 Add TEMPer and TERMPerHUM driver 2010-02-09 22:38:32 +00:00
phx
3055d8c0e9 Moved the macros amiga_cpu_sync() and amiga_membarrier() from amiga/device.h
to the MD include/cpu.h.
Also make sure that grf_cvreg.h includes cpu.h as it is needed by Xamiga
in xsrc/xfree/xc/programs/Xserver/hw/netbsd/amiga/s3/amigaCV.h.
2010-02-09 18:13:09 +00:00
cnst
1c23afa3cb New aibs(4) driver for ASUSTeK AI Booster (ACPI ATK0110) hardware monitor
with limit support.

        http://thread.gmane.org/gmane.os.netbsd.devel.kernel/35654

Reviewed by <pgoyette>, <jruoho> and <tech-kern>.
2010-02-09 03:19:50 +00:00
pgoyette
b6f86abdfe Add flags to all instances of lm(4), add a reference to man page 2010-02-08 21:45:31 +00:00
hubertf
fed6262c88 When a password is set for the bootloader ("installboot -o password=..."),
it currently complains about an unknown command and prints a usage if the
password is entered wrong:

        ...
        Choose an option; RETURN for default; SPACE to stop countdown.
        Option 1 will be chosen in 0 seconds.
        Password: *
        Password: *
        Password: *
        unknown command
        commands are:
        boot [xdNx:][filename] [-12acdqsvxz]
             (ex. "hd0a:netbsd.old -s"
        ls [path]
        dev xd[N[x]]:
        consdev {pc|com[0123]|com[0123]kbd|auto}
        modules {enabled|disabled}
        load {path_to_module}
        multiboot [xdNx:][filename] [<args>]
        help|?
        quit

        Choose an option; RETURN for default; SPACE to stop countdown.
        Option 1 will be chosen in 0 seconds.
        ...

This is confusing, plus someone may use it to determine bits of
information about the system. What should happen instead is that the user
is informed that the password is wrong:

        ...
        Choose an option; RETURN for default; SPACE to stop countdown.
        Option 1 will be chosen in 0 seconds.
        Password: ****
        Password: ****
        Password: ****
        Wrong password.

        Choose an option; RETURN for default; SPACE to stop countdown.
        ...

Implement the latter behaviour.
2010-02-08 21:25:32 +00:00
joerg
d621e29eca Remove separate mb_map. The nmbclusters is computed at boot time based
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.

The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.
2010-02-08 19:02:25 +00:00
skrll
0961cec7ef Add USERCONF as per all other GENERIC kernels 2010-02-08 08:49:57 +00:00
he
edfa9a9fcd Remove a now-unused variable declaration. 2010-02-07 12:52:04 +00:00
pgoyette
7a917b7c86 Enable acpismbus(4) for ALL kernel, per discussion on tech-kern 2010-02-06 21:27:51 +00:00
pgoyette
c26849053d Add acpismbus enries - commented out! 2010-02-06 20:12:32 +00:00
bouyer
66e2cc3a3e Enlarge temporary buffer, so that event counter's name is not truncated
for ioapic interrupts.
2010-02-06 17:48:54 +00:00
uebayasi
32afd183da Typo in a wchan string. 2010-02-06 03:06:42 +00:00
mrg
0de49cb624 - properly map the schizo interrupt registers, so we can use the normal
virtual mappings to access them.
- with the above fxied, kill SCHIZO_BUS_SPACE_BROKEN, and introduce
  an options CHEETAH for now, that disables the SPITFIRE code in locore.
- merge schizo_init() into schizo_attach() and clean up the softc a bit.


with this we are only one more step away from GENERIC booting on USIII
machines.
2010-02-06 00:23:30 +00:00
snj
cbd4507895 Include locators.h for SSIOCF_ADDR_DEFAULT. 2010-02-05 21:10:58 +00:00
phx
ae95aa4ad1 Added two new macros to device.h:
amiga_membarrier() enforces a reorder protection on memory read/writes.
amiga_cpu_sync() makes sure the instruction pipelines are flushed.
Both macros may be used in all amiga device drivers for compatibility with
amigappc. For the start I fixed some SCSI drivers.
cbiiisc and ahsc were tested and seem to work really fast with DMA now.
Some stability problems with amigappc remain nevertheless (spontaneous
kernel DSI traps with high CPU/SCSI load).
2010-02-05 12:13:36 +00:00
phx
a76258b750 dma_cachectl() flushes the data cache for Amiga SCSI drivers.
Drop into the debugger after oea_dumpsys(), which doesn't dump anything ATM.
2010-02-05 12:05:25 +00:00
martin
0507e89f27 Avoid taking a (not yet) initialized mutex early during bootstrap. 2010-02-05 12:04:10 +00:00
roy
98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
phx
181451b104 Enable all devices which can be compiled.
(Tested, or even working, are only few of them.)
2010-02-03 14:03:47 +00:00
phx
37e984601c Ensure reorder protection for amigappc in all bus space functions.
The ne(4) driver (XSurf2), which is the only bus_space device I got,
works now.
2010-02-03 13:56:53 +00:00
wiz
07f775da9b Add missing parentheses. Found by cppcheck, reported by
Henning Petersen in PR 42728.
2010-02-03 13:51:00 +00:00
wiz
92479c29b6 Remove extra parenthesis. Found by cppcheck, reported by
Henning Petersen in PR 42730.
2010-02-03 13:48:17 +00:00
wiz
4222db0cd6 Remove extra parenthesis. Found by cppcheck, reported by
Henning Petersen in PR 42729.
2010-02-03 13:47:57 +00:00
phx
c41b967aea We need to provide eclockfreq, just for the aucc driver. The amigappc uses
mftb timecounters.
2010-02-02 20:56:13 +00:00
skrll
3eb360a13a Typo in comment. 2010-02-02 20:40:07 +00:00
phx
e8c5c35803 Make it compile with all devices from amiga/dev. 2010-02-02 19:16:57 +00:00
phx
49b984df5c Rewrote the "amiga" PIC from scratch. Interrupts are based on IPL 1-6 now
and no longer on IRQ 0-13.
Fixed interrupt levels in amigappc_install_handlers() (IPL_SOFTxxx was very
bad!).
Compilation with all (most?) amiga devices was tested and fixed.
Some smaller fixes.
Status:
  With Cybervision64 and A3000 SBIC SCSI (with DMA disabled) the system
  reaches multiuser!
Lots of problems left...
2010-02-02 19:15:33 +00:00
phx
6105a09f9d IOBlix files were missing. 2010-02-02 19:07:05 +00:00
phx
c2dfc3161a Fix compilation warnings and errors with amigappc. 2010-02-02 19:03:31 +00:00
phx
507a638d7f Include majors.amigappc instead of majors.amiga. 2010-02-02 12:47:51 +00:00
mrg
acffd0b4ae - split sp_tlb_flush_pte() and switchtoctx() into sp_tlb_flush_pte_us()/
sp_tlb_flush_pte_usiii() and switchtoctx_us()/switchtoctx_usiii() and
  implement the latter while i'm here.  it works ... sometimes i think,
  but also sometimes panics/hangs.
- fix a comment in sparc64_ipi_flush_pte_usiii()
2010-02-02 04:28:55 +00:00
mrg
e063f65e04 for now, reduce a few #ifdef SPITFIRE cases by introducing a new
ASI_DCACHE_TAG_OR_INV that is either ASI_DCACHE_{TAG,_INVALIDATE}.

increase the common code in cache_flush_phys().
2010-02-02 03:07:06 +00:00
mrg
9ba8935c64 - sp_tlb_flush_all() becomes sp_tlb_flush_all_us() and sp_tlb_flush_all_usiii()
- sparc64_ipi_flush_pte() becomes sparc64_ipi_flush_pte_us() and
  sparc64_ipi_flush_pte_usiii()
- add some commented out code to disable interrupts and raise the traplevel
  in sparc64_ipi_flush_pte_usiii()
- cache_flush_phys() was missing a little of code in the cheetah case
2010-02-01 07:01:40 +00:00
mrg
0d041f812e for USIII, use the new "tlb demap all" operation in sp_tlb_flush_all() 2010-02-01 06:26:15 +00:00
mrg
c3dff9108b add some macros to check cpu type:
GETVER_CPU_IMPL()
	CPU_IS_JALAPENO()
	CPU_IS_USIII_UP()
and use them in a couple places to choose the right method/index
2010-02-01 05:00:59 +00:00
mrg
ba65e91001 remove unused icache_flush_page() implementation. 2010-02-01 03:43:27 +00:00
mrg
ee154fc467 - add a PDB_CTX_FLUSHALL debug type to pmap.c, and also log the cpu_number()
in a bunch more cases

- make sparc64_ipi_halt_thiscpu() and sparc64_ipi_pause_thiscpu() return void,
  their callers never checked anyway.

- remove prototypes for sparc64_ipi_flush_ctx() and sparc64_ipi_flush_all(),
  there are no such functions
2010-02-01 02:42:33 +00:00
phx
0d233c805b Fixed for amigappc by executing eieio after writing to a vga register. 2010-01-31 19:56:19 +00:00
jruoho
084261a156 Remove ACPICA_PEDANTIC. 2010-01-31 12:20:22 +00:00
jruoho
a11a4a9023 Remove ACPICA_PEDANTIC. Appears to be no longer in use. 2010-01-31 12:14:45 +00:00
mlelstv
9c35c3d3a7 Release buffer in case a receive failed. 2010-01-31 11:39:55 +00:00
jruoho
532fa6e528 No more ACPI_ACAD_DEBUG. 2010-01-31 11:19:40 +00:00
hubertf
af120bb199 Replace more printfs with aprint_normal / aprint_verbose
Makes "boot -z" go mostly silent for me.
2010-01-31 00:43:37 +00:00
phx
de19fe45f2 Fixed compiler warnings when CV_INT_NUM == 2 or CV64CONSOLE is not defined. 2010-01-30 16:49:14 +00:00
phx
0f34e84a7a Do not crash when ite wasn't configured to be console. 2010-01-30 16:47:05 +00:00
phx
7a2724aa59 Define DCIAS() for amigappc. 2010-01-29 19:56:41 +00:00
mrg
d06de812e8 don't set ksi_errno here. no other MD code does, and one
of the pthread tests demands it.
2010-01-29 05:17:36 +00:00
mrg
801fc55e41 make fpu_mtx visible only ifdef _KERNEL. 2010-01-29 05:14:11 +00:00