bjh21
fb3dd6b589
ANSIfy.
2001-01-07 15:27:37 +00:00
bjh21
32ad12527c
ANSIfy.
2001-01-07 15:00:02 +00:00
bjh21
32ff4eef91
ANSIfy.
2001-01-07 14:28:02 +00:00
bjh21
c730bd06be
Un-__P, remove arg names.
2001-01-07 13:48:24 +00:00
bjh21
5c09bd5fc5
Un-__P and remove function arg names.
2001-01-07 13:38:42 +00:00
bjh21
610a127a3d
Fix a stupid = vs == bug that prevented the code working usefully at all.
...
While I'm here, fix all the other GCC warnings too.
2001-01-07 00:30:29 +00:00
bjh21
fa64805abd
Specify (void) arguments, hence avoiding GCC warning.
2001-01-07 00:07:58 +00:00
bjh21
32c62f1fdb
ANSIfy
2001-01-06 13:09:05 +00:00
takemura
c5fd828440
replace 'long long' with int64_t to compile stand alone program with
...
compiler other than GCC.
2001-01-03 10:08:55 +00:00
bjh21
7866e2f2c9
Arrange that the return value of copyin() and friends be provided by
...
do_fault(), in preparation for do_fault() being able to get it from
uvm_fault().
2001-01-01 16:00:42 +00:00
bjh21
bc86e85531
Correct various initial comments, and provide a useful overview of how the
...
MEMC works, at the suggestion of chs.
2000-12-31 16:09:34 +00:00
bjh21
c1ad66d687
Whitespace cleanup.
2000-12-30 13:53:26 +00:00
bjh21
66c70101f3
Add a cache flush to pmap_fault() when it adds a r/w mapping, since there's
...
probably an old mapping around that we don't want to get stale.
2000-12-30 13:42:12 +00:00
bjh21
e9d5e8f1e5
Overhaul v(un)mapbuf: Don't worry about unmapping things (the pmap can handle
...
multiple wired mappings now). Do worry about seeding referenced/modified
information correctly.
2000-12-30 13:33:15 +00:00
bjh21
e4c6b6f4e5
pmap_kenter_pa(): Seed referenced/modified information correctly.
2000-12-30 13:31:50 +00:00
bjh21
b3eae7d1c8
Since we need to have an aout_machdep.h, we may as well borrow the arm32 one.
2000-12-29 23:08:31 +00:00
bjh21
36f8a8d0f8
Purge vestiges of a.out support.
2000-12-29 23:07:29 +00:00
bjh21
00a01e20d8
Sync with arm32. No functional changes.
2000-12-29 22:42:23 +00:00
bjh21
df10cbcda9
Sync with arm32 (fixes warnings compiling /bin/sh and probably others).
2000-12-29 19:30:34 +00:00
matt
a589927cbc
Make identical to arm32 version. (add same parens, use __P, etc.)
2000-12-28 03:55:14 +00:00
matt
f1f4acfb4d
Remove reference to CLBYTES
2000-12-28 03:54:15 +00:00
matt
61b05af542
Except for the RCSID, this file is now identical with arm32/include/ansi.h
2000-12-28 03:52:50 +00:00
bjh21
c00a8ab5fd
Calculate the required amount of screen memory, rather than just trusting the
...
number that RISC OS gives us (which may be far too large).
2000-12-27 22:13:42 +00:00
bjh21
9822871467
Add a special call to uvm_page_physload to register RISC OS's zero page as
...
free at startup.
2000-12-27 20:43:44 +00:00
bjh21
1b364c5082
pmap_confess() is unused and doesn't work any more. G/C it.
2000-12-27 18:38:50 +00:00
bjh21
c481cdca92
Overhaul of data-abort handling:
...
- Make data_abort_address() return the whole affected range, rather than
just one end.
- Don't rely on pmap_confess(). Instead, for LDM/STM, behave as if two faults
had occurred, one at each end of the range.
- Separate out fault handling into do_fault(), and call it from
data_abort_handler() (twice) and prefetch_abort_handler().
2000-12-27 18:35:18 +00:00
bjh21
58e80f030f
Two batches of changes:
...
1: Cleanup of syscall() -- treat the arguments as an array of register_t
throughout. This saves a few casts, and generally makes seeing what's
going on easier.
2: Be a little more careful in the handling of data aborts on kernel
addresses: don't use the kernel's map unless the access was actually from
a kernel mode. This is how the arm32 data abort handler behaves.
2000-12-27 16:57:09 +00:00
bjh21
186792c5b7
Use KASSERT for simple assertions.
2000-12-27 16:50:12 +00:00
bjh21
2433e71e6e
Medium-sized pmap overhaul:
...
- Use UVMHIST for debugging messages, rather than printf
- Rely on the caller of pmap_enter to tell us how to manipulate referenced/
modified bits in the kernel pmap.
[ Suggested by chs -- may need work on the rest of the kernel. ]
- Split third-stage initialisation out of pmap_create() into pmap_init2().
- Bug fix: when relocating pv_table, fix up all references to it as well.
- Bug fix: in pv_release(), if pulling up a pv_entry to the head of the
list, correct the reference from its pmap.
2000-12-27 15:16:04 +00:00
bjh21
ce3cd11d08
Unreasonably simple fix for PR#11817: Don't worry about duplicate mappings,
...
just get pmap_fault to shove them back in. Crude, but effective. Fix inspired
by Chuck Silvers.
This breaks pmap_confess, but it probably deserves to die.
2000-12-26 23:18:50 +00:00
bjh21
939baa9f0d
Follow the herd: Use the MI md_root.c.
2000-12-26 19:55:52 +00:00
itojun
efa2b7073c
make mbstate_t bigger (32 -> 128 bytes).
...
XXX if you have libc after citrus locale import, please recompile libc,
and your applications that use mbstate_t (rather rare). really sorry
for the mess.
2000-12-26 10:35:28 +00:00
bjh21
f1fc4edf08
In pmap_enter(), seed referenced and modified bits from access type passed in.
2000-12-23 23:06:51 +00:00
bjh21
5568314c66
Since the Arc's interrupt layout is fixed, only print IRQ numbers in
...
verbose mode. This helps to ensure the kernel version number doesn't disappear
too quickly.
2000-12-23 21:49:13 +00:00
bjh21
7cce6a2816
Remove "machine" subcommands that duplicate "show".
...
Add "machine bsw" which does a bus_space_write_*().
2000-12-23 15:18:34 +00:00
bjh21
da1e6b7cfb
Don't SIGSEGV a process just because we get KERN_RESOURCE_SHORTAGE. It might
...
go away.
Yes, this is a grotty hack. The right solution is for uvm_fault to be less
pessimistic.
2000-12-23 15:12:54 +00:00
bjh21
95920110c7
Stub FPU driver -- identifies FPUs and warns they aren't supported. e.g:
...
cpu0 (root): ARM2
fpu0 at cpu0: FPPC/WE32206
fpu0: WARNING: FPU type not supported by kernel
2000-12-23 13:37:02 +00:00
bjh21
85aa3d3b8d
G/c unused declarations.
2000-12-23 12:57:55 +00:00
jdolecek
e9e91a0fb5
split off thread specific stuff from struct sigacts to struct sigctx, leaving
...
only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx
This addresses kern/10981 by Matthew Orgass.
2000-12-22 22:58:52 +00:00
bjh21
0c0d8f3775
Support for identifying MAUs attached to EtherLan 200-series cards.
2000-12-22 22:21:37 +00:00
itojun
823498203f
populate _BSD_MBSTATE_T_. add warning regarding to rune_t.
2000-12-21 06:03:47 +00:00
bjh21
15d214bd18
Looks like I got the state of the link-detect bit inverted. Fixing that
...
gets me working auto-media selection, which is nice.
2000-12-20 23:08:44 +00:00
bjh21
9ca53819f0
Actually use 10baseT when we say we will.
2000-12-20 22:48:15 +00:00
bjh21
4a33b50a91
Add eh(4).
2000-12-20 22:17:31 +00:00
bjh21
f8e732cd45
Use the podule loader code to get at the card description the official way,
...
and get our Ethernet address from there. This works on both of my cards.
2000-12-20 10:59:32 +00:00
bjh21
b66603547a
Add support for using RISC OS podule loaders to get at ROM chunks on podules.
...
By default, they aren't used, since most cards seem to put the non-OS-dependent
stuff in the main chunk directory. i-cubed cards are a notable exception.
2000-12-20 10:57:38 +00:00
bjh21
5b4c3dc909
Disable media autoselection entirely, but use whatever medium the card was
...
found using (presumably having been set up by RISC OS) as the default.
NB that this doesn't seem to be right for the EtherLan 200.
2000-12-20 00:01:56 +00:00
tsutsui
cb7f7c7f3b
Remove "rnd is EXPERIMENTAL" comments.
2000-12-19 15:51:47 +00:00
bouyer
c71f40d166
Add pseudo-device vlan
2000-12-19 10:42:02 +00:00
bjh21
c25ab2f1ec
Rudimentary facilities for extracting the card's Ethernet address from the
...
ROM. Only works on one of my two cards, though. It looks like we'll need
to use the RISC OS loader on the podule to get this right. *mutter*
2000-12-18 00:46:47 +00:00
bjh21
4942923809
Handle detecting the available media and state of medium selection links
...
on EtherLan 100 (and presumably 500) boards.
2000-12-17 22:29:26 +00:00
jdolecek
cacec11253
delete obsolete comment
2000-12-17 15:52:39 +00:00
bjh21
72735aa75a
Correct embarrassing null-pointer-dereference bug. Also fixes interrupt
...
enabling.
Default to 10base2 for now, since automatic media selection doesn't work.
2000-12-16 18:24:36 +00:00
bjh21
3ebcd51009
I think bit 0 of the status register is the interrupt status on read.
2000-12-16 18:23:14 +00:00
bjh21
3c5709c088
Separate out checkvectors(), so it can be used elsewhere for debugging.
2000-12-16 16:45:11 +00:00
bjh21
395a883e48
Pull across arm32 rev 1.19:
...
Remove ALTENTRY(). It's dangerous and should not be used.
2000-12-14 20:50:56 +00:00
bjh21
e266a563d8
Filter out non-ASCII characters from podule descriptions.
...
I think my MIDI card had a \r at the end, which was confusing.
2000-12-14 20:40:29 +00:00
bjh21
84d111ea01
Move RCSID to the end of locore so it doesn't end up in zero page if we
...
compile with an asm.h which doesn't know about section .ident.
2000-12-14 20:30:03 +00:00
bjh21
a6b4048c85
Get ELF RCSIDs back
2000-12-14 20:26:42 +00:00
bjh21
14198dc0bd
Sync with arm32 -- they've got ELF stuff there these days.
2000-12-14 19:28:12 +00:00
bjh21
acff6e4375
Use _C_LABEL rather than _C_FUNC.
2000-12-14 19:22:39 +00:00
bjh21
afb44982ee
Correct the mangled-vectors check.
2000-12-11 23:51:58 +00:00
bjh21
0692c35dda
Since BBBB correctly disables the CPU cache at startup, we now decide whether
...
to leave it disabled based on the bottom bit of cpu0's cf_flags.
2000-12-11 23:46:50 +00:00
bjh21
d606f7e6e0
Move most of the RISC OS shutdown into BASIC code.
...
Issue Service_PreReset to get the hardware to a sane state.
Use *ShutDown to log off fileservers.
Use the correct arguments to Cache_Control.
Using Service_PreReset seems to have rendered the Podule_ReadID trick
unnecessary, so g/c it.
2000-12-11 22:19:18 +00:00
bjh21
4f1ee09e5f
It looks like UBC_WINSIZE needs to be at least PAGE_SIZE.
2000-12-10 14:28:45 +00:00
bjh21
4f5619bc7c
Prototype kdb_trap().
2000-12-10 01:31:48 +00:00
bjh21
7e79390d64
Delint.
2000-12-10 01:27:35 +00:00
bjh21
6073fc61bf
Indirect the SWI handler through the current emulation, thus providing a
...
syscall() for MI code. Hope it never calls it itself.
2000-12-10 01:18:52 +00:00
bjh21
477863502b
DIAGNOSTIC check for mangled exception vectors.
2000-12-10 01:02:04 +00:00
bjh21
559ea94aca
Fix arguments to ktrsys*() functions.
2000-12-09 18:57:17 +00:00
bjh21
6d66ade542
We no longer have zeropage.S. It was merged into locore.S last week.
2000-12-09 18:54:01 +00:00
bjh21
86dd29d1f5
Add a definition of BUS_SPACE_ALIGNED_POINTER.
2000-12-09 18:47:15 +00:00
bjh21
8df54708da
If we get an odd IOEB type, tell the user. I have a feeling issue 1 A5000s
...
might trip this.
2000-12-09 18:04:05 +00:00
bjh21
38d918f85f
Proper support for the Unix backplane in those machines that have one.
...
Not very well-tested, but it seems to work.
2000-12-09 17:52:44 +00:00
bjh21
facbe746d0
Provide friendly names for the IRQs as they're wired in normal machines.
2000-12-09 15:16:01 +00:00
bjh21
3e0d9a1b4a
Fix multiple-file loading. Bump version number to 0.41.
2000-12-09 13:30:25 +00:00
bjh21
4c4e11c0f8
Merge zero page into the start of locore. This allows us to just map the
...
start of the kernel text segment in at address 0 to get zero-page properly
mapped. This should save us one page, but that may need a bit of extra
shuffling before we can easily tell UVM about it.
2000-12-07 21:48:58 +00:00
bjh21
cb5273b547
First attempt at an EtherH driver. Can just about transmit and receive
...
packets. Interrupt enabling is left to the RISC OS driver, medium selection
is untested and it's hard-wired to the MAC address of my card. Not really
for production use.
2000-12-01 14:28:36 +00:00
bjh21
9307dc5373
Reduce default UBC_NWINS to save precious KVM.
2000-11-30 20:59:36 +00:00
bjh21
32b19479ca
Drastically reduce PAGER_MAP_SIZE so we don't run out of KVM so soon.
2000-11-30 12:16:00 +00:00
bjh21
eb0dc305da
Insert clock low after ack bit.
2000-11-26 18:53:12 +00:00
bjh21
f801b80192
Zero-length reads seem to confuse the chip, so don't do that.
2000-11-26 18:12:36 +00:00
bjh21
70562420ce
Support multiple files on the command line (they're catted together).
...
Ditch a.out support while we're here (to save updating it).
2000-11-25 18:30:23 +00:00
bjh21
98253a5467
It seems that all versions of BBC BASIC V can load a text file specified on
...
the command line, so we don't need to tokenize it first.
This makes it less than clear what file type BBBB should have, so let's not
make an issue of it.
2000-11-25 13:32:51 +00:00
bjh21
564a044dcb
Using bsd.man.mk looked silly without a man page. Use bsd.prog.mk without
...
PROG instead.
2000-11-22 00:36:22 +00:00
bjh21
fc955e1104
Move BBBB out of the kernel tree so other architectures can see it.
2000-11-22 00:32:53 +00:00
bjh21
c4eb6c6325
Rudimentary manual page for BBBB.
2000-11-22 00:18:47 +00:00
bjh21
986c78ced4
New mechanism for building the tokenised version of BBBB under NetBSD. This
...
saves us having to keep a uuencoded version around.
2000-11-21 23:47:37 +00:00
bjh21
99899665e8
Move of BBBB to a more sensible location.
...
Look in sys/arch/arm26/boot/BBBB,fd1 for old commit messages.
2000-11-21 23:44:24 +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
bjh21
b4ef973eab
IDE hard discs seem to work -- turn them on by default.
2000-10-14 23:46:40 +00:00
bjh21
a449e4af6d
Ensure that the IOC is attached before any other devices, mostly because
...
the UPC driver needs to know whether the system's got an IOEB in it.
The way this is implemented is a mess -- I need to get my mind round
autoconfiguration again.
2000-10-14 23:44:42 +00:00
bjh21
7270db5ec0
Change to semantics of irq_establish: IRQs are now enabled by default, which
...
I think is the same as all other ports.
2000-10-14 23:41:01 +00:00
itojun
9e47af8814
enable rnd device. they are now mandatory for ssh/sshd support,
...
so it makes more sense to enable it.
please disable them if there's any issues, but in that case, in-tree
ssh/sshd won't work.
2000-10-04 03:35:53 +00:00
jdolecek
b1f94e26ab
don't specify number of ptys if >= 16 (current default initial number)
...
pty comments: normalize and g/c what is no longer relevant
2000-09-24 15:59:26 +00:00
jdolecek
49c105ffdb
add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
...
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate
as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro
for hpcmips, use new bootverbose instead of it's own hpcmips_verbose
Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
2000-09-24 12:32:31 +00:00
bjh21
d0dfd74448
COrrect comment at top and add options NFS_V2_ONLY.
2000-09-23 12:58:26 +00:00
bjh21
b6ba812d35
Much juggling of pmap startup sequence:
...
* All of pmap_init is now deferred to the first call of pmap_create. This
allows us to allocate stuff dynamically using malloc.
* pv_table (which is needed before malloc is available) is temporarily
allocated using pmap_steal_memory in pmap_bootstrap, and then
re-allocated using malloc in pmap_create, with the old allocation being
given back to UVM. This should save some memory on small machines, but
the malloc overhead probably soaks it up.
2000-09-23 12:54:47 +00:00
bjh21
3112fd4f14
Add a pmap_steal_memory implementation. This has two good consequences.
...
First, it reduces the kernel text segment by 1k or so.
Second, it should enable me to eventually allocate the pv_table dynamically.
2000-09-23 11:10:58 +00:00
bjh21
7751c0fd46
If we haven't got DDB in the kernel, there's not much point hanging onto the
...
symbol table.
2000-09-21 23:22:51 +00:00