Commit Graph

166609 Commits

Author SHA1 Message Date
joerg 32cb208674 Catch up with pkg_install-20080202: pkg_info needs libarchive, libbz2
and libz now.
2008-02-03 21:27:27 +00:00
dholland c310e89d2d Once upon a time, larn 12.0 had functions named getchar() and putchar()
that conflicted with libc. We changed them to lgetchar() and xputchar()
respectively; larn 12.2 changed them to ttgetch() and ttputch(). After
reflecting on this for a while I've decided to adopt the larn 12.2
names; not so much for compatibility but for consistency going forward.
So, massrename them. Also make ttputch() static.
2008-02-03 21:24:58 +00:00
joerg 777b7d39b8 pkg_install-20080202 2008-02-03 21:21:30 +00:00
dholland e87aa9031c Don't create files mode 666 in /var. (The code in question is not enabled
by default, though.)
2008-02-03 20:41:53 +00:00
dholland 5c10491064 Larn does not need its own private versions of functions from <ctype.h>.
Also, remove the function gettokstr(), which is not used. From larn 12.2.
2008-02-03 20:11:04 +00:00
dholland b6e0b3d3c9 A long time ago, larn had code to prohibit playing it during work hours.
Most of this code was removed ages ago, probably when dm(6) was invented;
long before -r1.1 in the NetBSD tree in any event.

Now remove the last fragment of it.

Also nuke the file of US holidays 1987-1993 that we've been carrying
around for no reason.
2008-02-03 20:01:24 +00:00
skrll 149ffa5f3f Remove DBG=-g that snuck in. 2008-02-03 19:58:34 +00:00
chris 0cdb05c075 Use memmove rather than memcpy when moving rows around the framebuffer.
This fixes a problem where scrolling down fills the whole screen with the
first line on screen.
2008-02-03 19:38:29 +00:00
dholland ef066a156b Some assorted minor cleanups, from larn 12.2. 2008-02-03 19:29:50 +00:00
dholland d7ba3de791 Make a bunch of functions static. Merged from larn 12.2. 2008-02-03 19:20:40 +00:00
uwe f2d6229f80 Mark up PMFE_* list properly. 2008-02-03 17:18:18 +00:00
tsutsui b143589a1b No need to preserve RE_NTXDESC_RSVD on re_start(). 2008-02-03 17:14:35 +00:00
uwe b5fde352cb pmf_device_register() returns false on error. 2008-02-03 16:56:42 +00:00
chris 37f9401024 Fix-up boot32 to work on A7000+
Logically the previous code should have worked but didn't.  It appeared to
fail when reading the relocation table from physical memory.

To work-around this issue we now compact the relocation table (it shrinks
from ~800 entries to ~15 on a 2.5MB kernel)  The compacted table is small
enough to copy into the page of memory we use to do the relocations.  The
relocation code can now find the table, and carry out the relocations.

To help with debugging the screen border will change colour:
Red:   Running without the MMU turned on (IE 1-1 physical mapping)
       Note that the border will stay red a while as we're copying the
       kernel over at this point.
Green: We've finished copying the kernel over (unless the code breaks
       this will be rarely seen)
Blue:  We're running on the bootstrap L1 table, and just about to call
       the kernel.

Other tweaks include:
* copy the kernel 32bits at a time, rather than 8 bits at a time.
* assert that the relocations are 32bit aligned (so the above works)
* flush the cache and write buffers before turning off the MMU.

Tested by myself on an A7000+.  Tested by skrll@ on Risc-PC and A7000.
2008-02-03 14:59:16 +00:00
martin 27f2dfb174 Adjust assembler in_cksum code to new signature and re-enable it. 2008-02-03 13:27:12 +00:00
martin 6ba1a4c045 defflag CPU_IN_CKSUM 2008-02-03 13:25:57 +00:00
skrll c5f6417a84 Add bootinfo support for hppa.
Initially supply the booted kernel filename and symbol table information.

Create sysctl to access booted kernel.

Bump version of boot to 1.4
2008-02-03 12:09:40 +00:00
drochner d9459c5f21 share some code for USB root hub emulation which is common in the 3
host controller implementations, start with two little functions
which fake up string descriptors (which were inconststent, language
table fetching didn't interoperate with other code in the tree)
2008-02-03 10:57:11 +00:00
dogcow 8f7115c4c1 make it compile for the !defined(DEBUG) case. 2008-02-03 09:25:49 +00:00
matt a7a4e9f149 Preliminatry TC support. 2008-02-03 08:45:40 +00:00
matt 7a66d8d486 use memt instead of iot since everything is memory mapped. 2008-02-03 08:42:48 +00:00
matt 9c814f7331 Reorganize a bit to be able to support multiple sgmaps. 2008-02-03 08:41:22 +00:00
matt 62d5d69912 De-__P 2008-02-03 08:39:48 +00:00
matt 36cebfbb00 misc type cleanups 2008-02-03 08:37:40 +00:00
matt 4471287922 sysmachine uses lwp now. 2008-02-03 08:37:06 +00:00
matt 65f79aefb7 Make process_sstep use ANSI declaration. 2008-02-03 08:36:41 +00:00
matt 4b1e334f7e No need for RW_OWNER/RW_LOCK anymore 2008-02-03 08:35:33 +00:00
matt bae16e79c9 Add physaddr support from mbufs (commented out since it doesn't quite work
right yet).
2008-02-03 08:34:57 +00:00
matt 54c38b27ff Add {,_}atomic_cas_{32,ptr,uint,ulong}. Nuke rw_cas 2008-02-03 08:34:04 +00:00
matt c9c1064fa3 Switch this to use atomic_cas_ulong. 2008-02-03 08:33:00 +00:00
matt 67ba75fa05 Change IPL_SOFTBIO to 0x0b 2008-02-03 08:32:25 +00:00
matt 2395825b1c Add PMAP_VTOPHYS 2008-02-03 08:32:08 +00:00
matt 7fbe2ba862 Make sysmachine take a lwp instead of a proc. 2008-02-03 08:31:48 +00:00
matt 15753da255 Add cpu_intr_p (checks PSL_IS in PSL).
Change badaddr to take a volatile pointer
2008-02-03 08:31:09 +00:00
matt 0ae740580b change all u_int{8,16,32}_t to uint{8,16,32}_t 2008-02-03 08:30:19 +00:00
matt 350555cd1f Add the .C versions for the atomic ops. 2008-02-03 07:46:38 +00:00
tsutsui 0dd140599f Use some loops to prime the cache on measuring the PCC clock frequency.
As per the similar code on mips ports (though no visible difference).
2008-02-03 07:31:21 +00:00
matt 06531ceafe Add a syntax-only target which attempts to compile the entire kernel as one
entity.  Think of it as super-lint.  Due to bugs in the GCC C frontend it
doesn't quite work right but it does provide useful feedback.
2008-02-03 06:46:29 +00:00
xtraeme 4d24afd74c Xref wdogctl(8). 2008-02-03 06:41:39 +00:00
matt 43fc601301 Use uintN_t in comments (since that's what are really using) instead of
u_intN_t
2008-02-03 06:28:01 +00:00
xtraeme 430c4cd21f Add DTES64 and SSE4 related bits to CPUID2_FLAGS, from FreeBSD. 2008-02-03 06:19:06 +00:00
matt b1a0879c83 sh5 is dead. sh[35]e[bl] -> sh3e[bl] 2008-02-03 06:10:53 +00:00
tsutsui a775e1fad0 Remove an unnecessary initializer. 2008-02-03 05:31:17 +00:00
mrg 313548c7c8 fix a MKCRYPTO=no bug - default_memalloc()/default_memfree() are
defined static but not used.
2008-02-03 04:07:34 +00:00
dholland ded3829627 Use mkstemp to make the temporary files used when you win. 2008-02-03 03:49:15 +00:00
dholland 511d1e002c Since games are (now) setgid, not setuid, it is no longer necessary to
manipulate the effective uid, only the effective gid.
2008-02-03 03:45:55 +00:00
christos f408a0fef8 comment out some asserts for now. 2008-02-03 03:40:52 +00:00
wiz 1b89543c7f Document -d. 2008-02-03 03:29:17 +00:00
mrg 9805c65117 merge gcc-4-1-20080202-132073. 2008-02-03 02:48:44 +00:00
itohy 87e62584f4 Fix table. 2008-02-03 02:35:43 +00:00