simonb
9853da3d35
Remove an unused variable.
2003-07-19 08:20:22 +00:00
lukem
457546793c
change multiple include protection #define to match filename
2003-07-19 04:52:18 +00:00
tsutsui
7d2ff25d49
Rename clockattach() to todr_attach().
2003-07-19 02:39:27 +00:00
tsutsui
5d2194fdc0
Rename todclock_config() to todr_attach().
2003-07-19 02:25:21 +00:00
thorpej
96ea5b9ac4
Rename clock_rtc_config() to todr_attach().
2003-07-18 21:41:22 +00:00
thorpej
91b8f572a8
Move the prototype of clock_rtc_config() into <dev/clock_subr.h>.
2003-07-18 19:20:55 +00:00
tls
dacf9875c8
Allow redefiniton of KERNBASE. Because the type of this constant is
...
different for locore.S and the rest of the kernel, if you redefine
it from the default value, you must also define KERNBASE_LOCORE -- this
is ugly, but so is having the same constant with two different types
depending where in the kernel it's used...
2003-07-18 17:33:05 +00:00
simonb
460c3dca02
Reflect reality a little better.
2003-07-18 05:18:19 +00:00
matt
6783111f9f
Elimindate MD setrunqueue/remrunqueue (which were out-of-date compared to
...
the canonical versions in kern_synch.c). Define __HAVE_BITENDIAN_BITOPS
so the canonical versions will be used but will store priorities in the
desired (MSB) order for PowerPC (which allows the use of the cntlzw (count
leading zeroes, word) instruction in locore_subr.S to find the proper
priority).
2003-07-18 01:08:11 +00:00
matt
5819fb160d
Elimindate MD setrunqueue/remrunqueue (which were out-of-date compared to
...
the canonical versions in kern_synch.c). Define __HAVE_BIGENDIAN_BITOPS
so the canonical versions will be used but will store priorities in the
desired (MSB) order for PowerPC (which allows the use of the cntlzw (count
leading zeroes, word) instruction in locore_subr.S to find the proper
priority).
2003-07-18 01:08:10 +00:00
petrov
120c8bbd3f
Driver for CP1500/1400 watchdog timer.
2003-07-17 21:02:03 +00:00
petrov
fd3a71be25
Driver for CP1500/1400 watchdog timer.
2003-07-17 20:54:41 +00:00
nakayama
0f9cf6ed8d
Fix typo in comment.
2003-07-17 07:56:46 +00:00
is
2ae40f99a0
pass source file name to gpsa, so that gspa could (in theory) embed the
...
used filename in the output.
2003-07-16 20:07:12 +00:00
is
02963a4af5
Update comments.
2003-07-16 19:58:59 +00:00
pk
b73c3ad58a
viking_getmid(): don't try to read MXCC registers on non-MXCC machines.
...
cpu_attach(): if `bootmid' could not be determined early set it to the MID
of the first attaching CPU.
2003-07-16 08:08:22 +00:00
simonb
16f1ab81b5
Correct a comment.
2003-07-16 08:06:10 +00:00
he
672a3f174d
Use "${COMPILE.c}" instead of "$(CC) -c", so as to pick up the correct
...
include files when cross-compiling.
2003-07-16 07:25:51 +00:00
simonb
d854b5c002
SZ_BOARD_CFG_DATA is not used anywhere, remove it.
2003-07-16 03:52:31 +00:00
simonb
9b0c94bec0
Only need to call consinit() once...
2003-07-16 01:00:33 +00:00
simonb
5ebfa59966
Enable FFS_EI.
2003-07-16 00:52:59 +00:00
lukem
ed51729135
__KERNEL_RCSID()
2003-07-15 02:54:31 +00:00
lukem
4b2744bf35
__KERNEL_RCSID()
2003-07-15 02:43:09 +00:00
lukem
0c82163c78
__KERNEL_RCSID()
2003-07-15 02:29:24 +00:00
lukem
3b4fb6d0ef
__KERNEL_RCSID()
2003-07-15 02:15:00 +00:00
lukem
9d93561319
a .#included .c file needs __KERNEL_RCSID(1, ...
2003-07-15 02:13:13 +00:00
lukem
ab48a212f9
rcsid
2003-07-15 01:44:50 +00:00
lukem
141727280b
__KERNEL_RCSID()
2003-07-15 01:31:38 +00:00
lukem
e803bea7e7
__KERNEL_RCSID()
2003-07-15 01:19:42 +00:00
lukem
08716eae82
__KERNEL_RCSID()
2003-07-15 00:24:37 +00:00
lukem
a418360342
__KERNEL_RCSID()
2003-07-15 00:04:39 +00:00
lukem
e551149641
rcsid
2003-07-14 23:40:33 +00:00
lukem
37dbc5a71b
__KERNEL_RCSID()
2003-07-14 23:32:28 +00:00
lukem
10926a715a
add __KERNEL_RCSID() (using 1, for #included .c files)
2003-07-14 23:25:35 +00:00
lukem
6fdfc66c57
add __KERNEL_RCSID()
2003-07-14 22:57:46 +00:00
lukem
1b7326b581
use __KERNEL_RCSID() in a consistent manner
2003-07-14 22:48:19 +00:00
lukem
52c38f7f74
add __KERNEL_RCSID()
2003-07-14 22:32:39 +00:00
lukem
ace607b862
add __KERNEL_RCSID()
2003-07-14 22:13:09 +00:00
aymeric
66cce85a22
get rid of printf() warnings in the FDDEBUG case by using the right format
...
specifiers
2003-07-14 15:57:39 +00:00
aymeric
f8f792fd37
The second argument to amidisplaycc_setnamedfont() really should be a const.
...
Make it so.
2003-07-14 15:56:39 +00:00
aymeric
a55c504a2f
always include dev/cons.c and dev/cninit.c
...
Problem reported by Guther Nikl on port-amiga
This follows what other ports do.
2003-07-14 15:53:46 +00:00
lukem
de043b8788
use __KERNEL_RCSID(0, instead of RCSID( in the kernel
2003-07-14 15:17:13 +00:00
simonb
96df404b38
Use wrteei to disable interrupts; easier assembly and saves a temporary
...
variable.
2003-07-14 13:02:13 +00:00
simonb
0d42503562
Re-include "com.h" since we check NCOM in softserial(). Serial console
...
now works after properties rototill.
2003-07-14 12:59:36 +00:00
aymeric
2b846f3e47
. ANSIfy a bit more
...
. use the boot_entry_t type for the entry point
Makes ofwboot compile with -Wmissing-prototypes -Wstrict-prototypes, as
suggested by Chuck Silvers in a private e-mail.
2003-07-14 09:46:06 +00:00
aymeric
db875b067a
. prototype for main()
...
. typedef boot_entry_t to be the prototype of the kernel entry point
2003-07-14 09:42:58 +00:00
pk
40643e2443
The source register field was missing from the `i_loadstore' format.
...
From Jason Wright (openbsd) in private communication.
2003-07-14 06:53:44 +00:00
simonb
649e4ff2d5
Check return value of prop_get() correctly; serial ports now attach on
...
a walnut, but don't seem to accept input(?!).
2003-07-14 05:21:25 +00:00
igy
b449da1391
KNF
2003-07-13 09:25:50 +00:00
igy
a90b1b8eca
code clean up
2003-07-13 08:56:16 +00:00
igy
3e9598d4fa
move window of pci i/o cycle to higher address
2003-07-13 08:26:31 +00:00
igy
cdb56b83f6
mapping pci configuration space (not subregion)
2003-07-13 07:15:22 +00:00
igy
1087696257
using common bus_space_tag in ixpsip too
2003-07-13 02:48:41 +00:00
igy
365f7e1994
sharing bus_space_tag among ixpio, pci mem and i/o.
2003-07-13 02:11:58 +00:00
igy
2a9dfe7684
using devmap for static mapping
2003-07-13 01:01:50 +00:00
aymeric
f0696ba4ba
strategy() should really have an ANSI prototype. Otherwise its daddr_t
...
argument gets passed wrongly.
This should fix a bug reported by Martin J. Laubach on port-macppc, and
was fixed two weeks ago in NetBSD/ofppc.
2003-07-11 23:38:08 +00:00
christos
28c6644783
the author needs to stay way from the crack pipe: two bugs cancelled each other!
2003-07-11 20:33:03 +00:00
pk
c7a9b61e64
Deal with disk change notification.
2003-07-11 12:09:12 +00:00
lukem
66173dd5f9
NOxxx= variables should appear first
2003-07-10 11:30:43 +00:00
lukem
001c68bd94
Rename a large chunk of the make(1) variables which refer to a
...
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC
For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo
Document all of these in bsd.README.
This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
pk
f9dc3a73e0
compat mode:
...
* print warning if kernel image is too large.
* adjust `required space' computation to be more compatible to
what it was before.
* since there's still no code to recognise `old kernels', provide
a way to turn on `compatmode' manually, using the `-C' boot option.
2003-07-10 09:06:52 +00:00
pk
95ca576fc1
pmap_map(): round up size to compute # of pages.
2003-07-10 09:00:33 +00:00
lukem
82bd1c0ce3
shell coding tweaks
2003-07-10 04:48:34 +00:00
matt
2a6c2aa546
Back out rev 1.19. It's wrong. Add comments so it doesn't happen again.
2003-07-10 04:18:01 +00:00
matt
18a43bbe99
Don't do vtophys on instruction addresses. This would cause problems for
...
user addresses (think trap from user mode) or lkms).
2003-07-10 02:06:11 +00:00
matt
554b4aa05f
Enhance db_trace to understand syscalls and print the syscall number
...
that the user requested. For example:
0xd5c56f40: SC trap #240 by 0x15668c60: srr1=0xd032
r1=0xffffe470 cr=0x44000045 xer=0 ctr=0xeff27ab8
2003-07-09 22:51:50 +00:00
thorpej
88f63e28d6
Make faulting in DDB continue back in the top-level command
...
loop properly.
2003-07-09 20:14:14 +00:00
he
db2df0cdd4
After the recent changes to if_ieee80211.h, we need to include
...
if_media.h earlier.
2003-07-09 14:30:29 +00:00
cdi
684b6d6499
traceit: don't use %g7 as it is to become curcpu() register. Add comments.
2003-07-08 22:09:26 +00:00
lukem
5d226417ac
fix cesfic entry whitespace to be consistent
2003-07-08 04:21:28 +00:00
dsl
fb2276c4c8
Replaced by sys/kern/subr_disk_mbr.c which also supports having the
...
NetBSD partition in the MBR extended partion.
2003-07-07 13:36:05 +00:00
dsl
227f8466e9
Switch to using MI code to find disklabel on MBR disks.
2003-07-07 13:34:08 +00:00
dsl
1943909639
Support booting from a netbsd partition in the MBR extended partition.
2003-07-07 13:32:42 +00:00
dsl
a1484d22a6
Remove 'dosparts' it hasn't been used for a while (if ever).
2003-07-07 13:30:10 +00:00
simonb
91dc378d5c
Hardwire physmem to 32MB if not called from CFE.
...
This should be a kernel config option, but for now is enough to get
a sbmips GENERIC kernel running under a simulator.
2003-07-06 12:14:50 +00:00
tron
896fd5c944
Add hardware random number generator support for Intel 865 and
...
875P chipsets.
2003-07-06 07:24:31 +00:00
kochi
9ab543513d
o cleanup usage of ACPI_ACTIVATE_DEV/ACPI_PCI_FIXUP
...
o delete usage of ENABLE_DEBUGGER
As ACPI_ACTIVATE_DEV/ACPI_PCI_FIXUP are defflag'ed in files.acpi,
these options don't have to have a value.
2003-07-06 04:03:21 +00:00
tsutsui
6615ddefa9
Rename some MI mb89352 functions for consistency:
...
spcintr() -> spc_intr()
spcattach() -> spc_attach()
2003-07-05 19:00:16 +00:00
tsutsui
3b48b7c661
Rename functions to avoid namespace conflicts:
...
spc_match() -> spc_mainbus_match()
spc_attach() -> spc_mainbus_attach()
2003-07-05 18:43:11 +00:00
tsutsui
ae2b6b31a0
Add some missing register prefixes.
2003-07-05 18:40:31 +00:00
tsutsui
acc15558d0
Some cosmetics on bus_space_tag_t initialization.
2003-07-05 16:57:04 +00:00
simonb
aa57e31a39
Make mptrap.o depend on assym.h; fixes GENERIC.MP -j N kernel build.
2003-07-05 16:56:10 +00:00
tsutsui
f60951ffdb
Initialize bus_space_tag in rtc_softc properly in rtcattch().
2003-07-05 16:48:12 +00:00
tsutsui
2dcba30bb6
cosmetics
2003-07-05 16:21:17 +00:00
dogcow
ccd442eae3
gcc 3.2 complained about the missing __volatile and extra tokens after #endif.
2003-07-05 06:53:08 +00:00
simonb
beadae28a9
Add some dependancies on assym.h; helps "make -j N" kernel builds.
2003-07-04 03:48:01 +00:00
thorpej
1656a492ee
Set the mac-addr property of the on-chip emac device.
2003-07-04 02:35:38 +00:00
thorpej
d00b22d0e7
Consult the "mac-addr" property associated with the emac device in
...
the dev_propdb rather than referencing board_data.
2003-07-04 02:34:47 +00:00
thorpej
d796e65ef5
Use device_register() to set the "frequency" property on the UART.
2003-07-04 02:21:50 +00:00
thorpej
5b7c5eadea
Consult the "frequency" property associated with the device in the
...
dev_propdb, rather than using "board_info".
2003-07-04 02:21:02 +00:00
thorpej
1a4648d9ad
Add device_register().
2003-07-04 01:59:19 +00:00
thorpej
d876aa082a
Nuke the "alchemy_info" stuff, and just use the dev_propdb to set
...
the mac-addr property for the Au1x00 on-chip MACs.
2003-07-04 01:19:58 +00:00
thorpej
69d5b64f8a
Do an splhigh() before doing splserial(), in the event that
...
serial isn't actually higher than high.
2003-07-04 00:37:23 +00:00
thorpej
483fad3a3b
Use splserial() instead of splhigh() to block interrupt during
...
autoconfiguration. XXX We really need an splextreme() for when
we really mean "block everything".
2003-07-04 00:34:48 +00:00
thorpej
5432dacfcb
Provide a hook for board-specific code to register a device_register()
...
function.
2003-07-04 00:33:20 +00:00
christos
76da28320e
use the real linux_rt_sigreturn.
2003-07-03 21:25:45 +00:00
rjs
9c1d55b97c
Fix uninitialized variable.
2003-07-03 13:19:30 +00:00
scw
b8b2b1d895
Fix resident page accounting for the kernel pmap.
2003-07-03 13:18:42 +00:00
dsl
48046920d6
Fix copyright - it got mangled earlier.
...
Added a mention of Wolfgang Solfrank - there are probably only comments left
from the much older mbr.S that he contributed.
(Wolfgang pointed out the mangled copyright, but doesn't object to the removal
of the Tools GmbH one.)
2003-07-02 14:35:51 +00:00
ichiro
c2cac1cbd8
add sdram configration register
2003-07-02 14:03:52 +00:00
kanaoka
63ffb11606
- Cleanup usage of ACPI_ALLOCATE_BUFFER/AcpiOsFree combination.
...
Patch from kochi.
2003-07-02 13:18:17 +00:00
ichiro
38e0b1c5c5
use struct pmap_devmap
2003-07-02 11:02:28 +00:00
ichiro
25096a1afe
backout to recent changes w/o lwp changes
2003-07-02 10:40:46 +00:00
kanaoka
88acff6621
- Remove unneed include file.
2003-07-01 20:24:46 +00:00
simonb
ad51219ae3
Make this work without a populated destdir:
...
machine and x86 symlinks.
Include from right places.
Don't depend on LIBCRT0,etc.
Also for the bootxx programs, keep the ELF object during the build
process.
2003-07-01 13:36:59 +00:00
uwe
66a03d56d3
Correct the macro name for SCP0DT bit.
...
Addresses port-sh3/22025 by FURUKAWA Masashi.
2003-07-01 11:49:37 +00:00
thorpej
221d313d7c
Allow SOURCES to be overridden.
2003-06-30 17:54:06 +00:00
thorpej
22c08fe417
PCI-X requires that that devices updated their PCIXSR on every
...
config write with the device number specified in AD[15:11]. If
we don't set this field when issuing a Type 0 cycle, each device
could end of thinking it is at device 0, which can cause a number
of problems. Doing this unconditionally should be OK when only
PCI devices are present.
2003-06-30 15:27:12 +00:00
thorpej
b4031f0a49
Go to splhigh() before doing autoconfiguration.
2003-06-30 15:17:11 +00:00
simonb
1534c8822e
ANSIfy, KNF.
2003-06-30 13:39:36 +00:00
fvdl
d5aece61d6
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
...
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
aymeric
baf9a7e65c
Do not use RELOC() after the MMU is enabled.
...
Move the two assignments that were made after the MMU is on, before.
From Gunther Nikl on port-amiga@. Thanks!
2003-06-29 18:41:47 +00:00
martin
f73e5a517d
#ifdef _KERNEL_OPT police
2003-06-29 18:11:14 +00:00
thorpej
f4fff81d3a
Adapt to ktrace/lwp changes.
2003-06-29 15:49:49 +00:00
thorpej
e3165e7ebd
Adapt to ktrace/lwp changes.
2003-06-29 15:27:59 +00:00
simonb
b8aadd3696
Only one function is this file wasn't ANSIfied, convert it.
2003-06-29 15:17:40 +00:00
simonb
2bda3187f5
Fix 'struct lwp *' lossage.
2003-06-29 15:14:11 +00:00
chris
6721e83cfc
Fixes to get cats build going following proc to lwp changes.
2003-06-29 14:51:04 +00:00
martin
69cd0c4a54
struct proc * -> struct lwp *
2003-06-29 13:33:51 +00:00
simonb
9e8290fbee
Use the com softc enabled/disable hooks instead of directly frobbing
...
Au1x00 registers in com_attach_subr(). Suggested by Jason Thorpe and
tested on both console and extra serial ports.
2003-06-29 13:18:24 +00:00
simonb
261417ff31
Fix 'struct lwp *' lossage.
2003-06-29 12:34:55 +00:00
simonb
33187ba9d0
Show current PC in an panic message.
2003-06-29 12:21:32 +00:00
simonb
6939feda9f
KNF nit (parentheses around return value).
2003-06-29 12:20:19 +00:00
simonb
a810cb3990
Don't use "extern" with functions.
2003-06-29 11:32:11 +00:00
ichiro
904951f445
struct proc * -> struct lwp *
2003-06-29 11:10:35 +00:00
darrenr
257443876f
'struct proc *' -> 'struct lwp *' as required to get GENERIC for macppc built
2003-06-29 11:02:21 +00:00
ichiro
4eee2aed2e
struct proc * -> struct lwp *
...
ixp425_com:
add some status flags
2003-06-29 10:51:29 +00:00
martin
2edcbf6bb2
struct proc * -> struct lwp *
2003-06-29 10:37:45 +00:00
martin
c101c976d0
Passing struct lwp * instead of struct proc * to device functions.
2003-06-29 10:29:33 +00:00
martin
84a6dd7e55
Passing struct lwp * instead of struct proc * to device functions,
...
replace a homegrown check with proper suser() call.
2003-06-29 10:29:17 +00:00
simonb
964da8bfb6
Fix 'struct lwp *' lossage.
2003-06-29 09:56:28 +00:00
simonb
7d92ae9627
Fix 'struct lwp *' lossage.
2003-06-29 09:56:27 +00:00
darrenr
9dc96360bb
More changes for providing lwpid for ktrace (sparc GENERIC built)
2003-06-29 09:56:27 +00:00
simonb
33d036f82c
Fix 'struct lwp *' lossage.
2003-06-29 09:56:26 +00:00
darrenr
6147cc4ab2
More changes for providing lwpid for ktrace (sparc GENERIC built)
2003-06-29 09:56:24 +00:00
simonb
fe57fb71a2
Fix more needless 'struct proc *' to 'struct lwp *' fallout.
2003-06-29 09:23:14 +00:00
darrenr
887069bda8
Revert out an accidental commit.
2003-06-28 15:34:41 +00:00
simonb
ccbfec4208
Sprinkle some KNF.
2003-06-28 14:32:02 +00:00
darrenr
960df3c8d1
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
...
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
he
da6b84e290
Defflag M060SP and PANICBUTTON, since the corresponding include files are
...
now referenced from atari_init.c and machdep.c.
The PANICBUTTON implementation appears to be incomplete, compared to
the other ports which have this option implemented.
2003-06-28 14:18:30 +00:00
he
eff4d773fd
Make sure to "mkdir -p" the destination directories under /usr/mdec.
2003-06-28 14:14:48 +00:00
fvdl
1c961078b9
Mark a CPU as no longer running when it gets a HALT IPI. Avoids other
...
CPUs getting stuck waiting for it because they sent a TLB shootdown
during shutdown.
2003-06-28 11:33:19 +00:00
pk
f22f3adf41
me_alloc()/region_alloc(): return the MMU cookie directly.
2003-06-28 10:17:47 +00:00
pk
338fb7c628
Simplify pmap_extract4_4c(), as suggested by Chuck Silvers in private
...
communication.
2003-06-28 10:02:13 +00:00
pk
75fe06e6e3
me_free(): it makes no sense to try and update the ref/mod PTE bits here.
2003-06-28 09:51:04 +00:00
he
501a19cbfa
Use ${.CURDIR} when referring to source tree include directories.
2003-06-28 09:30:26 +00:00
he
450e795668
Somehow all these tiny Makefiles had their contents replicated.
...
Pare back down to just one copy.
2003-06-28 09:09:51 +00:00
he
4d99002423
#ifdef _KERNEL_OPT police.
2003-06-28 08:42:41 +00:00
he
a81160e601
Defflag M060SP and PANICBUTTON, now that machdep.c includes
...
the corresponding files.
2003-06-28 08:39:24 +00:00
he
36f3de8bfd
Defflag PANICBUTTON now that machdep.c includes opt_panicbutton.h.
2003-06-28 08:26:45 +00:00
he
870b85989a
Defflag PANICBUTTON, now that machdep.h includes opt_panicbutton.h.
2003-06-28 08:22:02 +00:00
uwe
ea10b56931
Trust srt0.S if it has set cputyp to CPU_SUN4M.
...
It can infer OFW -> sun4m, as only JavaStations have OFW, and it can
detect OFW by the different calling convention.
2003-06-28 01:03:57 +00:00
uwe
5fe7a8a85c
Only JavaStations have OFW, so set cpu type to CPU_SUN4M in is_openfirm.
2003-06-28 00:59:09 +00:00
he
0bd3ded5ff
Defflag PANICBUTTON, now that machdep.c includes opt_panicbutton.h.
2003-06-27 21:43:03 +00:00
uwe
94e7210074
Drop redundant argument to printf("\n"). Obvious pasto.
2003-06-27 21:27:24 +00:00
pk
9e0e8676f1
Make sure to flush any user register windows when stealing PMEGs in
...
me_alloc() (and SMEGs in region_alloc()).
Should fix PR#14180.
2003-06-27 16:44:03 +00:00
simonb
c674f217bf
Use STATIC_LEAF and STATIC_XLEAF for the helper functions; there's no
...
need to export their symbols.
2003-06-27 08:25:43 +00:00
simonb
ecdaf1626b
Add STATIC_LEAF and STATIC_XLEAF macros, ala the alpha port.
2003-06-27 08:22:05 +00:00
he
57822a30b2
Conditionalize usage of the COM_HW_HAYESP constant on COM_HAYESP.
...
Add a dummy type argument to the local (au)comcnattach to match the change
in the prototype of the "real" comcnattach.
Reviewed and tested by simonb.
2003-06-27 07:39:34 +00:00
aymeric
3d58c2238e
include <sys/types.h> so that this file can be included first/alone
2003-06-26 20:47:51 +00:00
aymeric
003fd1df25
. ANSIfy
...
. include needed headers
. fix a couple of warnings
2003-06-26 20:47:10 +00:00
aymeric
98e0168f0a
. ANSIfy
...
. include the needed headers
. net_mountroot() becomes static
2003-06-26 20:46:31 +00:00
aymeric
ee20410a5e
ANSIfy
2003-06-26 20:45:29 +00:00
aymeric
b0c4d54ee9
. ANSIfy
...
. include alloc.h
. while there, fix a bug in prom2boot() introduced in rev. 1.11
2003-06-26 20:44:51 +00:00
aymeric
e9cabc8553
. ANSIfy
...
. Fix a missing return
. replace %x by %p to print pointers in OFW_DEBUG printf's
2003-06-26 20:43:48 +00:00
aymeric
110312e089
declare functions from corresponding C file
2003-06-26 20:42:38 +00:00
drochner
9c0e4279cc
remove unneeded cpu_feature declaration
2003-06-26 16:48:18 +00:00
drochner
491828ab43
cpu_feature is not set (nor used) by locore since SMP, so move the
...
definition to C code
2003-06-26 16:47:15 +00:00
drochner
1fa5ee8d10
make cpu_feature unsigned, just like ci_feature_flags
2003-06-26 16:45:19 +00:00
drochner
31f515916f
-make cpu_feature unsigned, just like ci_feature_flags
...
-clean up duplicate declaration of cpu_info_primary
2003-06-26 16:41:32 +00:00
drochner
470de734bd
remove redundant "extern" declarations
2003-06-26 16:37:20 +00:00
he
f250a35e96
#ifdef _KERNEL_OPT police; identd defines _KERNEL before some includes.
2003-06-26 13:20:55 +00:00
he
16c7a2a0b2
Declare USELEDS option, now that locore.s tries to include opt_useleds.h.
2003-06-25 21:02:19 +00:00
cdi
2b74542ac0
Initial commit of a 1-stage boot loader for NetBSD/cobalt. Only booting off
...
the hard drive is supported at the moment.
2003-06-25 17:24:21 +00:00
martin
89955ad8b5
#ifdef _KERNEL_OPT police
2003-06-25 14:38:53 +00:00
simonb
8eda62491d
Need to pass the address of the lock to simple_unlock().
2003-06-25 05:37:00 +00:00
thorpej
7401047528
Add a way to force (at compile time) use of int13 extensions.
2003-06-25 04:21:51 +00:00
uwe
a8c0780b08
Use CPUFLAGS instead of COPTS to pass -march=armv4 -mtune=strongarm.
2003-06-25 01:07:55 +00:00
dyoung
eb4a83a039
Bracket the opt_multiprocessor.h #include with #ifdef _KERNEL_OPT.
...
It won't compile, otherwise. I figure this is right because it's
done everywhere else.
2003-06-25 00:03:13 +00:00
martin
c591ec88c0
FPU_EMULATE moved to arch/m68k/conf/files.m68k
2003-06-24 19:56:22 +00:00
martin
a394980af5
Move (and unify) PMAP_DEBUG and FPU_EMULATE here - it is tested in
...
shared files.
2003-06-24 19:55:22 +00:00
igy
1625aa9110
remove LIBSA_SINGLE_DEVICE and LIBSA_SINGLE_FILESYSTEM
2003-06-24 12:27:03 +00:00
tron
64e5c9eb7c
Remove "lib" directory in "cleandir" target.
2003-06-24 09:38:35 +00:00
thorpej
cb53206514
* Defflag CPU30MHZ.
...
* Unrelated cosmetic change in files.pc532.
2003-06-24 04:57:58 +00:00
thorpej
527224f9c6
* defflag NS381.
...
* There is no MATH_EMULATE option for ns32k; don't try to include
opt_math_emulate.h. Instead, comment that we should glue in
the softfloat library in this case.
2003-06-24 02:48:56 +00:00
he
609811d881
Follow up the rename of _SPL_IMP to _SPL_VM.
2003-06-23 22:18:10 +00:00
he
e60a4dc52b
Extend the P5064 and P6032 comcnattach() with a type argument as well,
...
I'm assuming these both use COM_TYPE_NORMAL.
2003-06-23 22:17:11 +00:00
aymeric
8fe6b1b1db
call platform.softintr_init() only if it is non-NULL.
...
This allows NetBSD/ofppc to boot up to userland (i.e. to the point where init
will not launch properly) under psim.
2003-06-23 20:14:33 +00:00
aymeric
23cacb54a0
s/PHYS_TO_PCI_MEM/PHYS_TO_BUS_MEM/
...
s/PCI_MEM_TO_PHYS/BUS_MEM_TO_PHYS/
to match generic PPC code
Noticed by Nicolas Ollinger
2003-06-23 20:12:19 +00:00
pk
dc05fd9fd2
sun4/sun4c: move/add write_user_windows() at the top of pmap_[k]remove() and
...
pmap_[k]enter().
2003-06-23 15:45:08 +00:00
martin
864f19482a
#ifdef _KERNEL_OPT police
2003-06-23 14:59:21 +00:00
martin
cd7023a3eb
Backout previous, this file is not affected by kernel options.
2003-06-23 14:48:37 +00:00
pk
74806170e3
According to my calculations, the cross-over point for the amount of work
...
needed to flush an entire segment from the sun4/sun4c caches is at 16 pages.
2003-06-23 13:43:20 +00:00
pk
dc6eeb9b47
Use pre-computed `# of cache lines' where appropriate.
2003-06-23 13:34:28 +00:00
thorpej
49b91b6679
Adapt to the Scheduler Activations changes.
...
Boots to multi-user when compiled with GCC 3.3 (20021123) (pre-3.3 release),
boots to single-user but hangs going multi-user when compiled with 3.4
(20030623). This is most likely a compiler problem.
2003-06-23 13:06:54 +00:00
thorpej
5fb00ee32f
Basic ELF definitions for ns32k. No relocations yet.
2003-06-23 12:59:27 +00:00
martin
4858ba3d93
Protect kernel opt_*.h include by #ifdef _KERNEL_OPT
2003-06-23 12:56:07 +00:00
martin
d505b18964
Make sure to include opt_foo.h if a defflag option FOO is used.
2003-06-23 11:00:59 +00:00
chris
93632a0574
Fix for port-arm/21962. Rather than fixing the #ifndef spl0, I removed
...
the test as spl0 is actually a macro for splx(0). The code now calls
splx(0)
(note building with the #ifdef fixed, caused the build to fail on a
GENERIC acorn32 kernel.)
2003-06-23 09:05:22 +00:00
simonb
c888cf2bde
Removed "extended precision" definitions left over from when this was
...
originally copied from i386/include/ieee.h.
Fixes PR port-pc532/21960 from Jason Thorpe.
2003-06-23 06:59:12 +00:00
nakayama
64dc0184cc
s/options\t/options \t/
2003-06-20 03:15:05 +00:00
hamajima
b3120a356c
Fix wdc_obio_dma_init() confused WDC_DMA_LBA48 with WDC_DMA_READ.
...
This was tested by jtb@netbsd.org .
2003-06-19 22:36:06 +00:00
tsutsui
cc8f388df1
Make sure to call c_nec_eisa_cons_init() also on RISCserver 2200
...
so that its Cirrus VGA console is properly initialized.
Fixes problem reported by Bob Meader.
2003-06-19 16:00:19 +00:00
martin
e0b0d04377
Ooops, I didn't intend to enable kgdb by default here.
...
(Since the related changes are not yet commited, it doesn't even compile)
2003-06-19 14:39:52 +00:00
agc
7ebe0b8c4b
Make this compile.
2003-06-19 14:08:54 +00:00
kanaoka
d25a3f14d9
- Remove the unused polling code.
...
- Clean up the code a bit.
2003-06-19 10:13:14 +00:00
pk
db543774bf
pmap_bootstrap4_4c():
...
* enable caching of message buffer & cpuinfo
* it ought to be no longer necessary to not write-protect the kernel
text in order to support KGDB
2003-06-18 14:24:55 +00:00
bsh
7aeb49a6b4
don't map PCI device's I/O ports at address 0.
...
This fixed a problem when 3com 3C905 is a only PCI card on SMDK2800.
2003-06-18 10:56:35 +00:00
bsh
dd27d238b6
MD part for Intel Lubbock (DBPXA250).
...
built-in UART and on-board ethernet are supported for now.
LCD, PCMCIA, CF, PS/2, AC97 will follow shortly.
2003-06-18 10:51:15 +00:00
bsh
1928d3ed36
enable BTUART
2003-06-18 09:40:06 +00:00
martin
dbe43da717
Add missing COMPAT_ options.
2003-06-18 09:38:56 +00:00
pk
f707a950e3
Remove out-dated MP comment.
2003-06-18 09:34:22 +00:00
drochner
1a03e79900
don't #include <sys/dkstat.h> where it is (appearently) unused
2003-06-18 08:58:34 +00:00
bsh
73635ffe34
use PMAP_DOMAIN_KERNEL and DOMAIN_CLIENT instead of magic numbers.
2003-06-18 03:17:49 +00:00
bsh
d8193564ca
protect with #ifndef _LOCORE so that assembler codes can share
...
definitions in this file such as PMAP_DOMAIN_KERNEL.
2003-06-18 02:58:09 +00:00
bsh
ddb2467dd1
make this compile again:
...
+ we don't have struct pxa2x0_softc anymore.
+ call pxa2x0_clkman_config() to provide clock to LCDC block.
2003-06-17 09:43:14 +00:00
bsh
3c87cee70f
white space nit.
2003-06-17 09:32:38 +00:00
thorpej
452a8fdae2
Rename IPL_IMP -> IPL_VM.
2003-06-16 20:00:56 +00:00
heas
d00e9c2510
Define option BLINK in option file opt_auxio.h and include it in auxio.c.
...
approved by martin@
2003-06-16 19:24:51 +00:00
thorpej
bd370c9c04
Give every obio implementation a size and width locator.
2003-06-16 17:40:49 +00:00
fvdl
7dd7f8baa2
Handle 64bit DMA addresses on PCI for platforms that can (currently only
...
enabled on amd64). Add a dmat64 field to various PCI attach structures,
and pass it down where needed. Implement a simple new function called
pci_dma64_available(pa) to test if 64bit DMA addresses may be used.
This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>,
and there is more than 4G of memory.
2003-06-15 23:08:53 +00:00
thorpej
998f8a71ed
Add an optional "width" locator to the obio bus, specifying the
...
bus width of the device.
2003-06-15 19:03:46 +00:00
thorpej
05d2fb4399
Use the new pmap_devmap facility in the on-board device mapping code.
2003-06-15 18:43:48 +00:00
thorpej
cf8a25bdfc
Add another devmap routine that allows bootstrap code to register
...
a devmap reflecting mappings that are created by really early
bootstrap code before pmap_devmap_bootstrap() is called.
2003-06-15 18:18:16 +00:00
thorpej
87d5bba5b3
Replace the ad-hoc "section mapping table" for static device mappings
...
with a more generic "devmap" structure that can also handle mappings
made with large and small pages. Add new pmap routines to enter these
mappings during bootstrap (and "remember" the devmap), and routines to
look up the static mappings once the kernel is running.
2003-06-15 17:45:21 +00:00
thorpej
d35db0b328
Garbage-collect some unused code.
2003-06-15 17:33:45 +00:00
igy
5dc7df164b
using write buffer in block_write.
2003-06-15 08:50:05 +00:00
igy
c0f40774f1
verify flash memory after write
2003-06-15 08:49:09 +00:00
tsutsui
a3631eeb28
Add isapnp0 at isa and enable working isa/isapnp devices.
2003-06-15 06:10:42 +00:00
tsutsui
964d2f945e
Remove nonexistent we* at isapnp.
2003-06-15 06:08:12 +00:00
tsutsui
55dd06d718
Don't enable both pc0 and vga0 at isa.
2003-06-15 06:05:31 +00:00
tsutsui
7826bdce78
Initialize and use extent maps for ISA bus space allocation.
...
Now isapnp on Tyne works properly.
2003-06-15 05:58:45 +00:00
tsutsui
109624a869
Fix a bug in isabr_dti_intr_status(), as per "re-look this" comment.
...
Now Tyne boots into single user (though it's still unstable). Woohoo!
2003-06-14 21:10:20 +00:00
thorpej
0ab88570d0
Use CPUFLAGS rather than COPTS to pass -mcpu=xscale.
2003-06-14 19:32:54 +00:00
uwe
d5e8f76b23
Use CPUFLAGS instead of COPTS.
2003-06-14 19:15:38 +00:00
tsutsui
ddeb889ae9
Add a file definition for isapnp.
2003-06-14 19:14:52 +00:00
tsutsui
5c69b73566
Set intrtype[] properly.
...
XXX ISA interrupts on Tyne does not work yet.
2003-06-14 19:13:42 +00:00
tsutsui
afa910a4ed
Add isa_intr_alloc() for isapnp support.
2003-06-14 19:11:40 +00:00
uwe
1b5c2a3f18
The igsfb(4) can now be used as console so delete the XXX comment that
...
says it cannot.
Add commented out options that give an example of how to force serial
console.
2003-06-14 18:59:25 +00:00
uwe
c275928799
wscons as console support.
...
XXX: the way we pre-map memory for igsfb(4) is kludgy.
2003-06-14 18:57:38 +00:00
uwe
9feee6d724
Add PCKBC_CNATTACH_SELFTEST option.
2003-06-14 18:54:57 +00:00
thorpej
0eff671820
Also pass a type argument to comcnattach() and com_kgdb_attach().
...
comspeed() (and thus cominit()) may need this information.
2003-06-14 17:01:06 +00:00
tsutsui
ffe3f2629c
Bump SYMTAB_SPACE to 194000.
2003-06-14 16:28:32 +00:00
tsutsui
17418f8476
Allow user pmap to pmap_enter device (bus-space) memory.
2003-06-14 16:27:36 +00:00
thorpej
5ae120da7b
Introduce a new "type" field in the softc which is used to indicate
...
the general UART type. Currently, we have "normal", "hayesp" and
"pxa2x0" types. Replace the corresponding hw flags with the new type
values.
2003-06-14 16:25:52 +00:00
tsutsui
fee6ce1d9f
Fix lack of parentheses bug which causes wrong pte settings.
2003-06-14 16:21:31 +00:00
tsutsui
0cd4c10ed3
Make this compile with no scsibus.
2003-06-14 16:18:30 +00:00
tsutsui
b201874a74
Add kloader (in-kernel kernel bootloader) support written by
...
UCHIYAMA Yasushi (uch@netbsd).
XXX Some of these code should be moved into MI place to share
XXX between other ports.
2003-06-14 16:15:16 +00:00
tsutsui
cead6ab903
mmap(2) function on sh3 should return page number, not physical address.
2003-06-14 16:08:09 +00:00
tsutsui
fdcf304c05
Set LINKFORMAT=-N.
...
ARCBIOS on Tyne can recognize only ECOFF with OMAGIC header.
XXX The real fix is implementing native bootloader.
2003-06-14 09:55:10 +00:00