he
af0f8cc629
Include <sys/disk.h> to get "struct disk" defined.
...
Approved by thorpej
2003-05-12 14:46:13 +00:00
thorpej
e43fecb228
Change bounds_check_with_label() to take a pointer to the disk structure,
...
rather than the label itself. This paves the way for some future changes.
2003-05-10 23:12:28 +00:00
thorpej
2a90e2a9c9
Remove redundant bounds_check_with_label() prototype.
2003-05-10 16:12:02 +00:00
dsl
d91455ce26
Change return type of readdisklabel() to const char *
...
I hope I've found all the correct places!
2003-05-02 08:45:10 +00:00
ragge
1989d659bb
Preserve the symbol table in the LKM || KSYMS cases also.
2003-04-27 10:42:48 +00:00
ragge
69a66687f8
Call ksyms_init() instead of ddb_init() in case of
...
NKSYMS || defined(DDB) || defined(LKM)
2003-04-26 11:05:05 +00:00
ragge
766d04f56a
Add ksyms device major.
2003-04-25 21:10:46 +00:00
bouyer
aec10dd80c
Nake return values from bounds_check_with_label() conform to the man
...
page: -1 for error, 0 for EOF, 1 otherwise. Inspired by an OpenBSD commit
message, pointed out by Miod Vallat in private mail.
vax/mba/hp.c: check return value <= 0, not < 0 to be concistent with how
other places handle return values from bounds_check_with_label().
2003-04-16 15:00:59 +00:00
wiz
56a51233b4
Make it wsfont/wsfont instead of wsfont/wsmux, just like the other ports.
2003-04-16 09:41:54 +00:00
christos
b9f9db3ca2
Bye Bye UCONSOLE
2003-04-10 22:06:51 +00:00
matt
4daebcbff5
Make the imask_t typedef a struct rather than a naked array. The attribute
...
on the array typedef was contaminating other u_int32_t naked arrays and
affecting their alignment.
2003-04-09 15:44:26 +00:00
thorpej
9a8042f242
Use PAGE_SIZE rather than NBPG.
2003-04-08 22:57:53 +00:00
matt
eb675c41cf
Select MPSC console and the proper PCI slots. Use -D__boardtype__ instead
...
of -Dboardtype.
2003-04-08 19:35:24 +00:00
thorpej
fd53a1c386
Use PAGE_SIZE rather than NBPG.
2003-04-02 03:51:33 +00:00
matt
2cf5fc0ece
Add options to allow overriding of PCI0 & PCI1 MEM and I/O start and sizes.
2003-03-27 07:19:11 +00:00
matt
1ebbd9b463
Make PCI interrupts -> GPP mapping configured via config file.
...
Add bus_spaces for all possile obios. Add gt_halt to make
sure the discovery is not doing dma as soon as possible.
Read the SDRAM register to figure out how much physical RAM
is available.
2003-03-24 17:07:15 +00:00
matt
13db562ca9
Remove unneeded code in pci_bus_configure (was pci_config_bus). Fix
...
setting of bus_spaces in gt_attach.
2003-03-18 19:35:01 +00:00
matt
0200088d83
Enable iobats for the PCI memory space(s).
2003-03-18 19:33:50 +00:00
matt
0a2b7ed22b
Switch to gtmpsccnattach. Fix a few bugs in bus_space initialization.
2003-03-18 14:59:12 +00:00
matt
0b9b6810a5
Removed unused variable.
2003-03-18 14:56:48 +00:00
matt
3ec00b9a8f
work around a cache problem. (flush both caches and disable the D-cache).
2003-03-18 14:56:21 +00:00
matt
a935178cad
remove "kludge" com console.
...
Simplify timebase initialization.
2003-03-17 23:28:09 +00:00
matt
0fb35cae8c
Get CLOCKBASE from opt_ppcparam.h.
2003-03-17 23:24:41 +00:00
matt
ecc8926154
Add CLOCKBASE=100000000
2003-03-17 23:23:47 +00:00
hannken
afb54fa917
Add hardware accelerated copy/erase ops.
2003-03-17 18:39:23 +00:00
matt
77533df068
Remove some debugging code.
2003-03-16 08:12:26 +00:00
matt
f5110f7988
EV64260 now gets to single user prompt using COM1 (2nd uart) as console
...
with PPCBOOT as firmware. XXX PCI devices are not found.
2003-03-16 07:07:17 +00:00
matt
8344279675
Synchronize macppc and evbppc majors when possible. Add a lot of missing
...
devices to evbppc.
2003-03-13 17:02:52 +00:00
hannken
42cc9f8839
Add wscons to MAKEDEV. Add wsfont major number.
2003-03-13 14:56:56 +00:00
hannken
249e0067fe
Add a port to the NCD Explora451 ThinClient.
...
- Supported devices: le, com, lpt, pckbd, frame buffer.
- Support missing: phy, audio, pcmcia.
- Boots from network or md.
Approved by: Eduardo Horvath <eeh@netbsd.org>
2003-03-11 10:57:54 +00:00
hannken
44b1e07ec9
Add support for the IBM 403GCX cpu. Enabled with "options PPC_IBM403".
...
- different set of device control registers.
- non-standard access to the time base.
- 16 byte cache lines.
Approved by: Eduardo Horvath <eeh@netbsd.org>
2003-03-11 10:40:15 +00:00
matt
dfb9f2d504
Remove some constant (use value in bus_space_tags).
2003-03-07 18:24:00 +00:00
matt
feeb962699
Correct pci1 bus_space tag.
2003-03-06 20:15:24 +00:00
matt
3dc865b386
Relocate Discovery first thing in initppc (if not at expected address).
...
This implies that if PMON tells us where the GT is, we write that address
in gtbase.
2003-03-06 06:04:21 +00:00
matt
a190651169
Make most of PPC (OEA) bus_space's identical (or as identical as possible).
...
(except mvmeppc).
2003-03-06 05:25:18 +00:00
matt
ff2281b498
Add preliminary support Marvell (Galileo) Discovery System Controllers.
...
This code was contributed by Allegro Networks.
2003-03-05 22:08:18 +00:00
matt
92d0498c3d
Remove port-specific procfs_machdep.c (since they are all identical and
...
a better one resides in powerpc/powerpc/).
2003-03-05 05:43:42 +00:00
matt
e1d9426036
Make to define ${BOARDTYPE}
2003-03-04 07:52:21 +00:00
matt
107803a3a3
Re-arrange things in evbppc & powerpc to support OEA-based eval boards
...
in evbppc. OEA-based board(s) to be added later.
2003-03-04 07:50:57 +00:00
matt
4f493fc42d
Zero bss in start, not in initppc.
2003-02-24 08:06:42 +00:00
thorpej
15e901c4b9
No need for DEBUG in an install kernel.
2003-02-07 04:47:04 +00:00
nakayama
e3e4805068
Replace machine/rnd.h with more appropriate name to share it
...
with cycle counter based microtime in kern/kern_microtime.c.
2003-02-05 13:57:50 +00:00
matt
b4450c6d3c
Move ibm4xx vmparam.h to powerpc/include/ibm4xx directory. Add a stub
...
vmparam.h to choose the right vmparam. This is needed so evbppc can host
both ibm4xx and oea based eval boards.
2003-02-03 23:09:29 +00:00
matt
2b0e97a561
Rename PPC_MPC6XX to PPC_OEA (and any mpc6xx reference to oea).
2003-02-03 17:09:53 +00:00
matt
3e793a03a1
More cleanup for OLDPMAP.
2003-02-03 05:15:51 +00:00
matt
7c1e50a21a
Perform a rototill of the powerpc code. Mandate use of SPRG0 to store
...
a pointer to current cpu's cpu_info structure. Use cpu_info for
intstk,intr_depth,still_stk,idle_pcb,curpcb,curlwp,etal even on
non-MULTIPROCESSOR machines. Add common macros GET_CPUINFO and
INIT_CPUINFO to get and initialize the cpu_info struct on startup. Make
ibm4xx use the standard <powerpc/frame.h>. Use IFRAME_xx in ibm4xx
trap_subr.S instead of explicit magic offsets. Move INTSTK and SPILLSTK
to std.<platform>. Change faultbuf to a struct instead of an array.
On MPC6XX cpus, stop using the vector page for temporary space and use
reserved space in cpu_info.
2003-02-02 20:43:17 +00:00
matt
e680c1c1e9
Load SPRG0 with &cpu_info_store.
2003-01-30 07:46:28 +00:00
thorpej
23bc250391
Merge the nathanw_sa branch.
2003-01-17 21:55:23 +00:00
lukem
4bb41ae2f2
Rework how KERNOBJDIR functions; now it's always determined with
...
cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
This is far simpler than the previous system, and more robust with
objdirs built via BSDOBJDIR.
The previous method of finding KERNOBJDIR when using BSDOBJDIR by
referencing _SRC_TOP_OBJ_ from another directory was extremely
fragile due to the depth first tree walk by <bsd.subdir.mk>, and
the caching of _SRC_TOP_OBJ_ (with MAKEOVERRIDES) which would be
empty on the *first* pass to create fresh objdirs.
This change requires adding sys/arch/*/compile/Makefile to create
the objdir in that directory, and descending into arch/*/compile
from arch/*/Makefile. Remove the now-unnecessary .keep_me files
whilst here.
Per lengthy discussion with Andrew Brown.
2003-01-06 17:40:18 +00:00
thorpej
4f162f46b9
Make this compile without DDB.
2003-01-04 18:14:48 +00:00