Commit Graph

300 Commits

Author SHA1 Message Date
das
b391cc9d3e Remove some references to U area here while trying not to break
anything.  Someone with ARM hardware could do a lot more to untangle
this code.

Reviewed by:	arch@
2004-11-20 02:31:23 +00:00
das
475ee07a1d Remove references to U area and garbage collect includes.
Reviewed by:	arch@
2004-11-20 02:30:59 +00:00
das
727fcaa324 U areas are going away, so don't allocate one for process 0.
Reviewed by:	arch@
2004-11-20 02:29:25 +00:00
cognet
0c7185079f Increase cnt.v_syscall and cnt.v_trap when needed. 2004-11-20 00:55:57 +00:00
cognet
3aea49e013 Move KERNPHYSADDR and KERNVIRTADDR from std.i80321 to std.iq31244.
Use the correct KERNPHYSADDR.
2004-11-18 00:05:09 +00:00
cognet
508a58575d Simplify a bit bus_dmamap_load_buffer by removing the "first" parameter, use
nseg == -1 instead.

Obtained from:	NetBSD
2004-11-16 00:57:44 +00:00
cognet
30141a0a3b MFi386:
- inlina bus_dmamap_load_buffer
- Directly pass the pmap to bus_dmamap_load_buffer, instead of the struct thread
2004-11-15 23:59:28 +00:00
cognet
f6707e069f Remove debugging printf. 2004-11-13 15:12:26 +00:00
cognet
07e2ed965f Don't forget to clear the PG_WRITEABLE flag when appropriate. 2004-11-13 14:54:31 +00:00
cognet
ef36741f45 Use uma_prealloc() on the l2table_zone to prevent a LOR at startup. 2004-11-13 14:41:27 +00:00
cognet
90054b7dc9 Implement interrupt counting, so that vmstat -i work. 2004-11-12 21:49:05 +00:00
cognet
d96dddbf32 Don't forget to include opt_vm.h. 2004-11-10 22:11:08 +00:00
cognet
0b462112c9 Convert the IQ31244 code to use ARM32_NEW_VM_LAYOUT. 2004-11-10 22:09:39 +00:00
cognet
6ffc955271 Invalidate the data cache in pmap_qremove() instead of in pmap_kenter(),
and in pmap_enter_quick() instead of pmap_enter().
2004-11-10 21:46:04 +00:00
trhodes
9b17a426f1 Remove __P here too.
Ok'ed by:	cognet
2004-11-10 01:33:42 +00:00
cognet
fd1f577706 Use the RET macro. 2004-11-09 16:47:47 +00:00
cognet
76a24be61b Import a RET macro, that will use bx if the arch supports it.
Obtained from:	NetBSD
2004-11-09 16:45:55 +00:00
alc
18a8c83ea7 Introduce two new options, "CPU private" and "no wait", to sf_buf_alloc().
Change the spelling of the "catch" option to be consistent with the new
options.  Implement the "no wait" option.  An implementation of the "CPU
private" for i386 will be committed at a later date.
2004-11-08 00:43:46 +00:00
cognet
0bad3303cf Add device mem in config files. 2004-11-07 23:02:15 +00:00
cognet
33bf0de235 Import md bits for mem(4) on arm.
While I'm there, cleanup a bit pmap.h.
2004-11-07 23:01:36 +00:00
cognet
dd6c203eb1 Remove useless code. 2004-11-07 16:51:33 +00:00
cognet
5ccbdd0b76 Disable interrupts for atomic_cmpset_32, this one is just not atomic.
Don't export it to userland.
2004-11-05 23:48:12 +00:00
cognet
6aa5b1940f Copy the syscall args in a tmp variable instead of directly using the
trapframe, as it can be modified in the syscall.
Call thread_user_enter() when appropriate.
2004-11-05 19:57:10 +00:00
cognet
371be7abc9 Save a few cycles in context switch.
Update comments to reflect reality.
2004-11-05 19:54:13 +00:00
cognet
e816807900 If we're still running at the physical address, jump to the virtual address
instead before calling initarm().
This removes the need to map virtual == physical in initarm().
2004-11-05 19:52:55 +00:00
cognet
eca02054a8 Be more verbose about cache capacities. 2004-11-05 19:51:23 +00:00
cognet
d929534a4d Implement casuptr. 2004-11-05 19:50:48 +00:00
cognet
a31f092d86 Call pmap_pte_init_arm9 instead of pmap_pte_init_generic if
ARM9_CACHE_WRITE_THROUGH is defined.
2004-11-05 19:48:40 +00:00
cognet
77ece50565 In cpu_critical_fork_exit(), make sure to set td_md.md_critnest so that
interrupts will be enabled.

Spotted out by:	jhb
2004-11-05 18:29:45 +00:00
cognet
8ab7d85466 Protect the function declarations with #ifdef _KERNEL. 2004-11-04 19:20:54 +00:00
cognet
29a110ac8f Directly use __pcpu for PCPU_* instead of pcpup. 2004-11-04 19:19:44 +00:00
cognet
42f3ac62bf Decrease KSTACK_PAGES and UAREA_PAGES. 2004-11-04 19:19:21 +00:00
cognet
9ae9025175 Use interrupts_disable() and interrupts_restore() as intr_disable() and
intr_restore() instead of re-implement it.
2004-11-04 19:18:50 +00:00
cognet
c13498c145 Don't barf if no CPU type is defined while compiling kernel modules. 2004-11-04 19:16:31 +00:00
cognet
d6d0407a62 Implement get_cyclecount(). 2004-11-04 19:15:43 +00:00
cognet
17aad1aaf4 Try to implement atomic operations using swp, instead of disabling interrupts. 2004-11-04 19:14:50 +00:00
cognet
d107af25b0 Use casts to enforce the return type of bswap16() and bswap32(). 2004-11-04 19:07:28 +00:00
cognet
4e2c4141d0 Implement cpu_thread_siginfo() and set_mcontext().
Nuke getframe(), and choose which stack to use directly in sendsig().
2004-11-04 19:04:30 +00:00
cognet
2b114cd2f1 Implement cpu_set_upcall and cpu_set_upcall_kse.
Calculate td_frame and td_pcb the right way in cpu_thread_setup.
2004-11-04 18:59:02 +00:00
cognet
660ae46a7a Get kernel modules to work. 2004-11-04 18:48:52 +00:00
andre
b42fa1cbda Reduce annoying SCSI probing delay from 15 to 5 seconds in all GENRIC kernels.
Discussed on:	-current
2004-11-02 20:57:20 +00:00
jhb
c8058fdc6e - Change the ddb paging "support" to use a variable (db_lines_per_page) to
control the number of lines per page rather than a constant.  The variable
  can be examined and changed in ddb as '$lines'.  Setting the variable to
  0 will effectively turn off paging.
- Change db_putchar() to force out pending whitespace before outputting
  newlines and carriage returns so that one can rub out content on the
  current line via '\r     \r' type strings.
- Change the simple pager to rub out the --More-- prompt explicitly when
  the routine exits.
- Add some aliases to the simple pager to make it more compatible with
  more(1): 'e' and 'j' do a single line.  'd' does half a page, and
  'f' does a full page.

MFC after:	1 month
Inspired by:	kris
2004-11-01 22:15:15 +00:00
cognet
599524df47 We want to ignore BUS_DMASYNC_POSTWRITE, not BUS_DMASYNC_POSTREAD.
Spotted out by:	mux
Pointy hat to:	cognet
2004-10-21 11:59:33 +00:00
cognet
0856113b38 Use a default MD_ROOT_SIZE of 65535. 2004-10-11 14:42:06 +00:00
cognet
cf9c8ea97f Use MD_ROOT_SIZE, instead of our own macro. 2004-10-11 14:41:38 +00:00
cognet
134eb00591 Add optimized version of the bswap macroes for constants if __OPTIMIZED__ is
defined.
2004-10-01 16:55:59 +00:00
cognet
04fdb2f30d There's no need to turn on MALLOC_PROFILE by default. 2004-10-01 16:51:37 +00:00
cognet
0c70c83450 Calling fuword from fuword32 with bl and without returning after is really a bad
idea.
Any way I get a customized CVS template with "Pointy hat to:	cognet"
pre-filled ?
2004-09-28 14:39:26 +00:00
cognet
861d05be03 Always invalidate the whole data cache in pmap_enter() for now.
It should not be needed.
2004-09-28 14:38:14 +00:00
cognet
4e9975d2bf Remove dead code. 2004-09-28 14:37:39 +00:00
cognet
1adc169db7 Add the config file for the IQ31244 board. 2004-09-23 22:55:00 +00:00
cognet
ba4ceead20 Use the new KERNVIRTADDR and PHYSADDR options.
Add KDB.
2004-09-23 22:53:50 +00:00
cognet
d5fbaead12 Import partial support for the IQ31244 eval board (i80321 CPU). IQ80321 might
work out of the box too, but I have no hardware to test.
It works well enough to go multiuser. Network works, SATA does not, as I have
no drive to test.
Thanks to Intel for sending such a board.

Obtained from:  NetBSD
2004-09-23 22:45:36 +00:00
cognet
a47ed20a10 Add Xscale common headers. 2004-09-23 22:36:13 +00:00
cognet
e834f98e29 Big cleanup: get ride of the whole spl level logic, as FreeBSD doesn't use
it anymore.
2004-09-23 22:33:38 +00:00
cognet
488b24fded Now that we have pmap_growkernel(), use more KVA. 2004-09-23 22:32:33 +00:00
cognet
ae640f0474 Remove the empty definition of struct osigcontext, as it will never be used. 2004-09-23 22:31:49 +00:00
cognet
418839fab6 Remove the pcb32_cstate field of struct pcb. 2004-09-23 22:31:08 +00:00
cognet
5db0f10cb9 Declare sigcode and szsigcode. 2004-09-23 22:30:05 +00:00
cognet
9b94bfab45 Define VM_PROT_READ_IS_EXEC. 2004-09-23 22:29:43 +00:00
cognet
079c4c08a7 Implement _mcount().
Obtained from:	NetBSD
2004-09-23 22:29:18 +00:00
cognet
4e8bba38f7 Define STACKALIGNBYTES and STACKALIGN. 2004-09-23 22:27:42 +00:00
cognet
24dfe8a29b We are using _mcount, not __mcount.
Remove the !__ELF__ case.
2004-09-23 22:26:29 +00:00
cognet
6ffde35ac2 Use sf_bufs for uiomove_fromphys(). 2004-09-23 22:25:20 +00:00
cognet
fdea91c607 On Xscale, use the minicache for the kernel stack. 2004-09-23 22:24:12 +00:00
cognet
3529fddc66 Make sure to call cred_update_thread() if needed.
Add partial support for KTRACE.
2004-09-23 22:22:33 +00:00
cognet
239b289d61 Implement cpu_throw().
Obtained from:	NetBSD
2004-09-23 22:20:59 +00:00
cognet
6ca8d7fd40 Remove unused macroes.
Add user, btrap, etrap, bintr and eintrt in the GPROF case.
2004-09-23 22:18:56 +00:00
cognet
8d41c98ef2 Implement sigreturn(). 2004-09-23 22:12:28 +00:00
cognet
51af24e5b5 Add the hw.machine sysctl. 2004-09-23 22:11:43 +00:00
cognet
489864898e Remove definitions related to the pmap cache state, and add TDF_NEEDRESCHED. 2004-09-23 22:11:06 +00:00
cognet
1e387411bb Add new functions to know which irqs are pending, and to mask and unmask
interrupts, as these are CPU specific.
If the interrupt handler is not marked as INTR_FAST, don't unmask the
interrupt until it as been serviced.
2004-09-23 22:09:57 +00:00
cognet
cfe86ba2b4 Rename macroes, as we don't need to mess with alignment faults.
Call ast() if TDF_NEEDRESCHED is set too, not just TDF_ASTPENDING.
2004-09-23 22:05:40 +00:00
cognet
bf2bcea292 Use sigcode. 2004-09-23 22:03:25 +00:00
cognet
05f84a6081 In db_stack_trace_cmd, remove the "pc" variable, we don't need it. 2004-09-23 22:02:59 +00:00
cognet
4ba8f19909 Use the right path for xscale files. 2004-09-23 21:59:43 +00:00
cognet
15a5aecf7f Remove bus_space_vaddr(), it does not exists in FreeBSD. 2004-09-23 21:59:14 +00:00
cognet
b5967a5f59 Don't attempt to manage our own segment list, and just remember the buffers
provided.

Obtained from:	NetBSD
2004-09-23 21:57:47 +00:00
cognet
5fd0261f4f Use the right path for the bcopyinout_xscale.S file. 2004-09-23 21:56:36 +00:00
cognet
4d068768d3 Add MD syscalls to sync the icache and to drain the write buffer.
Obtained from:	NetBSD
2004-09-23 21:56:01 +00:00
cognet
4ef156bbee Implement pmap_growkernel() and pmap_extract_and_hold().
Remove the cache state logic : right now, it provides more problems than it
helps.
Add helper functions for mapping devices while bootstrapping.
Reorganize the code a bit, and remove dead code.

Obtained from:	NetBSD (partially)
2004-09-23 21:54:25 +00:00
cognet
46cd28cbee Map the kernel very early if needed.
Implement sigcode.
2004-09-23 21:49:10 +00:00
jhb
fff6af0307 - Add support for "paging" in stack trace output. That is, when you do
a stack trace from ddb, the output will pause with a '--More--' prompt
  every 18 lines.  If you hit Enter, it will print another line and prompt
  again.  If you hit space it will output another page and then prompt.
  If you hit 'q' or 'x' it will abort the rest of the stack trace.
- Fix the sparc64 userland stack trace to honor the total count of lines
  to print.  This is useful if your trace happens to walk back onto
  0xdeadc0de and gets stuck in an endless loop.

MFC after:	1 month
Tested on:	i386, alpha, sparc64
2004-09-20 19:05:32 +00:00
scottl
defbc43f76 Fix a problem with tag->boundary inheritence that has existed since day one
and was propagated to nearly every platform.  The boundary of the child needs
to consider the boundary of the parent and pick the minimum of the two, not
the maximum.  However, if either is 0 then pick the appropriate one.
This bug was exposed by a recent change to ATA, which should now be fixed by
this change.  The alignment and maxsegsz tag attributes likely also need
a similar review in the near future.

This is a MT5 candidate.

Reviewed by: marcel
Submitted by: sos (in part)
2004-09-08 04:54:19 +00:00
julian
6163fd4e96 Refactor a bunch of scheduler code to give basically the same behaviour
but with slightly cleaned up interfaces.

The KSE structure has become the same as the "per thread scheduler
private data" structure. In order to not make the diffs too great
one is #defined as the other at this time.

The KSE (or td_sched) structure is  now allocated per thread and has no
allocation code of its own.

Concurrency for a KSEGRP is now kept track of via a simple pair of counters
rather than using KSE structures as tokens.

Since the KSE structure is different in each scheduler, kern_switch.c
is now included at the end of each scheduler. Nothing outside the
scheduler knows the contents of the KSE (aka td_sched) structure.

The fields in the ksegrp structure that are to do with the scheduler's
queueing mechanisms are now moved to the kg_sched structure.
(per ksegrp scheduler private data structure). In other words how the
scheduler queues and keeps track of threads is no-one's business except
the scheduler's. This should allow people to write experimental
schedulers with completely different internal structuring.

A scheduler call sched_set_concurrency(kg, N) has been added that
notifies teh scheduler that no more than N threads from that ksegrp
should be allowed to be on concurrently scheduled. This is also
used to enforce 'fainess' at this time so that a ksegrp with
10000 threads can not swamp a the run queue and force out a process
with 1 thread, since the current code will not set the concurrency above
NCPU, and both schedulers will not allow more than that many
onto the system run queue at a time. Each scheduler should eventualy develop
their own methods to do this now that they are effectively separated.

Rejig libthr's kernel interface to follow the same code paths as
linkse for scope system threads. This has slightly hurt libthr's performance
but I will work to recover as much of it as I can.

Thread exit code has been cleaned up greatly.
exit and exec code now transitions a process back to
'standard non-threaded mode' before taking the next step.
Reviewed by:	scottl, peter
MFC after:	1 week
2004-09-05 02:09:54 +00:00
marcel
df865268d9 Move the kernel-specific logic to adjust frompc from MI to MD. For
these two reasons:
1. On ia64 a function pointer does not hold the address of the first
   instruction of a functions implementation. It holds the address
   of a function descriptor. Hence the user(), btrap(), eintr() and
   bintr() prototypes are wrong for getting the actual code address.
2. The logic forces interrupt, trap and exception entry points to
   be layed-out contiguously. This can not be achieved on ia64 and is
   generally just bad programming.

The MCOUNT_FROMPC_USER macro is used to set the frompc argument to
some kernel address which represents any frompc that falls outside
the kernel text range. The macro can expand to ~0U to bail out in
that case.
The MCOUNT_FROMPC_INTR macro is used to set the frompc argument to
some kernel address to represent a call to a trap or interrupt
handler. This to avoid that the trap or interrupt handler appear to
be called from everywhere in the call graph. The macro can expand
to ~0U to prevent adjusting frompc. Note that the argument is selfpc,
not frompc.

This commit defines the macros on all architectures equivalently to
the original code in sys/libkern/mcount.c. People can take it from
here...

Compile-tested on: alpha, amd64, i386, ia64 and sparc64
Boot-tested on: i386
2004-08-27 19:42:35 +00:00
marcel
8168f71879 Add __elfN(dump_thread). This function is called from __elfN(coredump)
to allow dumping per-thread machine specific notes. On ia64 we use this
function to flush the dirty registers onto the backingstore before we
write out the PRSTATUS notes.

Tested on: alpha, amd64, i386, ia64 & sparc64
Not tested on: arm, powerpc
2004-08-11 02:35:06 +00:00
alc
a874b645f9 Add a comment describing pmap_extract_and_hold() noting that the protection
check still needs implementation on arm.
2004-08-10 21:43:40 +00:00
cognet
31694af829 Use the new prototype for the zone constructor. 2004-08-06 22:32:53 +00:00
alc
357c57757d - Push down the acquisition and release of Giant into pmap_enter_quick()
on those architectures without pmap locking.
 - Eliminate the acquisition and release of Giant in vm_map_pmap_enter().
2004-08-04 22:03:16 +00:00
mux
23c76e482d Instead of calling ia32_pause() conditionally on __i386__ or __amd64__
being defined, define and use a new MD macro, cpu_spinwait().  It only
expands to something on i386 and amd64, so the compiled code should be
identical.

Name of the macro found by:	jhb
Reviewed by:	jhb
2004-08-03 18:44:27 +00:00
cognet
9cc4b572ec *blush*
Fix htonl and htons.
2004-08-02 12:24:18 +00:00
cognet
95c147809b Fix comments.
Spotted out by:	mux
2004-08-02 12:23:53 +00:00
alc
a3c4daeb5a - Push down the acquisition and release of Giant into pmap_protect() on
those architectures without pmap locking.
 - Eliminate the acquisition and release of Giant from vm_map_protect().

(Translation: mprotect(2) runs to completion without touching Giant on
alpha, amd64, i386 and ia64.)
2004-07-30 20:38:30 +00:00
cognet
e56826561f Don't use cast as lvalue. 2004-07-29 12:33:54 +00:00
rwatson
0063eb9c15 Correct typo in prior commit: s/cd/td/ 2004-07-27 19:44:08 +00:00
rwatson
f52710952a Pass a thread argument into cpu_critical_{enter,exit}() rather than
dereference curthread.  It is called only from critical_{enter,exit}(),
which already dereferences curthread.  This doesn't seem to affect SMP
performance in my benchmarks, but improves MySQL transaction throughput
by about 1% on UP on my Xeon.

Head nodding:	jhb, bmilekic
2004-07-27 16:41:01 +00:00
alc
1f0518e805 MFi386 revision 1.421
- Use kmem_alloc_nofault() rather than kmem_alloc_pageable() in
   pmap_mapdev().  See revision 1.140 of kern/sys_pipe.c for a detailed
   rationale.
2004-07-22 23:04:41 +00:00
cognet
c614bc246d Do not declare curpcb. 2004-07-21 22:04:32 +00:00
cognet
0d2abf8538 Use the kernel pmap if no thread is provided. 2004-07-21 22:04:05 +00:00
cognet
7da73394cd Define pmap_page_is_mapped(). 2004-07-21 22:02:48 +00:00
cognet
2944709b97 Do not use NULL as a malloc type for contigmalloc(). 2004-07-21 15:18:45 +00:00
marcel
dbb1edab27 Unify db_stack_trace_cmd(). All it did was look up the thread given
the thread ID and call db_trace_thread().
Since arm has all the logic in db_stack_trace_cmd(), rename the
new DB_COMMAND function to db_stack_trace to avoid conflicts on
arm.
While here, have db_stack_trace parse its own arguments so that
we can use a more natural radix for IDs. If the ID is not a thread
ID, or more precisely when no thread exists with the ID, try if
there's a process with that ID and return the first thread in it.
This makes it easier to print stack traces from the ps output.

requested by: rwatson@
tested on: amd64, i386, ia64
2004-07-21 05:07:09 +00:00
cognet
b6ae3038d3 Implement ptrace_set_pc().
Add a stub for ptrace_clear_single_step().
2004-07-20 23:00:02 +00:00
cognet
9ce4e917c0 Remove astpending, it has not been used for a long time. 2004-07-20 22:39:56 +00:00
cognet
2ad0477ef6 Uncomment the vector relocation code. 2004-07-20 22:39:24 +00:00
cognet
5701445e6f Nuke disable_intr() and enable_intr(), as it already exists elsewhere. 2004-07-20 22:38:46 +00:00
cognet
3cbe64e3ac Make kdb_backtrace() sort of work. 2004-07-19 12:26:44 +00:00
das
a838d9ef03 Make FLT_ROUNDS correctly reflect the dynamic rounding mode. 2004-07-19 08:17:25 +00:00
cognet
f19d3b5e2c In pmap_remove_pages(), when the pv_list is entry, we want to clean the
PG_WRITEABLE flag, not the PG_REFERENCED flag.

Submitted by:   alc
2004-07-13 22:40:59 +00:00
alc
99853e0ee4 Push down the acquisition and release of the page queues lock into
pmap_remove_pages().  (The implementation of pmap_remove_pages() is
optional.  If pmap_remove_pages() is unimplemented, the acquisition and
release of the page queues lock is unnecessary.)

Remove spl calls from the alpha, arm, and ia64 pmap_remove_pages().
2004-07-13 02:49:22 +00:00
cognet
23cfc17f76 Update to kdb. 2004-07-12 21:25:01 +00:00
cognet
66a741eb3e Remove the kbd_trap() declaration. 2004-07-12 21:24:21 +00:00
cognet
5ea4f30129 Protect setjmp.h with #ifndef _MACHINE_SETJMP_H_. 2004-07-12 21:23:58 +00:00
cognet
99dc0a90b9 Forward declare "struct pcb", so that one does not need to include
<machine/pcb.h> before including <machine/pmap.h>.
2004-07-12 21:22:40 +00:00
cognet
e02abf1e90 Implement a stub breakpoint(). 2004-07-12 21:20:38 +00:00
cognet
97707d2bcc Implement makectx(). 2004-07-12 21:19:43 +00:00
cognet
f6a281580c Prototype makectx(). 2004-07-12 21:19:22 +00:00
cognet
202a378b15 Import bus_memio.h and bus_pio.h for arm. 2004-07-12 21:18:30 +00:00
cognet
88d2353d0b Import a kdb.h for arm, which contains stubs right now. 2004-07-12 21:17:51 +00:00
cognet
3e9bf7a7c9 Define NSFBUFS and use it. 2004-07-08 21:03:35 +00:00
alc
68eed6db29 Correct pmap_extract()'s return type. It should be vm_paddr_t, not
vm_offset_t.
2004-07-05 23:08:27 +00:00
cognet
b5e6eb2e90 ithread_schedule() now only takes one argument. 2004-07-02 22:30:42 +00:00
cognet
e406752d9f Define __RMAN_RESOURCE_VISIBLE where appropriate. 2004-07-02 22:30:10 +00:00
cognet
60eb8c0ff3 Remove unused includes.
Spotted out by:	pjd
2004-06-28 11:35:05 +00:00
cognet
b795fc7061 Fix compilation for Xscale. 2004-06-19 20:50:50 +00:00
cognet
8f81c32071 Include sys/module.h. 2004-06-19 17:38:32 +00:00
cognet
89ccfb8a88 I happened to have a sys/pool.h file in my tree, but most people do not,
so nuke this useless include.
2004-06-19 17:37:47 +00:00
cognet
4075f3dd7b Nuke dead code. 2004-06-17 17:52:12 +00:00
cognet
6a23ff9bf3 Nuke bus_space_mmap(), as it does not exist in FreeBSD. 2004-06-17 17:51:48 +00:00
phk
70c86a601e Do the dreaded s/dev_t/struct cdev */
Bump __FreeBSD_version accordingly.
2004-06-16 09:47:26 +00:00
phk
1d74a27efd Remove filename+line number from panic messages. 2004-06-06 21:26:49 +00:00
tjr
f651d922d3 Remove checks for curthread == NULL - it can't happen. 2004-06-03 10:22:47 +00:00
tjr
56835bf880 Move TDF_DEADLKTREAT into td_pflags (and rename it accordingly) to avoid
having to acquire sched_lock when manipulating it in lockmgr(), uiomove(),
and uiomove_fromphys().

Reviewed by:	jhb
2004-06-03 01:47:37 +00:00
tmm
6fb23d7b62 Retire cpu_sched_exit(); it is not used any more. 2004-05-26 12:09:39 +00:00
mux
5083043b37 Remove two debugging printf().
On behalf of:	cognet
2004-05-22 13:15:14 +00:00
bde
9fb9d80eb5 Moved most of the "MI" definitions and declarations from <machine/profile.h>
to <sys/gmon.h>.  Cleaned them up a little by not attempting to ifdef
for incomplete and out of date support for GUPROF in userland, as in
the sparc64 version.
2004-05-19 15:41:26 +00:00
stefanf
1bb315ffb9 <stdint.h> should define WINT_M{AX,IN} independent from whether WCHAR_MIN is
defined.  Otherwise first including <wchar.h> and then <stdint.h> leads to no
WINT_M{AX,IN} at all.

PR:		64956
Approved by:	das (mentor)
2004-05-18 16:04:57 +00:00
peter
29f2cef3b2 Make a small revision to the api between the elf linker core and the
elf_reloc() backends for two reasons.  First, to support the possibility
of there being two elf linkers in the kernel (eg: amd64), and second, to
pass the relocbase explicitly (for relocating .o format kld files).
2004-05-16 20:00:28 +00:00
cognet
2b91573aea Implement bcopy, memcpy and memcmp in support.S. 2004-05-14 23:42:30 +00:00
cognet
a21619da96 Implement bzero et memset in support.S 2004-05-14 23:31:10 +00:00
cognet
7c8348cf80 This is FreeBSD/arm, not FreeBSD/i386
Submitted by:	ru
2004-05-14 14:52:32 +00:00
cognet
d0cadd4171 Define uart_sa1110_ops and uart_sa1110_classe in .c files instead of spamming
uart_cpu.h
2004-05-14 13:42:50 +00:00
cognet
c7efba8262 Implement enough of an uart driver to get serial console working. 2004-05-14 13:26:52 +00:00
cognet
0eff817ca2 Import FreeBSD/arm kernel bits.
It only supports sa1110 (on simics) right now, but xscale support should come
soon.
Some of the initial work has been provided by :
Stephane Potvin <sepotvin at videotron.ca>
Most of this comes from NetBSD.
2004-05-14 11:46:45 +00:00
cognet
509104cd2c Don't declare osigset_t, as it is done in sys/_sigset.h. 2004-05-04 22:38:22 +00:00
cognet
ab0ffb2f8d Add some endianess-related functions and macros. 2004-05-04 22:24:56 +00:00
cognet
1deea0cb4d Add the Elf32_Auxinfo declaretion.
Define AT_*.
(Maybe some of this could go in a MI header ?)
2004-05-04 22:21:36 +00:00
cognet
cd2b185f79 Define __double_t and __float_t. 2004-05-04 22:16:29 +00:00
imp
c8fd73108a Remove advertising clause from University of California Regent's license,
per letter dated July 22, 1999.

Approved by: core
2004-04-05 21:29:41 +00:00