Commit Graph

71 Commits

Author SHA1 Message Date
lukem
4bb41ae2f2 Rework how KERNOBJDIR functions; now it's always determined with
cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
This is far simpler than the previous system, and more robust with
objdirs built via BSDOBJDIR.

The previous method of finding KERNOBJDIR when using BSDOBJDIR by
referencing _SRC_TOP_OBJ_ from another directory was extremely
fragile due to the depth first tree walk by <bsd.subdir.mk>, and
the caching of _SRC_TOP_OBJ_ (with MAKEOVERRIDES) which would be
empty on the *first* pass to create fresh objdirs.

This change requires adding sys/arch/*/compile/Makefile to create
the objdir in that directory, and descending into arch/*/compile
from arch/*/Makefile.  Remove the now-unnecessary .keep_me files
whilst here.

Per lengthy discussion with Andrew Brown.
2003-01-06 17:40:18 +00:00
thorpej
95fa2e148a Use aprint_normal() for cfprint routines. 2003-01-01 01:57:51 +00:00
simonb
6a5e492b57 Remove the explicit `makeoptions MACHINE_ARCH="mipse{b,l}"' for kernel
builds and use the endianness of the toolchain being used to determine
the endianness of the kernel.
2002-12-09 22:54:09 +00:00
lukem
0635de35a3 Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more. 2002-11-26 23:30:07 +00:00
cgd
afa17e6b22 go back to being big-endian by default; was clobbered in last commit 2002-11-23 02:35:39 +00:00
simonb
a3458d769a Add "options MIPS64_SB1". 2002-11-15 01:03:53 +00:00
cgd
a9ff9eb14c to catch up with the recent gcc compiler driver changes, add -mno-abicalls
to AFLAGS.  In CFLAGS, remote -mno-half-pic (unneeded), and add -msoft-float
(needed for gcc 3.3).
2002-11-12 19:34:40 +00:00
simonb
96c9d84cda Add support for the ST M41T81 RTC found on pass 2 swarm boards.
XXX: Much of this should live in arch/sbmips instead of arch/mips/sibyte.
XXX: These should be replaced with MI SMBus drivers one day.
2002-11-12 01:22:25 +00:00
simonb
8243c6f1d3 s/bcopy/memcpy/ 2002-11-12 00:49:08 +00:00
simonb
e60e871a8e Fix the end-of-kernel calculation when we don't have a valid bootinfo
structure.  From Chris Demetriou.
2002-11-12 00:47:10 +00:00
cgd
686bcfad92 add stand to subdir list 2002-11-09 06:50:59 +00:00
cgd
f4cc396bbc loadfile_machdep.h implementation, needed by boot blocks.
copied verbatim from NetBSD/prep.
2002-11-09 06:22:22 +00:00
cgd
c188bc0cbd first cut at NetBSD/sbmips bootstrap programs, cloned from NetBSD/alpha's
and then modified to work with CFE as the firmware.
2002-11-09 06:20:37 +00:00
cgd
608942eb92 support passing in kernel symbols from a boot loader. GC some bogus
boot option handling.
2002-11-09 05:49:30 +00:00
cgd
2946df94fb GC IKOS kernel option (never complete in these sources anyway) 2002-11-09 05:36:49 +00:00
cgd
49c87f0804 update to latest CFE API code 2002-11-08 19:35:38 +00:00
cgd
cd8d5b3c92 default to big-endian, so that the kernel config matches the default
endianness chosen by build.sh for "-m sbmips".
2002-11-08 19:34:59 +00:00
simonb
3338dd4bd0 Fix fallout from gehenna-devsw merge. 2002-11-01 05:47:23 +00:00
elric
5ab71e20b0 Added commented out cgd(4)s to GENERIC configs. 2002-10-14 18:39:22 +00:00
provos
2f7a0aaac8 add SYSTRACE; approved perry. 2002-10-06 02:11:54 +00:00
thorpej
89bf5a8f8e Add trailing ; to CFATTACH_DECL. 2002-10-02 15:52:22 +00:00
thorpej
217c799fe7 Use CFATTACH_DECL(). 2002-10-01 21:24:43 +00:00
thorpej
f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
thorpej
6c88de3b53 Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller.  Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00
thorpej
71404bb533 Don't include <sys/map.h>. 2002-09-25 22:21:01 +00:00
martti
81e8d78cd4 Add one space between "#option" and "<tab>IPFILTER_DEFAULT_BLOCK" 2002-09-25 11:49:48 +00:00
martti
3b553bac54 Added (commented out) IPFILTER_DEFAULT_BLOCK. 2002-09-20 10:39:48 +00:00
lukem
3ea2e21f82 enable USERCONF by default; it's small and extremely useful to have available. 2002-09-18 02:43:53 +00:00
gehenna
77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
thorpej
139cdc3125 Make nbuf, nswbuf, and bufpages unsigned. Make all operations on these
variables unsigned, and update places where their values are printed.
2002-08-25 20:21:33 +00:00
briggs
0b956d0b8b Implement pmc(9) -- An interface to hardware performance monitoring
counters.  These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.

pmc(9) is meant to be a general interface.  Initially, the Intel XScale
counters are the only ones supported.
2002-08-07 05:14:47 +00:00
gmcgarry
3647e0d293 Merge cpu_sysctl() for all mips ports, based on powerpc and m68k precedent.
For now, only pmax implements CPU_BOOTED_KERNEL.  Need to revisit.
2002-08-04 01:41:23 +00:00
simonb
e9dfdd9b2e Add support for the watchdog timers on the BCM1xxx parts. 2002-07-31 05:30:20 +00:00
simonb
4464952a27 Use evbmips/evbmips/conf_common.c since the sbmips port's conf.c was
mostly in-sync with the evbmips one.  The kttcp device has changed
device number; users who have created that will need to re-create it.
2002-07-31 04:04:53 +00:00
thorpej
3912e469dd Rename cdev_systrace_init() to cdev_clonemisc_init(), so it can
be properly used by any misc. cloning device.  While here, correct
a comment to indicate that "open" is the only entry point and that
everything else is handled with fileops.
2002-07-19 16:38:14 +00:00
simonb
00f3022be0 Remove unused MCLOFSET define. 2002-07-11 13:36:45 +00:00
simonb
3350e73517 Add kttcp device. 2002-07-11 00:17:39 +00:00
christos
3b50728cf4 MD systrace gluons. 2002-06-17 16:32:57 +00:00
lukem
fde6ae6f04 Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
2002-06-17 05:14:02 +00:00
simonb
214395e5cd For some reason I'm not sure of yet, cfe_exit(warmstart, ...) isn't
working any more.  Just do a cold restart so at least we get back to
CFE for now...
2002-06-07 01:34:03 +00:00
simonb
4a852aed2d Add smbus@sbobio and rtc@smbus. 2002-06-04 08:35:05 +00:00
simonb
f4e42e7eb6 Add an extremely rough SMBus handler and RTC driver. This will be
cleaned up significantly when we have an MI SMBus framework, but at
least we can see the RTC on the swarm now.
2002-06-04 08:32:41 +00:00
simonb
349831dcf6 Use "cpu*" and not "cpu0" to attach all CPUs.
Add PROCFS and fix a whitespace nit while we're here.
2002-06-04 05:53:31 +00:00
simonb
a1572a6b96 Match all possible CPUs, but print warnings that the processors after
the first are offline due to the lack of SMP support in the kernel.
2002-06-04 05:49:26 +00:00
simonb
9cc65a96d0 3 ports are now using the reciprocal count divisor code now, move it
to <mips/cpu.h>, and add MIPS_SET_CI_RECIPRICAL and MIPS_COUNT_TO_MHZ
macros to use it.
2002-06-04 05:42:41 +00:00
simonb
339203767f Remove some unused debug cruft.
Only print out the registers passed to us from CFE #ifdef DEBUG.
2002-06-01 16:14:23 +00:00
simonb
dbae8649c2 Remove the unneeded early memsize/physmem calculations.
KNF, ANSIfy.
2002-06-01 16:12:01 +00:00
simonb
9f6638d8c1 Add statclock and todr function arguments to the systemsw.
Add a system_set_todrfns() function.
2002-06-01 14:38:27 +00:00
simonb
e8aaf3c28b Stop using the _MIPS_BSD_API_LP32_64CLEAN ABI. This causes a few problems
and it's easier/better to wait for true N32/N64.
2002-06-01 14:29:32 +00:00
simonb
13bc33a766 Fix off-by-one error in delay(). Fix from Charles Hannum in ARM code,
pointed out by Rafal Boni.
2002-05-03 03:36:51 +00:00