Commit Graph

35316 Commits

Author SHA1 Message Date
ragge
d8c8fa8111 Add pseudo-device ksyms. 2003-04-26 14:10:04 +00:00
ragge
69a66687f8 Call ksyms_init() instead of ddb_init() in case of
NKSYMS || defined(DDB) || defined(LKM)
2003-04-26 11:05:05 +00:00
fvdl
df51b177d8 Install cacheinfo.h 2003-04-26 10:49:54 +00:00
toshii
7583c79436 Make it boot with ARM32_PMAP_NEW defined. 2003-04-26 08:31:30 +00:00
toshii
20697a7696 Fix a comment; 0x40000 isn't 1MB.
Use KERNEL_BASE instead of 0xc0000000. No functional change.
2003-04-26 07:09:26 +00:00
toshii
7dbee668be Some line folding cleanups.
Kill an unused variable.
2003-04-26 06:44:28 +00:00
fvdl
4b293b5851 Share some common cache info cpuid code between i386 and x86_64. 2003-04-25 21:54:29 +00:00
ragge
766d04f56a Add ksyms device major. 2003-04-25 21:10:46 +00:00
fvdl
e799c0e2d5 Add a few devices. 2003-04-24 23:36:10 +00:00
fvdl
1f4176dbb6 Because of the padding in mcontext_t, sigframe grew 8 bytes and became
unaligned. Remove the padding in struct sigframe itself to fix this.
2003-04-24 19:19:55 +00:00
fvdl
d194f8eb62 Add aapic files. 2003-04-24 18:54:54 +00:00
dsl
82d4d158d2 Missing end of comment 2003-04-24 17:41:03 +00:00
dsl
c9a0a49ac7 Don't use ENTRY - it aligns the label and we can't afford the space.
Adjust coding to save 2 more bytes (assume 'D' flag clear - it is)
2003-04-24 17:40:32 +00:00
dsl
cf4ada7934 Fix code that scans extended partition list 2003-04-24 17:37:54 +00:00
yamt
5d60643560 use acpi notify mechanism if possible.
XXX i'm not sure if there're PCs that actually need to fall back to polling.
2003-04-23 15:48:35 +00:00
jmmv
f302f813f2 Bump ramdisk size to 3000 blocks. 2003-04-23 14:21:07 +00:00
uwe
01b7788331 Constify second argument of table_getnum(). 2003-04-23 03:45:07 +00:00
uwe
5d8b485cc8 Fix dump_node() prototype. 2003-04-23 03:42:21 +00:00
fvdl
c6547ba96f Add aapic at pci. 2003-04-22 22:39:25 +00:00
fvdl
8df642c3bd "driver" for AMD 8131 IO apic, appearing in PCI space. Currently only
contains a workaround for a hardware bug.
2003-04-22 22:34:28 +00:00
thorpej
1b42986cc6 Bump SYMTAB_SPACE a little. 2003-04-22 14:49:13 +00:00
thorpej
49c00b1d84 Use high vectors on IQ80321 and IQ80310. 2003-04-22 14:09:46 +00:00
thorpej
efb72f65db Use high vectors on the BRH. 2003-04-22 13:51:11 +00:00
thorpej
d1c431c7e1 pmap_link_l2pt(): If not ARM32_NEW_VM_LAYOUT, add an assertion that
the VA that the page table maps is aligned to a 4MB boundary.
2003-04-22 13:49:48 +00:00
bjh21
c6c405019e Include <machine/pio.h> for in8() and in16(). 2003-04-22 11:37:28 +00:00
fvdl
0c0c1c086e Bump the number of level 2 pages for the kernel image. 2003-04-22 11:32:34 +00:00
thorpej
1f5e3cbbe6 New pmap for netwinder. 2003-04-22 01:42:01 +00:00
thorpej
bbef46a7e9 Some ARM32_PMAP_NEW-related cleanup:
* Define a new "MMU type", ARM_MMU_SA1.  While the SA-1's MMU is basically
  compatible with the generic, the SA-1 cache does not have a write-through
  mode, and it is useful to know have an indication of this.
* Add a new PMAP_NEEDS_PTE_SYNC indicator, and try to evaluate it at
  compile time.  We evaluate it like so:
  - If SA-1-style MMU is the only type configured -> 1
  - If SA-1-style MMU is not configured -> 0
  - Otherwise, defer to a run-time variable.
  If PMAP_NEEDS_PTE_SYNC might evaluate to true (SA-1 only or run-time
  check), then we also define PMAP_INCLUDE_PTE_SYNC so that e.g. assembly
  code can include the necessary run-time support.  PMAP_INCLUDE_PTE_SYNC
  largely replaces the ARM32_PMAP_NEEDS_PTE_SYNC manual setting Steve
  included with the original new pmap.
* In the new pmap, make pmap_pte_init_generic() check to see if the CPU
  has a write-back cache.  If so, init the PT cache mode to C=1,B=0 to get
  write-through mode.  Otherwise, init the PT cache mode to C=1,B=1.
* Add a new pmap_pte_init_arm8().  Old pmap, same as generic.  New pmap,
  sets page table cacheability to 0 (ARM8 has a write-back cache, but
  flushing it is quite expensive).
* In the new pmap, make pmap_pte_init_arm9() reset the PT cache mode to
  C=1,B=0, since the write-back check in generic gets it wrong for ARM9,
  since we use write-through mode all the time on ARM9 right now.  (What
  this really tells me is that the test for write-through cache is less
  than perfect, but we can fix that later.)
* Add a new pmap_pte_init_sa1().  Old pmap, same as generic.  New pmap,
  does generic initialization, then resets page table cache mode to
  C=1,B=1, since C=1,B=0 does not produce write-through on the SA-1.
2003-04-22 00:24:48 +00:00
martin
d65cbab3ff Connect the front panel power button on psycho based machines to sysmon's
/dev/power.

XXX - due to the way interrupt handling is structured we have no easy
way to defer clearing the button interrupt until the sysmon callback
has  happened and the event is dispatched. We clear it imediately on
return from the interrupt handler. This means we get an interrupt storm
until the button is released, and then start to handle it.
This needs to be fixed! (But with the default application for the power
button does not make a user visible difference.)
2003-04-21 12:14:19 +00:00
thorpej
215580f2da Defflag XSCALE_CACHE_READ_WRITE_ALLOCATE and XSCALE_NO_COALESCE_WRITES. 2003-04-21 05:36:14 +00:00
thorpej
0f16fc12a0 #ifdef, not #if, for XSCALE_NO_COALESCE_WRITES. 2003-04-21 04:33:30 +00:00
thorpej
9361d039a1 Add XSCALE_CACHE_READ_WRITE_ALLOCATE. 2003-04-21 04:02:04 +00:00
fvdl
bee66ff5b4 Add commented-out ahd driver. 2003-04-21 00:17:46 +00:00
christos
f1726c271b Override LDBL_MIN 2003-04-21 00:08:24 +00:00
scw
9143cf9a96 If the RTC time is > 50 days out, don't use it at all, on the assumption
that there is no battery backup (as is the case on the Cayman).
2003-04-20 21:26:46 +00:00
scw
e290aaf899 Fix the SDRAM size in the 'fake' bootparams. 8MB != 128MB. 2003-04-20 21:18:50 +00:00
thorpej
9884510327 Add a driver for the reset button on the ADI BECC. 2003-04-20 20:50:49 +00:00
bjh21
6a8eedfd87 KNF doesn't apply to Reinoud -- back out my last two changes. 2003-04-20 18:50:38 +00:00
bjh21
6da931ff0d Cast KERNENTRY into a char * before doing arithmetic on it, so we don't end
up trying to cast a 64-bit integer into a pointer, which GCC warns about.
2003-04-20 18:17:07 +00:00
thorpej
14acc892ca Fix a typo that prevented the large inbound PCI memory window from
being programmed (guess RedBoot allowed us to get lucky).
2003-04-20 17:17:01 +00:00
fvdl
6886cf85b0 Initialize name and dma tag. 2003-04-20 16:54:23 +00:00
martin
d313e6d92e Add sysmon device. 2003-04-20 16:53:46 +00:00
martin
c1a5cc810d The sysmon device is used for sysmon_power too. 2003-04-20 16:51:35 +00:00
thorpej
4b39c84472 Reinstate one change from rev. 1.12, but differently. Preload r2 with
0 before frobbing the control register, and use r2 in the ARMv4 TLB
flush.
2003-04-20 16:21:40 +00:00
bjh21
b196917760 KNF 2003-04-20 15:57:12 +00:00
fvdl
4d6d3fb37b Call ahc_softc_init in attach function. 2003-04-20 15:48:25 +00:00
thorpej
b534f5853c Back out previous. There were several problems with the patch that
was checked in:
* It was not actually disabling the MMU, and so jumping to the
  reset vector would happily cause a panic(), since it would be
  the kernel's reset vector, not the ROM's.
* In the event the system was using high vectors, VECRELOC was not
  getting cleared, which has the potential to wreak havoc when re-entering
  the ROM.
* It was totally broken for CPUs < ARMv4; you still need to disable
  the MMU on those, just need to skip the ARMv4 TLB flush.
* The code that was checked in would only work if the kernel is mapped
  VA==PA.  For systems where the kernel is NOT mapped VA==PA, you only
  get the prefetch depth # of insns (2) after the MMU is turned off before
  you have fix the PC.

Backing out the change fixes rebooting on several evbarm platforms.
2003-04-20 15:42:51 +00:00
bjh21
610cdc7b39 Create a symlink to sys/arch/arm/include alongside the one to
sys/arch/${MACHINE}/include.
2003-04-20 14:37:59 +00:00
bjh21
ef40902514 80 columns, dammit! 2003-04-20 14:21:13 +00:00
bjh21
2020a72f18 Use <sys/float_ieee.h> rather than <sys/math_ieee.h>, which doesn't exist. 2003-04-20 12:57:43 +00:00