yamt
faedfe8895
- keep cr3 register and its copy in TSS synchronized.
...
otherwise an interrupt vector using a task gate (ie. ddbipi) messes it up.
- defer LDTR loading as well as cr3.
- tweak comments to make three copies of switching code more synchronized.
2004-04-12 13:17:46 +00:00
pk
4f969ab39c
pv_syncflags4m: no need to flush the cache. If the page is still mapped,
...
its ref/mod status may change at any moment anyway. If a definitive status
is required the UVM code will unmap the page first.
2004-04-12 12:52:42 +00:00
pk
fd1ba25dd1
Drop sparc_protection_init4m() in favour of a (ro) data initialiser.
2004-04-12 10:00:28 +00:00
pooka
0d197bf832
KNF some and make printf output a bit nicer.
2004-04-11 12:17:10 +00:00
pooka
34bd15648e
Add IP12 stuff. Most bits included are from Steve Rumble.
...
After this change it is possible to run IP12.
2004-04-11 12:13:20 +00:00
pooka
0e36d54eba
Fix base address for i8254 calibration code. This has the effect of
...
us writing to the correct addresses and the thing actually working.
2004-04-11 12:05:37 +00:00
pooka
95d984a2eb
Don't report page 0 as free memory, it makes bad things happen.
2004-04-11 11:34:13 +00:00
kochi
193c08b383
Clean up memory allocated during autoconfiguration
2004-04-11 10:36:35 +00:00
pooka
817b0a57d8
Make das blinkenlights, well, blink on IP12 also.
2004-04-11 10:29:20 +00:00
kochi
b547a6d28f
change acpi_resource_parse API to support _PRS parsing as well as _CRS
2004-04-11 08:36:19 +00:00
kochi
e80850866a
de __P, ANSIfy PCIBIOS related files.
2004-04-11 06:00:25 +00:00
pooka
451031bddf
RCS Id police
2004-04-11 00:44:47 +00:00
cl
9f3568420d
call HYPERVISOR_exit on reboot
2004-04-11 00:44:15 +00:00
cl
d145eca4fb
catch up with arch/x86/x86/intr.c
...
1.15/kochi
use designated initializer for struct pic initializers.
just for readability.
update the xenev_pic initializer as well
2004-04-11 00:18:29 +00:00
cl
2bdade5a16
- remove pmap_kenter_ma prototype here
...
- xennet? is an interface not a driver (boot message)
2004-04-11 00:00:43 +00:00
cl
1eec38f848
get the time from Xen
2004-04-10 23:50:23 +00:00
cl
9ce2a8f441
add prototype for pmap_kenter_ma
2004-04-10 23:47:24 +00:00
cl
96cf6c6c11
- fix signatures for HYPERVISOR_stop, HYPERVISOR_dom0_op and
...
HYPERVISOR_block_io_op
- add error checking for HYPERVISOR_mmu_update and
HYPERVISOR_update_va_mapping
- add missing memory barriers
- initialize dom0_op->interface_version
2004-04-10 23:46:26 +00:00
cl
c0b5dece66
Make rcr2() always return 0. We only get cr2's value for page faults and
...
trap() knows where to find it.
2004-04-10 23:39:54 +00:00
cl
7556fed6d2
fix kernel command line parsing:
...
- initialize bootdev for if it's not set in the command line
- correctly parse command lines with multiple spaces between words
2004-04-10 23:33:50 +00:00
cl
0488cca3a2
remove incorrect assert: pdp-pool entries can be reclaimed at any time,
...
even while APDP is mapped.
2004-04-10 23:31:41 +00:00
pooka
4b60b79ce8
build arcemu
2004-04-10 22:48:44 +00:00
pooka
bc32b3ffbe
Clock interrupt routine for mips1 (ip12) from Steve Rumble.
2004-04-10 22:48:12 +00:00
pooka
03e520f443
* The HPC endianness register isn't mapped on my IP12, so don't try to
...
unconditionally read it
* IP12 glue from Steve Rumble
2004-04-10 21:59:42 +00:00
pooka
0df6470670
don't attempt to init pckbd console on IP20
2004-04-10 21:47:33 +00:00
pk
9450998e71
pmap_copy_page4m(): we only need to flush the local cache since we use
...
private virtual addresses.
2004-04-10 20:51:24 +00:00
pk
9d95da7f96
Remove a number of redundant TLB page flushed, which are now done in
...
setpgt4m_va() and updatepte4m() as necessary.
2004-04-10 20:43:02 +00:00
pooka
3f96344b80
Don't unconditionally initialize seeprom chip type after we've
...
conditionally initialized it to the correct type.
spotted by Steve Rumble
2004-04-10 20:23:05 +00:00
pooka
9b2f4efe28
Rework conditional statement a bit to print bit about using ARCS for
...
console I/O if nothing really attached, not if we just called consinit()
with an invalid IPxy mach_type.
inpired by Steve Rumble
2004-04-10 20:15:12 +00:00
pooka
737a72e779
attach zs console on IP12
...
from Steve Rumble
2004-04-10 20:03:11 +00:00
pk
6452e19758
De-__P().
2004-04-10 20:00:29 +00:00
pk
217297d742
Remove a remnant instance of __P().
2004-04-10 19:58:45 +00:00
pk
6d82d89741
Expose CPUSET_ALL to non-MULTIPROCESSOR source.
2004-04-10 19:55:57 +00:00
pooka
cafa4ad8f9
ARCBIOS emulation code to be used on machines without ARCBIOS
...
Currently supports only IP12, but can be made to support others.
includes effort from Steve Rumble and myself
2004-04-10 19:53:48 +00:00
pk
667d14673b
Group updatepte4m() and the MP & SP versions of setpgt4m_va() together,
...
which is just a bit more pleasing to the eyes.
2004-04-10 19:40:19 +00:00
pk
83037215bf
Do not maintain the number of valid pages per segment (`sg_npte') anymore
...
for the kernel map on SRMMU machines. This allows pmap_kenter() and
pmap_kremove() to update mappings without needing to lock the pmap
or raising the interrupt level.
2004-04-10 19:22:59 +00:00
pooka
a7250523da
At least my IP12 works better without the port-flipping glue,
...
so un-glueify IP12 for the time being.
2004-04-10 19:20:19 +00:00
pooka
a674ac1bc3
and finally, the big moment you've all been waiting for:
...
make it actually compile
2004-04-10 19:07:58 +00:00
pooka
89a2f53d77
fix off-by-one in revision print
2004-04-10 19:07:06 +00:00
pooka
88764f7031
add watchdog enable and disable
...
from Steve Rumble
2004-04-10 19:06:33 +00:00
pooka
f59c5e58e8
Add physical offsets for memory configuration registers to be used
...
outside bus_space.
2004-04-10 19:02:39 +00:00
pk
2648b0d48c
pmap_protect4m: skip PTE update for invalid pages in the specified range.
2004-04-10 18:48:35 +00:00
pk
f852e1c1e4
setpte4m: remove ineffective debug assertions.
2004-04-10 18:40:04 +00:00
kochi
27435b5d7c
use designated initializer for struct pic initializers.
...
just for readability.
2004-04-10 14:49:55 +00:00
kochi
743758bd35
whitespace nit
2004-04-10 14:17:21 +00:00
tsutsui
69e737058e
Add a prompt to specify a kernel filename to be loaded on bootloader.
2004-04-10 12:30:26 +00:00
kochi
db7198d645
whitespace nit
2004-04-10 11:48:10 +00:00
tsutsui
ae6d7b8002
It turns out that not only HP425e but other HP4xx models also require
...
COM_HW_NOIEN for APCI com(4) ports.
Now I can login HP425t via both com[12] at frodo0.
2004-04-10 07:51:15 +00:00
matt
c3d082e35a
Allow DHCP NFS roots
2004-04-10 07:41:32 +00:00
matt
1b0d774789
Up symtab space.
2004-04-10 07:41:06 +00:00
tsutsui
6052b99ae3
"extern char *us_keymap" is not equivalent with "extern char us_keymap[]"
...
in prototype declarations.
Now hilkbdcngetc() works on "unknown" keyboards with proper default map.
2004-04-10 04:06:48 +00:00
fair
e2b036a2e4
Add comment to indicate that the SunSwift Sbus HME/FAS366 SCSI
...
combination board attaches esp* at sbus*; it's not just "older proms"
2004-04-10 04:02:29 +00:00
petrov
d9120c091a
Clean-up unused defines and variables.
2004-04-09 19:41:57 +00:00
pooka
ade6841fe5
If argv[1] doesn't exist, don't try to use it.
2004-04-09 16:41:23 +00:00
tsutsui
d010f57a21
Include "ite.h" before the first reference of NITE.
...
Fixes panic with unknown type keyboards (including JP one).
2004-04-09 11:55:27 +00:00
matt
a9903fcc11
When linking, use ${_MKTARGET_LINK} so that MAKEVERBOSE=1 looks right.
2004-04-09 04:01:42 +00:00
matt
2ce2389229
Deal with OFW trees that have interrupt nodes without an #address-cells
...
property. Treat them as if they had such a property but its value was 0.
2004-04-08 23:58:24 +00:00
uwe
c22f771297
Register definitions for sh3 integrated DMA controller.
2004-04-08 21:02:57 +00:00
tsutsui
25fa76b1ba
Don't panic when kernel tries to print a horizontal tab via itecnputc().
2004-04-08 17:41:50 +00:00
tsutsui
68fc876f21
Check mapped device VA by badaddr() in cnattach functions for framebuffers.
...
Now consinit() no longer hangs at least on HP425t with Topcat console.
2004-04-08 17:39:37 +00:00
pooka
b11a60fb35
apply wide-angle KNFication beam
2004-04-08 14:45:13 +00:00
pk
f95fd4f56f
compat mode: skip double map at VA 0 if the physical load address is 0.
...
This allows a much wider range of historic kernels to be booted (w/ `-C').
2004-04-08 07:35:34 +00:00
tsutsui
f8cd9ac4fd
Adjust FRODO_BASE macro since com_frodo uses bus_space_map(9)
...
which takes offset from intiobase instead of KVA.
Now com* at frodo? is probed properly.
(but not tested because I don't have a special cable for apci ports yet)
2004-04-07 13:41:10 +00:00
tsutsui
0af71a11f1
Adjust fd_name in struct frodo_device frodo_subdevs[]
...
since MD apci(4) has been switched to MI com(4).
2004-04-07 13:34:47 +00:00
tsutsui
eb4893fd2e
Fix yet another y2k+1 bug.
2004-04-07 13:29:26 +00:00
augustss
9224fd7b0a
Put ichlpcib in alphabetical order.
2004-04-07 13:13:59 +00:00
wiz
8ad72c592f
Revert previous: Linux' procfs spells "CPU" "cpu", so mimic it.
...
Closes PR 25076 by salo.
2004-04-06 20:37:07 +00:00
ross
e4baf7f2f0
* Bump up SYMTAB_SPACE slightly.
...
* Use the correct board name.
2004-04-06 20:00:54 +00:00
tv
1649429e19
Allow compilation without MQ200_DEBUG: mq200_clknames is used outside of
...
debugging-only code.
2004-04-06 16:49:56 +00:00
tv
ef3e0a3d4c
Allow the codegen option to be specified in the config file rather than
...
being fixed at -mips2, by setting "makeoptions MIPSFLAGS".
2004-04-06 16:37:58 +00:00
cl
ea9aadc45a
sync with arch/i386/isa/npx.c:
...
1.103/simonb
Only initialise ksi if we use it.
2004-04-06 16:23:33 +00:00
cl
428b54f8f6
sync with arch/i386/i386/identcpu.c:
...
1.9/kim
AMD CPUID 0x6a0 is an Athlon XP processor model 10, revision A2.
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/27532.pdf
1.10/minoura
Print better names for Pentium4-class processors (Xeon, Celeron, etc).
1.11/mrg
- fix i386_intel_brand[]: it was missing a empty reserved entry at 0xD
causing Mobile Pentium 4 to be shown as a Mobile Celeron.
- fix intel_family6_name() for brand=0xB && signature >= 0xF13
- fix a potential out-of-bounds array reference
2004-04-06 16:20:29 +00:00
cl
cb8eb7578b
update reference $NetBSD ID
2004-04-06 16:04:09 +00:00
cl
5bd1e12004
ANSIfy.
2004-04-06 16:01:50 +00:00
cl
0b3df53fa4
update reference $NetBSD ID
2004-04-06 15:56:32 +00:00
simonb
ad2144406e
Bump NMBCLUSTERS to something a little more modern - 2048 for the
...
normal case and 4096 for the "options GATEWAY" case.
2004-04-06 14:56:13 +00:00
matt
949694f7d9
When seeing if the FP or VEC unit has been stolen by another process, check
...
PSL_{FP|VEC} instead of PCB_{FP|VEC}. The former will only be set if the
process owned the {FP,VEC} unit when it trapped into the kernel. The latter
would be set if the lwp ever used the {FP,VEC} unit.
2004-04-06 02:25:22 +00:00
bsh
6141a1e035
enable PS/2 mouse support.
...
Thanks to Ben Harris' pckbport, pms driver now attaches to sackbc
very cleanly.
2004-04-06 01:45:03 +00:00
bsh
34d29162ae
fake that the PS/2 kbd/mouse controller of SA-1111 has two slots.
...
This is necessary to attach a pms driver to sackbc.
2004-04-06 01:32:17 +00:00
bsh
9a78d53bf0
whitespace nits.
2004-04-06 01:16:34 +00:00
tsutsui
646b733fd4
Tidy up total/avail memory message as well as other ports.
...
As per discussion on port-sgimips.
2004-04-05 16:01:43 +00:00
simonb
3ce5632009
Fix tyop.
2004-04-05 04:53:01 +00:00
mrg
1739cf2504
- fix i386_intel_brand[]: it was missing a empty reserved entry at 0xD
...
causing Mobile Pentium 4 to be shown as a Mobile Celeron.
- fix intel_family6_name() for brand=0xB && signature >= 0xF13
- fix a potential out-of-bounds array reference
2004-04-05 02:09:41 +00:00
matt
15fc41dbb0
When trying to figure out which code to return, use the exception enable
...
bits to mask out the undesired exceptions. (Thanks to Todd Whitesel for
the idea).
2004-04-04 22:20:44 +00:00
matt
e7c76e51e6
Add SIGFPE handling code. Report the proper SIGINFO ksi_code when a SIGFPE
...
happens. When a SIGFPE occurs, disable the exception enables in the FPSCR.
2004-04-04 19:21:36 +00:00
pk
12d5178857
For now, disable Hypersparc instruction cache on MP machines.
2004-04-04 18:54:01 +00:00
pk
8066aa3aa5
* Allow pv_link4_4c() to fail with ENOMEM on pool allocation failures
...
(catching up with pv_link4m()).
* Fix return code checking for pv_link4m() calls.
* Add low water setting to pv pool.
2004-04-04 18:34:35 +00:00
pk
486f4170eb
Remove private declarations of maxdmap and maxsmap.
2004-04-04 18:24:22 +00:00
uwe
e548ab355a
Correct the comment about contrast control in HD64461 GPIO port B:
...
6th bit is the least significant, 3rd is the most significant.
2004-04-04 17:49:38 +00:00
matt
bc8d283982
Reformat the __asm a bit.
2004-04-04 17:35:15 +00:00
matt
5bf797c2e1
Add int get_fpu_fault_code(void).
2004-04-04 17:26:58 +00:00
matt
481d181cd4
In cpu_getmcontext, make sure the returned MSR has the FP exception mode
...
(PSL_FE0|PSL_FE1) saved in the PSL. In cpu_setmcontext, copy the FP
exception bits to the PCB where they live.
2004-04-04 17:26:10 +00:00
matt
847bed9428
Fix the way cpu_setmcontext was restoring FPSCR. Make the opposite of the
...
way that cpu_getmcontext was saving it. (FPSCR was being saved incorrectly
before and thus obliterated when a signal happened).
2004-04-04 17:20:15 +00:00
matt
7681ce429d
Make sure that the SRR1 we pass to userland reflects PSL_FE0|PSL_FE1 even
...
if the lwp doesn't currently own the FPU. When returning, copy those bits
back to the PCB. (In case the user decided to the FP exception mode in the
signal handler).
2004-04-04 17:10:32 +00:00
matt
4dc0aa3dee
Don't add PSL_FE_FDLT to srr1, but put in pcb_flags. It will be added to
...
the SRR1 only when the lwp owns the FPU.
2004-04-04 17:05:31 +00:00
matt
44003b5fca
The FP exception mode bits from the MSR will be stored in pcb_flags. From
...
there, they will copied to MSR as needed (when FP is enabled). They will be
cleared from the MSR when the lwp loses the FPU. Hence they need to be stored
someplace else.
2004-04-04 17:01:44 +00:00
matt
aed3d18029
On FPU'ed systems, initialize the default FP exception mode.
2004-04-04 16:57:00 +00:00
matt
c0dce2fdd9
Be a lot more explicit about the MSR bits a user process can change.
2004-04-04 16:49:12 +00:00
matt
0d6bda4d21
When returning back to user mode, if the lwp has lost the FPU, not only
...
clear PSL_FP bit (to force a FPU Unavailable exception) but clear
PSL_FE0 and PSL_FE1 so that the FP execption mode is changes to ignore.
This will prevent spurious FP exceptions being made when the running lwp
doesn't own the FPU.
2004-04-04 16:47:02 +00:00
kochi
ee2683e797
Support for PIRQ[E-H], found in recent intel south bridges
...
(ICH2 and later), which fixes PR/23700.
The changes are from Hiroyuki Bessho and Masanori Kanaoka in PR/23700
with a little modification of interrupt router lookup from mine.
2004-04-04 16:06:09 +00:00
kochi
41ea3c2a77
add one more PCI ID (ICH4-M).
2004-04-04 15:16:38 +00:00
nakayama
1de145799e
Revert a part of rev. 1.44.
...
OF_getprop can get only the first "reg" property with a statically
allocated buffer, but prom_getprop cannot.
This should fix a "kernel trap 30: data access exception" when you
invoke a pcictl(8).
2004-04-04 11:53:40 +00:00
mrg
32a2d102bd
redo previous slightly; move the "int unode;" decl inside the
...
if (CPU_ISSUN4D) code block, reducing #ifdef/#endif count by one.
2004-04-04 10:09:41 +00:00
gson
f92c1b091a
Unused variable "unode" caused compiler warning when !defined(SUN4D).
2004-04-04 08:54:29 +00:00
simonb
374ed5ae2b
Fix bogus gcc -Wuninitialised warning when SYSCALL_DEBUG is enabled.
2004-04-04 05:32:20 +00:00
tsutsui
0e9036c16a
Add ALTENTRY(kernel_text) for pmap(1).
2004-04-04 02:09:34 +00:00
pk
af0db768b1
Maintain pmap resident count as pages are mapped and unmapped instead
...
of traversing the page tables each time it's needed.
2004-04-03 23:11:14 +00:00
groo
f2d334068a
Let's try that again... one comes from .CURDIR, another set of files
...
comes from .OBJDIR.
2004-04-03 18:18:21 +00:00
groo
291203c667
Don't cd ${.CURDIR}, it's not where the uudecoded objects are.
2004-04-03 17:45:19 +00:00
chs
ec48121fb7
add some SUN4D stuff.
...
zs and zstty no longer need "needs-count" or "needs-flag",
so get rid of those and wild-card the extra zs devices on SUN4D.
2004-04-03 17:43:50 +00:00
chs
89e7b5360f
don't complain about mid == 0 on SUN4D, it's normal there.
2004-04-03 17:42:27 +00:00
chs
8e5882e190
add a bootbus (SUN4D) attachment. from Stephen Sukovich in PR 24199.
2004-04-03 17:42:07 +00:00
chs
81f3e5aec7
fix find_cpus() for SUN4D. from Stephen Sukovich in PR 24198.
2004-04-03 17:41:54 +00:00
sato
bcd3f3fcab
enable speaker port 12 for NEC MCCS series.
...
reported by http://www.jp.netbsd.org/ja/JP/ml/port-hpcmips-ja/200207/msg00078.html .
2004-04-03 16:29:06 +00:00
pk
70e1de69c4
Max data size -> 512MB; default stack size -> 8MB.
2004-04-03 12:39:51 +00:00
pk
5957cb9b16
On sun4c, clip max data & stack size to avoid the MMU hole.
2004-04-03 12:38:14 +00:00
sekiya
49ecfdf2e4
Hook the IMC bus error handler into the ISR, otherwise bus error conditions
...
won't be properly dealt with.
2004-04-03 11:33:29 +00:00
simonb
bf4a293760
Copy Izumi Tsutsui's total/avail memory message tidy up.
...
sgimips is a little different, that is left as is.
2004-04-03 06:43:59 +00:00
bsh
a031021b23
SMDK2800 gets kernel panic with write-back dcache. Use write-through
...
mode until we find a fix for this.
2004-04-03 04:38:48 +00:00
bsh
1a02d3b6e1
pmap_pte_init_arm9() is necessary only when defined(CPU_ARM9) and defined(ARM9_CACHE_WRITE_THROUGH)
2004-04-03 04:35:48 +00:00
bsh
16cf047697
add an option to force ARM9 dcache to write-through mode.
2004-04-03 04:34:40 +00:00
tsutsui
0a15e2ad03
Tidy up messages for total/avail memory.
...
before:
---
NetBSD 2.0B (COLT) #67 : Sat Apr 3 06:29:50 JST 2004
tsutsui@mirage:/usr/src/sys/arch/cobalt/compile/COLT
256 MB memory, 247 MB freemainbus0 (root)
com0 at mainbus0 addr 0x1c800000 level 3: st16650a, working fifo
com0: console
---
after:
---
NetBSD 2.0B (COLT) #68 : Sat Apr 3 07:54:17 JST 2004
tsutsui@mirage:/usr/src/sys/arch/cobalt/compile/COLT
total memory = 256 MB
avail memory = 247 MB
mainbus0 (root)
com0 at mainbus0 addr 0x1c800000 level 3: st16650a, working fifo
com0: console
---
2004-04-02 23:18:09 +00:00
mrg
f87752ad3b
enable "INSECURE" kernel option so that GENERIC kernels are capable of
...
running XF4 servers. while this isn't the best solution, it is the only
one we have for the forseeable future, and there is long-standing precedent
in the i386 port.
2004-04-02 14:06:23 +00:00
lukem
e7b4b99d58
Convert to using UUDECODE_FILES instead of using -kb in the repository.
2004-04-02 08:54:04 +00:00
matt
ef47d758dd
Remove softintr__init call.
2004-04-01 16:58:06 +00:00
matt
7a72576c33
Move to softintr__init to cpu_startup.
2004-04-01 16:57:45 +00:00
petrov
50f9ddcdce
Recognize tlp and ethernet as bootpath.
2004-03-30 21:26:40 +00:00
simonb
5e2a252f60
Remove some bogus config goop that should never have been here.
2004-03-30 00:54:34 +00:00
simonb
f05568af64
Make the "cond" variable an unsigned variable. Stops sign extension
...
problems when we shift it left and right while creating the new value
for the condition register.
Fixes problems reported by Juergen Hannken-Illjes in toolchain/24938.
2004-03-30 00:04:37 +00:00
jwise
bffc53d606
Fix grammar in error message.
2004-03-29 15:57:28 +00:00
aymeric
83d29714cc
delay(): use =&r instead of =r for a temporary register as suggested in
...
PR #24830 . The bad reuse of the register was actually triggered by using
no optimization at all.
pmap_subr.c is the only file that still requires at least -O to compile
into working code (the proper fix would be to write almost all of
pmap_zero_page() in assembly). The rest of a macppc kernel requires only
-finline now.
2004-03-29 08:06:12 +00:00
matt
a1d9764403
Add SMBFS/nsmb
2004-03-29 07:47:57 +00:00
kristerw
a53ff5c8f3
Add the wsmux pseudo-device. This will make the adb keyboard work
...
even if the heuristics in the console attachment code fail to
identify the keyboard type.
This should fix PR 22317 and part of PR 24778.
2004-03-29 01:46:03 +00:00
kristerw
a5892fecd3
Add "wdc* at pci? dev ? function ?".
2004-03-29 01:36:49 +00:00
simonb
06f98319d7
Fix the LINTSTUB entries- the second arg to these functions is a
...
bus_space_handle_t, not a bus_addr_t.
2004-03-29 01:15:14 +00:00
simonb
d4c87e3c2e
Use "%#x" instead of "%x" so it's obvious the printed number is in hex.
2004-03-29 01:12:01 +00:00
ragge
8177977394
Add 11/730 to recognized cpu-types.
2004-03-28 19:52:01 +00:00
pk
7bbe926f59
iommu_dmamap_load: deal with pmap_extract() failing.
2004-03-28 19:35:13 +00:00
mhitch
21f2c02f74
Remove license clauses 3 and 4 in my licenses.
2004-03-28 18:59:39 +00:00
drochner
568386df44
We should ensure stack alignment _after_ subtracting sizeof(sigframe).
...
Should fix PR bin/24948 by Wolfgang S. Rupprecht.
(nuke getframe() completely because its interface doesn't support this,
and it it used at one place only anyway)
2004-03-28 15:46:14 +00:00
scw
aa2635cadb
Assign my license to TNF.
2004-03-28 15:35:33 +00:00
uwe
d4129e7685
Sort the list of supported platforms that we show to the user.
2004-03-28 15:32:35 +00:00
he
f8fd8eb7f7
Adapt to the removal of __HAVE_SIGINFO, assume that we always have it now.
2004-03-28 10:07:24 +00:00
nakayama
dcfdceefdd
Set prom_getprop args correctly.
2004-03-28 09:31:21 +00:00
eeh
5f1ffa71fc
License cleanup.
2004-03-27 16:21:53 +00:00
dsl
5f345f8d68
Rework previous to avoid checking FS_FLAGS_UPDATED for ffsv2
2004-03-27 11:46:40 +00:00
uwe
fad92c3ca3
When we attach a channel, set a high level to DRV control pin of the
...
external buffer for the PC card connected to the channel. This hack
makes pcmcia cards "being used" at the boot time (by WinCE or NetBSD)
correctly detected. A machine running with root on NFS can now be
properly rebooted.
2004-03-27 02:53:12 +00:00
uwe
8dd212dad7
Add option HD64461PCMCIA_REORDER_ATTACH that attaches channels in
...
reversed order.
When you boot with two CF cards inserted, this options makes the one
in the "memory only" slot (channel 1), which is almost always the card
with the NetBSD install, attached as wd0.
Unlike using fixed unit numbers in the kernel config, if you boot with
only a single CF card, that single card will still be wd0 regardless
of which slot it is inserted in.
http://mail-index.netbsd.org/port-hpcsh/2003/10/23/0000.html provides
a more verbose description of why this option is convenient for most
usage patterns.
2004-03-27 02:24:01 +00:00
uwe
fb20d3f467
Print bootinfo timezone in decimal. -180 is more readable then 0xffffff4c
...
(though may be I'm just getting old :).
2004-03-27 02:01:07 +00:00
simonb
cd019fdfb8
Pass the OpenBIOS magic number to the awk script just like the other
...
numbers passed in instead of using a BEGIN construct. nawk didn't like
the hex escapes used there.
Fixes a problem reported by Shin'ichiro TAYA on port-powerpc.
Use "int(NUMBER)%256" instead of just "NUMBER" in the printf "%c"
statements in the awk script. nawk was appearing to refuse outputing
a 0 byte of the low eight bits of the number were 0 but any higher
bits were set.
walnut-mkimg.sh tested using gawk, nawk and mawk.
2004-03-27 01:47:46 +00:00
petrov
0514cbdca0
Use want_resched from cpu_info area.
2004-03-26 23:18:42 +00:00
drochner
c83eb997b8
nothing cares about __HAVE_SIGINFO anymore, so nuke it
2004-03-26 21:39:57 +00:00
drochner
ae94c80224
fix references to the syscall formerly known as SYS___sigreturn14
2004-03-26 19:05:33 +00:00
drochner
88a4abdbd2
the whole sigcode business is COMPAT_16 only
2004-03-26 18:44:36 +00:00
drochner
d19f706361
all ports define __HAVE_SIGINFO now, so remove the CPP conditionals
2004-03-26 17:34:18 +00:00
drochner
80bded6289
To the rest of the kernel, pretend that hppa supports SIGINFO.
...
There are still only "sigcontext" stackframes passed to the user,
but at least we can clean up the MI sources now.
2004-03-26 14:11:01 +00:00
minoura
a3a2a1ebcf
Print better names for Pentium4-class processors (Xeon, Celeron, etc).
2004-03-26 13:57:44 +00:00
wiz
2837bf7e95
Update David Huang's email address in the license
...
per his request in PR 24907.
2004-03-26 12:15:46 +00:00
jmc
77e0ba6695
Convert athhal-elf.o to a .uue and add appropriate make hooks to use it
2004-03-25 23:32:10 +00:00
matt
27b002601f
Enable generic software interrupts on macppc.
2004-03-25 18:52:25 +00:00
matt
06bf53b3d7
Add diagnostic to skip calling uvm_fault when the lwp's USERSR is unset.
2004-03-25 18:50:50 +00:00
matt
040b0bc071
Move data structures to softintr.c. Remove an unneeded if. Fix a typo.
2004-03-25 18:46:27 +00:00
matt
6fbc543513
Don't call hardclock until cpu_initclocks has been called.
2004-03-25 18:44:57 +00:00
drochner
cb0991ae18
Native code doesn't need sigcode. Never.
...
So replace it by a dummy setting sigcode=esigcode=0, just to get
COMPAT_16+COMPAT_NETBSD32 kernels linking.
2004-03-25 18:33:17 +00:00
drochner
967b985e5b
clean up the .globl confusion
2004-03-25 15:47:12 +00:00
drochner
be80b39cd6
remove sigcontext-style signal delivery code
2004-03-25 15:32:27 +00:00
drochner
e2afc3a3d8
always use siginfo-style signal delivery for native programs
2004-03-25 15:29:26 +00:00
drochner
badd642235
only accept signal trampoline version 2, and remove "struct sigcontext"
2004-03-25 15:27:26 +00:00
wiz
f1b19ce1db
Backout previous -- this is not enough, config needs to be taught
...
how to reach partitions above h. Noted by Simon Burge, related to
PR 24905.
2004-03-25 15:26:35 +00:00
pooka
3b19c32c1a
KNF
2004-03-25 15:16:11 +00:00
pooka
75033bc71e
replace terms ip1x and ip2x in comment
2004-03-25 15:08:57 +00:00
pooka
39a22bd417
Sprinkle some #ifdef MIPS3 to be able to compile the port without
...
including MIPS3 code.
for upcoming IP12
2004-03-25 15:06:37 +00:00
wiz
8e545c2180
Define maxpartitions to the same value as MAXPARTITIONS in disklabel.h.
...
Addresses PR 24905 by Simon Burge.
2004-03-25 12:41:54 +00:00
wiz
1e2bd86f4e
Define maxpartitions to the same value as MAXPARTITIONS in disklabel.h.
...
[Down from 16 to 8, since disklabel.h still says 8.]
Addresses PR 24905 by Simon Burge.
2004-03-25 12:40:19 +00:00
wiz
3afe1a1d87
Define maxpartitions to the same value as MAXPARTITIONS in disklabel.h.
...
Addresses PR 24905 by Simon Burge.
2004-03-25 12:38:49 +00:00
is
313b807f3f
Only change my own license conditions.
2004-03-25 11:12:08 +00:00
is
6de8cab7db
UCB no longer requires the advertising clause.
2004-03-25 10:53:46 +00:00
leo
edd0d1c8e7
Licence cleanup (suggested by wiz).
2004-03-25 10:17:19 +00:00
uwe
9cde36aeb3
We may run one page too few during reboot for certain kernel sizes.
...
Allocate an extra page for the loadable segment to compensate for the
fact that the last tag may be only partially filled.
2004-03-25 04:04:28 +00:00
uwe
44498073bf
intc_intr_priority: map DMAC and IRDA interrupts.
2004-03-25 01:25:08 +00:00
uwe
1cfab0e2a0
INTEVT2 values for DMAC interrupts.
2004-03-25 01:02:30 +00:00
sekiya
e594b2f3d9
The lpt driver doesn't play nicely with the serial ports -- they share the
...
same interrupt, and something isn't quite right with the mace interrupt
dispatcher. Disable for now.
Pointed out by Tillman Hodgson and confirmed by ozone on port-sgimips.
2004-03-25 00:53:58 +00:00
matt
a266f24eb9
Add latent generic soft interrupt initialization.
2004-03-24 23:50:18 +00:00
matt
7f65c1cc37
Generic soft interrupt support for PowerPC ports.
2004-03-24 23:39:39 +00:00
matt
653cfe6dbc
Add latent generic soft interrupt support.
2004-03-24 19:42:04 +00:00
drochner
2209ea5a8a
remove license clauses 3 and 4 from my cpoyright notices
2004-03-24 17:11:57 +00:00
drochner
cf8b697c65
remove license clauses 3 and 4 from my cpoyright notices
2004-03-24 17:06:57 +00:00
drochner
566efeb685
remove license clauses 3 and 4 from my cpoyright notices
2004-03-24 16:46:27 +00:00
ws
0d0b70f9e6
Fix Frank Lancaster's long standing broken license (after consulting with him).
2004-03-24 16:39:53 +00:00
ws
fc20faec01
Fix Frank Lancaster's broken license (after consulting with him).
...
Pointed out by wiz.
2004-03-24 16:39:52 +00:00
drochner
091c877e12
remove license clauses 3 and 4 from my cpoyright notices
2004-03-24 16:34:29 +00:00
pk
1fecae985a
Remove my name from the old UCB copyright notice, thereby reducing its
...
reference count to 1.
2004-03-24 15:44:46 +00:00
wiz
f0d2889eb5
Move
...
(c) TNF
line from 4-clause UCB to 3-clause UCB license; in other words,
remove UCB's ad clause from the license TNF grants.
There is no point in TNF demanding that UCB's ad clause be followed
when even UCB doesn't demand it any longer.
Ok'd by board@ and agc@.
2004-03-24 15:38:41 +00:00
atatat
19af35fd0d
Tango on sysctl_createv() and flags. The flags have all been renamed,
...
and sysctl_createv() now uses more arguments.
2004-03-24 15:34:46 +00:00
kanaoka
5886bca6f0
Make it compile (int -> ACPI_INTEGER)
2004-03-24 11:26:46 +00:00
martin
f87286c8e4
Make it compile (int -> ACPI_INTEGER)
2004-03-24 09:14:58 +00:00
simonb
45cc2456c0
Add promiscuous and multicast support.
...
From KIYOHARA Takashi in PR port-powerpc/23892.
2004-03-24 07:45:23 +00:00
dbj
647ebaa109
move my copyright statement up to new berkeley license
2004-03-24 02:20:09 +00:00
minoura
240b66c0fa
Fix my bogus copyright notice. Pointed out by wiz.
2004-03-23 23:36:15 +00:00
drochner
ab2eb6de06
put the old and the very old syscall glue into appropriate
...
COMPAT_ conditionals
2004-03-23 19:39:42 +00:00
drochner
35b8d1d3ff
initialize the old "int 0x80" syscall only for COMPAT_16/NETBSD32,
...
and the very old callgate for COMPAT_10/IBCS2
2004-03-23 19:35:16 +00:00
drochner
be0359e629
-don't refer to oosyscall() unless COMPAT_10 or COMPAT_IBCS2 is defined
...
-improve diagnostic message on bus errors in the TRAP_SIGDEBUG case
2004-03-23 19:09:01 +00:00
drochner
ea5ee473a8
bump default data size to 256M, enough to build a "-g" kernel
2004-03-23 18:54:32 +00:00
matt
a7913cb227
In alpha_ucode_to_ksiginfo, don't adjust ucode since that's already been
...
done in the FP_C_TO_NETBSD_MASK macro. Constify a read-only static array.
This should fix regress/lib/libc/ieeefp/except failures.
2004-03-23 18:44:00 +00:00
pk
24bb95542f
Add openfirmware() entry point.
2004-03-23 15:36:08 +00:00
pk
bfbcd7cff5
prom_pa_location: re-arrange code a bit; use u_long cast to make this compile on 64 bit systems; to do: openfirmware version of this.
2004-03-23 15:29:56 +00:00
kochi
2b5897d796
Don't use ACPI CA internal functions
2004-03-23 14:07:42 +00:00
martin
2a62a8f3dd
The function prom_pa_location casts magic spells that probably won't
...
work on 64 bit kernels (and at least do not compile). Since this function
is not used there, #ifndef _LP64 it for now.
2004-03-23 11:40:29 +00:00
uwe
8333a3f671
Comment out RTC_OFFSET as now kernel pays attention to timezone
...
information passed by hpcboot.exe.
2004-03-23 03:48:39 +00:00
uwe
279286c1ad
Pass the symbol table to the new kernel. /dev/ksyms now works after reboot.
2004-03-23 03:39:11 +00:00
uwe
7565621829
Set rtc_offset from bootinfo passed by hpcboot.exe unless overridden
...
with option RTC_OFFSET. From hpcmips.
2004-03-23 03:36:32 +00:00
martin
dfd6258259
Replace intrcnts by evcnts. XXX - needs slight tweaking for MULTIPROCESSOR.
2004-03-23 00:17:12 +00:00
uwe
c1591b3e77
We cannot rely on bootinfo to remain valid after the 2nd stage boot
...
code has copied the new kernel in place, so pass a copy of bootinfo
to the new kernel via "page tags".
Restructure the code to fill "page tags" to make it more generic and
more natural to use (especially in anticipation of ksyms support).
2004-03-22 23:10:55 +00:00
pk
b744961066
Leverage the PROM's ability to identify the on-board location of a
...
physical memory address.
2004-03-22 12:37:43 +00:00
nakayama
83f4b465c2
Truncate values to 32-bit, not 40-bit.
2004-03-22 12:28:02 +00:00
nakayama
3a065cad6a
Eliminate cast 64-bit address to u_long.
2004-03-22 12:24:37 +00:00
nakayama
323fc574b9
Make 32-bit kernels compile with options DEBUG.
2004-03-22 12:21:58 +00:00
nakayama
8b6b7ba030
Make 32-bit kernels compile with options DIAGNOSTIC.
2004-03-22 12:20:52 +00:00
nakayama
d1fa565f18
Make it compile again.
2004-03-22 12:19:49 +00:00
lukem
455da8e60b
Move mbr_bootsel from offset 404 to offset 400 in struct mbr_sector to
...
leave 4 bytes for the Windows NT Drive Serial Number (DSN) at 440-443
(as mbr_sector.mbr_dsn).
Ensure that all the MBR & PBR code reserves space for mbr_sector.mbr_dsn.
Leave the bootsel magic number at 444-445 as mbr_sector.mbr_bootsel_magic
(instead of mbr_sector.mbr_bootsel.mbrbs_magic), but use 0xb5e1 (MBR_BS_MAGIC)
instead of 0xaa55 (MBR_MAGIC) to indicate that this change has occurred.
Rework MBR_BS_NEWMBR to mean "mbr_bootsel has moved to 400".
Modify fdisk(8) to automatically relocate the mbr_bootsel from 404 to 400
if mbr_bootsel_magic is the old value (0xaa55), and unset MBR_BS_NEWMBR
to flag that new mbr_bootsel code must be used if updating the MBR.
These changes fixes a problem where Windows 2000 or Windows XP would corrupt
the last 3 bytes + NUL of MBR partition 3's bootsel name if the bootsel name
was 5 characters long, replacing bytes 6-9 with the DSN.
Also, by explicitly reserving the space for the DSN we prevent problems in the
future if non bootsel MBR or PBR code had other information at bytes 440-443.
2004-03-22 07:11:00 +00:00
matt
833b325a66
Change default data size to 256MB.
...
(A native NetBSD build will no longer with a limit of 128MB).
2004-03-22 05:25:22 +00:00
martin
6582666bc7
Realy disable optimization for 32bit kernels when compiling uvm_bio.c.
2004-03-22 00:43:37 +00:00
martin
fe91b9b277
Create a symlink for <sparc/...> include paths as well, the new openfirm.h
...
needs it.
2004-03-21 23:41:21 +00:00
kim
92703eeedb
AMD CPUID 0x6a0 is an Athlon XP processor model 10, revision A2.
...
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/27532.pdf
2004-03-21 17:59:44 +00:00
pk
4021f0eb39
Use prom_getpropstring().
2004-03-21 16:29:42 +00:00
itohy
7519b9aacf
Add notice on "relocation truncated to fit: R_68K_16" errors of ld.
...
Cleanup consistency check.
2004-03-21 16:25:56 +00:00
pk
e8397400f7
Some more promlib interface conversions.
2004-03-21 16:09:13 +00:00
junyoung
2ed9c2c7b7
ANSIfy.
2004-03-21 15:37:02 +00:00
pk
7446de9195
Add sparc64 cell_t definitions.
...
Change OF_interpret() prototype to the unabridged version.
2004-03-21 15:12:35 +00:00
pk
3b45f4cb4c
OF_stdin() and OF_stdout() are obsolete.
2004-03-21 15:09:25 +00:00
pk
05a2b2300b
Use the promlib I/O routines.
2004-03-21 15:08:24 +00:00
pk
b865f2441c
stdin' and
stdout' are obsolete.
2004-03-21 15:07:00 +00:00
pk
107e759b1c
Two commas went missing in last commit.
2004-03-21 14:28:47 +00:00
pk
2a26804b1a
Reach over to the sparc openfirm & openprom implementation.
2004-03-21 14:25:51 +00:00
pk
f7fe3a3531
Partial switch to the promlib interface.
2004-03-21 14:22:52 +00:00
pk
f1bff50602
Mostly switch to promlib interface. Postpone the use of prom_makememarr()
...
since the sparc64 memory range properties aren't compatible yet.
Fix pmap_calculate_colors() in the process.
2004-03-21 14:19:30 +00:00
pk
0d449eda9b
Switch to promlib interface.
2004-03-21 14:15:35 +00:00
pk
e0b67a7f3e
Drop prom_printf() + some other unused stuff.
2004-03-21 14:13:15 +00:00
pk
6521621036
Switch to the sparc prom library.
2004-03-21 14:10:08 +00:00
pk
fb7560550b
Add sparc/sparc/promlib.c.
2004-03-21 14:07:01 +00:00
pk
ef98c2defb
Reach over to the sparc versions.
2004-03-21 14:05:43 +00:00
pk
afe147460e
Add openfirmware() entry point, since it's no longer defined as a macro
...
in openfirm.c.
2004-03-21 14:04:30 +00:00
pk
b5a947488b
* Add OF_claim() for sparc64.
...
* Change OF_interpret() to the unabridged version.
* Sync OF_sym2val() and OF_val2sym() with the psarc64 versions.
2004-03-21 14:02:39 +00:00
pk
4b86fd8eed
opf_getboot{path,file,args}: return static storage so these can be used
...
in the early boot phase.
Define prom_interpret() to be a simple form of the Openfirmware OF_interpret().
Re-arrange OLDMON code in prom_getidprom() to make it compile on sparc64.
2004-03-21 13:57:58 +00:00
pk
d7d8742ed3
Turn members of `struct memarr' into long ints, to help sparc64 integration.
2004-03-21 13:52:00 +00:00
martin
d315780ef4
Disable optimization when compiling uvm_bio.c with a 32 bit compiler.
2004-03-21 13:12:30 +00:00
martin
55dfc16be5
Make sure prom_getprop is called with the size pointed to by nitem
...
initialized. (Some of these are more paranoia, but two were actual bugs.)
Print error codes in some panic messages.
2004-03-21 12:50:14 +00:00
dsl
54b6a75114
A better fix for PR kern/24809, old filesystems should work ok now!
2004-03-21 12:46:57 +00:00
simonb
84b7d801ac
Only initialise ksi if we use it.
2004-03-21 10:56:24 +00:00
aymeric
0c43568c58
pmap_pinit(): improve the hash function in the case of collisions, the
...
previous version would easily make the low order bits oscillate between 0
and some other value.
Together with the previous change, this should make those
pmap_pinit: out of segments
panics even less likely.
We should really attempt a systematic search before panic()ing at the end.
2004-03-21 10:34:56 +00:00
aymeric
560cb79c0e
. don't call VSID_TO_HASH() on a pmap.pm_vsid. It already holds the hash value.
...
This should fix PR #24754 , as well as many of the hangs and process
aborts reported on port-macppc@ in the last weeks.
This error would cause the pmap's vsid never to be freed, and would
occasionnally free a valid vsid used by another pmap, sometimes the kernel's.
. add a related KASSERT() to avoid regression
2004-03-21 10:25:59 +00:00
uwe
0589938ad6
s/r15/sp/ for clarity.
...
Whitespace nit.
2004-03-21 02:20:21 +00:00
uwe
43e4b74e81
Add _DPRINTFN.
2004-03-21 00:41:04 +00:00
he
e475443b64
Need <bsd.obj.mk> and <bsd.inc.mk> to support "obj" and "include" targets
...
now that we use <bsd.files.mk> instead of <bsd.prog.mk>.
2004-03-20 18:24:17 +00:00
dsl
9d06a8cddd
When searching for the superblock, check that the fs_sblockloc field
...
matches the location we read it from to ensure we don't have one of the
alternate superblocks.
Fixes part of PR kern/24809
2004-03-20 14:09:44 +00:00
matt
bcc199a19c
Add gt_dma_bus_mem_to_phys and gt_dma_phys_to_bus_mem.
2004-03-20 01:55:00 +00:00
petrov
2f1de3c8b2
More on fbnode to prom_stdout_node rename.
2004-03-19 21:10:31 +00:00
mhitch
1e8e2dc0c7
Add commented-out entries for the VS4000/(60,VLC} LCG graphics.
...
Add the wsmux psuedo-device to allow the keyboard to attach to the
wsdisplay device when the wsdisplay device is not the console.
2004-03-19 20:21:08 +00:00
matt
d06905d5ce
Add CPU_INFO_INTERATOR/FOREACH support.
2004-03-19 20:17:51 +00:00
mhitch
3ff01ef842
Add the lcspx and lcg display drivers to the console table so they will
...
get properly probed and initialized. This also fixes the problem of the
keyboard getting the console output and the keyboard port getting the wrong
serial baud rate. The lcg driver is not currently present, but should be
"real soon now".
2004-03-19 20:15:21 +00:00
mhitch
a5e785cccf
Don't map the framebuffer again when attaching the lcspx driver if it was
...
already mapped in the early console startup.
The software cursor isn't going to blink if we don't start it - set up the
callout when attaching.
Now that the cursor blink routine is actually called, blink the entire cursor
line rather than just the first pixel.
Don't try to clear the current cursor if the pointer to it hasn't been
initialized. This seems to happen when using the display as console, but
not when using a serial console.
On early console startup, use the framebuffer sizes, not the character cell
size to compute how much to clear.
The lcspx display will now initialize when booting with the display console,
but the dz device is not detected and the keyboard will not work yet. I
haven't tracked down why the dz device isn't found (it works fine when
using a serial console).
2004-03-19 20:12:07 +00:00
pk
d6f1cac110
zs_console_flags: use prom_getoption().
2004-03-19 15:42:46 +00:00
pk
7417e05ce6
Drop fbnode & stdinnode.
2004-03-19 15:31:04 +00:00
pk
af0050c56b
Drop optionsnode, fbnode and stdinnnode.
2004-03-19 15:22:43 +00:00
pk
6c02638ef2
Sync with sparc: rename
...
stdinnode => prom_stdin_node,
fbnode => prom_stdout_node.
2004-03-19 15:21:42 +00:00
he
d085bb26a1
Fix an overlooked PROM_getprop*() => prom_getprop*() rename.
2004-03-19 14:50:53 +00:00
pk
90dbcf4919
Use prom_getoptionsnode().
2004-03-19 14:42:01 +00:00
kleink
22df68d482
Mostly lifted from vax's rev. 1.16:
...
Fix == vs = typo in __va_copy; from David H. Gutteridge in PR misc/24847.
2004-03-19 08:46:25 +00:00
kleink
554392dedc
Fix == vs = typo from rev. 1.13 in __va_copy; from David H. Gutteridge
...
in PR port-vax/24846.
2004-03-19 08:38:28 +00:00
jmc
6fe4ead562
Convert to usage of UUDECODE_FILES and standardize on filename extension
2004-03-19 08:07:22 +00:00
cgd
6c8994da82
convert descriptor add/remove pointers to integer array indices.
2004-03-19 07:11:33 +00:00
cgd
b79e782296
recognize PERIPH_REV3 DMA for BCM1250, too
2004-03-19 06:01:31 +00:00
pk
f72e36ac23
obp_v2_finddevice: bounds check on local char buffer.
...
prom_findnode: implement node name matching for device named containing
commas, cf. IEEE 1275, section 4.3.6.
2004-03-18 15:24:19 +00:00
pk
bb3bbfa647
Implement OPIOCFINDDEVICE.
2004-03-18 15:14:33 +00:00
pk
f52adf179f
Remove unused `search_prom()' macro.
2004-03-18 15:13:59 +00:00
kleink
5ba92ad7be
Normalize multiple inclusion protection symbol names.
2004-03-18 13:59:14 +00:00
hannken
ac4d48d92e
Rename PROM_getpropstring* => prom_getpropstring*
2004-03-18 12:26:51 +00:00
sekiya
27be14d39c
Checkpoint the GR2 wscons driver. Heavily derived from lonewolf@'s newport
...
driver. Still some issues:
* framebuffer setup seems incomplete. Some drawing primitives work 100%
of the time, while others fail one in ten tries. Perhaps my board is
slightly broken, as the exact model as probed by ARCS seems to shift
between Elan and XS24 from time to time.
* characters are drawn bottom-up rather than top-down (as the wsfont
definitions expect).
2004-03-18 08:52:04 +00:00
sekiya
0ee588cc1c
Add GR2.
2004-03-18 08:40:46 +00:00
sekiya
bf7ef66f3b
Add console attach glue for GR2.
2004-03-18 08:40:24 +00:00
sekiya
a924cfbf24
Add register definitions and console prototype header for the SGI GR2 family
...
of framebuffers.
2004-03-18 08:39:17 +00:00
cgd
50d45978ec
bump RX and TX ring sizes to 256 entries each. would be better to make
...
them larger, but then i'd need to tweak the allocation mechanism so they
were *guaranteed* to be physically contiguous.
2004-03-18 06:59:30 +00:00
cgd
49d5d889b3
in PERIPH_REV3 DMA code, fix calculation of pkt size (not that it matters
...
for <= 4k packets), and also interrupt on end of pkt only. cuts tx intrs
by a factor of >3 for simon's fave 100Mbps ttcp test.
2004-03-18 06:30:03 +00:00
simonb
0c55ae72f4
Fix pass3 Tx DMA - when an mbuf spans a page boundary, make sure that
...
it either is sitting in contiguous physical RAM or split the mbuf
into two Tx descriptors. Not the prettiest patch, but works well in
practice - gets about an 8% decrease on CPU time for a simple ttcp TCP
Tx benchmark. Thanks to Chris Demetriou for some debugging help.
Add some event counters.
Remove some #if 0'd debug code.
2004-03-18 05:57:58 +00:00
wrstuden
58472c3385
Have Locore zero out the bss (which includes our stack) BEFORE
...
we start calling into C code. Previously we called memset() in our
C code. Unfortunately the compiler would sometimes store local variables
on the statck, which got killed by the memset(). Oops!
2004-03-17 23:32:22 +00:00
wrstuden
86948e4bf1
Bump version to help track down issues with kernel loading.
2004-03-17 20:41:17 +00:00
scw
b4e83ea72c
Re-enable COMPAT_NETBSD32
2004-03-17 20:24:40 +00:00
scw
fe2418e50c
Add COMPAT_16.
2004-03-17 20:24:18 +00:00
scw
62a0c71155
Make COMPAT_NETBSD32 build again.
2004-03-17 20:23:28 +00:00
scw
fffcfa6444
Always check for the SHmedia entry point hack. The in-tree toolchain
...
doesn't need it, but SuperH's toolchain does.
2004-03-17 20:22:11 +00:00
scw
3b1323d3c7
Pass the ABI (32/64-bit) to the linker.
2004-03-17 20:20:43 +00:00
matt
f9730c006d
Fix typo (pckbort -> pckbport)
2004-03-17 18:10:51 +00:00
pk
ea53363e84
Rename PROM_getprop*() => prom_getprop*().
2004-03-17 17:04:58 +00:00
pk
fcac5c14aa
Pass the buffer size to PROM_getpropstringA(), as in sparc.
2004-03-17 15:22:57 +00:00
pk
370bb883e5
Print the host Id in mainbus_attach() instead of clock_attach().
2004-03-17 14:35:53 +00:00
pk
00aaee7ade
Drop myetheraddr();
2004-03-17 14:26:59 +00:00
aymeric
3ddd2de94c
defparam PMAP_MEMLIMIT
2004-03-17 14:14:02 +00:00
pk
8512c4b642
Use prom_getoption() and drop home-grown string-to-integer conversion code.
2004-03-17 14:03:22 +00:00
pk
6c325ce299
ffb_attach: Use prom_getoption() and drop home-grown string-to-integer
...
conversion code.
2004-03-17 13:58:14 +00:00
pk
da415e73f9
De-__P();
2004-03-17 11:00:19 +00:00