cognet
8cecfaa3a4
Make setjmp()/longjmp() use sigprocmask.
2004-09-23 23:13:46 +00:00
cognet
ec211a255c
Add a dummy set_tp().
2004-09-23 23:12:57 +00:00
cognet
65373cda62
Always use bx for returning on Xscale.
...
Obtained from: NetBSD
2004-09-23 23:11:32 +00:00
cognet
35da58a9fd
Fix the align-to-32-bits code.
...
Obtained from: NetBSD
2004-09-23 23:10:56 +00:00
cognet
3b0d39587d
kgmon works on arm, so make it parts of the build for arm as well.
2004-09-23 23:06:29 +00:00
cognet
f73db50f56
Add stubs for TLS.
...
Arbitraly choose the 2nd variant until I figure out which one I should use.
2004-09-23 23:04:52 +00:00
cognet
cb15a39d90
Implement .init and .fini.
2004-09-23 23:00:51 +00:00
cognet
c633cdf68b
Add CPUCFLAGS for the strongarm and xscale CPUs.
2004-09-23 22:59:31 +00:00
cognet
cf9927973e
Re-route interrupts on arm as well.
2004-09-23 22:58:43 +00:00
cognet
c808645c91
Do not use the IO-mapping to issue the reset on the 82546 on arm. For some
...
reason, it results in corrupted descriptors.
2004-09-23 22:57:53 +00:00
cognet
470dcc3395
Add the config file for the IQ31244 board.
2004-09-23 22:55:00 +00:00
cognet
c3401d9028
Use the new KERNVIRTADDR and PHYSADDR options.
...
Add KDB.
2004-09-23 22:53:50 +00:00
cognet
6f8e60c5c8
Use -O2 for the arm kernel as well
2004-09-23 22:53:22 +00:00
cognet
984cda6c97
Use the address provided in the conf file, instead of hardcode 0xc0000000.
2004-09-23 22:52:55 +00:00
cognet
c04b68fd28
Add new options :
...
PHYSADDR : Address of the physical memory
KERNPHYSADDR : Physical address where the kernel starts
KERNVIRTADDR : Virtual address of the kernel
STARTUP_PAGETABLE_ADDR : Where to put the page table at bootstrap
+ Xscale specific options
2004-09-23 22:52:25 +00:00
cognet
e4b4e75d89
Add the possibility to specify the kernel virtual address and the kernel
...
physical address in the kernel config file, as it varies from CPU to CPU.
2004-09-23 22:47:57 +00:00
cognet
a5a4c2b9b8
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
b43de02af0
Add Xscale common headers.
2004-09-23 22:36:13 +00:00
cognet
2722789043
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
89fa389a22
Now that we have pmap_growkernel(), use more KVA.
2004-09-23 22:32:33 +00:00
cognet
f7c7e8938b
Remove the empty definition of struct osigcontext, as it will never be used.
2004-09-23 22:31:49 +00:00
cognet
9fbf5b30d2
Remove the pcb32_cstate field of struct pcb.
2004-09-23 22:31:08 +00:00
cognet
320e303913
Declare sigcode and szsigcode.
2004-09-23 22:30:05 +00:00
cognet
eb21c958c3
Define VM_PROT_READ_IS_EXEC.
2004-09-23 22:29:43 +00:00
cognet
23f2e2a20b
Implement _mcount().
...
Obtained from: NetBSD
2004-09-23 22:29:18 +00:00
cognet
bce0b28077
Define STACKALIGNBYTES and STACKALIGN.
2004-09-23 22:27:42 +00:00
cognet
6198d361e4
We are using _mcount, not __mcount.
...
Remove the !__ELF__ case.
2004-09-23 22:26:29 +00:00
cognet
2af9e90e11
Use sf_bufs for uiomove_fromphys().
2004-09-23 22:25:20 +00:00
cognet
83a28a9eaa
On Xscale, use the minicache for the kernel stack.
2004-09-23 22:24:12 +00:00
cognet
4ad93571b6
Make sure to call cred_update_thread() if needed.
...
Add partial support for KTRACE.
2004-09-23 22:22:33 +00:00
cognet
8fdb656bd1
Implement cpu_throw().
...
Obtained from: NetBSD
2004-09-23 22:20:59 +00:00
cognet
e82635c318
Remove unused macroes.
...
Add user, btrap, etrap, bintr and eintrt in the GPROF case.
2004-09-23 22:18:56 +00:00
cognet
556153cd0c
Implement sigreturn().
2004-09-23 22:12:28 +00:00
cognet
2961849c00
Add the hw.machine sysctl.
2004-09-23 22:11:43 +00:00
cognet
69c5f6a5d4
Remove definitions related to the pmap cache state, and add TDF_NEEDRESCHED.
2004-09-23 22:11:06 +00:00
cognet
f0ee02d552
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
8cbf7c308c
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
f772c01a4d
Use sigcode.
2004-09-23 22:03:25 +00:00
cognet
ee071a6682
In db_stack_trace_cmd, remove the "pc" variable, we don't need it.
2004-09-23 22:02:59 +00:00
cognet
70f2c961dd
Use the right path for xscale files.
2004-09-23 21:59:43 +00:00
cognet
fa3fe38872
Remove bus_space_vaddr(), it does not exists in FreeBSD.
2004-09-23 21:59:14 +00:00
cognet
e0185957e6
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
89eb78d1e9
Use the right path for the bcopyinout_xscale.S file.
2004-09-23 21:56:36 +00:00
cognet
7dea985306
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
639630ead7
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
2f13c81a30
Map the kernel very early if needed.
...
Implement sigcode.
2004-09-23 21:49:10 +00:00
brooks
78ea3f4710
Backout the hack to install mtree, newsyslog, and touch in the cloned
...
root in the previous commit. We'll fix /etc/rc.d/var directly (someday).
2004-09-23 21:17:31 +00:00
joerg
f2a11c9f2e
Implement terminating the worker thread when the driver is about to
...
be deregistered.
Not yet tested, since by now, GEOM doesn't want us to deregister. PHK
wants to fix that RSN.
2004-09-23 21:12:21 +00:00
jhb
e7c39452fd
Add locking notes on the members of rusage. Note that these notes reflect
...
what is already present in the tree and apply to the rusage struct for
current process usage rather than child process usage.
2004-09-23 21:08:14 +00:00
jhb
08cbc59f16
Update locking notes on several fields to reflect locking already in the
...
tree:
- td_standin is (k + a) as it is only touched by either curthread or when
a thread is being created.
- td_upcall is (k + j)
- td_sticks is (k) rather than the earlier (j) note.
- td_uuticks and td_usticks are both (k).
- td_intrval is (j)
- Neither kg_nextupcall or kg_upquantum seem to be locked and that seems
to be on purpose, so mark those as (n).
2004-09-23 21:07:13 +00:00