Commit Graph

42074 Commits

Author SHA1 Message Date
garbled
d736b3d508 More changes to prep port:
1) Add the NVRAM device.  This device allows us to speak with the nvram on
prep-based machines and read/write to it.  Also add a simple IOCTL
interface for speaking with the nvram from userland.  This hasn't been
tested yet, but eventually I plan to support it with the sparc eeprom
command.
2) Change the root device detection to use the nvram device to attempt to
guess the boot device.  Most machines should now correctly guess thier
boot device, though I expect a few devices to still not work quite right yet.
3) change the default IRQ to level rather than edge in the pnpbus if the
flags are invalid or empty. (based on output from a PowerStack E1)
4) correctly handle older machines in pnpbus that have FixedIOPorts
rather than variable ones.

Still have much to do.
2006-03-16 17:43:34 +00:00
cube
f40bc6f570 s/uint32_t/unsigned int/ because we don't always have the former defined.
Reported by Juergen Hannken-Illjes.

XXX I prefer uint32_t, but there might be some namespace issues so for now
    it will do.
2006-03-16 16:05:53 +00:00
he
450ce68a74 Transform to new signature for uvm_fault() by dropping the third arg.
Discussed with drochner.
2006-03-16 15:10:06 +00:00
simonb
c050474de9 Update a comment. 2006-03-16 14:23:19 +00:00
simonb
714761acde Fix prototype for au_himem_map(). 2006-03-16 14:19:04 +00:00
drochner
0aa0d9a4cb revert accidental commit of local changes, pointed out by
Geoff Wing and Tom Spindler
2006-03-16 10:13:55 +00:00
dogcow
e3ac1915cb For every season, churn, churn, churn.
To fix lingering problems with the LV/ULV Pentium Ms that run with a 400 MHz
FSB (738, et al), change ENTRY() yet again to directly include the FSB
multiplier - CPUID isn't enough to determine what it should be.
While I'm at it, add more values for the 750, and fix values for the 730
and 770 to jibe with what the 'prescribed' values (via ACPI) are.

Fixes PR/33080 and PR/33081.
2006-03-15 22:56:38 +00:00
matt
332716e9f3 Fix typo in lhs cast removal. 2006-03-15 22:39:28 +00:00
bouyer
aceceafca7 Implement watch of xenstore nodes, and install watches for otherend'state
node.
2006-03-15 22:20:06 +00:00
drochner
b68c2aadca use km_alloc to get wired kernel memory for kernel stacks
of idle processes for secondary CPUs
(affects the MULTIPROCESSOR case only - does this exist?)
(untested)
2006-03-15 18:31:11 +00:00
drochner
47fbb9d86b adapt to uvm_fault() interface cleanup: kill the useless 3rd argument 2006-03-15 18:12:02 +00:00
christos
23a74d17e2 New patch from Cory Bajus 2006-03-15 15:39:26 +00:00
he
95eaf7b1bc Bump SYMTAB_SPACE so that it fits again. 2006-03-15 08:47:43 +00:00
dogcow
8aacb40fba Rearrange the Dothan table a bit, and fix the 738 CPUID (6d6, not 6d8).
Move the voltage-level check into the cpu ID loop, since it seems that
CPUs with the same ID string and the same CPUID can have different voltage
levels. Thank you, Intel.
2006-03-15 01:31:20 +00:00
cube
bc7a3a86a6 Add the sparc64 MD bits to get usable coredumps for COMPAT_NETBSD32
binaries.
2006-03-14 22:05:05 +00:00
cube
8db07ab1c5 Under COMPAT_NETBSD32 emulation, pointers are not the same size as the
native ones...  netbsd32_pointer_t can't be used here though, so uint32_t
is used instead, which is of course the same thing.
2006-03-14 22:03:39 +00:00
shige
ad1152f593 Using GPIO bus. 2006-03-14 21:59:12 +00:00
cube
7e4eb63d0d We really have EM_SPARC binaries in 32-bits mode, not EM_SPARC32PLUS.
And yes, we do have EM_SPARCV9 binaries in 64-bits mode.
2006-03-14 21:37:48 +00:00
christos
064fae4646 Apply patch from Cory Bajus for writing to the RTC 2006-03-14 02:52:48 +00:00
shige
ab1557fd3e Remove obsled devices (using old gpio framework). 2006-03-13 16:20:58 +00:00
shige
61e6e07d5b IBM4xx on-chip GPIO controller applying MI GPIO framework. 2006-03-13 16:17:57 +00:00
shige
17629c725d IBM4xx on-chip GPIO controller apllying MI GPIO framework. 2006-03-13 15:31:11 +00:00
he
343425c577 Add a forward declaration of "struct trapframe", to allow declaration
of a pointer to it in the syscall handling function.
2006-03-13 10:50:16 +00:00
chs
11921f1910 add nfe. 2006-03-12 22:57:01 +00:00
he
9ba1519dcc Now that FROMBCD and TOBCD is in <sys/dev/clock_subr.h>, delete the
local definitions here.
2006-03-12 22:55:19 +00:00
yamt
04ff17cc06 fix mistakes in yamt-uio_vmspace changes. 2006-03-12 22:44:27 +00:00
cube
209be910b7 Support the generation of coredumps for 32-bits binaries under
COMPAT_NETBSD32.  They haven't worked for 5 years.

Silently agreed by the tech-kern readers.

XXX sparc64 MD glue still lacking.
XXX The FPU registers on i386 are not dumped correctly, according to my
XXX tests.  It shouldn't be much work for someone who has the slightest
XXX idea of how that stuff is supposed to be laid out on i386.
2006-03-12 20:25:25 +00:00
matt
5c53cf65da Fix various places where assignment happen to casted lvalues.
(t)v = foo; is not legal C.
2006-03-12 17:14:41 +00:00
christos
8958999012 welcome to syscall_intern. 2006-03-12 02:04:26 +00:00
kleink
f027f13a5f Make this build again with RESIDUAL_DATA_DUMP defined. 2006-03-11 20:12:49 +00:00
kleink
31930d4de5 Provide BCD<->binary conversion in libkern and turn <dev/clock_subr.h>'s
FROMBCD()/TOBCD() macros into wrappers around it, resulting in both
smaller code footprint and elimination of possible issues due to
multiple evaluation of macro arguments.

Suggested by Simon Burge and Anders Gavare on tech-kern.
2006-03-11 15:40:07 +00:00
simonb
c66cd10ee8 Trim use of "volatile" a little. 2006-03-11 14:07:35 +00:00
simonb
fd0ea3e657 Remove some blank lines. 2006-03-11 13:56:18 +00:00
simonb
e30b0d0cb4 Use syscall_intern() to give a process a plain or fancy syscall,
moving system call functionality from trap.c to new syscall.c
Split out userret from trap.c to <machine/userret.h> and use
mi_userret().
This gets approx 20% speed improvement (45us to 36us) with lmbench's
"lat_syscall null" benchmark(!).
2006-03-11 13:52:58 +00:00
scw
12dc74f622 RB_POWERDOWN trumps RB_HALT. 2006-03-11 09:09:41 +00:00
jmcneill
5e2e06bb91 We shouldn't have to manually edit acpi_wakecode.h after it has been
regenerated. Pad wakecode with "0x00" rather than "0x  ".
2006-03-11 00:31:42 +00:00
he
0bb12d5132 Remove include of <prep/dev/obiovar.h>, as that file no longer exists,
and this file does apparently not need it.
2006-03-10 17:19:46 +00:00
uwe
042caffba8 XXX: #undef SET before including <machine/config_hook.h>, which defines
SET as a nickname for CONFIG_HOOK_SET to be used in kernel config files.
Makes ioconf.c compile again.
2006-03-09 23:41:13 +00:00
macallan
934c5059a7 add commented out DBRI_* options 2006-03-09 20:58:40 +00:00
garbled
7001ea36f9 Make INSTALL compile again with the new changes. Try to clean it up a
little too.
2006-03-09 20:58:12 +00:00
macallan
494a6eb736 default to sun terminal emulation, add DBRI_* options and comments 2006-03-09 20:58:00 +00:00
gdamore
08f478e5ab Fix the RTC so that the AU1550 keeps accurate time. The RTC is taken from
the TOY register, which is presumed to be seconds since Jan. 1 2000.

For now I'm assuming the trim divider is 32K, which makes 1 tick per sec.
This is true for the DBAU1550 board at least.  Other boards might need to
initialize a reasonable trim counter and establish the 32KHz oscillator.

In any case, this code is *no worse* on older systems than what was there
before.
2006-03-09 20:42:18 +00:00
garbled
fbf9d81aaf Deleting this kernel. These days it looks pretty much identical to
GENERIC.. so I'm not sure what it is supposed to be an example of.
2006-03-09 20:22:52 +00:00
garbled
1dd8b98704 Prep super-commit:
1) create new pnpbus psuedo bus.  This is a bus layer that reads the PNP
tree from the residual data and allows attachment of devices with the
information given therein.  Based loosely on i386/pnpbios.

2) Delete obio bus, as with the pnp bus we no longer need it.

3) Create a number of functions that gather the information needed to set
up the machine from the residual data, rather than hardcoding it in.

4) Create a quirk table for machines that are bizzare enough that the
residual information is not sufficient.  (such as the 6015)

5) Using the data gathering routines and the quirk table, delete struct
platform completely from the architecture.  Prep is now almost completely
dynamic in figuring out the machine it is running on and setting things
up properly.

6) Add a wdc_pnpbus driver which attaches the wdc controller found on
some 7248's and the 6015.  This replaces the now-defunct wdc_obio.

7) delete all the mot_* and ibm_* files, and replace them with a single
ibm_machdep.c which only contains the quirk functions for the 6015 and
the 6050.

8) Modify GENERIC to work with all this stuff.
2006-03-09 20:17:27 +00:00
he
f45aef6127 Remove now-unused local variable. 2006-03-09 18:50:17 +00:00
he
cbc9e47bd2 Give it 10000 bytes more SYMTAB_SPACE, so that it fits again. 2006-03-09 18:48:20 +00:00
wiz
009e260f10 Fix a URL. From OKANO Takayoshi in PR 33001. 2006-03-09 18:07:53 +00:00
hubertf
164b476f23 Add & enable smbfs
Patch by Michael-John Turner <mj@turner.org.za> on port-sparc64@,

Reviewed & OK'd by martin@
2006-03-09 11:38:15 +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
scottr
9e93b0c323 Cleaner check for offset to grf_mmap 2006-03-08 23:37:15 +00:00