Commit Graph

894 Commits

Author SHA1 Message Date
soren 66864e1f05 Removed increased BUFCACHE/BUFPAGES. 2000-11-27 08:55:41 +00:00
chs 0ac52aaf1d remove MD functions for printing vnodes and buffers since there are
MI versions now.
2000-11-21 16:34:52 +00:00
chs c62d17a551 rationalize the use of b_flags for geteblk() buffers.
rather than assigning to the whole field, set or clear individual flags,
which implies that the B_BUSY and B_INVAL flags will remain set.
this allows us to make the assertion in brelse() that B_BUSY is set,
which is the purpose of all this.
2000-11-20 08:24:08 +00:00
mrg 5d04f7b69d update to reality. sync with GENERIC32. 2000-11-19 15:23:55 +00:00
mrg 1368967d8c fix some comments. 2000-11-19 15:22:51 +00:00
mrg e97f9e9f7a use OpenFirmware, not prom version 0, operations. eeprom(8) works now. 2000-11-18 23:45:05 +00:00
mrg a2ea64e265 sync with sparc port. add support for OF_setprop(), OF_nextprop(),
OF_interpret() and OF_milliseconds().
2000-11-18 23:43:06 +00:00
mrg d6d4159b1a s/register// 2000-11-18 03:52:50 +00:00
mrg 40095eb6a1 struct pcb's lastcall is const char * 2000-11-18 03:51:14 +00:00
mrg 0485f611f1 remove dead debugging code. 2000-11-18 03:49:38 +00:00
mrg 215d0d2dcd pull over from sparc port's mem.c:
>revision 1.26
>date: 2000/11/13 15:31:44;  author: pk;  state: Exp;  lines: +10 -1
>Detect "EOF" conditions on the memory-special files.
2000-11-17 23:18:53 +00:00
eeh efaf3dbb74 Remove unnecessary header file that causes linker issues. 2000-11-10 17:47:55 +00:00
eeh 132d16957c Clean up config and fix things so kbd.h is generated even w/no keyboard. 2000-11-10 16:05:40 +00:00
mrg 3ea4c67b6b remove unused variable 2000-11-10 11:57:26 +00:00
eeh ccf7f1446f Fix ILP32 bug in probe_get(). 2000-11-09 00:35:02 +00:00
eeh c3a041249b Enable clean up keyboard attach and make formatting prettier. 2000-11-09 00:06:47 +00:00
eeh 17b69d1833 Attach the sunkbd line discipline to zstty. 2000-11-09 00:02:54 +00:00
eeh 954a7b9824 Switch to sunkbd for both com and zstty. 2000-11-09 00:00:40 +00:00
eeh 71b0c155a0 Support for MI console magic framework. 2000-11-08 23:41:42 +00:00
eeh 052afce2a5 Use new MI console magic framework. 2000-11-08 23:40:31 +00:00
eeh 2b8da88d55 Remove debug printfs. 2000-11-08 23:24:12 +00:00
ad e6be92ad99 Pull in dev/i2o/files.i2o. 2000-11-08 19:48:51 +00:00
eeh b43f8c30e4 pmap_growkernel() needs to return the new end of kernel. 2000-11-02 00:24:05 +00:00
eeh 23a0c49039 Adapt to the new line discipline scheme. 2000-11-02 00:21:03 +00:00
eeh b19423f823 Pass along bus frequency. 2000-11-01 06:19:59 +00:00
eeh 400b7c8ee0 Add pmap_growkernel(). 2000-10-29 23:30:35 +00:00
eeh 9746513520 Add bpp and make com match the sparc port. 2000-10-28 23:19:31 +00:00
pk bee12f6a67 Restore revision 1.102.
I hope it sticks this time..
2000-10-22 21:28:27 +00:00
eeh ad3ec5f6af Fix hang in 32-bit kernels caused by relocation of KERNBASE. 2000-10-20 16:43:54 +00:00
mrg cb17e80035 fix a comment. 2000-10-20 05:47:03 +00:00
mrg 82d7f3e331 #include <machine/sparc64.h> for prom_printf() prototype. 2000-10-20 05:32:35 +00:00
mrg f39b5cf92e wrap long lines. 2000-10-19 12:25:04 +00:00
mrg bc4dd913e7 #if 0 unused code. 2000-10-19 05:44:39 +00:00
mrg d66f9f3321 add a cast to fix a warning. 2000-10-19 05:38:35 +00:00
mrg 88c611ff12 - remove an unused variable
- in db_setpcb(), update 'struct proc *p' each loop iteration.  (found by
gcc warning).
2000-10-19 05:30:29 +00:00
mrg 1191037add remove unneeded cast. 2000-10-19 05:28:50 +00:00
jdolecek 2fa1ccfa6e bootpath_build(): implement slighly more clever algorith to find boot
flags in the bootpath: only treat the rest as boot flags if the '-'
follows whitespace (space or tab)

This should fix the "boot disk4 netbsd-20001004-RFHS8036" lossage
Hubert Feyer pointed out in private e-mail.

Tested by: jdolecek (userland version)
Reviewed by: eeh
2000-10-04 23:05:08 +00:00
eeh 6638fc7c06 Fix interrupt lossage problem and some cosmetic changes. 2000-10-04 22:18:25 +00:00
pk d26132e2be cpu_initialize: global registers aren't preserved across calls to
prom_printf(), so replace %g3 with %l7 (which isn't used despite
the `usage' comment).

Also, clean up white-space turds.
2000-10-01 19:13:16 +00:00
eeh 8e5075103f This seems to fix the interrupt lossage of non-debug kernels. 2000-09-29 17:02:38 +00:00
eeh 15eaba378c Only call pcons_dopoll() if there's a pcons device. 2000-09-29 00:27:13 +00:00
eeh 5c98160d2b Separate user and kernel address spaces and move the kernel down to
0x0000000001000000 -- 0x00000000f0000000, below the PROM where the
PROM thinks we should be.
2000-09-28 19:56:13 +00:00
eeh d21456569e Fix INTR_SETUP() to properly distinguish kernel and user addresses.
Make microtime() return the correct time on %tick machines.

Re-enable debug stuff in dostart for now to detect kernel mapping issues.
2000-09-28 19:27:49 +00:00
eeh 1090c8a9cf probeget() actually handles 64-bit values so fix the prototype. 2000-09-28 19:16:35 +00:00
eeh 0ca74ba0d8 Fix the `trap type 0x10' problem. Apparently, something has changed and
now makes use of lockmgr().  Since we broke into the debugger from an interrupt,
we don't have a curproc, so when lockmgr() tries to find our PID it barfs,
causing another break into DDB which then calls the mysterious code that
calls lockmgr() again.....

So set doing_shutdown while we're in DDB so lockmgr ignores locks.
2000-09-28 18:54:39 +00:00
eeh 6776b270ae Remove unneeded cache flushes. 2000-09-28 15:47:27 +00:00
eeh a6205d98a9 Poll pcons for input on softints in case someone want to break into the debugger. 2000-09-28 15:38:49 +00:00
eeh abeb734bb9 Cannot distinguish kernel and user addresses any more. 2000-09-28 15:34:38 +00:00
eeh 5b577f0c8f Add a command that locates the page structure corresponding to a pa. 2000-09-28 15:32:36 +00:00
eeh 3a2599ebec Don't take ref/mod faults on DMA segments mapped in to the kernel. 2000-09-28 15:28:43 +00:00