Commit Graph

65 Commits

Author SHA1 Message Date
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
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
drochner
1a03e79900 don't #include <sys/dkstat.h> where it is (appearently) unused 2003-06-18 08:58:34 +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
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
scw
d984534d7f The GT is always host on both PCI busses. 2003-06-12 19:21:09 +00:00
hannken
ff0f991625 Add symtab to kernel image using dbsym(8).
Add /dev/ksyms.
2003-05-31 12:00:59 +00:00
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