Commit Graph

35103 Commits

Author SHA1 Message Date
simonb a06ca06a19 Spell 'strategy' correctly. 2003-03-19 03:05:43 +00:00
fvdl 93d2b9ee12 Add some underscores in curcpu() to avoid a -Wshadow. 2003-03-18 22:29:58 +00:00
matt 13db562ca9 Remove unneeded code in pci_bus_configure (was pci_config_bus). Fix
setting of bus_spaces in gt_attach.
2003-03-18 19:35:01 +00:00
matt 0200088d83 Enable iobats for the PCI memory space(s). 2003-03-18 19:33:50 +00:00
matt 8a5a3a480a Switch/adapt to new bus space infrastructure. 2003-03-18 16:40:18 +00:00
matt 0a2b7ed22b Switch to gtmpsccnattach. Fix a few bugs in bus_space initialization. 2003-03-18 14:59:12 +00:00
matt 0b9b6810a5 Removed unused variable. 2003-03-18 14:56:48 +00:00
matt 3ec00b9a8f work around a cache problem. (flush both caches and disable the D-cache). 2003-03-18 14:56:21 +00:00
bsh ae4f6e5092 add interrupt numbers for built-in peripherals.
add register definitions for DMA, AC97, and USB.
2003-03-18 11:23:03 +00:00
bsh f47a5ffeea simplify CPU ID test for Intel PXA2xx by masking core revision part.
This also allows the kernel to run on pxa255.
2003-03-18 11:20:56 +00:00
bsh 40eb5e9921 fix XScale core revision mask, and add masks for core generation and
product number.
2003-03-18 11:17:31 +00:00
matt a935178cad remove "kludge" com console.
Simplify timebase initialization.
2003-03-17 23:28:09 +00:00
matt 0fb35cae8c Get CLOCKBASE from opt_ppcparam.h. 2003-03-17 23:24:41 +00:00
matt ecc8926154 Add CLOCKBASE=100000000 2003-03-17 23:23:47 +00:00
matt bff46769b9 fix typo in comment. 2003-03-17 23:15:33 +00:00
hannken afb54fa917 Add hardware accelerated copy/erase ops. 2003-03-17 18:39:23 +00:00
matt 582f976e54 Add __HAVE_GENERIC_SOFT_INTERRUPT support. 2003-03-17 16:54:16 +00:00
matt c7b0df67b4 Add CLOCKBASE to opt_ppcparam.h. 2003-03-17 16:53:52 +00:00
rafal 090fac3d8b Update for devopen() change. 2003-03-17 03:07:14 +00:00
rafal 5bd093cfbd If the boot device starts with a PCI bus spec, skip over that when looking
for a boot device type; this gets the boot.ip32 booting a kernel off disk.

While here remove some unrolled string compares in favor of strncmp() to
make code more readable.
2003-03-17 03:04:51 +00:00
fvdl 3306d06ea7 Don't use bitfields, make the fxsave structure packed instead. Makes
life a bit easier (for i.e. taking the address of a field).
2003-03-16 20:35:28 +00:00
cjep de21c5e413 kernal -> kernel 2003-03-16 19:42:09 +00:00
jdolecek 4b261fc76f allocate majors for vmmon/vmnet - VMware pseudo devices
we have the sources in othersrc tree now, so it's useful to have some
other bits in tree as well to simplify module use
2003-03-16 18:04:08 +00:00
fvdl cc8c490f0c Adapt for changed struct reg 2003-03-16 16:26:58 +00:00
fvdl f6215de412 Sync with other reg state structures. 2003-03-16 16:26:11 +00:00
he cea7b7a329 Add the newly separated-out ether_sprintf.c here, so that the booters
can be allowed to link with no unresolved symbols again.
2003-03-16 08:39:58 +00:00
matt 77533df068 Remove some debugging code. 2003-03-16 08:12:26 +00:00
matt f5110f7988 EV64260 now gets to single user prompt using COM1 (2nd uart) as console
with PPCBOOT as firmware.  XXX PCI devices are not found.
2003-03-16 07:07:17 +00:00
matt 5504cc0c26 Use "b" constraint so r0 won't be used. 2003-03-16 06:57:31 +00:00
matt 1d04c635f2 Make the result an early clobber so gcc won't get clever. 2003-03-16 06:56:47 +00:00
matt 8524a72241 Honor PMAP_NC for pmap_kenter_pa. Fix goof in pmap_pte_to_va. 2003-03-16 06:54:46 +00:00
matt ea542f761a addi is not the same as add. :) 2003-03-16 06:52:39 +00:00
matt 8a37a3ec5d Fix bus_dmamap_sync (add offset to ds->ds_addr when needed).
Add a set of parenthesis to PMAP_NC so it evaluates properly.
2003-03-16 05:37:37 +00:00
kristerw 3735c66934 Add snprintf, divdi3, moddi3, and qdivrem so that ufsboot builds. 2003-03-16 01:29:04 +00:00
fvdl c5eb2581e1 Make struct sigcontext consistent with other regstate-holding structures. 2003-03-15 23:41:25 +00:00
matt 640bee3010 Reduce visible globals. (gt_handle is now gt_memh and is only known to
machdep.c, gt_mainbus.c, and extintr.c)
2003-03-15 19:51:48 +00:00
matt 101a152db1 This contains no marvell specific code now. It now completely hides the
underlying PCI MD implementation.  XXX want to move this to
powerpc/include/ someday.
2003-03-15 19:50:31 +00:00
jmmv d69e6401db Note the DDB_ONPANIC option (commented out). Closes my own PR port-i386/17649. 2003-03-15 19:34:16 +00:00
matt a0b2076415 New generic powerpc bus_space framework. 2003-03-15 08:03:19 +00:00
matt 0f1794e44a Make lint happy and use __asm && __volatile.
manipulate netisr via lwarx/stwcx. to get atomicity.
2003-03-15 07:50:28 +00:00
matt 7ad3fe6e03 When mapping a page with BUS_SPACE_NOCACHE, make sure to flush the
physical page from the data cache.
2003-03-15 07:25:20 +00:00
matt 35962f72c9 s;backside;; and report L2CR_L2DO & L2CR_L2IO 2003-03-15 07:22:46 +00:00
matt 2b8417e488 Add LINTSTUBs and make oea_init() agree with them. 2003-03-15 07:21:02 +00:00
matt df24bda908 Make lint happy. 2003-03-15 07:19:20 +00:00
christos 866b37e61b pmap_kremove the pages before uvm_km_free'ing them. Thanks jason! 2003-03-14 18:47:53 +00:00
mjacob 3b3cb97b5b Attach esiop to a scsibus. 2003-03-14 17:29:05 +00:00
matt d03db36449 Use aprint_normal. Print 2MB L2 sizes with 7410. 2003-03-14 06:27:40 +00:00
matt e0242aaebc Remove Debugger call. 2003-03-14 06:25:58 +00:00
matt d50c91e021 Make lint happy by not assigning to casted lvalue. 2003-03-14 06:23:48 +00:00
matt 12dca1407b Condition ({ ... }) by __GNUC__. Remove redundant SPR_IBAT0U definiton. 2003-03-14 06:22:51 +00:00
matt d7fc76efe1 Add _LOCORE protection. 2003-03-14 06:21:19 +00:00
matt 61920c743e Make ALI trap print DSISR. 2003-03-14 05:38:53 +00:00
matt a7b613e469 Use __asm and __volatile to make lint happy. 2003-03-14 05:37:51 +00:00
matt ce05df7bc7 Quiet lint warning. 2003-03-14 05:37:14 +00:00
matt 8ceb32c0af make LINTSTUB work with this. 2003-03-14 05:36:39 +00:00
matt c894ddaec1 Print more useful messages on kernel ALI or PGM traps. 2003-03-14 05:32:27 +00:00
matt 0c29e154e3 Use __asm & __volatile to make lint(1) happy. 2003-03-13 17:30:38 +00:00
matt 8344279675 Synchronize macppc and evbppc majors when possible. Add a lot of missing
devices to evbppc.
2003-03-13 17:02:52 +00:00
drochner 6b8fef6400 cleanup, delete declarations now in libsa/iodesc.h 2003-03-13 16:02:39 +00:00
drochner 66a5580c6e Remove remaining uses of libsa/netif -- the "netif" structure was only
used to lookup a "struct of_dev", everything else was ballast.
Do it straightforward now and assign the ofdev directly to io_netif.
2003-03-13 15:36:06 +00:00
hannken 42cc9f8839 Add wscons to MAKEDEV. Add wsfont major number. 2003-03-13 14:56:56 +00:00
drochner 6e14bfebea Remove remaining uses of libsa/netif -- the "netif" structure was only
used to lookup a "struct romdev", everything else was ballast.
Do it straightforward now and assign the romdev directly to io_netif.
2003-03-13 14:49:12 +00:00
scw bfca0494bd Try to configure all children of cprc0, not just clock. 2003-03-13 14:37:36 +00:00
drochner 7d2a35f773 kill the last use of NENTS
(We shouldn't use libsa/netif here at all.)
2003-03-13 14:15:58 +00:00
drochner a15dcfdce7 Avoid conflict with sockets[] definition in net.h
and add some typecasts.
Thanks to Juergen Hannken-Illjes for compile-checking.
2003-03-13 14:05:53 +00:00
drochner 20b8952600 cope with removal of this sick NENTS macro from libsa/netif.h 2003-03-13 13:59:11 +00:00
drochner e537123c66 cope with changes to libsa/netif.h
(This shouldn't use libsa/netif at all.)
2003-03-13 13:55:24 +00:00
tsutsui 9053a4f127 NEC RISCstation 2200 (NEC-R94) doesn't have the secondary SCSI,
so prepare struct pica_dev for R94 in p_nec_r94.c to handle its quirk.
The problem was reported by David Hopper on port-arc.

XXX We should use ARC BIOS to get info of these devices.
2003-03-13 13:52:09 +00:00
scw d4f824014d A bunch of things:
- Clean up the way cpu-specific tlb/cache functions are configured
    and used.
  - Add a workaround for a problem whereby cpu* at superhyway? fails
    to probe.
  - Print more info about the cpu/cache.
  - Move the RESVEC handlers back into generic sh5 code and ditch
    the panic stack hack.
  - Make the on-chip SCIF device the default console on Cayman.
  - Add experimental support for booting via a standalone bootstrap
    program (not yet committed) and using the boot parameters passed
    in by it.
  - Add a few more SH elf constants.
  - Tick a couple of items off the TODO list.
2003-03-13 13:44:16 +00:00
drochner caa65123a8 cope with removal of this sick NENTS macro from libsa/netif.h 2003-03-13 13:35:55 +00:00
scw 31b3a7c37f In scif_getc(), check SCIF_SCFSR2_RDF in addition to SCIF_SCFSR2_DR to
detect waiting Rx data. This fixes an occasional console lockup when
when pasting text at the ddb prompt.
2003-03-13 13:19:01 +00:00
drochner e7bde1e9c7 adapt for void *io_netif 2003-03-13 12:44:48 +00:00
drochner 47fe380b4c make netif_close() return value void
fix prototype
2003-03-13 12:15:31 +00:00
hannken f2746edc5b Explicit cast for netif.
Approved by: Matthias Drochner <drochner@netbsd.org>
2003-03-13 12:02:54 +00:00
drochner e5cc00b939 Remove remaining uses of libsa/netif -- the "netif" structure was only
used to lookup a "struct of_dev", everything else was ballast.
Do it straightforward now and assign the ofdev directly to io_netif.
2003-03-13 11:35:54 +00:00
simonb 3c7ff59b5b Sprinkle some "volatile"; fixes problems with the {read,write}_{1,2}
functions big-endian Au1xxx CPUs.
2003-03-13 03:04:13 +00:00
drochner 9b72b507ef -use our own netif layer
-call the pxe unload function only on close(), not on open() errors,
 so we have a chance to retry
-remove some remaining references to NFS
2003-03-12 17:35:57 +00:00
drochner 168322ea77 kick out mi libsa/netif.c references 2003-03-12 17:33:55 +00:00
drochner 542ccfb0d5 Kick out the netif layer from mi libsa and implement an own, smaller, one
(we really don't need to support multiple interfaces)
Also arrange things so that we are able to unload the PXE stacks only
when we are sure that we don't need them anymore. (To make this more
useful, a hook in exec() is needed.
2003-03-12 17:33:10 +00:00
drochner 1ebc8c2dbd cleanup:
-update comments
-remove remaining references to "bootparam"
-don't try to interpret extra arguments to net_open() - we
 get only passed a NULL anyway (see devopen.c)
2003-03-12 13:15:08 +00:00
drochner c693137139 sync with mi libsa/nfs.c (with the intent to replace it eventually):
-kill "register" attributes
-obey "LIBSA_NO_TWIDDLE"
-ignore leading "/" also in the NFS_NOSYMLINK case
2003-03-12 12:23:06 +00:00
jdc cc782e8a7e Make this compile with only SUN4 defined. 2003-03-12 07:51:00 +00:00
matt cd26de2684 Same code exists in both halves in #ifdef/#else/#endif. move it outside. 2003-03-12 06:00:36 +00:00
thorpej 7d8f167f16 Split bus_space and bus_dma into separate files. 2003-03-12 00:09:51 +00:00
martin 717651ac94 Band aid - the infamous dcache_flush_page change independently suggested
by Andrey Petrov and Jason Thorpje (AFAIK).

This is a hack that covers some symptoms while we have no idea where
the real problem is. Anyway, since this avoids random data corruption
we better be safe and have this in-tree until the problem is solved the
right way.
2003-03-11 21:28:23 +00:00
drochner a82c138b1c If we get passed a filename (from the command line or default "netbsd"),
pass it to the BOOTP server in the "filename" field.
(as the "netboot" bootROMs already did)
So the user can easily switch between different kernels/configurations.
2003-03-11 18:32:59 +00:00
drochner dd15fa8102 Fix bug in readudp(): we have to return the correct length
of the received packet to the caller.
TFTP works now.
2003-03-11 18:29:00 +00:00
drochner df62259ae1 kick out RARP/bootparam - PXE uses BOOTP anyway 2003-03-11 16:30:02 +00:00
drochner ff28ac27ec use our own NFS fs implementation, which is smaller, does a better job
in error reporting and coexists with the TFTP fs
2003-03-11 15:01:51 +00:00
drochner 8e04272b51 add prototypes for local functions 2003-03-11 14:38:45 +00:00
dsl f8f0dcfd17 Need .code32 after real_to_prot (not .code16) 2003-03-11 12:37:35 +00:00
drochner a6fda7bcfb create a symlink so that eg <x86/trap.h> is found 2003-03-11 11:03:23 +00:00
hannken 249e0067fe Add a port to the NCD Explora451 ThinClient.
- Supported devices: le, com, lpt, pckbd, frame buffer.
 - Support missing:   phy, audio, pcmcia.
 - Boots from network or md.

Approved by: Eduardo Horvath <eeh@netbsd.org>
2003-03-11 10:57:54 +00:00
hannken 44b1e07ec9 Add support for the IBM 403GCX cpu. Enabled with "options PPC_IBM403".
- different set of device control registers.
  - non-standard access to the time base.
  - 16 byte cache lines.

Approved by: Eduardo Horvath <eeh@netbsd.org>
2003-03-11 10:40:15 +00:00
tsutsui f86b0e1741 In tlb_exception(), don't panic immediately on access at va == 0
from kernel mode if fault hander is set.
2003-03-09 16:14:29 +00:00
he 1565f9401d Remove remnants of support for console on ite, since the ite device
driver is no more.
2003-03-09 13:59:56 +00:00
mrg 60b9080da3 don't depend on "../../../../../gnu/dist/toolchain/include/coff/rs6000.h". 2003-03-09 00:39:10 +00:00
dsl 8a6f95626f Avoid pulling strncpy() into minimal boot code 2003-03-08 21:30:59 +00:00
dsl ef18027d4d Don't trust %bp to point to same place in real and protected modes.
prot_to_real preserves %ebp but changes %ss and %sp.
(ok if real %ss is offset n*64k from protected %ss - which it has been)
2003-03-08 21:09:37 +00:00
he b648593b37 Initialize the two new members of "struct consdev" to NULL, so that
this file compiles again.
2003-03-08 10:59:02 +00:00
he 34c6df3404 Initialize the two new members of "struct consdev" to NULL so that
this file compiles again.
2003-03-08 09:47:13 +00:00
he 0f55132c91 Initialize the two new members of "struct console" to NULL so that
this file compiles again.
2003-03-08 09:42:56 +00:00
rafal 67cca2386c Protect uses of MIPS_R5000 with #ifndef ENABLE_MIPS_R3NKK in new code just
as the old code does.
2003-03-08 05:18:25 +00:00
rafal 33fcc94c6f Add support for R5k secondary caches, from code Chris Sekiya sent me a long
time ago, with small tweaks by me.  Since the R5k doesn't do VCE, the pmap
still needs to be whacked for R5kSC CPUs to work correctly, but this is a
start.
2003-03-08 04:43:24 +00:00
tsutsui 12a8e27857 Remove .pdr section which is created by binutils-2.13.2.1
on objcopy call to make ECOFF kernels.
2003-03-08 02:58:55 +00:00
he 585b922ff4 Initialize the new function pointers to NULL, so this compiles again. 2003-03-08 01:18:42 +00:00
fvdl 59a910ed6a Move the MTRR option to std.x86_64. 2003-03-08 00:08:46 +00:00
lukem 6107a9b605 crank memory disk from 1360 blocks to 1376 blocks 2003-03-08 00:04:36 +00:00
matt dfb9f2d504 Remove some constant (use value in bus_space_tags). 2003-03-07 18:24:00 +00:00
rjs b486d4a0ff Add NULL cn_halt and cn_flush entries to consdev. 2003-03-07 13:30:35 +00:00
fvdl 02de215ad2 Add cpu* at mainbus. 2003-03-07 11:02:50 +00:00
taca e7e88128f7 Fix compile error with struct consdev change. 2003-03-06 23:47:35 +00:00
fvdl d2c1c747ec Remove last traces of pccons. 2003-03-06 23:21:36 +00:00
fvdl 167eeeab9c Update for kernel include changes. 2003-03-06 22:32:07 +00:00
fvdl 06114d8df6 Don't descend into ../i386/include anymore. 2003-03-06 22:22:55 +00:00
fvdl 00289f6f52 Put the correct value in the TPR before entering DDB. 2003-03-06 22:17:44 +00:00
fvdl 51c335ad9a Fixup DDB entry and register access. 2003-03-06 20:58:09 +00:00
matt feeb962699 Correct pci1 bus_space tag. 2003-03-06 20:15:24 +00:00
thorpej ea9a7f73e0 * No need for an interface attribute on "dma".
* Take the "dma" attribute off fhpib and nhpib, so that leaving out "dma"
  causes a compile-time error, rather than a run-time crash.
2003-03-06 18:28:52 +00:00
thorpej bba7685f5f Update for consdev changes. 2003-03-06 18:24:52 +00:00
skrll bcc03a47aa Add NULL cn_halt and cn_flush entries to consdevs. Hi Matt! 2003-03-06 13:09:28 +00:00
igy 9ead47682a catch up to consdev update 2003-03-06 07:39:34 +00:00
matt 210f48e582 Remove unneeded conditional code. 2003-03-06 07:15:46 +00:00
igy 3c0a5d1f13 Remove #ifdef __HAVE_GENERIC_SOFT_INTERRUPTS switch and old interrupt
support.  Ixp12x0 port always uses generic soft interrupt.
2003-03-06 06:17:43 +00:00
igy edcaa77675 insert macro to protect itself against multiple includion. 2003-03-06 06:14:16 +00:00
matt 3dc865b386 Relocate Discovery first thing in initppc (if not at expected address).
This implies that if PMON tells us where the GT is, we write that address
in gtbase.
2003-03-06 06:04:21 +00:00
matt a190651169 Make most of PPC (OEA) bus_space's identical (or as identical as possible).
(except mvmeppc).
2003-03-06 05:25:18 +00:00
fvdl 27e2af69da Call db_machine_init to set up the ddb ipi vector. 2003-03-06 00:47:00 +00:00
matt 0b8a5fd80f Adapt to powerpc/bus.h changes. 2003-03-06 00:20:39 +00:00
fvdl 4e5e707719 * Rework interrupt code
* Redirect some include files to x86
* Enable ioapic usage
* Do MP.
2003-03-05 23:55:57 +00:00
thorpej 6689073e50 When computing the LOADADDR() of .data and .sdata, use:
LOADADDR(previous_section) + (ADDR(current_section) - ADDR(previous_section))

to avoid using SIZEOF(), which does not properly take into account
the size of orphans that might be sorted with the section.
2003-03-05 23:54:22 +00:00
matt ff2281b498 Add preliminary support Marvell (Galileo) Discovery System Controllers.
This code was contributed by Allegro Networks.
2003-03-05 22:08:18 +00:00
soren ea477f4ba7 Forgot dummy printf. 2003-03-05 16:52:16 +00:00
soren 1f3cd4f95f Be more verbose about unsupported keys. 2003-03-05 16:18:24 +00:00
agc 2a540cd45f Forward declare struct lwp as well as struct trapframe. 2003-03-05 11:28:14 +00:00
grant e41c87001a fix some comments 2003-03-05 10:27:59 +00:00
jklos ba44f83888 Fix from Frederick Bruckman to get current kernels booting again. 2003-03-05 05:56:26 +00:00
matt 92d0498c3d Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).
2003-03-05 05:43:42 +00:00
matt 6d251b3be3 Make AltiVec registers available via ptrace/procfs. Simplify AltiVec
processing.  Add a "common" procfs_machdep.c for PowerPC platforms.
Even though it is supposed to be port specific, most (if not all)
PowerPC ports can just use the common one.
2003-03-05 05:27:24 +00:00
fvdl 91ef1f21bf Make the apic address unsigned, as it should be. 2003-03-04 23:27:32 +00:00
fvdl c89161c65f ioapic address is not actually a pointer, initialize it as uint32_t 2003-03-04 23:21:25 +00:00
fvdl e575c4bc69 Fix some fields that did not have explicit types yet. 2003-03-04 23:20:29 +00:00
fvdl 48aa516ffe Use read_psl and write_psl. 2003-03-04 22:43:36 +00:00
fvdl e1a37a9604 Define read_psl and write_psl as aliases for read_eflags and write_eflags. 2003-03-04 22:43:09 +00:00
fvdl b2a3a55d38 Enable the define for EISA MPBIOS support. 2003-03-04 22:19:32 +00:00
fvdl d9bd125d50 Make EISA support conditional (on by default on i386). 2003-03-04 22:19:04 +00:00
yamt 182b7b7cda lower acpi interrupt level to IPL_VM.
it's the highest level it can use because it uses malloc(9).
XXX probably, it's still higher than it needs.

ok'ed by thorpej.
2003-03-04 13:44:08 +00:00
soren e0395ed0f1 G/c old macppc grf entries. 2003-03-04 13:29:12 +00:00
soren 889bcccc72 Attach on recent TiBooks.
XXX The mixer doesn't work yet.
2003-03-04 13:28:20 +00:00
matt fb2cebb577 Pass the address of the intrframe to the ext_intr routine. 2003-03-04 08:34:12 +00:00
matt e1d9426036 Make to define ${BOARDTYPE} 2003-03-04 07:52:21 +00:00
matt 107803a3a3 Re-arrange things in evbppc & powerpc to support OEA-based eval boards
in evbppc.  OEA-based board(s) to be added later.
2003-03-04 07:50:57 +00:00
matt 9875f9218d Add some missing volatiles. 2003-03-04 07:48:09 +00:00
thorpej 23d2066add Cast the argument passed to vtophys() to a vaddr_t. 2003-03-04 01:10:50 +00:00
fvdl a345044000 s/i386_isa_chipset/x86_isa_chipset/ 2003-03-04 01:07:36 +00:00
fvdl f28dd1acef s/i386_isa_chipset/x86_isa_chipset/, it's defined on multiple ports, but
used in shared code.
2003-03-04 01:06:38 +00:00
pk f26c7b7e7f Note a kernel pmap locking problem in pmap_kenter_pa4m(). 2003-03-03 22:43:58 +00:00
fvdl 7b925fa8cf Use unsigned long long to print msr values. 2003-03-03 22:23:22 +00:00
fvdl 2934facefc use CVAROFF. 2003-03-03 22:17:15 +00:00
fvdl 60ff7764b1 Use pmap_cpu_has_pg_n() 2003-03-03 22:16:54 +00:00
fvdl 22c3c5973b The IDT is an array of struct gate_descriptor. 2003-03-03 22:16:20 +00:00
fvdl 5d9be5f0db The IDT only contains gate descriptors, so define it as such. 2003-03-03 22:14:15 +00:00
fvdl 1b64bc0ae7 define pmap_cpu_has_pg_n and pmap_cpu_has_invlpg to make code sharing
easier.
2003-03-03 22:13:16 +00:00
fvdl 3ebdf8bcc3 Make CVAR asm reference macro CVAROFF, taking an offset. 2003-03-03 22:12:22 +00:00
fvdl cf1495e079 Install cpuvar.h 2003-03-03 20:26:18 +00:00
ragge 6c0c8e1049 Change the pmap to use 512-byte pages as user page table pages instead of
PAGE_SIZE pages (4k). An average small program uses ~6 4k pages (24k),
while the same program only uses ~20 512 byte pages (10k), so it will be
a small memory usage improvement. The large improvement will be the upcoming
ability to share page table pages between processes for shared libraries.

Remaining: should be able to give back ptp pages to the system.
2003-03-02 22:19:06 +00:00
christos 767bfa5fb6 microtime.S depends on assym.h 2003-03-02 22:19:05 +00:00
ragge 2b65555cf7 Change the pmap to use 512-byte pages as user page table pages instead of
PAGE_SIZE pages (4k). An average small program uses ~6 4k pages (24k),
while the same program only uses ~20 512 byte pages (10k), so it will be
a small memory usage improvement. The large improvement will be the upcoming
ability to share page table pages between processes for shared libraries.

Remaining: should be able to give back ptp pages to the system.
2003-03-02 22:19:04 +00:00
tshiozak 31e2cbf0b5 add some ISO C 1995 I18N functions and types:
btowc, wctrans, towctrans, wcscoll, wcsxfrm, wctype_t and wctrans_t.
2003-03-02 22:18:11 +00:00
pk 77accc351e Use the new pmap_kprotect() function instead of pmap_changeprot().
The latter is now a pmap internal function; and it wasn't used correctly
in mkclock.c anyway.
2003-03-02 21:42:48 +00:00
pk 22cf03a09f pmap_changeprot() is not a UVM <-> PMAP interface function; make it internal.
Provide pmap_kprotect() for MD code to change protection on a range of
kernel addresses (cuurent users: intr.c and mkclock.c).
2003-03-02 21:37:20 +00:00
fvdl 7f72a2bff2 Clean up some unneeded "mca.h" and "eisa.h" includes, make one that is
needed dependent on !__x86_64__. To be revisited later.
2003-03-02 18:27:14 +00:00
fvdl 636c7ca859 x86_64 has no mca.h and eisa.h (should perhaps just generate empty ones) 2003-03-02 18:11:03 +00:00
fvdl 8d69f823b1 Redirect to x86/ 2003-03-02 18:09:42 +00:00
tsutsui 8aa243df44 Bump SYMTAB_SPACE to 192000. 2003-03-02 04:42:40 +00:00
tsutsui 9c5dcb82ac Cleanup G2_LOCK/G2_UNLOCK macros per discussion on port-dreamcast:
- Use _cpu_intr_suspend()/_cpu_intr_resume() in G2_LOCK/G2_UNLOCK macros
  rather than _cpu_exception_suspend()/_cpu_exception_resume().
  TLB miss exceptions could happen on accessing buffer, but it will never
  block G2bus cycle anyway.
- Restore the previous SR.IMASK value in G2_UNLOCK().
- some misc cosmetics.

Should fix spontaneous reboots by "ping -s 8192 host" on the LAN Adapter.
2003-03-02 04:23:16 +00:00
matt 5401f85320 Restore MQ to trapframe from mcontext since it's in both. 2003-03-02 01:07:55 +00:00
fvdl 0cb6724bc7 lock_machdep.c moved here from arch/i386/i386. 2003-03-01 22:55:02 +00:00
fvdl f555536d9b Move lock_machdep.c to arch/x86/x86. 2003-03-01 22:53:39 +00:00
matt 986f7ca902 Add machdep sysctl support. Support booted_device, consdev, and
printfataltraps.
2003-03-01 21:51:59 +00:00
fvdl aeaf29a3a3 Redirect to x86/cpuvar.h 2003-03-01 18:30:03 +00:00
fvdl 9ad868eb65 Moved here from i386/include 2003-03-01 18:29:28 +00:00
fvdl a3b7772adf Move the CPU identification out of machdep.c into a seperate file. 2003-03-01 16:37:51 +00:00
fvdl de9139c67d Follow the spec more closely, and do an ljmp immediately after enabling
protected mode, not several instructions afterwards.
2003-03-01 16:36:37 +00:00
fvdl dbef38adbf This was still falsely referencing the ipending variable, which isn't
used anymore. Use curcpu()->ci_ipending (== cpu_info_primary.ci_pending,
since this is only used in the UP case).
2003-03-01 16:35:07 +00:00
fvdl d2315fd2b7 Remove accidentally enabled debug printf.
From Enami.
2003-03-01 13:05:37 +00:00
pk 1b5340d327 Add support for large kernels by searching for a physical memory segment
to fit it in. As a bonus, the kernel is now also mapped to the virtual
address (i.e. KERNBASE) it is linked at.
2003-03-01 13:01:55 +00:00
thorpej 5afa6838bf Do the syscall_plain/syscall_fancy dance on ARM. Shaves a fair number
of cycles off the syscall overhead.

Since all COMPAT_LINUX platforms now support __HAVE_SYSCALL_INTERN,
garbage-collect the LINUX_SYSCALL_FUNCTION stuff.
2003-03-01 04:36:38 +00:00
matt a391bf2e06 Make this play with gcc 3.3. Add -ffreestanding. Cleanup bootxx. 2003-02-28 05:24:56 +00:00
scw 2125ffc454 Move the -D__daddr_t from libsa/Makefile to Makefile.booters so
the bootloaders get to benefit from it, not just libsa.
2003-02-27 20:38:34 +00:00
perseant eab869e1c0 Make BRIDGE_IPF an option, and document it. Add it (commented) to GENERIC.
Let brconfig tell whether the bridge is using the ipfilter hook, or not.
2003-02-27 19:22:36 +00:00
bsh e6ef3bc041 Some interrupt controllers can select polarity of interrupt signals.
add IST_LEVEL_{LOW,HIGH} and IST_EDGE_{FALLING,RISING,BOTH} for them.
2003-02-27 14:55:41 +00:00
pk 33bdc2efe0 Free page table pages to the same VM map they were allocated from. 2003-02-27 14:19:41 +00:00
hannken c03626b07b Change "i386_trunc_page" to "x86_trunc_page". 2003-02-27 12:22:52 +00:00
fvdl f8b0474185 Reinstate some const qualifiers I accidentally removed when moving this
file.
2003-02-27 11:22:46 +00:00
matt 229495b6d3 Need to forward declare struct buf and struct pte for function prototypes. 2003-02-27 07:14:19 +00:00
igy d67ca5b2e7 locator should use physical addresses 2003-02-27 04:06:07 +00:00
fvdl dd22310ae1 Add consinit.c 2003-02-27 01:50:40 +00:00
fvdl ba3f3ceb24 Catch up with consinit.c move. 2003-02-27 01:49:29 +00:00
fvdl b5a7ec69dd Moved here from arch/i386/i386. 2003-02-27 01:49:05 +00:00