Commit Graph

449 Commits

Author SHA1 Message Date
bjh21
bd0da079fe Add Service_FSRedeclare. 2006-07-13 16:03:23 +00:00
bjh21
a0121cb653 Sensible error handling, with libsa errors being mapped to useful RISC OS
errors.  Also centralise our filing system number (as yet unassigned) in
nbfs.h.
2006-07-13 15:51:54 +00:00
bjh21
6431f3b2de Descend into nbfs -- I think it's useful now. 2006-07-04 23:08:51 +00:00
bjh21
c6bb58fda2 We don't actually use NEWVERSWHAT, but we should still try to make it correct. 2006-07-04 23:08:10 +00:00
bjh21
ac8af88277 Add some definitions necessary for the latest NBFS, plus a couple of
functions that my boot32 hacks are likely to require.
2006-07-04 23:06:51 +00:00
bjh21
6022ed9721 Fix missing newline at end of file. 2006-07-04 22:42:11 +00:00
bjh21
b314f251e2 Add suppport for FSEntry_file 255, loading whole files. Now I can open
/etc/passwd in Zap.
2006-07-04 22:34:54 +00:00
bjh21
32bed2b7b7 Add support or FSEntry_Func 14 and FSEntry_Func 15, which seem to be the
important directory-listing entry points.
2006-07-02 22:06:16 +00:00
bjh21
1b0f046ee7 Define LIBSA_NO_TWIDDLE, since NBFS really shouldn't twiddle(). 2006-07-02 22:05:07 +00:00
bjh21
7ec4d05a27 Add a *NBFS command to select NBFS as current filing system. 2006-07-02 22:03:23 +00:00
liamjfoy
aeee5deab9 Add CARP to GENERIC kernel configs. CARP is not enabled by default.
ok: christos
2006-06-28 15:19:27 +00:00
christos
29c1a4c22e GCC4 fixes from Mike Pumford 2006-06-25 21:32:39 +00:00
blymn
44278a4fa1 Clean up bogus whitespace 2006-05-26 11:52:08 +00:00
blymn
3c0adb7d99 Make i/o statistics collection more generic, include tape drives and
nfs mounts in the set of devices that statistics will be reported on.
2006-04-14 13:09:05 +00:00
bjh21
147be7c1d5 Fix a couple of typos. 2006-04-06 21:39:16 +00:00
bjh21
5d0813e0c9 Use more manifest constants. 2006-04-06 20:41:38 +00:00
bjh21
bb2de9ff3d Very rough initial attempt at a RISC OS filing system based on libsa, to
allow the loading of kernels from a NetBSD file system by a RISC-OS-based
bootloader.  Currently, there's just about enough functionality to allow
BtNetBSD (and hence presumably boot32 on systems where it works) to load
a kernel.  This code has the great advantages over our existing UnixFS
that we actually have the source and can compile it under NetBSD.
2006-04-05 21:33:26 +00:00
bjh21
9a26703601 Use ctype macros. 2006-04-05 21:30:29 +00:00
bjh21
24b605d41f Circular references are almost inevitable between libsa and libriscos.
Solve them the easy way, using --start-group and --end-group.
2006-04-02 22:13:32 +00:00
bjh21
bc24b5d85b Add code to support access to RISC OS disk devices from libsa. This is
sufficient to allow a small wrapper program to access files on the NetBSD
partition of a shared disk.  NetBSD-only disks don't work (FileCore objects
to the lack of a boot block), and there's no code to actually use this
facility yet.
2006-04-01 19:08:07 +00:00
bjh21
5c391b1150 Provide a default for MKMODULE. 2006-03-29 13:51:54 +00:00
thorpej
2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00
pavel
dc1372c547 Add stf to all kernel configs which have INET6 and gif, except the INSTALL
ones and those for specific machines of developers. PR 32304.

OK'ed by rpaulo.

N.B. stf is a cloning device, so it still must be enabled by
"ifconfig stf0 create".
2006-03-28 20:58:39 +00:00
bjh21
4123cff8a5 Add infrastructure for building real RISC OS relocatable modules, since I've
worked out how to do it.  boot32 doesn't use this mechanism because converting
it would take a fair amount of effort for little gain at this stage.
2006-03-28 20:45:46 +00:00
bjh21
0b33b40f58 Don't declare HIMEM as a variable if it's a macro already. 2006-03-28 20:40:38 +00:00
thorpej
21374641a5 Use device_unit(). 2006-03-26 04:32:33 +00:00
bjh21
82f2e5f67f Don't rely on first_mapped_PODRAM_page_index being zero on systems without
PODRAM, especially since it's initialised to -1.  Instead, use
(podram_blocks != 0) to decide when to use it.  This still doesn't make
my Risc PC boot, but it generates a believable relocation table now.
2006-03-25 15:09:00 +00:00
bjh21
a4e000d9d7 When looking for somewhere to put the relocation table, reset the counter of
contingous pages to zero when we find a non-contiguous one.  This way, we'll
actually find a contiguous block of the correct size (assuming there is one).
The updated version still boots my NC correctly, and fails slightly more
pleasantly on mr Risc PC.
2006-03-25 11:45:50 +00:00
bjh21
bda02d6f90 Use normal array subscripting syntax in place of addition and dereferencing.
No binary code change.
2006-03-23 22:47:15 +00:00
bjh21
24905fcbb7 Ah yes, _that's_ why we don't use field widths in printf() here: libsa's
printf() doesn't support them.  Revert to using print0() while I ponder the
matter.
2006-03-23 22:38:08 +00:00
bjh21
257e469f8b Use slightly more advanced printf() formats to replace the horrid print0()
function.
2006-03-23 22:27:22 +00:00
bjh21
87e257eea2 Substantial syntactic KNF, mostly removing surplus punctuation.
Generated code is unchanged.
2006-03-23 22:14:59 +00:00
bjh21
e2dbf0f5ba Reduce to 80 columns again. It's over two years since Reinoud touched this
code, so I hope this won't affect him too adversely.

Compiled binaries are (modulo date stamps) the same before and after.
2006-03-23 21:27:42 +00:00
lukem
a1f606d3fd Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
wiz
5d1e8b2745 Fix some typos. 2006-02-25 02:28:55 +00:00
thorpej
458b3e43f7 Use device_parent(). 2006-02-23 05:37:46 +00:00
cube
6ff13154dd Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
2006-02-05 05:01:48 +00:00
rpaulo
21c1d240bc bpfilter doesn't accept count anymore. 2006-02-04 02:31:12 +00:00
reinoud
a92fdbbc53 Add commented out UDF file-system entry in all GENERIC configurations. 2006-02-02 21:32:08 +00:00
christos
606bb2caed free -> dealloc
unsigned -> size_t for alloc/dealloc
2006-01-25 18:28:25 +00:00
bouyer
bf1a4d2af5 properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
  for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
2006-01-16 20:30:18 +00:00
perry
2d542ba1f8 inline -> __inline 2005-12-28 19:09:29 +00:00
perry
5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
thorpej
c97c3de6e9 Remove the tablet line discipline. 2005-12-20 05:35:27 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
elad
4591e5acfd Add (commented out) Veriexec options and pseudo-device to GENERIC kernels,
and remove the i386 GENERIC_VERIEXEC config.
2005-12-09 23:34:01 +00:00
yamt
6bba73019a use VM_PAGE_TO_PHYS macro. 2005-12-08 22:41:44 +00:00
tsutsui
2a32b6081e Remove obsolete options VNODE_OP_NOINLINE. 2005-12-07 12:40:46 +00:00
tsutsui
ff9b47d69e Adjust comments for options FFS_NO_SNAPSHOT.
XXX: This option should be mentioned in options(4).
2005-12-07 09:10:11 +00:00
chs
59fddeceaa turn off DEBUG and DIAGNOSTIC in GENERIC kernels so that they
are compatible with the LKMs that are part of the release.
2005-11-03 16:48:29 +00:00