Commit Graph

34099 Commits

Author SHA1 Message Date
pk 48a30a2e35 Soft interrupts use their own set of handlers lists. 2002-12-09 16:13:23 +00:00
pk c822c6bd84 Finish the switch to the softintr(9) framework.
To make this work, we now have to use separate handler lists for hardware
and software interrupts as the soft interrupt handlers do not return
an `interrupt handled' status.

Thanks to Matt Fredette for providing an initial set of patches on port-sparc.
2002-12-09 16:11:50 +00:00
perry 21bf723223 comment out/comment/move p64h2apic line. 2002-12-09 15:50:57 +00:00
scw c7eafb778a The walnut port has been subsumed by the new evbppc port. 2002-12-09 14:57:47 +00:00
tsutsui 8c3c217b4d cosmetics. 2002-12-09 13:38:30 +00:00
tsutsui a92570f14c As per discussion with soda, all EISA based Jazz machines seem to require
the same method to access TOD clock, so move chipset-dependent mcclock
routines to appropriate files.

This should also fix Express RISCserver and RISCserver2200 (aka R96) support
which has been broken since "struct platform" was introduced.
2002-12-09 13:36:26 +00:00
scw 0e6f5edb27 Delete walnut, add evbppc.
While I'm here, add sh5 and evbsh5.
2002-12-09 12:53:41 +00:00
jdolecek d9944f3152 need -mno-abicalls in AFLAGS as well, so that .S would be compiled as
non-PIC same way as .c
2002-12-09 12:42:18 +00:00
scw 5b5dfad81e Add evbppc. 2002-12-09 12:29:17 +00:00
scw 67d6f49379 Changes/additions to support evbppc. 2002-12-09 12:28:12 +00:00
jdolecek a74b5c71e2 build with -ffreestanding 2002-12-09 12:20:56 +00:00
scw f1d6e9e873 Add pmc.h 2002-12-09 12:17:42 +00:00
scw 5448df2eed New umbrella-port for PowerPC-based evaluation boards.
The first board to be included here is the port to the 405GP-based
Walnut evaluation board, which up until now lived in arch/walnut.

arch/walnut will go away soon, once all the remaining walnut-isms
in the tree have been dealt with.
2002-12-09 12:15:48 +00:00
jdolecek 4f2661e403 add #include <lib/libkern/libkern.h> to pull in prototypes
for couple items which don't have implicit prototypes with -ffreestanding
2002-12-09 12:14:10 +00:00
simonb 719522fdf3 Add "sqphy" for the PHYs on the PB1500.
Add a note that this kernel is for the PB1000 and PB1500 boards.
2002-12-09 06:54:25 +00:00
david 6189641f30 Don't want cardbus here, since there are no devices on it.
Thanks to Krister Walfridsson for mentioning it.
2002-12-09 02:38:13 +00:00
martin 92fb024e28 Follow the sparc port and use the MI versions of setrunqueue and
remrunqueue.
2002-12-08 22:30:53 +00:00
manu 9f6565f2bd A working fork/vfork implementation. Darwin fork differs from our fork by
two ways:
- the child gets its pid as retval[0] (userland stub will turn it into a 0),
retval[1] is 1 and it is 0 in the parent.
- in the child, the fork syscall is successful, hence we must skip the next
instruction.
2002-12-08 21:53:10 +00:00
leo e1de9af762 regen. 2002-12-08 21:33:56 +00:00
leo cacf2eb6c2 Make things work with the new autoconf stuff:
- The pcibus is now called 'pcib' and the isabus 'isab'. Their attributes are
  'pcibus' and 'isabus' respectively. This makes the underlying busses
  attach again.
- Initialize the parent structure in the config_console() function.
  Otherwise we end up without a console.
2002-12-08 21:31:35 +00:00
pk 74a8332ee9 cpu_switch(): avoid raising the interrupt level and enabling traps at the
same time as this may cause a spurious interrupt in some implementations.
Pointed out by uwe.
2002-12-08 16:16:59 +00:00
uwe 38b8c5689a Use 0x07ffffff for LOADADDR mask. This still provides for 128MB (and
given that PROM maps just 4 or 16 this is not going to be a bottle
neck).  Doesn't really affect normal kernels, need it for the changed
kernel base address (uncommitted) hack for broken javastation OFW.
Ok by pk.
2002-12-08 14:36:55 +00:00
ichiro d24191b40d delete unneed pmap for LED and Clock 2002-12-08 13:22:31 +00:00
ichiro 51b12685a4 change flags of pmap_enter() in ixp12x0_io.c, ixpsip_io.c
bug fix: ixp12x0_pci.c
2002-12-08 13:21:44 +00:00
manu 3b0f6d78ed Introduce BSD system calls with alternate patch checking (in /emul) in
compat/common, so that they can be shared by several emulations, and use
them for Darwin.

This removes the ugly dependance on FreeBSD freebsd_file.c for COMPAT_DARWIN
2002-12-08 00:50:23 +00:00
scw d4cfbd3754 Implement __cpu_simple_lock{,init,try}() for sh5. 2002-12-07 22:31:33 +00:00
tsutsui 12a1bc1fff Add (commented out) options SYMTAB_SPACE. 2002-12-07 21:55:44 +00:00
scw 50247a2a3c Fix PRIiPTR. 2002-12-07 21:37:35 +00:00
tsutsui 005b76cc2a Call ${DBSYM} in SYSTEM_LD_TAIL_EXTRA. 2002-12-07 21:35:58 +00:00
tsutsui ecc82050ea Call ddb_init() unconditionally if SYMTAB_SPACE is defined. 2002-12-07 21:34:48 +00:00
ad 59773dea2e Implement the DPT EATA ioctl() interface. 2002-12-07 19:48:30 +00:00
junyoung 6b57b095ae Identify many Intel processors which were misidentified previously. 2002-12-07 15:36:20 +00:00
junyoung 721f8f7979 Print processor signature (id) after clock frequency. 2002-12-07 15:18:08 +00:00
tsutsui 40ca5f0895 - Add definitions RD_94_[PVS]_EISA_{IO,MEM} in rd94.h.
- J96A (Express5800/240 R4400 EISA) requires different method to access
  todclock from other NEC machines (it's similar with magnum),
  so handle it in p_nec_j96a.c.

Now my NEC Express5800/240 works. (and now I can test 53c700 SCSI.)
2002-12-07 13:09:46 +00:00
pk 6c8d3fba22 Use MI versions of {set,rem}runqueue(). 2002-12-07 10:27:03 +00:00
jmc a94542f191 Rename the commented out fwscsi -> sbpscsi (names changed once code was
committed)
2002-12-07 07:26:51 +00:00
tsutsui a9df47a02d Some cosmetics. 2002-12-06 17:57:28 +00:00
junyoung 43bc578d8b Get rid of #ifdef CPUDEBUG. CPU signature is always displayed. 2002-12-06 17:53:52 +00:00
pk 9ebe0ee7a6 ienab_bi[cs] are never used in a context common to both sun4/4c and sun4m,
so there's no point in constructing common entry points for them in locore.s.
2002-12-06 17:45:39 +00:00
pk 1b719337bb Pass the `device class interrupt level' on to intr_establish() and use to
raise the ipl in the interrupt handlers to the appropriate level. This avoids
interrupt handler interference if one of the devices actually interrupts at
a lower hardware level than the maximum level assined to a device class.

Based on code from Art Grabowski in openbsd.
2002-12-06 16:04:11 +00:00
itohy 3e8cfbbf05 minor changes
fix typo
2002-12-06 16:03:52 +00:00
itohy 0d63741702 The buf structure (<sys/buf.h>) is not flexible since it is designed for disks,
and use home-grown buffer structure.

Handle display orientation (normal or upside-down) appropriately
by making use of devinfo of base device.
If the LCD is at an expansion slot of a base unit
whose di_connector_direction == MAPLE_CONN_TOP,
the driver automatically rotates the bitmap.
You need not rotate the bitmap before passing to the driver (spec change).
2002-12-06 15:59:53 +00:00
itohy f972b5535e Pass devinfo of the base device (subunit == 0 of the same port)
to sub-drivers.
2002-12-06 15:49:31 +00:00
itohy 8f6d7bef0a The value of di_connector_direction is 1 for Dreamcast Gun, 0 for
other devices.  It looks like that the value represents the direction
of expansion units (Visual Memory, etc.).
Add definition of the directions.
2002-12-06 15:47:22 +00:00
pk 721e534a25 Use IPL_SOFTFDC. 2002-12-06 15:37:55 +00:00
pk e093913db8 Use IPL_SOFTAUDIO. 2002-12-06 15:37:39 +00:00
pk 060fa93542 Start using IPL_* constants from intr.h; phase out PIL_* in psl.h 2002-12-06 15:36:45 +00:00
junyoung 6e278393ba Don't pollute struct cpu_info with throwaway variables. 2002-12-06 14:47:07 +00:00
scw 57c2c2b87f Add a hack at the end of setregs() which works around a bug which can,
under some circumstances, leave turds in the icache following vmspace
teardown.

It's not yet clear if this is a pmap bug or a toolchain problem since
the hack is unecessary when the kernel is compiled with -O0. Of course
that could just be masking the problem due to increased icache pressure...
2002-12-06 10:22:15 +00:00
scw f051850107 Avoid strict-alias warnings. 2002-12-06 10:14:10 +00:00
scw 41085b101b fsina.s, fsrra.s and fcosa.s take single-precision operands, not double. 2002-12-06 10:12:13 +00:00
scw 87897c05fe Qualify ptel and tlbcookie fields with volatile since they are
modified by the TLB miss handler.
2002-12-06 10:10:48 +00:00
scw 04fd530ec5 Avoid strict-alias warnings. 2002-12-06 10:07:10 +00:00
scw 381d46a4d1 Hard-code the simulated cpu speed to some fictional value. 2002-12-06 10:06:27 +00:00
simonb ae1eaadf08 Fix a typo in the PCI map array (no functionality changes in practice). 2002-12-06 05:46:47 +00:00
junyoung df482bbd8a Rename amd_cpuid_cpu_cacheinfo() to amd_cpu_cacheinfo(). 2002-12-06 05:03:02 +00:00
junyoung 281fa073dc Display the extended feature flags with non-Intel processors rather than
the standard flags. See also PR#19163.

Before:

cpu0: AMD Athlon XP 1800+ (686-class), 1532.11 MHz
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>

After:

cpu0: AMD Athlon XP 1800+ (686-class), 1532.11 MHz
cpu0: features c3cbf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features c3cbf9ff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMXX,MMX>
cpu0: features c3cbf9ff<FXSR,SSE,3DNOW2,3DNOW>

While I'm here, amd_cpuid_cpu_cacheinfo() is an info function rather
than a probe function.
2002-12-06 02:38:25 +00:00
simonb 4ea9ad894f Avoid strict alias warning. 2002-12-06 01:55:55 +00:00
christos c363ae66f1 add offsets for linux_rt_sigframe 2002-12-06 00:00:20 +00:00
christos 6b0fccd61c simplify 2002-12-06 00:00:04 +00:00
fredette 0fee3368c3 Fixed a null pointer passed to printf(). 2002-12-05 18:05:33 +00:00
junyoung a2a55f2564 - FGPAT -> PAT, as documented in Intel manual.
- Feature flag 31 is "Signal Break on FERR" (SBF).
2002-12-05 17:25:26 +00:00
junyoung 72510c5d3b - Identify VIA C3 processors. Fix PR#19163.
- While here, make use of CPUID2STEPPING() macro.
2002-12-05 16:19:08 +00:00
jdolecek 4ed167f658 a bit of KNF - function type on separate line than function name, function
name on start of line
2002-12-05 10:01:56 +00:00
ichiro fa14fafc16 add IEEE1394 configuration(Comment out) 2002-12-05 09:32:22 +00:00
simonb 699bf96665 Drop the _KERNEL test; these functions are needed for SMP and other ports
don't bother with a _KERNEL check.
2002-12-05 02:56:51 +00:00
fvdl cc2e1c4082 FIrst cut at INSTALL kernel. 2002-12-05 02:06:44 +00:00
david 2cf8089839 Include cbb, and its cardslot and pcmcia children. Needed by some wi cards. 2002-12-04 23:44:12 +00:00
uwe 6c05e7879f Fix an options<space><tab> nit. 2002-12-04 23:30:40 +00:00
fvdl 93f2be9ef0 For the resume/recurse case, make sure that the interrupt mask level
of the handler is set before acquiring the kernel lock, to avoid a
recursive chain of interrupt processing out of splx().
2002-12-04 23:13:09 +00:00
jdolecek 6227201ba9 If booting from floppy in 2.88MB drive, actually test if it's possible
to read sector 18, and fallback to 1.44MB drive geometry if that fails.
This allows to boot from 1.44MB floppy disk in 2.88MB drive.
Tested with 2.88MB drive in IBM PS/2 model 95 donated
by 'Yokotashi' <lhc at kanal ucw cz> and Pavel Cahyna
<pavel.cahyna at st ms mff cuni cz>
Bump biosboot version.

Fixes PR kern/3418 by Keith Moore.

Change okayed by Frank van den Linden.
2002-12-04 18:26:56 +00:00
thorpej a13469e728 Revert my previous GCC 3.3-related changes; GCC 3.3 has been fixed
to handle our stdarg/varargs ABI for PowerPC.
2002-12-04 17:42:51 +00:00
imp 1d37d03cd9 Custom config file the the Deskstation rPC44 (aka ARCSTATION I and EPC44).
Untested on target hardware, but compiles and links.
2002-12-04 08:14:30 +00:00
imp cad09ef8c4 Include machine/kbdreg.h when NPCKBC > 0. This is necessary to pick up
the KBDCMDP definition.
2002-12-04 07:43:55 +00:00
fvdl 5c45b70587 Don't use delay() in the IPI wait loop. Use an empty one instead, with
a counter check in the DIAGNOSTIC case.
2002-12-04 01:36:10 +00:00
fvdl 082d4707fd Create a proper frame in Xspllower if DDB is defined. 2002-12-04 01:33:58 +00:00
haya 805040f592 New Feature: add pseudo device for IEEE 1394 isochronous stream and
isochronous reception routine for IEEE 1394 OHCI (fwohci).  The
transmission part is under construction.

The minimum configuration options for this feature are:

# IEEE 1394 (i.LINK)
fwohci*	at pci? dev ? function ?
pseudo-device	fwiso		1
2002-12-04 00:28:39 +00:00
fvdl b59af86db6 Install atomic.h 2002-12-03 22:13:58 +00:00
fvdl 567d82224b Synch with i386 (pmap, naming schemes, cpu_info structure). 2002-12-03 22:03:01 +00:00
fvdl e6f74d6f68 Set the CR0_WP bit. 2002-12-03 22:01:26 +00:00
uwe 23c0293ee7 The chip treats weekday 1 == Sunday, correct dt_wday adjustment logic
appropriately.  NB: the old code would never write weekday zero that,
I've been told, might cause the RTC to reset.
Pointed out by kenh.
2002-12-03 17:54:54 +00:00
kenh 25c20430c3 The day-of-week register in the MC146818 has the value 1-7, but
clock_secs_to_ymdhms() returns dt_wday with a range of 0-6.  Make sure
the DOW register has the correct range.
2002-12-03 16:11:11 +00:00
ichiro ad74b473f7 initialize ixpcomconsaddr
use splserial()
fix IXPCOM registers
2002-12-03 09:28:27 +00:00
ragge 0b23d06491 Revert Jason's changes to the boot startup code:
- All regs must be saved before any register is altered.
- movc{3,5} alters r0-r5, so clearing bss would clear the text instead.
This needs more thinking/testing to get it work correct; there are
different ways different CPUs call "boot".
2002-12-02 20:23:32 +00:00
ichiro 5a1cd5fee6 add NAPPI_MD config file 2002-12-02 14:26:52 +00:00
ichiro 05413e5da4 move location of pmap_debug() 2002-12-02 14:25:38 +00:00
ichiro 1e213be17b use bus_space map 2002-12-02 14:10:13 +00:00
ichiro f2de71b067 changes&fix name of mapping registers 2002-12-02 14:08:57 +00:00
matt 56effcf269 Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
matt 4913834e76 Fix inconsistencies in various definitions of avail_*, virtual_*, and
proc0paddr.
2002-12-01 21:20:31 +00:00
isaki 14096cb14e Add bmd, memory disk driver for Nereid bank memory. 2002-12-01 09:00:35 +00:00
fvdl 8848e366f2 For softints, there's no intrframe on the stack, so don't try to use it.
Use a seperate lock function (in taking the same lock) instead.
2002-12-01 00:15:36 +00:00
tsutsui d03ac2a783 Fix botch in previous. This is pcb.h, not reg.h. 2002-11-30 22:50:01 +00:00
fvdl 14067df51c Fix format warnings in INTRDEBUG case. 2002-11-30 22:22:53 +00:00
tsutsui d658fd6e12 Add a configuration of struct platform for NEC-J96A,
NEC Express5800/240 with R4400 and EISA.

XXX not functionally working yet. (hangs after mountroot via NFS)
2002-11-30 19:23:44 +00:00
tsutsui 24a8d1e5a3 Remove extern from mach_init() prototype declaration. 2002-11-30 17:57:42 +00:00
tsutsui b208e285e6 Fix swapped model name and vendor name in struct platform. 2002-11-30 14:38:06 +00:00
fvdl 1e23499b18 Make biosgeom struct packed, so that it works out on x86_64. 2002-11-30 13:46:26 +00:00
jdolecek 9a87c0933c make LKM friedlier - only include opt_* ifdef _KERNEL_OPT 2002-11-30 10:52:16 +00:00
itohy ed4d8d79e7 White space police. 2002-11-30 07:06:40 +00:00
simonb fdd1e3b715 Standardise on #ifdef _MIPS_<header>_H_ for multiple inclusion tests. 2002-11-30 01:52:31 +00:00
simonb d644dd9c43 Add multiple-inclusion protection. 2002-11-30 01:49:18 +00:00
simonb 6b69eb3190 Add multiple-inclusion protection. 2002-11-30 01:37:29 +00:00
fvdl 96d6d8d8ac No sense in trying to print arguments to functions, we can't reliably
determine them as they're passed in registers. The first 6, anyway,
but only printing arguments 7 and up (if present) makes no sense.
2002-11-29 22:46:26 +00:00
fvdl 6dbe6cdeb5 Initial DDB support, mostly a quick 'n dirty port of the i386 code.
No dissassembly yet.
2002-11-29 22:17:12 +00:00
fvdl 93048d8fba Make physseg attrs unsigned, just to be sure. 2002-11-29 22:14:58 +00:00
fvdl c08aef9c01 Make this a bit more like -current i386 pmap. Adjust some argument
types to avoid sign extension (although this is not a problem
currently).
2002-11-29 22:14:15 +00:00
fvdl 735931f6e4 Use DEFCOPTS, not COPTS, so that the latter may be overridden in a kernel
config file.
2002-11-29 19:52:02 +00:00
fvdl 6da8034165 Think before committing.. previous wasn't actually needed, the values are
guaranteed to fit in 32 bits when loading the kernel into physmem,
and it avoids bootloader incompatibility.
2002-11-29 19:38:24 +00:00
fvdl 6f923c1495 Use long for ssym and esym in btinfo_symtab, so that it works out for
both i386 and x86_64.
2002-11-29 19:33:26 +00:00
manu a9a3da8aca The recent mach trap support caused indirect system calls (a la syscall(2))
to be incorectly recorded as 'syscall'. Fix this.
2002-11-29 11:56:36 +00:00
pk 59c9274871 Always get the `mid' cpu property. Whine if it's not set on an actual
multi-processor machine.
2002-11-29 08:29:57 +00:00
pk 03549142e0 Find the CPU architecture version early in the bootstrap phase, and switch
to the V8 specific .mul/.div/.rem routines while we still have a writable
.text section.
2002-11-29 08:02:05 +00:00
pk 565cedc81e Provide the V8 mul/div routines for SUN4D as well. 2002-11-29 07:56:50 +00:00
manu 508a5615a6 Build the beast again after siginfo changes 2002-11-29 00:04:03 +00:00
fvdl f91cba76ea Add ci_apicid field. 2002-11-28 21:43:55 +00:00
hamajima e59bf4f94d add midi and sequencer. 2002-11-28 16:56:26 +00:00
fvdl ca0469f229 Some changes to make single-CPU systems that have an ioapic (and
an MP BIOS table enabled) work. Some MULTIPROCESSOR defines to
make things compile, and a split of ci_cpuid into ci_cpuid and
ci_apicid. They're always equal for the MULTIPROCESSOR case,
but different otherwise (ci_cpuid will always be 0).
2002-11-28 16:37:35 +00:00
pk 6564749632 Move the installation of v8 specific .mul/.div functions into a separate
routine to be called when we're sure the CPU is actually sparc version 8.
2002-11-28 15:32:15 +00:00
pk 8d141cba88 Not all sun4m platforms have version 8 sparc CPUs. So go out to the PROM
and get the CPU architecture version from the PROM cpu node `sparc-version'
property.
2002-11-28 15:29:53 +00:00
pk f19c04e3ed Move timer{match,attach}_mainbus() back into timer.c, since the `timer at
mainbus' configuration declaration is orthogonal to the configured SUN4[CM]
platform options.
2002-11-28 14:18:31 +00:00
chs 8e1d2230d8 use explicitly-sized types for LIF structure fields and
make them all unsigned.
2002-11-28 06:06:13 +00:00
chs c456a3cd29 remove the goofy hack to have the target be the LIF file,
just build the boot program with this Makefile.
2002-11-28 06:03:25 +00:00
chs 371349a205 do the "hppa" symlink too. 2002-11-28 06:01:00 +00:00
chs 3c3d32aaea force useful values for MACHINE_ARCH and MACHINE.
remove the goofy hack to have the target be the LIF file,
just build the boot program with this Makefile.
just add to CFLAGS, don't override.
use NOMAN.
2002-11-28 06:00:28 +00:00
chs fe563d9169 the SIZEOF_HEADERS thing doesn't work with the current toolchain,
just use 1 page for now.
2002-11-28 05:56:51 +00:00
chs 176b75763b Put interface attributes on the device, not another attribute with
the same name as the device.
2002-11-28 05:53:23 +00:00
chs 27f9e27d6a de-__P, remove register, ansify, KNF.
remove whacky compat stuff (our normal cross-compat stuff will handle it).
fix endian dependencies and type-size errors, it works on little-endian now.
terminate the LIF directory after the last entry we use.
just use the filename last component of the file we're given for its name
in the LIF directory (if the path has a slash).
truncate the century part of the year for the BCD date, like hp-ux does.
check error returns.
2002-11-28 05:51:02 +00:00
chs 2c73702df2 de-__P, remove register, ansify, KNF 2002-11-28 05:38:41 +00:00
fvdl ea871d0671 Only include IPI stubs in the MULTIPROCESSOR case. From Hubert Feyrer. 2002-11-27 21:59:55 +00:00
pk 4cd21bc0aa Sync machdep sysctls with sparc. 2002-11-27 18:00:27 +00:00
pk ba4983b5db Provide sparc v8 multiply/divide routines which are copied over the base
v7 versions on sun4m and sun4d machines. Based on Chris Torek's BSD/OS
code.
2002-11-27 16:08:34 +00:00
shin 57889e8f74 comment 'makeoptions DEFGP="-G nn"' to resolve gp-size overflow.
even NULLCONF requires "-G 0".
fix PR kern/19184.
2002-11-27 07:33:01 +00:00
fvdl 39652b6d2a Only take the kernel lock if we interrupted while < IPL_SCHED. Handlers
at higher levels must therefore provide their own locking. Currently
this is only serial interrupts (com), which has COM_MPLOCK for this
purpose.
2002-11-27 00:43:12 +00:00
fvdl 18ad7e80b6 Specify the interrupt frame as the argument to i386_int(un)lock. 2002-11-27 00:41:59 +00:00
manu dfa96ff4b3 Add signal delivery for the PowerPC. Everything is implemented except siginfo.
The stack layout is observed from stack dumps on Darwin, so it should be
very accurate.
2002-11-26 23:54:09 +00:00
manu edff1c8d0a There is too much debugging, it's getting annoying. Let's remove some. 2002-11-26 23:48:44 +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
christos 729ccbc9cd si_ -> sel_ 2002-11-26 19:49:00 +00:00
thorpej 09dfaace39 The traditional C preprocessor is fixed in GCC 3.3 now, so no need
to skip -traditional-cpp for HAVE_GCC3.
2002-11-26 18:51:12 +00:00
christos 26f075fcb4 minor cleanups. 2002-11-26 18:40:46 +00:00
pk 007c037980 * pmap_destroy(): reset the region gap
* pmap_quiet_check(): add check for pmeg leaks on sun4/4c (this is DEBUG only).
2002-11-26 15:09:56 +00:00
pk 0fad562c7c The presence of the `timer at obio' attachment is independent of the
various CPU support settings.
2002-11-26 14:43:39 +00:00
pk ec667a0f51 Add `machdep.cpu_arch' sysctl to determine the CPU architecture version.
Currrently, cpu types `sun4' and `sun4c' produce version 7, all others
version 8.
2002-11-26 14:36:10 +00:00
fvdl cc461b0d7b Remove oboe, it's broken for non-i386 (vtophys usage which should be
bus_dma).
2002-11-26 03:27:49 +00:00
manu 53356d6169 Added an empty shell for signal delivery. Now we just have to fill the
machine dependant bits.
2002-11-25 22:25:12 +00:00
fvdl 6a97966f21 Remove aac. 2002-11-25 20:30:48 +00:00
scw 61724834f9 Fix a typo to make this compile with MEMSIZE is defined. 2002-11-25 11:26:22 +00:00
thorpej 1ed8cb9316 Avoid strict-alias warnings. 2002-11-25 06:40:26 +00:00
thorpej b65c7c5437 Avoid strict-alias warnings. 2002-11-25 05:37:00 +00:00
thorpej 6439a43f9a Remove redundant (and incorrect) extern decl. 2002-11-25 05:13:41 +00:00
thorpej 43bd3cb89d Avoid strict-alias warnings. 2002-11-25 05:12:06 +00:00
thorpej 2e9c89031c Statements after labels. 2002-11-25 05:11:32 +00:00
thorpej 35a57313da Use tlbrelo and tlbrehi. 2002-11-25 05:10:39 +00:00
thorpej 47646b017e Add -mcpu=403 to AFLAGS. 2002-11-25 02:56:20 +00:00
thorpej 54dbc0eab3 Avoid strict-alias warnings. 2002-11-25 02:46:10 +00:00
thorpej 113c35cbf2 Remove an unnecessary token-paste, as pointed out by GCC 3.3. 2002-11-25 02:45:46 +00:00
thorpej 5b009a398e Avoid strict-alias warnings. 2002-11-25 02:14:30 +00:00
thorpej 0aa1f82268 Remove an unnecessary cast in an asm statement. 2002-11-25 02:13:59 +00:00
enami e58966cf92 Explicitly include machine/atomic.h since this file uses inline function
defined there.  This is necessary when LOCKDEBUG is defined.
2002-11-25 02:10:28 +00:00
thorpej 3151023170 Remove redundant (and incorrect) extern decl. 2002-11-25 02:07:37 +00:00
thorpej 796aa6a84a Statements after labels. 2002-11-25 02:06:16 +00:00
thorpej 2cec7d4fd9 Makefile.kern.inc now includes -Wno-sign-compare, so use the default
warnings now.
2002-11-25 01:38:32 +00:00
thorpej 3911a545e1 No newlines in string constants. 2002-11-25 01:36:35 +00:00
thorpej 6fd88f0e65 Avoid a trigraph. 2002-11-25 01:33:51 +00:00
thorpej 11707809eb No newlines in string constants. 2002-11-25 01:31:12 +00:00
fvdl 9fcc1a32d4 Add COMPAT_NETBSD32 and EXEC_ELF32. 2002-11-25 01:11:37 +00:00
fvdl 5fc8b835db First cut at GENERIC kernel. 2002-11-25 01:05:58 +00:00
fvdl 4732d6d0dd Set warning flags seperately, until the kernel can be compiled with
the default warning flags on with gcc 3.
2002-11-25 00:32:43 +00:00
fvdl be7e49f1cd No MCA here. 2002-11-25 00:28:46 +00:00
lukem 1847a76b62 use NOMAN instead of MKMAN=no. noted by David Bonnafous on port-i386@ 2002-11-24 23:48:48 +00:00
martin 070e18f3f3 Assign a major number for "lpt* at ebus?". 2002-11-24 20:58:06 +00:00
christos 40983baedb add mach_sigcode.o to the files that depend on assym.h 2002-11-24 18:56:01 +00:00
thorpej 0eb35ef834 Instrument FP emulation traps. 2002-11-24 17:34:06 +00:00
thorpej baf5c58201 Use EVCNT_TYPE_TRAP. 2002-11-24 17:05:45 +00:00
isaki fe7b4d99f1 Fix typo. s/cfdata/cfdriver/ 2002-11-24 13:33:45 +00:00
fvdl 14480382cd Correct old syscall path the same way as previous commit. 2002-11-24 13:19:27 +00:00
scw 46a9e7ed35 Quell uninitialised variable warnings. 2002-11-24 12:12:01 +00:00
scw 918d34d917 Quell an uninitialised variable warning. 2002-11-24 12:07:52 +00:00
scw 009e79b59b Remove some accidentally committed debug code. 2002-11-24 10:43:15 +00:00
jmc 33169df7d2 Provide a cast when setting up the interrupt handler (npxintr has a different
signature than the prototype expects)
2002-11-24 10:19:37 +00:00
simonb 12c35ee2d2 New generic way-aware MIPS32/64 range-index cache functions with proper
handling for phyiscally-indexed caches where the way size is greater than
the page size.
These work fine with pass 1 SB1 cores, so g/c those workarounds.

Much thanks to Chris Demetriou for many suggestions and helping me get
my head around all this.
2002-11-24 07:41:29 +00:00
simonb 3a72aadc2b Add the VI bit in config 0. 2002-11-24 07:28:42 +00:00
simonb 3682edd3d4 Move the curpcb and segbase extern decls to cpu.h to better group together
what will need to change for SMP.
Hide 'struct cpu_info' and some macros in #ifdef _KERNEL/#endif.
2002-11-24 07:26:04 +00:00
shin 79606e014b wipe out all physical memory before hibernate/reset.
otherwise, WinCE will not boot on some machine (ex. IBM z50).
2002-11-24 06:02:23 +00:00
chris 01bbc5d994 Add a debug assert that wired pages provide protection flags in the flags
argument as well.

Also update a couple of debug messages to NPDEBUG.
2002-11-24 01:09:09 +00:00
chris 3dd552c1b2 Fix's DEBUG kernel's not making it into multiuser on cats. (as spotted by
nick)
When wiring a page with pmap_enter you must supply the protection in the
flags as well as in the prot.
2002-11-24 01:07:47 +00:00
fvdl 1e5d37bcda Recurse into ../i386/stand 2002-11-23 23:53:32 +00:00
fvdl 79f52ea3a8 Some hacks to make this compile on x86_64. 2002-11-23 23:34:39 +00:00
thorpej 02c69e5261 Put interface attributes on the device, not another attribute with
the same name as the device.
2002-11-23 19:42:41 +00:00
fvdl 589e13bd6f Define both BOOT_ELF32 and BOOT_ELF64 2002-11-23 16:05:40 +00:00
fvdl 2861429a88 Correct lowered SPL test. 2002-11-23 15:18:12 +00:00
fvdl 9d672e72f5 Use a barrier in spl/splx. 2002-11-23 13:44:41 +00:00
fvdl c903de3a0a Fix bogon introduced in devsw switch that made findroot() not find
a match for the root disk.
2002-11-23 13:23:41 +00:00
fvdl 4c357c783c Adapt to i386 intr changes. 2002-11-23 12:53:51 +00:00
kristerw 0e18bd2ffa Make this identical to the other m68k machine/bswap.h by including
m68k/bswap.h instead of sys/bswap.h.

Solves part of PR toolchain/18314.
2002-11-23 11:04:33 +00:00
fvdl b31699f426 Remove duplicate definitions, include <machine/frameasm.h> instead. 2002-11-23 10:50:09 +00:00
fvdl e5a9ffde7a Remove "ioapic.h" include, and always include the intr_find_mpmapping
prototype; it's not worth the extra bytes to avoid including this.
2002-11-23 10:37:09 +00:00
scw 2fcea657de Implemented #2: Improved TLB management 2002-11-23 09:27:03 +00:00
scw a3885e9bdd - Change VM_MIN_KERNEL_ADDRESS to start at KSEG1 instead of KSEG0.
- Overhaul the TLB management code such that we now keep track of
   the exact TLB slot at which a mapping was inserted, both for user-
   space and kernel mappings. This addresses #2 on the TODO list.
2002-11-23 09:25:54 +00:00