cognet
108b7172d7
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
f326fc1a81
Save a few cycles in context switch.
...
Update comments to reflect reality.
2004-11-05 19:54:13 +00:00
cognet
ecc55fe51d
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
fe20a8f9f4
Be more verbose about cache capacities.
2004-11-05 19:51:23 +00:00
cognet
bb1d95fb39
Implement casuptr.
2004-11-05 19:50:48 +00:00
cognet
ae291dcae9
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
1ff7126d41
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
65c874982c
Protect the function declarations with #ifdef _KERNEL.
2004-11-04 19:20:54 +00:00
cognet
f877e8fb34
Directly use __pcpu for PCPU_* instead of pcpup.
2004-11-04 19:19:44 +00:00
cognet
b06553ff94
Decrease KSTACK_PAGES and UAREA_PAGES.
2004-11-04 19:19:21 +00:00
cognet
a9cde5c028
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
174862f7bb
Don't barf if no CPU type is defined while compiling kernel modules.
2004-11-04 19:16:31 +00:00
cognet
ad6f843dc2
Implement get_cyclecount().
2004-11-04 19:15:43 +00:00
cognet
4603da4464
Try to implement atomic operations using swp, instead of disabling interrupts.
2004-11-04 19:14:50 +00:00
cognet
827366c155
Use casts to enforce the return type of bswap16() and bswap32().
2004-11-04 19:07:28 +00:00
cognet
fcb45007e6
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
47de763a09
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
95719dc362
Get kernel modules to work.
2004-11-04 18:48:52 +00:00
andre
8b6661b126
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
a9860ec891
- 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
4e18db9429
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
672cff6bce
Use a default MD_ROOT_SIZE of 65535.
2004-10-11 14:42:06 +00:00
cognet
6de2036711
Use MD_ROOT_SIZE, instead of our own macro.
2004-10-11 14:41:38 +00:00
cognet
d3c9c2ab1a
Add optimized version of the bswap macroes for constants if __OPTIMIZED__ is
...
defined.
2004-10-01 16:55:59 +00:00
cognet
898ea0c226
There's no need to turn on MALLOC_PROFILE by default.
2004-10-01 16:51:37 +00:00
cognet
951f5beb42
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
cb7bd34192
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
d35924d404
Remove dead code.
2004-09-28 14:37:39 +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
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