Commit Graph

238 Commits

Author SHA1 Message Date
fvdl 1279513402 Need PAGE_SIZE definition for mptramp.S 2003-04-17 20:00:03 +00:00
fvdl 5b38542fe2 Bump MSIZE to 512. 2003-04-17 18:20:17 +00:00
fvdl f41a4264a0 Remove some items to save space. 2003-04-17 14:45:33 +00:00
fvdl 41aa5664b5 Add mpt. 2003-04-17 13:32:28 +00:00
fvdl cf3fb808d7 Fix DIAGNOSTIC link error (switch_error label). 2003-04-17 12:33:49 +00:00
fvdl 0a98e2c329 Correct the previous commit, getmcontext has no local 'gr' variable like i386. 2003-04-17 09:36:47 +00:00
bouyer aec10dd80c Nake return values from bounds_check_with_label() conform to the man
page: -1 for error, 0 for EOF, 1 otherwise. Inspired by an OpenBSD commit
message, pointed out by Miod Vallat in private mail.
vax/mba/hp.c: check return value <= 0, not < 0 to be concistent with how
other places handle return values from bounds_check_with_label().
2003-04-16 15:00:59 +00:00
nathanw ff28c51cc0 Make cpu_getmcontext() run the PC through ras_lookup() so that kernel
getcontext() plus userlevel setcontext() (as used in libpthread) respects
the atomicity of RAS regions.
2003-04-11 22:02:28 +00:00
christos b9f9db3ca2 Bye Bye UCONSOLE 2003-04-10 22:06:51 +00:00
thorpej a0aee79a1d Add the ability for pool caches to cache the physical address of
objects.  Clients of the pool_cache API must consistently use
the "paddr" variants or not, otherwise behavior is undefined.

Enable this on Alpha, ARM, MIPS, and x86.  Other platforms must
define POOL_VTOPHYS() in the appropriate manner in order to enable
the feature.

Part 1 of a series of simple patches contributed by Wasabi Systems
to improve network performance.
2003-04-09 18:22:13 +00:00
thorpej ffc984aa7c Use PAGE_SIZE rather than NBPG. 2003-04-02 07:53:56 +00:00
thorpej d071d9a8d0 Use PAGE_SIZE rather than NBPG. 2003-04-01 15:02:05 +00:00
fvdl 3658055d88 Resurrect the REALBASEMEM and REALEXTMEM option for this port; they're
sometimes useful.
2003-03-25 00:09:27 +00:00
dsl bd99e3429d Use 'void *' instead of 'caddr_t' in prototypes of VOP_IOCTL, VOP_FCNTL
and VOP_ADVLOCK, delete casts from callers (and some to copyin/out).
2003-03-21 23:11:19 +00:00
fvdl 6f16ef3a25 Strip some stuff that's not needed. 2003-03-20 22:30:53 +00:00
fvdl b52610cf4a Limit the KVA used by buffers. 2003-03-20 22:30:28 +00:00
fvdl 93d2b9ee12 Add some underscores in curcpu() to avoid a -Wshadow. 2003-03-18 22:29:58 +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
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
fvdl c5eb2581e1 Make struct sigcontext consistent with other regstate-holding structures. 2003-03-15 23:41:25 +00:00
fvdl 59a910ed6a Move the MTRR option to std.x86_64. 2003-03-08 00:08:46 +00:00
fvdl 02de215ad2 Add cpu* at mainbus. 2003-03-07 11:02:50 +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
fvdl 27e2af69da Call db_machine_init to set up the ddb ipi vector. 2003-03-06 00:47:00 +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
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
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
fvdl 34cdc350a6 The mementry struct is packed by default now, remove lo/hi usage. 2003-02-26 21:32:20 +00:00
fvdl c0f1fc2c3e Add various include files for MP; mostly redirects to x86/foo.h 2003-02-26 21:31:12 +00:00
fvdl 1fe3d0e71c Redirect a few includes to x86/foo.h 2003-02-26 21:29:34 +00:00
fvdl e3a92065e8 Fix another off-by-one, this time in the current KVA limited as maintained
by pmap_growkernel.
2003-02-25 00:48:00 +00:00
fvdl 0ee308ef7e Fix up pmap_growkernel a bit to avoid off-by-one errors. 2003-02-23 02:44:44 +00:00
fvdl 49a9f4f666 Use BIOS memory info properly. Don't try to allocate areas > 4G out of
the IO extent, since it only spans 32 bits.
2003-02-23 02:43:25 +00:00
fvdl feaeb437d4 Make COMPAT_NETBSD32 compile and work again (though not with SAs). 2003-02-19 00:37:33 +00:00
augustss 519f8f3d30 Add uax(4) (and url(4) in some cases). 2003-02-16 17:35:13 +00:00
nakayama e3e4805068 Replace machine/rnd.h with more appropriate name to share it
with cycle counter based microtime in kern/kern_microtime.c.
2003-02-05 13:57:50 +00:00
fvdl f26f133510 Don't deref l if it's NULL, please. 2003-01-30 22:45:20 +00:00
fvdl aa0d12cace Use flag to indicate whether an LWP should return to userspace via
sysret (should it have entered through syscall), or via a plain
iret. This can be done more quicker and dirtier, but I've decided
against that for now.
2003-01-30 02:04:59 +00:00
fvdl be932c1dc6 Add some optional debug goop. 2003-01-30 02:03:35 +00:00
fvdl c795d68779 Add flag to indicate that an LWP should return to userspace via a normal
iret (not sysret).
2003-01-30 02:02:51 +00:00
kent cd7d9faeaf Introduce BUS_DMA_NOCACHE, and bus_dmamem_map() of i386 supports it. 2003-01-28 01:07:51 +00:00
fvdl f9765c27a4 Insert padding into mcontext_t to make the fp save area 16-byte aligned
within ucontext_t.
2003-01-26 19:34:49 +00:00
fvdl ac0ea8f774 Rearrange the trapframe and mcontext to put the registers used for
argument passing to be in front, in order. Define constants for
offsets inside frames, to avoid having to redo asm code should they
change again.
2003-01-26 14:12:10 +00:00
fvdl 60f2388778 Do that funky SA thang. 2003-01-26 00:05:36 +00:00
simonb 276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00