Commit Graph

83727 Commits

Author SHA1 Message Date
bjh21
286faf2070 Extra sanity checking on ELF headers: Make sure the bootloader actually
loaded (or claims to have loaded) everything we need.
2001-07-31 22:31:47 +00:00
matt
f8e21592da regen 2001-07-31 22:30:07 +00:00
matt
b2c29c20ae Add pci ids for the Intel 80312 I/O companion chip for the
Intel 80200 XScale processor.
2001-07-31 22:27:25 +00:00
bjh21
acf574f63e When loading ELF, zero out:
The e_shstrndx field in the ELF header, since we don't load .shstrtab.
The sh_name field in each section header, for the same reason.
The sh_offset field for any section we don't load.

This means the kernel has some chance of knowing what it's being given.  It
also means that the behaviour of old kernels with new loaders should be
deterministic (if not terribly useful: they still can't find the symbol
table).
2001-07-31 22:11:57 +00:00
ichiro
1af74c304d iPAQ uses Atmel microcontroller to service a few peripheral devices
(Touch panel, Battery status, button events, and others status)
2001-07-31 21:33:03 +00:00
bjh21
30f144749a G/C "off", since it was just tracking the difference between maxp and elfp. 2001-07-31 21:09:52 +00:00
bjh21
67a82e1d4e Fix a small memory leak when counting the size of the symbol table (shp was
ALLOC'ed if (LOAD_SYM|COUNT_SYM), but FREEd if (LOAD_SYM)).
2001-07-31 20:03:03 +00:00
bjh21
1a35da3617 When loading an ELF kernel, don't load all the STRTAB sections. Instead, just
load those STRTAB sections that are referenced by a SYMTAB that we're loading.

The main advantage of this is that (at least with the binaries output by my
ARM ELF linker) this removes the need to seek backwards through the file, which
is a big win when loading a gzipped kernel.

While we're here, don't allocate space for string tables we don't load.
2001-07-31 19:20:29 +00:00
bjh21
34c3239d32 Don't depend on the bootloader's having loaded the .shstrtab section
in order to load the symbol table.  Instead of using the sections
called ".symtab" and ".strtab", use the first SYMTAB section (the
ELF spec says there should currently only be one) and the STRTAB
section that's linked to it.  I believe this is more robust, and it
certainly makes life easier for the bootloader.
2001-07-31 19:14:18 +00:00
thorpej
c43f8649d2 Set up function pointers for copyin/copyout in preparation for
adding optimized versions for various CPU classes/models.

Split the 386 version of copyout into a separate routine, and
add a 486 version that doesn't have the class/page-writeability
check.
2001-07-31 18:28:58 +00:00
christos
e01e4819af regen. 2001-07-31 17:01:34 +00:00
christos
4d31855a1c recognize dlink-660+, from jandberg@netbsd.org (Jukka Andberg) 2001-07-31 17:01:15 +00:00
matt
03b77c0534 Add a CPU_XSCALE defopt (for eventual support). 2001-07-31 17:00:24 +00:00
jdolecek
5664c34574 all outstanding MCA bugs fixed, woo-hoo :) 2001-07-31 13:16:25 +00:00
jdolecek
2b7d2123cd Make console polling (cnpollc/cngetc) work on IBM PS/2 keyboard controller
using level triggered interrupts, which livelocks calling intr routine
if the data register is not read in the interrupt routine, as it's case
when polling after interrupts are enabled during boot.

Block all interrupts when polling for keypress, and modify intr routine
to read and store value from data register. The latter one is to avoid
losing a keypress when one would manage to press a key when kernel is
not in spl-guarded code section.

Tested with classic pccons, 'pcconskbd at pckbc' and 'pckbd at pckbc'
configurations, on i386.
2001-07-31 13:15:28 +00:00
ichiro
6a036b85d9 correct interrupt pipe of USB-RSAQ1.
sc_intr_iface was defined newly,
and interface of interrupt was kept in sc_intr_iface.
2001-07-31 12:33:11 +00:00
sato
52d89f6cf1 Abort redrawing when screen switch was requested.
Set virtual text vram when other one is drawing framebuffer.
2001-07-31 10:50:06 +00:00
sato
387ddeb6f1 change DPRINTF() to VPRINTF() in pwctl_hardpower(). 2001-07-31 10:37:49 +00:00
eeh
5bacff5834 Code cleanup and optimization. 2001-07-31 06:58:09 +00:00
eeh
830be13fa2 Dump some enums that make lint unhappy and we never really use anyway. 2001-07-31 06:55:46 +00:00
chs
fb5f7652b6 fix think-o in pmap_kenter_pa(). 2001-07-31 05:29:24 +00:00
atatat
124ae5b65c Add an easy way to dump the message buffer from ddb. 2001-07-31 04:28:16 +00:00
thorpej
35df06a642 Carve off the code that builds a TCP data packet into its own
function, and inline it, except when profiling... so we can
profile it.
2001-07-31 02:25:22 +00:00
chs
0d8e804191 fix typo in previous. 2001-07-31 02:17:27 +00:00
ad
aae284be36 Oops, put back the initalization of "done" in mly_thread(). 2001-07-31 02:07:14 +00:00
lukem
8a6a290e5a revert rev 1.48 for now, until i'm sure the malloc (et al) rename is
safe (since there's two separate mallocs using sbrk(2) in that case)

XXX: local malloc provided for mfs memory store allocation; need to
investigate if system (phk) malloc can be used instead.
2001-07-31 01:31:26 +00:00
thorpej
938720eea4 Count the number of times we "self-quench" (ip_output() returns
ENOBUFS), and don't inline tcp_segsize() if profiling.
2001-07-31 00:57:45 +00:00
ad
5226d11119 Assume that me->lun contains the device number if this event is for a
logical device.
2001-07-30 23:49:51 +00:00
ad
ffbc54797a Sync some diagnostic strings with reality. 2001-07-30 23:47:46 +00:00
ad
2fa020ae0b - Forget to report events from logical devices.
- Cosmetic changes.
2001-07-30 23:46:28 +00:00
ad
12c4049d31 Don't match boards with a PCI class code of `I2O'. 2001-07-30 23:29:08 +00:00
jdolecek
50f76258ac Check the passed file handle length _before_, not _after_ copyin() 2001-07-30 22:51:06 +00:00
jdolecek
87b865f2a9 It takes quite a while for the /dev to be setup on my PS/2 test machine.
Since impatient users might think the machine locked up, print a message
'Creating real /dev (this may take a while) ...' so that they know what's
happening.
2001-07-30 22:43:36 +00:00
fvdl
02e4c3348c Check the length of a passed in filehandle to the mount call before
doing a copyin. From Ken Ashcraft @ Stanford via Constantine Sapuntzakis.
2001-07-30 22:23:42 +00:00
eeh
8180bfa441 Add missing `error'. 2001-07-30 22:04:08 +00:00
jdolecek
2d5bc65e0b enable KERNFS, it's used by installation 2001-07-30 21:50:48 +00:00
jdolecek
8fca9dfe2d make BLOCK8K match DISKSIZE 2001-07-30 21:38:22 +00:00
scw
6e0195e742 Make the set_page_cacheable/set_page_cacheinhibit functions do the
right thing on 68030 again.
2001-07-30 21:32:49 +00:00
scw
da3836f00d Flush the caches in pmap_remove_mapping() when PRM_CFLUSH is specified.
Also, flush the ATC for the page in pmap_kenter_pa() after setting up the
mapping. With any luck this last one might just solve the 060 problems I've
been seeing...
2001-07-30 21:25:08 +00:00
jdolecek
b0f8b119a2 fix comment 2001-07-30 20:51:29 +00:00
thorpej
8fc6974449 Oops, make Rx interrupt deferral actually work. 2001-07-30 20:12:10 +00:00
ad
17e6f300f9 Xr scsictl 8 2001-07-30 20:08:36 +00:00
ad
87da05b00f Note mly(4). 2001-07-30 20:02:58 +00:00
ad
3b1828355b Add a driver for Mylex AcceleRAID and eXtremeRAID controllers with v6
firmware. Based off the FreeBSD driver, and re-worked by tls, erh and I.
2001-07-30 19:59:04 +00:00
jdolecek
b0178f25e3 Move GENERIC_PS2 to GENERIC_PS2TINY, update comments to reflect this config is
intended for small memory machines.
Update INSTALL_PS2 appropriately.
2001-07-30 18:24:07 +00:00
jdolecek
3531778254 add MCA stuff, for IBM PS/2 2001-07-30 18:03:54 +00:00
mhitch
1dcdcbf286 The memmap structure contains the memory bitmap returned by the PROM
getbitmap() call.
2001-07-30 17:05:51 +00:00
jdolecek
06d8eabe50 split the PKG_PATH example to two lines (variable set and export) to avoid
too long line in .more or .txt version of the INSTALL document
remove the pkg_add example for cvs - it's part of base system now
2001-07-30 16:58:55 +00:00
rjs
6b65fea380 Remove unused hpc includes. 2001-07-30 16:23:09 +00:00
wiz
8c6310c4a3 Remove duplicate `if'. Noted by Geoff C. Wing in bin/13551. 2001-07-30 16:22:49 +00:00