| 1 |
2026-08-05 Damien Zammit <[email protected]> |
| 2 |
|
| 3 |
HPET: Make this hardware an optional component |
| 4 |
If the HPET is not detected, it no longer needs to fail an assert, |
| 5 |
as there is nothing inside the kernel that strictly relies on it. |
| 6 |
Message-ID: <[email protected]> |
| 7 |
|
| 8 |
2026-08-05 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 9 |
|
| 10 |
pit, smp: Fix i8254 one shot delay and replace hpet_udelay in smp |
| 11 |
The one-shot pit delay was not calibrated properly. |
| 12 |
This fixes the pit_udelay() function so it can be used for |
| 13 |
tiny delays within the kernel. Removes dependence on HPET for smp. |
| 14 |
Message-ID: <[email protected]> |
| 15 |
|
| 16 |
2026-08-03 Damien Zammit <[email protected]> |
| 17 |
|
| 18 |
CI: Email failures to commit-hurd |
| 19 |
This will email gzipped error logs to commit-hurd AT gnu.org from any |
| 20 |
forgejo instance set up as a mirror. This is facilitated by |
| 21 |
not specifying any domain or user specific configuration, but to |
| 22 |
execute the mailing code path, the repository must be called "gnumach" |
| 23 |
and the branch that was synced be "master". |
| 24 |
If the mail command is not configured in the CI, it will simply fail |
| 25 |
to send mail and the failing test will not be reported. |
| 26 |
Since there is only one instance currently set up, we won't get |
| 27 |
duplicated reports. |
| 28 |
|
| 29 |
Message-ID: <[email protected]> |
| 30 |
|
| 31 |
2026-07-28 Alperen Erkan <[email protected]> |
| 32 |
|
| 33 |
ipc_kmsg: assert non-NULL kmsg in ipc_kmsg_free |
| 34 |
ipc_kmsg_free() dereferenced kmsg->ikm_size without any check that |
| 35 |
kmsg was non-NULL. Any caller passing IKM_NULL would crash on that |
| 36 |
dereference. |
| 37 |
|
| 38 |
Rather than silently returning on a NULL kmsg -- which would hide a |
| 39 |
real bug in the caller -- follow the convention already used |
| 40 |
throughout this file (see ipc_kmsg_rmqueue, ipc_kmsg_copyout_dest, |
| 41 |
etc.) and assert() the precondition, so a misbehaving caller is |
| 42 |
caught loudly in debug/MACH_ASSERT builds instead of being papered |
| 43 |
over. |
| 44 |
|
| 45 |
No other behavioral changes. |
| 46 |
|
| 47 |
2026-07-10 Samuel Thibault <[email protected]> |
| 48 |
|
| 49 |
xen: warn a bit more about running as dom0 |
| 50 |
|
| 51 |
2026-07-10 Damien Zammit <[email protected]> |
| 52 |
|
| 53 |
xen: Don't panic in dom0 so unit tests can still try |
| 54 |
Relax the panic to a warning when attempting to run gnumach as dom0. |
| 55 |
This can allow someone to further debug gnumach as dom0 using the test |
| 56 |
framework. |
| 57 |
Message-ID: <[email protected]> |
| 58 |
|
| 59 |
2026-07-09 Damien Zammit <[email protected]> |
| 60 |
|
| 61 |
cons: Print to hypervisor console for debugging |
| 62 |
We should not disable this option behind an "if 0" because |
| 63 |
xen platform enabled gnumach needs to print somewhere for unit tests. |
| 64 |
Seeing a blank screen is too confusing and unnecessary when there is an |
| 65 |
emergency console available. |
| 66 |
Message-ID: <[email protected]> |
| 67 |
|
| 68 |
2026-07-09 Damien Zammit <[email protected]> |
| 69 |
|
| 70 |
tests: Enable optional qemu unit tests for xen platform |
| 71 |
This enables qemu unit tests to run on gnumach as xen dom0. |
| 72 |
However, it will skip running the tests if xen binary is missing. |
| 73 |
Therefore, the test suite will not fail if not intending to test xen. |
| 74 |
This is useful, for example on CI where we want to see a pass status |
| 75 |
for most of the tests without fully testing xen which is difficult to |
| 76 |
execute. |
| 77 |
|
| 78 |
This should make debugging easier for anyone interested in progressing |
| 79 |
the xen dom0 port of gnumach. |
| 80 |
Message-ID: <[email protected]> |
| 81 |
|
| 82 |
2026-07-09 Damien Zammit <[email protected]> |
| 83 |
|
| 84 |
ci: Use correct i386 headers to build mig 32 bit |
| 85 |
Message-ID: <[email protected]> |
| 86 |
|
| 87 |
2026-06-30 Samuel Thibault <[email protected]> |
| 88 |
|
| 89 |
ahci: Avoid running two flushes in parallel on the same port |
| 90 |
Otherwise the timer gets mangled. |
| 91 |
|
| 92 |
ahci: Separate out command timers |
| 93 |
Otherwise if we flush on several ports in parallel the timer gets |
| 94 |
mangled. |
| 95 |
|
| 96 |
2026-06-29 Samuel Thibault <[email protected]> |
| 97 |
|
| 98 |
ahci: Name the slots used for different commands |
| 99 |
|
| 100 |
vm_allocate_contiguous: Do not check for highmem limit |
| 101 |
When running on 32b without PAE, it is a bit less than 4G, and userland |
| 102 |
would ask for 4G, so we would fail this and actually fallback to the DMA |
| 103 |
segment! |
| 104 |
|
| 105 |
2026-06-26 Damien Zammit <[email protected]> |
| 106 |
|
| 107 |
ci: Remove dependence on i686 toolchain |
| 108 |
This allows cross compilation of i386 version using a x86_64 compiler. |
| 109 |
|
| 110 |
TESTED: Passed CI (still with 1 failed test on x86_64 user32 builds as before) |
| 111 |
|
| 112 |
Message-ID: <[email protected]> |
| 113 |
|
| 114 |
2026-06-21 Samuel Thibault <[email protected]> |
| 115 |
|
| 116 |
Add string.h and sys/types.h for tests |
| 117 |
The string functions are indeed included in the libc provided to tests |
| 118 |
(strings.c is in $(SRC_TESTLIB)), so we should expose the corresponding |
| 119 |
headers. |
| 120 |
|
| 121 |
2026-06-20 Damien Zammit <[email protected]> |
| 122 |
|
| 123 |
tests/user-qemu.mk: Allow overriding command for grub-mkrescue |
| 124 |
This allows cross built test suite to be able to be executed |
| 125 |
in qemu by overriding the grub modules to a path containing i386-pc mods. |
| 126 |
Message-ID: <[email protected]> |
| 127 |
|
| 128 |
2026-05-31 Paulo Duarte <[email protected]> |
| 129 |
|
| 130 |
tests: add aarch64 arm to start.S |
| 131 |
The userland test stubs run as freestanding multiboot modules: the |
| 132 |
kernel exec path hands them control at _start with argc/argv/envp |
| 133 |
laid out sysv-style on the stack, and they call c_start(sp) to find |
| 134 |
their arguments. The i386 and x86_64 arms already implement this; |
| 135 |
add the aarch64 equivalent (mov x0, sp; bl c_start) so test modules |
| 136 |
can be cross-compiled with aarch64-unknown-none-elf-gcc and entered |
| 137 |
by Bugaev's pcb/exec path. |
| 138 |
|
| 139 |
bl rather than a tail-call b keeps the saved-LR contract intact in |
| 140 |
case anything unwinds out of the userland prelude. |
| 141 |
Message-ID: <[email protected]> |
| 142 |
|
| 143 |
2026-05-31 Paulo Duarte <[email protected]> |
| 144 |
|
| 145 |
ipc: declare copyinmsg / copyoutmsg in <ipc/copy_user.h> |
| 146 |
The copyinmsg() and copyoutmsg() routines are defined per-arch (in |
| 147 |
i386/i386/locore.S and friends) but have never had cross-arch |
| 148 |
declarations. Each kern/ caller has historically picked them up |
| 149 |
through an arch-specific header, or via implicit declaration. |
| 150 |
|
| 151 |
Declare them in <ipc/copy_user.h> alongside the other copy_user |
| 152 |
helpers, with copyoutmsg becoming an alias for copyout when not |
| 153 |
building a 64-bit kernel with a 32-bit userland (the only case |
| 154 |
where the two diverge today). Add the missing include to |
| 155 |
kern/exception.c which uses both. |
| 156 |
Message-ID: <[email protected]> |
| 157 |
|
| 158 |
2026-05-31 Paulo Duarte <[email protected]> |
| 159 |
|
| 160 |
mach: add EM_AARCH64 to the ELF machine constant list |
| 161 |
The Mach exec/elf.h pseudo-header already enumerates a handful of |
| 162 |
machine types (PARISC, PPC, x86_64, …) but not aarch64. Add it so |
| 163 |
exec-format code can recognise aarch64 ELF binaries by EM number. |
| 164 |
Defined per the ARM-supplied ELF supplement (the same value Linux, |
| 165 |
glibc, and FreeBSD have used since 2014). |
| 166 |
Message-ID: <[email protected]> |
| 167 |
|
| 168 |
2026-05-31 Paulo Duarte <[email protected]> |
| 169 |
|
| 170 |
aarch64: add per-arch lock.h shim for kern/lock.h's machine include |
| 171 |
kern/lock.h on current master unconditionally does |
| 172 |
|
| 173 |
#include <machine/lock.h> |
| 174 |
|
| 175 |
at line 61 (with a /*XXX*/ marker), even though the body only |
| 176 |
references its definitions when NCPUS > 1. Bugaev's wip-aarch64 |
| 177 |
worked around this by editing kern/lock.h itself — wrapping the |
| 178 |
include in `#if NCPUS > 1` — which would touch a shared file |
| 179 |
upstream maintains. |
| 180 |
|
| 181 |
Provide the include as a per-arch shim instead: an empty |
| 182 |
aarch64/aarch64/lock.h. machine/ resolves to the active TARGET's |
| 183 |
arch directory at build time, so kern/lock.h's include picks this |
| 184 |
up on aarch64 without any shared-file change. Today aarch64 is |
| 185 |
built with NCPUS = 1, so an empty header is sufficient; a future |
| 186 |
SMP-capable aarch64 port should fill this in with the low-level |
| 187 |
_simple_lock_data_t and _simple_lock / _simple_unlock primitives, |
| 188 |
mirroring i386/i386/lock.h. |
| 189 |
|
| 190 |
Without this shim the imported port fails to compile the first |
| 191 |
file that pulls in kern/lock.h. |
| 192 |
Message-ID: <[email protected]> |
| 193 |
|
| 194 |
2026-05-28 Samuel Thibault <[email protected]> |
| 195 |
|
| 196 |
ahci: Support cache flush |
| 197 |
|
| 198 |
ide: Support cache flush |
| 199 |
|
| 200 |
linux: Pass DEV_FLUSH_CACHE set_status to drivers |
| 201 |
|
| 202 |
2026-05-26 gfleury <[email protected]> |
| 203 |
|
| 204 |
fix kernel crash on NULL processor dereference |
| 205 |
This fix a kernel crash building hurd under smp |
| 206 |
Message-ID: <[email protected]> |
| 207 |
|
| 208 |
2026-05-25 Diego Nieto Cid <[email protected]> |
| 209 |
|
| 210 |
tests-task: add test for task/thread priority RPCs |
| 211 |
Message-ID: <56b30e793bd65c3ad54623162c90996cf0163a4f.1778992827.git.dnietoc@gmail.com> |
| 212 |
|
| 213 |
2026-05-25 Diego Nieto Cid <[email protected]> |
| 214 |
|
| 215 |
initialise max_priority to BASEPRI_SYSTEM |
| 216 |
Set the default thread and processor set max priority to |
| 217 |
that of system threads to allow privileged task to raise |
| 218 |
its own priority. |
| 219 |
|
| 220 |
* kern/processor.c: modify pset_init to set the initial |
| 221 |
max_priority to BASEPRI_SYSTE. |
| 222 |
* kern/thread.c: set the thread template max_priority to |
| 223 |
BASEPRI_SYSTEM. |
| 224 |
|
| 225 |
lower priority of bootstrap tasks to BASEPRI_USER |
| 226 |
|
| 227 |
* kern/task.h: add task_max_priority prototype |
| 228 |
* kern/bootstrap.c: call task_max_priority in |
| 229 |
boot_script_task_create to lower the task |
| 230 |
priority to BASEPRI_USER. |
| 231 |
|
| 232 |
2026-05-25 Diego Nieto Cid <[email protected]> |
| 233 |
|
| 234 |
check task's max_priority when setting priority |
| 235 |
* kern/task.c (task_priority): check new priority against the |
| 236 |
tasks max_priority. Reject with KERN_NO_ACCES when going |
| 237 |
higher than it. |
| 238 |
Message-ID: <1150e14ebf3aaa1f6141748d41b32bcd00099120.1778992827.git.dnietoc@gmail.com> |
| 239 |
|
| 240 |
add max_priority to task object |
| 241 |
* inlcude/man/mach_host.def: add task_max_prioity RPC. |
| 242 |
* kern/task.h: add max_priority to task struct. |
| 243 |
* kern/task.c: implement task_max_priority RPC and inherit |
| 244 |
max_priority from parent task (or default |
| 245 |
processor set). |
| 246 |
* kern/thread.c: initialize new threads' max_priority from |
| 247 |
the task creating the thread. |
| 248 |
Message-ID: <f6f07da171bca6a24761f4bd3abfaf5494415d34.1778992827.git.dnietoc@gmail.com> |
| 249 |
|
| 250 |
2026-04-27 Diego Nieto Cid <[email protected]> |
| 251 |
|
| 252 |
prevent removal of intermediate module-% |
| 253 |
When a test ISO file is built by make, the intermediate modules |
| 254 |
built as a dependency (module-%) are deleted at the end of the |
| 255 |
build. |
| 256 |
|
| 257 |
Marking as "precious" prevents this behaviour and allows to keep |
| 258 |
the module that the ISO runs. This is useful if the tests are going |
| 259 |
to be debugged using QEMU and GDB. |
| 260 |
Message-ID: <[email protected]> |
| 261 |
|
| 262 |
2026-04-15 Michael Kelly <[email protected]> |
| 263 |
|
| 264 |
host_adjust_time64() to return outstanding time adjustment without altering it. |
| 265 |
It's awkward to support an interface that returns 'old_adjustment' |
| 266 |
without modifying 'new_adjustment' because the latter is not an |
| 267 |
optional parameter. This solution disregards 'new_adjustment' |
| 268 |
specifically when the nanoseconds component has the value |
| 269 |
MACH_ADJTIME_NSECS_OMIT (which is beyond the normally permissible |
| 270 |
range). |
| 271 |
Message-ID: <[email protected]> |
| 272 |
|
| 273 |
2026-04-15 Mike Kelly <[email protected]> |
| 274 |
|
| 275 |
host_adjust_time64: Fix negative big adjustments |
| 276 |
We also need a 10-factor when a big negative adjustment is requested. |
| 277 |
|
| 278 |
2026-04-12 Samuel Thibault <[email protected]> |
| 279 |
|
| 280 |
vm_page: Make page eviction use the global LRU list |
| 281 |
Otherwise, as long as the highest segment has evictable pages, we will be |
| 282 |
focusing on it, and not benefitting from other segments. |
| 283 |
|
| 284 |
This is notably very problematic when the highest segment is small, smaller |
| 285 |
than the application working set, but big enough for finding evictable |
| 286 |
pages. |
| 287 |
|
| 288 |
2026-04-12 Samuel Thibault <[email protected]> |
| 289 |
|
| 290 |
vm_page: Add global LRU list |
| 291 |
This unfortunately takes room in the vm_page structure, thus reducing |
| 292 |
manageable memory. |
| 293 |
|
| 294 |
vm_page: Add some comments |
| 295 |
|
| 296 |
2026-04-11 Diego Nieto Cid <[email protected]> |
| 297 |
|
| 298 |
panic_init: match lock type to its init function |
| 299 |
Message-ID: <[email protected]> |
| 300 |
|
| 301 |
2026-04-09 Samuel Thibault <[email protected]> |
| 302 |
|
| 303 |
gsync: Note why we don't release an object reference |
| 304 |
|
| 305 |
2026-04-09 Maximus Minter <[email protected]> |
| 306 |
|
| 307 |
Initialize spin locks in panic_init |
| 308 |
|
| 309 |
2026-04-08 Manolo de Medici <[email protected]> |
| 310 |
|
| 311 |
typo |
| 312 |
|
| 313 |
2026-04-06 Manolo de Medici <[email protected]> |
| 314 |
|
| 315 |
ipc: fix LP64 zero-length OOL port array descriptor size |
| 316 |
ipc_kmsg_copyin_body() updated OOL port arrays from 32-bit |
| 317 |
mach_port_name_t elements to 64-bit mach_port_t elements only in the |
| 318 |
non-empty path. For zero-length arrays, the code skipped that |
| 319 |
normalization and left msgtl_size at 32. |
| 320 |
|
| 321 |
On LP64 this causes MIG type checking to reject empty OOL port arrays, |
| 322 |
because the kernel delivers MACH_MSG_TYPE_PORT_SEND with msgtl_size == 32 |
| 323 |
instead of 64. Apparently, those kind of messages are never delivered on |
| 324 |
the current Hurd, as such, the bug went unnoticed. |
| 325 |
|
| 326 |
Normalize the descriptor size for OOL port arrays before the length == 0 |
| 327 |
branch so empty and non-empty arrays are handled consistently. |
| 328 |
Message-ID: <[email protected]> |
| 329 |
|
| 330 |
2026-04-06 Leonardo Lopes Pereira <[email protected]> |
| 331 |
|
| 332 |
chore: remove dead MIGRATING_THREADS code |
| 333 |
Experimental migrating-thread RPC from Utah CSL (1993) never fully |
| 334 |
implemented. MIGRATING_THREADS was hardwired to 0. |
| 335 |
Message-ID: <CPUPR80MB6540445C1E02A3BAFD1A0A04D15DA@CPUPR80MB6540.lamprd80.prod.outlook.com> |
| 336 |
|
| 337 |
chore: remove dead MACH_TTD code |
| 338 |
TTD (Target Transport Debugger) was hardwired to 0 in configfrag.ac. |
| 339 |
Remove kttd_interface.c and all MACH_TTD blocks from trap.c, locore.S, |
| 340 |
spl.S, net_io.c and autoconf.c. |
| 341 |
Message-ID: <CPUPR80MB65402402D8EEFA20FC9D0CE7D15DA@CPUPR80MB6540.lamprd80.prod.outlook.com> |
| 342 |
|
| 343 |
2026-03-30 Samuel Thibault <[email protected]> |
| 344 |
|
| 345 |
linux: Fix buffer allocation for PAE |
| 346 |
Asking for DMA32 is not enough, we also need directmap, notably for |
| 347 |
read_bsd_label. |
| 348 |
|
| 349 |
linux: Make vmalloc allocate from DMA32 |
| 350 |
Otherwise ahci cannot use it with PAE kernels. |
| 351 |
|
| 352 |
ahci: Check that the command buffer is within DMA32 |
| 353 |
This may not be the case with PAE. |
| 354 |
|
| 355 |
linux: Fix vmtophys return type |
| 356 |
On PAE we need to be able to return 64b |
| 357 |
|
| 358 |
kmem_map_aligned_table: Avoid warning in PAE build |
| 359 |
|
| 360 |
2026-03-29 Samuel Thibault <[email protected]> |
| 361 |
|
| 362 |
biosmem: Add MAX_PHYS_END to limit physical memory use |
| 363 |
to what was actually tested as working considering the limited amount of |
| 364 |
available virtual memory. |
| 365 |
|
| 366 |
x86_64: Increase kernel virtual memory to handle 30GB memory |
| 367 |
|
| 368 |
kmsg: Increase KMSGBUFSIZE to 16K |
| 369 |
Boot has become more verbose |
| 370 |
|
| 371 |
pmap_bootstrap: Show the kernel virtual allocation area |
| 372 |
|
| 373 |
pmap_steal_memory: explicitly abort if VM space is filled |
| 374 |
|
| 375 |
i386: Increase kernel virtual memory to handle 8GB memory |
| 376 |
|
| 377 |
2026-03-27 Manolo de Medici <[email protected]> |
| 378 |
|
| 379 |
Add processor_set_name_processors RPC |
| 380 |
This call allows to get the list of unprivileged processor ports |
| 381 |
belonging to a processor set. |
| 382 |
Message-ID: <[email protected]> |
| 383 |
|
| 384 |
2026-03-25 Samuel Thibault <[email protected]> |
| 385 |
|
| 386 |
vm rebalance: better move active internal pages first |
| 387 |
Since they will not be preferred for paging out, better move them, and |
| 388 |
inactive external pages will probably get paged out directly from this |
| 389 |
segment. |
| 390 |
|
| 391 |
pageout: evict inactive pages from various segments before active ones |
| 392 |
Otherwise we can be keeping evicting active pages from the highmem |
| 393 |
segment, while we may have a lot of inactive pages in other segments. |
| 394 |
|
| 395 |
2026-03-24 Manolo de Medici <[email protected]> |
| 396 |
|
| 397 |
Can processor_info unprivileged ports |
| 398 |
No harm in that. |
| 399 |
Message-ID: <[email protected]> |
| 400 |
|
| 401 |
Make processor set creation privileged |
| 402 |
Creating a processor set reserve physical limited resources, |
| 403 |
only root should be allowed to do that. |
| 404 |
|
| 405 |
Fix bug allowing unprivileged users to modify system time |
| 406 |
This change of API should cause no breakage in glibc compilation |
| 407 |
since that already uses the host privileged port. |
| 408 |
Message-ID: <[email protected]> |
| 409 |
|
| 410 |
2026-03-22 Manolo de Medici <[email protected]> |
| 411 |
|
| 412 |
Add unprivileged processor_name_t type |
| 413 |
We don't expect unprivileged users to be able to start and stop |
| 414 |
processors. As such, we need the unprivileged version of the |
| 415 |
processor_t mach type. |
| 416 |
Message-ID: <[email protected]> |
| 417 |
|
| 418 |
2026-03-22 Samuel Thibault <[email protected]> |
| 419 |
|
| 420 |
Fix indentation |
| 421 |
|
| 422 |
2026-03-13 Mike Kelly <[email protected]> |
| 423 |
|
| 424 |
Rebalance segments for privileged page allocation |
| 425 |
It's possible to allocate all pages in a segment (and higher priority |
| 426 |
ones) to privileged threads. This can result in a panic even though |
| 427 |
memory is available in lower priority segments which haven't yet been |
| 428 |
rebalanced by the pageout daemon. Rebalancing is now done actively |
| 429 |
during privileged page allocation. |
| 430 |
Message-ID: <[email protected]> |
| 431 |
|
| 432 |
2026-03-03 Samuel Thibault <[email protected]> |
| 433 |
|
| 434 |
Revert "periodic intrs: Change the clock source to be lapic timer on all cpus" |
| 435 |
This reverts commit f41f8801fbbfc794f63bdee293552d7ec8f74847. |
| 436 |
|
| 437 |
The lapic is not a reliable source of time on VMs notably, while PIT |
| 438 |
really is. |
| 439 |
|
| 440 |
2026-03-02 Milos Nikic <[email protected]> |
| 441 |
|
| 442 |
gnumach: kern/ipc_host: add branch prediction hints to port conversions |
| 443 |
The convert_port_to_* functions are heavily utilized fast paths. |
| 444 |
Add `likely(IP_VALID(port))` hints to optimize the instruction |
| 445 |
cache for the standard happy path where the provided IPC port |
| 446 |
is valid. |
| 447 |
|
| 448 |
Also added a few targeted branch hints to the active/null checks |
| 449 |
in processor_set_default and ipc_pset_enable. |
| 450 |
|
| 451 |
Tested by recompiling and booting inside QEMU on x86_64. |
| 452 |
|
| 453 |
* kern/ipc_host.c (ipc_pset_enable, processor_set_default, |
| 454 |
convert_port_to_host, convert_port_to_host_priv, |
| 455 |
convert_port_to_processor, convert_port_to_pset, |
| 456 |
convert_port_to_pset_name): Use likely and unlikely macros. |
| 457 |
Message-ID: <[email protected]> |
| 458 |
|
| 459 |
2026-03-02 Milos Nikic <[email protected]> |
| 460 |
|
| 461 |
gnumach: kern/ipc_kobject: add likely/unlikely hints |
| 462 |
This is an extremely hot path. Add branch prediction hints to the |
| 463 |
error handling and exceptional states to try and squeeze out any |
| 464 |
i-cache benefits that GCC can provide. |
| 465 |
|
| 466 |
Tested by recompiling and booting inside QEMU on x86_64. |
| 467 |
|
| 468 |
* kern/ipc_kobject.c (ipc_kobject_server): Use likely and unlikely macros. |
| 469 |
Message-ID: <[email protected]> |
| 470 |
|
| 471 |
2026-03-02 Milos Nikic <[email protected]> |
| 472 |
|
| 473 |
kern/rbtree.c use macros.h |
| 474 |
And stop redefining macros. |
| 475 |
Test: |
| 476 |
Inside qemu on x86_64 build works without issues. |
| 477 |
Message-ID: <[email protected]> |
| 478 |
|
| 479 |
2026-03-02 Milos Nikic <[email protected]> |
| 480 |
|
| 481 |
gnumach: kern/slab: Remove redundant macro definitions |
| 482 |
All of these utility macros are already provided by <kern/macros.h>, |
| 483 |
which is included just a few lines above. |
| 484 |
|
| 485 |
Tested by recompiling and booting inside QEMU on x86_64 without issues. |
| 486 |
|
| 487 |
* kern/slab.c (P2ALIGNED, ISP2, P2ALIGN, P2ROUND, P2END, likely, unlikely): |
| 488 |
Remove redundant macro definitions. |
| 489 |
Message-ID: <[email protected]> |
| 490 |
|
| 491 |
2026-03-01 Damien Zammit <[email protected]> |
| 492 |
|
| 493 |
periodic intrs: Change the clock source to be lapic timer on all cpus |
| 494 |
There were problems resuming the lapic timer, causing lockups on -smp 2. |
| 495 |
We used to use the PIT on cpu0 for clock interrupts and lapic timer |
| 496 |
for periodic interrupts on other cpus. Now the PIT is only used to |
| 497 |
calibrate the lapic timer to unify the clock sources to be lapic based. |
| 498 |
Re-enable the lapic timer on all cpus for clock sources of periodic intrs. |
| 499 |
|
| 500 |
TESTED: |
| 501 |
- Passes i386 CI |
| 502 |
- Passes x86_64 CI (except user32) |
| 503 |
- Boots to debian login using -smp 2 or 6 |
| 504 |
- Interrupts are received periodically on all cpus |
| 505 |
- (printed all cpu numbers in hardclock) |
| 506 |
|
| 507 |
Reported by Brent Baccala (and -smp 2 issue also known for a while) |
| 508 |
|
| 509 |
Message-ID: <[email protected]> |
| 510 |
|
| 511 |
2026-03-01 Mike Kelly <[email protected]> |
| 512 |
|
| 513 |
Page allocation from a CPU pool does not consider vm_page_alloc_paused. |
| 514 |
A non-empty CPU page pool always allocates pages even when |
| 515 |
vm_page_alloc_paused is set. An unprivileged thread can therefore |
| 516 |
acquire a signicant number of pages until the pool is empty. The cycle |
| 517 |
can continue for a longer period if the pool is replenished by a VM |
| 518 |
privileged thread before the unprivileged thread requests more pages |
| 519 |
and in extreme cases can result in complete system memory exhaustion. |
| 520 |
Message-ID: <[email protected]> |
| 521 |
|
| 522 |
2026-02-24 Samuel Thibault <[email protected]> |
| 523 |
|
| 524 |
feep: Fix build condition |
| 525 |
|
| 526 |
Add missing symlink |
| 527 |
|
| 528 |
Ignore more files |
| 529 |
Either generated, or commonly used in a work checkout. |
| 530 |
|
| 531 |
2026-02-24 Damien Zammit <[email protected]> |
| 532 |
|
| 533 |
asm: Add CX8() macro for wider types |
| 534 |
curr_spl is actually 4 bytes, but the CX() macro |
| 535 |
was expanding to 8 byte stride on x86_64. |
| 536 |
Add a new macro specifically for 8 byte widths and |
| 537 |
use the correct stride macro for every asm instruction. |
| 538 |
|
| 539 |
Reported by Brent Baccala |
| 540 |
Message-ID: <[email protected]> |
| 541 |
|
| 542 |
2026-02-23 Damien Zammit <[email protected]> |
| 543 |
|
| 544 |
i386at/ioapic: Initialise timeouts correctly |
| 545 |
This fixes uninitialised timeout structures |
| 546 |
leading to the .set field being non-zero thus reset_timeout |
| 547 |
is attempted to be called on a timeout not yet in the wheel. |
| 548 |
|
| 549 |
Reported by Brent Baccala |
| 550 |
Message-ID: <[email protected]> |
| 551 |
|
| 552 |
2026-02-23 Samuel Thibault <[email protected]> |
| 553 |
|
| 554 |
fpu: Fix xrstor* after setting i386_FLOAT_STATE |
| 555 |
Even if we only load x87 state, xrstor* loads MXCSR when we have SSE enabled. |
| 556 |
|
| 557 |
Reported by Brent Baccala |
| 558 |
|
| 559 |
2026-02-22 Damien Zammit <[email protected]> |
| 560 |
|
| 561 |
x86_64/locore.S: Fix SWAPGS state clobbered in ast_from_interrupt |
| 562 |
When ast_from_interrupt fires on a user-mode interrupt, |
| 563 |
POP_AREGS_ISR restores the user's r12, clobbering the SWAPGS state |
| 564 |
that was set by SWAPGS_ENTRY_IF_NEEDED_R12 on interrupt entry. |
| 565 |
Since the user's r12 value is preserved on the stack by pusha, |
| 566 |
we set the state back to RETURN_TO_USER before calling _return_from_trap. |
| 567 |
|
| 568 |
Reported by Brent Baccala |
| 569 |
Message-ID: <[email protected]> |
| 570 |
|
| 571 |
2026-02-22 Damien Zammit <[email protected]> |
| 572 |
|
| 573 |
x86_64/locore: Add missing INTERRUPT() entries |
| 574 |
This was overlooked for APIC. It fixes a bug where the handler |
| 575 |
addresses were being loaded as garbage values into the IDT, |
| 576 |
therefore, when BSP sends a CALL_PMAP_UPDATE_IPI to an AP, |
| 577 |
the AP jumps to a garbage address, eg 0x4000000036. |
| 578 |
|
| 579 |
Reported by Brent Baccala |
| 580 |
Message-ID: <[email protected]> |
| 581 |
|
| 582 |
2026-02-19 Samuel Thibault <[email protected]> |
| 583 |
|
| 584 |
fpu: Fix xrstor* after setting i386_FLOAT_STATE |
| 585 |
When using xrstor, we also need to explicitly set CPU_XCR0_X87 otherwise |
| 586 |
xrstor would not restore it. |
| 587 |
|
| 588 |
When using xrstors, we have to have XSAVE_XCOMP_BV_COMPACT set. |
| 589 |
|
| 590 |
Reported by Brent Baccala |
| 591 |
|
| 592 |
2026-02-15 Damien Zammit <[email protected]> |
| 593 |
|
| 594 |
kern/mach_clock: Update last_hpc_read only by cpu0 in clk interrupt |
| 595 |
This was likely an oversight, that the last_hpc_read is only supposed |
| 596 |
to be updated by cpu0 during its clock interrupt. |
| 597 |
This will ensure only one cpu can update the value but any other cpu |
| 598 |
can read it. |
| 599 |
|
| 600 |
This does *not* make the hp clock smp safe yet. |
| 601 |
|
| 602 |
TESTED: |
| 603 |
- The clocktest script from earlier commit msg still passes on UP. |
| 604 |
- The clocktest script from earlier commit msg now passes on SMP |
| 605 |
when run on master processor only (fixed). |
| 606 |
- The clocktest script from earlier commit msg *fails* on SMP |
| 607 |
when run on slave processor set using /sbin/smp ./clocktest |
| 608 |
- Passes all i386 CI. |
| 609 |
Message-ID: <[email protected]> |
| 610 |
|
| 611 |
2026-02-14 Damien Zammit <[email protected]> |
| 612 |
|
| 613 |
locore: Remove all instances of CPU_NUMBER_NO_* |
| 614 |
This relies on gs segment percpu pointer always being |
| 615 |
available in critical contexts in smp builds. |
| 616 |
|
| 617 |
TESTED: |
| 618 |
- i386+SMP boots to shell with -smp 6 |
| 619 |
- Passes all i386 CI. |
| 620 |
|
| 621 |
Message-ID: <[email protected]> |
| 622 |
|
| 623 |
2026-02-11 Mike Kelly <[email protected]> |
| 624 |
|
| 625 |
task_terminate() relies on threads terminating in list order |
| 626 |
Calling task_terminate() (on other than current_task()) risks deadlocking if the task being terminated has multiple threads. Currently, the head of the thread list must terminate successfully before terminating the next in the list. This is not always possible, for example a thread which is not the list head might hold a thread_reference to the thread at the list head. In that case, the list head cannot be terminated until the other thread releases that reference which won't happen if that other thread is TH_SUSP as it is not rescheduled. Instead, task terminate() now attempts thread terminatation in list sequence (rather than just the list head) and keeps doing so until none remain. |
| 627 |
Message-ID: <[email protected]> |
| 628 |
|
| 629 |
2026-02-08 Damien Zammit <[email protected]> |
| 630 |
|
| 631 |
ci: Test xen platform as well |
| 632 |
TESTED: Additionally compiles all xen UP builds successfully |
| 633 |
|
| 634 |
TODO: |
| 635 |
- Run the qemu suite on xen platform |
| 636 |
- Port xen SMP, then enable the CI |
| 637 |
|
| 638 |
Message-ID: <[email protected]> |
| 639 |
|
| 640 |
2026-02-01 Damien Zammit <[email protected]> |
| 641 |
|
| 642 |
xen: Fix UP build |
| 643 |
CI exposed some compile failures with xen build. |
| 644 |
Fix provided allows compilation for any combination involving: |
| 645 |
|
| 646 |
--enable-ncpus=1 --enable-platform=xen |
| 647 |
|
| 648 |
SMP on xen is not yet implemented. |
| 649 |
Message-ID: <[email protected]> |
| 650 |
|
| 651 |
2026-01-29 Milos Nikic <[email protected]> |
| 652 |
|
| 653 |
ipc: supress warning on cast of ipc_port_t to name |
| 654 |
This patch fixes a warning when building on 64-bit architectures where |
| 655 |
sizeof(void *) > sizeof(mach_port_name_t). |
| 656 |
|
| 657 |
The double cast (via uintptr_t) explicitly tells the compiler that the |
| 658 |
truncation of the pointer value into the 32-bit port name is intentional, |
| 659 |
preserving the existing behavior while silencing the warning. |
| 660 |
|
| 661 |
2026-01-27 Damien Zammit <[email protected]> |
| 662 |
|
| 663 |
CI: Add forgejo build/test script |
| 664 |
TESTED: All CI jobs execute and run the test suite. |
| 665 |
Passes all tests on i386, some x86_64 tests are exposed as failing. |
| 666 |
|
| 667 |
Message-ID: <[email protected]> |
| 668 |
|
| 669 |
2026-01-27 Milos Nikic <[email protected]> |
| 670 |
|
| 671 |
device: Define DEV_FLUSH_CACHE status flavor |
| 672 |
define DEV_FLUSH_CACHE as 2. |
| 673 |
This allows userspace translators to request a physical write barrier from the device driver. |
| 674 |
|
| 675 |
2026-01-23 Damien Zammit <[email protected]> |
| 676 |
|
| 677 |
tests: Use -ftrivial-auto-var-init=pattern only with compiler support |
| 678 |
Message-ID: <[email protected]> |
| 679 |
|
| 680 |
2026-01-21 Damien Zammit <[email protected]> |
| 681 |
|
| 682 |
x86_64/cpuboot: Add missing AP early asm bringup |
| 683 |
Message-ID: <[email protected]> |
| 684 |
|
| 685 |
2026-01-21 Damien Zammit <[email protected]> |
| 686 |
|
| 687 |
tests: Use -smp 2 when NCPUS > 1 in qemu test harness |
| 688 |
Runs test suite using multiple cpus on SMP kernels. |
| 689 |
|
| 690 |
TESTED: Passes all tests except 64b SMP currently. |
| 691 |
|
| 692 |
Message-ID: <[email protected]> |
| 693 |
|
| 694 |
2026-01-21 Damien Zammit <[email protected]> |
| 695 |
|
| 696 |
pcb: Fix label can only be part of a statement |
| 697 |
Fixes compilation on gcc-10. |
| 698 |
|
| 699 |
Message-ID: <[email protected]> |
| 700 |
|
| 701 |
2026-01-21 Damien Zammit <[email protected]> |
| 702 |
|
| 703 |
i386at/model_dep: Make apboot 64b compatible |
| 704 |
Message-ID: <[email protected]> |
| 705 |
|
| 706 |
2026-01-18 Mike Kelly <[email protected]> |
| 707 |
|
| 708 |
fix mach_port_set_ktype deadlock in SMP kernels |
| 709 |
mach_port_set_ktype attempts to lock the referenced port twice. This is |
| 710 |
resolved by adding ipc_kobject_set_locked() that permits altering the |
| 711 |
kernel type of a port which has already been locked by the caller. |
| 712 |
Message-ID: <[email protected]> |
| 713 |
|
| 714 |
2026-01-18 Samuel Thibault <[email protected]> |
| 715 |
|
| 716 |
cpuboot: align code on 64b version |
| 717 |
|
| 718 |
2026-01-18 Damien Zammit <[email protected]> |
| 719 |
|
| 720 |
x86_64: Implement swapgs logic |
| 721 |
This is difficult to get correct: we add r12 register to interrupt state |
| 722 |
restore so that every interrupt context knows which mode to return to |
| 723 |
for swapgs. Testing if gs base is negative is enough to know which mode |
| 724 |
to enter from, since user cannot set gs base negative currently. |
| 725 |
(That would require FSGSBASE cpu feature enabled, but for now we leave |
| 726 |
it disabled). |
| 727 |
syscall64 enters with interrupts disabled and requires swapgs at |
| 728 |
beginning and end, as it is known to be called only from userspace. |
| 729 |
|
| 730 |
Message-ID: <[email protected]> |
| 731 |
|
| 732 |
2026-01-18 Damien Zammit <[email protected]> |
| 733 |
|
| 734 |
cpu_number: Fixes for 32/64 |
| 735 |
Message-ID: <[email protected]> |
| 736 |
|
| 737 |
2026-01-18 Damien Zammit <[email protected]> |
| 738 |
|
| 739 |
i386/mp_desc: Reduce alignment to size of stack |
| 740 |
This fixes compilation when NCPUS is not a power of two |
| 741 |
|
| 742 |
Message-ID: <[email protected]> |
| 743 |
|
| 744 |
2026-01-18 Damien Zammit <[email protected]> |
| 745 |
|
| 746 |
x86_64: Flush all selectors properly |
| 747 |
Message-ID: <[email protected]> |
| 748 |
|
| 749 |
2026-01-18 Samuel Thibault <[email protected]> |
| 750 |
|
| 751 |
i386: use BOOT_CS/DS |
| 752 |
|
| 753 |
2026-01-16 Samuel Thibault <[email protected]> |
| 754 |
|
| 755 |
Make it clear what ISR is |
| 756 |
|
| 757 |
2026-01-11 Samuel Thibault <[email protected]> |
| 758 |
|
| 759 |
x86_64: Do not set PERCPU_DS segment |
| 760 |
We do not need it on x86_64, it is the gs base which is used anyway. |
| 761 |
|
| 762 |
Do not ship/install ioccom.h |
| 763 |
It was removed in 2e503c3bad86b667c89223001958da4e8835add4 |
| 764 |
|
| 765 |
2026-01-10 Samuel Thibault <[email protected]> |
| 766 |
|
| 767 |
Drop ioccom.h |
| 768 |
We are not actually using it, and its definition not not actually match |
| 769 |
what is expected (provided by sys/ioctl.h). |
| 770 |
|
| 771 |
2026-01-10 Damien Zammit <[email protected]> |
| 772 |
|
| 773 |
x86_64: Add GS segment configuration to early gdt |
| 774 |
Message-ID: <[email protected]> |
| 775 |
|
| 776 |
2026-01-10 Damien Zammit <[email protected]> |
| 777 |
|
| 778 |
x86_64/boothdr: Flush segments after ljmp |
| 779 |
Because the point of flushing segments is to |
| 780 |
reload them after the pipeline flow is disrupted. |
| 781 |
|
| 782 |
Message-ID: <[email protected]> |
| 783 |
|
| 784 |
2026-01-10 Damien Zammit <[email protected]> |
| 785 |
|
| 786 |
x86_64/boothdr: Replace hardcoded msr with macro |
| 787 |
Because self documenting macros are better than hardcoded constants with |
| 788 |
comments next to them. |
| 789 |
|
| 790 |
Message-ID: <[email protected]> |
| 791 |
|
| 792 |
2026-01-10 Damien Zammit <[email protected]> |
| 793 |
|
| 794 |
boothdr: Add apic setup only when APIC is set |
| 795 |
This was overlooked in i386 when apic support was added. |
| 796 |
Correct the i386 version and add x86_64 support correctly. |
| 797 |
|
| 798 |
Message-ID: <[email protected]> |
| 799 |
|
| 800 |
2026-01-08 Damien Zammit <[email protected]> |
| 801 |
|
| 802 |
x86_64/cswitch: Don't clobber %rax with cpu number |
| 803 |
Since a thread is supposed to be returned from Switch_context, |
| 804 |
this fixes a bug where the thread is always returned as 0x0 on 64b UP, |
| 805 |
hence the idle thread was being called too often instead of a chosen thread. |
| 806 |
Also, this fixes a potential future bug with 64b SMP where the non-zero |
| 807 |
cpu number is returned as a valid thread and causes a crash. |
| 808 |
|
| 809 |
TESTED: By compiling gnumach on hurd-amd64 with |
| 810 |
|
| 811 |
--enable-ncpus=1 --disable-linux-groups --enable-kdb --enable-apic |
| 812 |
|
| 813 |
and booting hurd-amd64 in UP on qemu. |
| 814 |
|
| 815 |
Message-ID: <[email protected]> |
| 816 |
|
| 817 |
2026-01-07 Damien Zammit <[email protected]> |
| 818 |
|
| 819 |
smp: Use uintptr_t on apboot pointers |
| 820 |
Make smp 64b compatible. |
| 821 |
|
| 822 |
Message-ID: <[email protected]> |
| 823 |
|
| 824 |
2026-01-07 Samuel Thibault <[email protected]> |
| 825 |
|
| 826 |
x86_64: drop spurious change in previous commit |
| 827 |
|
| 828 |
2026-01-04 Samuel Thibault <[email protected]> |
| 829 |
|
| 830 |
x86_64: use BOOT_CS/DS |
| 831 |
|
| 832 |
2026-01-04 Damien Zammit <[email protected]> |
| 833 |
|
| 834 |
gdt: Fix tangled ifdefs missing PERCPU_DS for x86_64 |
| 835 |
Message-ID: <[email protected]> |
| 836 |
|
| 837 |
2026-01-04 Samuel Thibault <[email protected]> |
| 838 |
|
| 839 |
vm_map: raise default memory limit to the physical memory size |
| 840 |
It was reported that half the size is relatively low with rumpdisk. |
| 841 |
|
| 842 |
2026-01-02 Samuel Thibault <[email protected]> |
| 843 |
|
| 844 |
smp: Fix setting last_processor of first thread run of a cpu |
| 845 |
Thus fixing last_processor of AP idle threads, thus fixing /proc/stat |
| 846 |
|
| 847 |
ddb: Show last processor number in show thread/us |
| 848 |
|
| 849 |
smp: Simplify relocated far jump |
| 850 |
|
| 851 |
Add noreturn attributes to startup routines |
| 852 |
|
| 853 |
Fix accessing the stack |
| 854 |
|
| 855 |
2026-01-02 Damien Zammit <[email protected]> |
| 856 |
|
| 857 |
x86_64/locore: Fix bad width of mov instruction |
| 858 |
Message-ID: <[email protected]> |
| 859 |
|
| 860 |
Fix CPU_NUMBER_* register widths |
| 861 |
Message-ID: <[email protected]> |
| 862 |
|
| 863 |
spl_init: Cannot read CPU_NUMBER via gs without percpu |
| 864 |
Move the spl_init flag lower down after the percpu area is set up, |
| 865 |
so that gs segment is not attempted to be read until after |
| 866 |
percpu area is set up. |
| 867 |
Message-ID: <[email protected]> |
| 868 |
|
| 869 |
2026-01-01 Mike Kelly <[email protected]> |
| 870 |
|
| 871 |
vm_page: page eviction now operates correctly without a default pager. |
| 872 |
This functionality was unintentionally removed with recent alterations to the page eviction policy. |
| 873 |
Message-ID: <[email protected]> |
| 874 |
|
| 875 |
2025-12-30 Mike Kelly <[email protected]> |
| 876 |
|
| 877 |
vm_page: db_show_vmstat now shows external and internal parts of page activity totals |
| 878 |
Message-ID: <[email protected]> |
| 879 |
|
| 880 |
vm_page: eviction policy now prioritises page activity over page backing storage type. |
| 881 |
The eviction policy now looks firstly for a page in the inactive lists of a segment before searching the active ones. In both cases, external pages are sought before internal ones. This is a departure from the previous policy where external pages (regardless of page activity) were prioritised. Elapsed execution times for processes requiring use of swap space is now substantially reduced. |
| 882 |
Message-ID: <[email protected]> |
| 883 |
|
| 884 |
2025-12-28 Samuel Thibault <[email protected]> |
| 885 |
|
| 886 |
vm_page: drop spurious change |
| 887 |
|
| 888 |
2025-12-28 Yelninei <[email protected]> |
| 889 |
|
| 890 |
kmsg: Don't truncate messages when overflowing. |
| 891 |
Instead of discarding a character drop the first unread one. |
| 892 |
|
| 893 |
2025-12-27 Mike Kelly via Bug reports for the GNU Hurd <[email protected]> |
| 894 |
|
| 895 |
vm_page: Separate out external/internal pages counts |
| 896 |
Keep separate counts of external and internal pages within each of the active and inactive queues. This will allow future modifications to assess the relative proportion of internal and external pages. |
| 897 |
Message-ID: <[email protected]> |
| 898 |
|
| 899 |
vm_page: Simplify code |
| 900 |
Removed redundant vm_page_next_page_list and tidy up within vm_page_seg_pull_active_page and vm_page_seg_pull_inactive_page that is now simpler as a consequence of examining only a single list. |
| 901 |
Message-ID: <[email protected]> |
| 902 |
|
| 903 |
2025-12-27 Mike Kelly via Bug reports for the GNU Hurd <[email protected]> |
| 904 |
|
| 905 |
vm_page: Rework external vs internal page-out management |
| 906 |
Make choice of external or internal pages for vm_page_seg_pull_inactive_page and vm_page_seg_pull_active_page explicit rather than preferential. This will allow future modifications to be more specific about exactly which type of pages should be chosen for eviction. |
| 907 |
|
| 908 |
There is only 1 change in behaviour with this modification. Previously pageout would search external pages first, then external pages again before searching internal pages. Now external pages are searched once only before internal pages. This should make no practical difference. |
| 909 |
Message-ID: <[email protected]> |
| 910 |
|
| 911 |
2025-12-18 Damien Zammit <[email protected]> |
| 912 |
|
| 913 |
mach_clock: Use a callwheel as per Costello & Varghese '95 |
| 914 |
Timeouts are now very fast to look up, at the expense of more memory, |
| 915 |
a much shorter list is traversed rather than all of them. See [1]. |
| 916 |
Timeouts that are stopped before expiry are now faster to remove, |
| 917 |
and inserting a timeout is faster. |
| 918 |
Already set timeouts may be set again, resulting in their removal first, |
| 919 |
then are reinserted. Indeed this happens routinely. |
| 920 |
|
| 921 |
The thread timers are stored within the thread structures themselves, |
| 922 |
so there is no arbitrary limit on their number, however for |
| 923 |
legacy timeouts there are NTIMERS == 20 currently allocated statically |
| 924 |
for things like comtimer (serial driver) which are in a reusable array. |
| 925 |
|
| 926 |
TESTED: On Hurd i386 UP+apic |
| 927 |
|
| 928 |
[1] Costello & Varghese 1995: https://doi.org/10.7936/K7VM49H5 |
| 929 |
Message-ID: <[email protected]> |
| 930 |
|
| 931 |
2025-11-27 Mike Kelly <[email protected]> |
| 932 |
|
| 933 |
Interrupt delivery requires vm_privilege |
| 934 |
Interrupts are not being delivered by intr_thread() (to for example rumpdisk) at times of very low free memory and blocks in call to kmem_cache_alloc(). This prevents swapout and results in a locked kernel. A simple solution is to make 'intr_thread()' vm_privileged. |
| 935 |
Message-ID: <[email protected]> |
| 936 |
|
| 937 |
2025-11-09 Samuel Thibault <[email protected]> |
| 938 |
|
| 939 |
Increase NRQS to 65 |
| 940 |
So userspace can have nice values from 0 to 39 included. |
| 941 |
|
| 942 |
2025-10-30 Samuel Thibault <[email protected]> |
| 943 |
|
| 944 |
vm_page_check: check allocation |
| 945 |
|
| 946 |
HOST_LOAD_INFO: Fix long/int conversion |
| 947 |
|
| 948 |
Fix duplicate assignment |
| 949 |
|
| 950 |
Fix dubious int/unsigned int cast |
| 951 |
|
| 952 |
2025-10-27 Samuel Thibault <[email protected]> |
| 953 |
|
| 954 |
lock: Allow to try to take lock in interrupt handler |
| 955 |
Since this will not deadlock. |
| 956 |
|
| 957 |
2025-10-14 Damien Zammit <[email protected]> |
| 958 |
|
| 959 |
irq: Add irqgetstat device status IRQGETPICMODE flavor |
| 960 |
This allows reading irq device status 0 for the mode of the interrupt |
| 961 |
controller, pic or apic. |
| 962 |
|
| 963 |
TESTED using: |
| 964 |
|
| 965 |
``` |
| 966 |
\#include <stdio.h> |
| 967 |
\#include <device/device.h> |
| 968 |
\#include <hurd.h> |
| 969 |
\#include <mach.h> |
| 970 |
|
| 971 |
int main() |
| 972 |
{ |
| 973 |
mach_port_t devices, irq; |
| 974 |
int pic_mode, cnt = 1; |
| 975 |
int err; |
| 976 |
|
| 977 |
err = get_privileged_ports(NULL, &devices); |
| 978 |
if (err) |
| 979 |
return 1; |
| 980 |
|
| 981 |
err = device_open(devices, D_READ, "irq", &irq); |
| 982 |
if (err) |
| 983 |
return 2; |
| 984 |
|
| 985 |
err = device_get_status(irq, 0, &pic_mode, &cnt); |
| 986 |
if (err) |
| 987 |
return 3; |
| 988 |
|
| 989 |
printf("pic_mode = %d\n", pic_mode); |
| 990 |
return 0; |
| 991 |
} |
| 992 |
|
| 993 |
``` |
| 994 |
|
| 995 |
amd64-apic $ sudo ./test |
| 996 |
pic_mode = 1 |
| 997 |
|
| 998 |
i386-pic $ sudo ./test |
| 999 |
pic_mode = 0 |
| 1000 |
|
| 1001 |
i386-apic $ sudo ./test |
| 1002 |
pic_mode = 1 |
| 1003 |
|
| 1004 |
--enable-platform=xen compiles |
| 1005 |
|
| 1006 |
Message-ID: <[email protected]> |
| 1007 |
|
| 1008 |
2025-10-13 Samuel Thibault <[email protected]> |
| 1009 |
|
| 1010 |
nulldev_get/setstat: Return invalid operation error |
| 1011 |
This avoids seeing drivers without a get/setstat just accept anything |
| 1012 |
without any error. |
| 1013 |
|
| 1014 |
2025-09-22 Diego Nieto Cid <[email protected]> |
| 1015 |
|
| 1016 |
Implement per-task virtual memory limit |
| 1017 |
* doc/mach.texi: add a "Memory Limitations" section to document the new interfaces. |
| 1018 |
* include/mach/gnumach.defs: (vm_set_size_limit) new routine |
| 1019 |
(vm_get_size_limit) likewise |
| 1020 |
* kern/task.c: (task_create_kernel) if parent_task is not null copy virtual memory limit |
| 1021 |
* tests/test-vm.c: (test_vm_limit) add test for the new routines |
| 1022 |
* vm/vm_map.h: (struct vm_map) new fields size_none, size_cur_limit and size_max_limit |
| 1023 |
(vm_map_find_entry) add new parameters cur_protection and max_protection |
| 1024 |
* vm/vm_map.c: (vm_map_setup) initialize new fields |
| 1025 |
(vm_map_enforce_limit) new function |
| 1026 |
(vm_map_copy_limits) new function |
| 1027 |
(vm_map_find_entry) add protection and max_protection parameters. |
| 1028 |
call limit enforcer function |
| 1029 |
(vm_map_enter) likewise |
| 1030 |
(vm_map_copyout) likewise |
| 1031 |
(vm_map_copyout_page_list) likewise |
| 1032 |
(vm_map_fork) copy parent limit to the new map and compute and set size_none of the new map |
| 1033 |
* vm/vm_user.c: (vm_set_size_limit) new function |
| 1034 |
(vm_get_size_limit) likewise |
| 1035 |
* xen/grant.c: update call to vm_map_find_entry to pass protection parameters |
| 1036 |
Message-ID: <0b71f4f89b7cc2b159893a805480d7493d522d60.1758485757.git.dnietoc@gmail.com> |
| 1037 |
|
| 1038 |
2025-09-21 Samuel Thibault <[email protected]> |
| 1039 |
|
| 1040 |
clock: Note that the hpc support is not smp safe yet |
| 1041 |
|
| 1042 |
2025-09-21 Damien Zammit <[email protected]> |
| 1043 |
|
| 1044 |
mach_clock: Fix monotonic clock sometimes going backwards |
| 1045 |
Between reading mtime and reading hpclock_read_counter, |
| 1046 |
there may be an interrupt that updates mtime, therefore |
| 1047 |
we need a check to perform the clock read process again |
| 1048 |
in this case. |
| 1049 |
|
| 1050 |
TESTED: on UP using: |
| 1051 |
|
| 1052 |
``` |
| 1053 |
\#include <stdio.h> |
| 1054 |
\#include <time.h> |
| 1055 |
|
| 1056 |
int main() |
| 1057 |
{ |
| 1058 |
struct timespec ts, now; |
| 1059 |
int i; |
| 1060 |
int cnt = 0; |
| 1061 |
|
| 1062 |
clock_gettime(CLOCK_MONOTONIC, &ts); |
| 1063 |
|
| 1064 |
for (i = 0; i < 10000000; i++) { |
| 1065 |
clock_gettime(CLOCK_MONOTONIC, &now); |
| 1066 |
if ((now.tv_nsec < ts.tv_nsec) && (now.tv_sec <= ts.tv_sec)) { |
| 1067 |
printf("BACKWARDS\n"); |
| 1068 |
cnt++; |
| 1069 |
printf(" %u %09lu\n %u %09lu\n\n", |
| 1070 |
ts.tv_sec, ts.tv_nsec, |
| 1071 |
now.tv_sec, now.tv_nsec |
| 1072 |
); |
| 1073 |
} |
| 1074 |
ts = now; |
| 1075 |
} |
| 1076 |
printf("went backwards %d out of %d times\n", cnt, i); |
| 1077 |
return 0; |
| 1078 |
} |
| 1079 |
``` |
| 1080 |
|
| 1081 |
Before the change, some backward transitions were detected. |
| 1082 |
After this change, none were detected. |
| 1083 |
Message-ID: <[email protected]> |
| 1084 |
|
| 1085 |
2025-09-03 Samuel Thibault <[email protected]> |
| 1086 |
|
| 1087 |
mach_clock (set_timeout): Start counting after next tick |
| 1088 |
to avoid partial ticks. |
| 1089 |
|
| 1090 |
2025-08-31 Samuel Thibault <[email protected]> |
| 1091 |
|
| 1092 |
Document mach_port_set_ktype |
| 1093 |
|
| 1094 |
2025-08-31 Michael Kelly <[email protected]> |
| 1095 |
|
| 1096 |
Add mach_port_set_ktype RPC to set ktype of a user port |
| 1097 |
For now, we only allow a newly-introduced MACH_PORT_KTYPE_USER_DEVICE type |
| 1098 |
that makes ipc_kmsg_copyin_body use page lists, which keep them in a busy |
| 1099 |
state that prevents them from being paged out. |
| 1100 |
|
| 1101 |
2025-08-27 Samuel Thibault <[email protected]> |
| 1102 |
|
| 1103 |
idt_inittab: Fix terminator entry |
| 1104 |
Better fill a complete entry, which is always two pointers, both in |
| 1105 |
MACH_PV_DESCRIPTORS and !MACH_PV_DESCRIPTORS case. |
| 1106 |
|
| 1107 |
For the x86_64 case, only half a pointer was actually recorded, leaving |
| 1108 |
to garbage getting registered in the idt. This was noticed by division |
| 1109 |
by zero getting double-faults. |
| 1110 |
|
| 1111 |
Thanks Pellescours for the initial investigation! |
| 1112 |
|
| 1113 |
2025-08-01 Samuel Thibault <[email protected]> |
| 1114 |
|
| 1115 |
xen: Disable apic |
| 1116 |
|
| 1117 |
x86_64: disable linux groups early |
| 1118 |
So we enable APIC by default. |
| 1119 |
|
| 1120 |
smp: Fix build with default parameters |
| 1121 |
We need to automatically disable linux groups before automatically |
| 1122 |
enabling apic. |
| 1123 |
|
| 1124 |
2025-07-19 Samuel Thibault <[email protected]> |
| 1125 |
|
| 1126 |
interrupt: simplify offsetting with irq number |
| 1127 |
|
| 1128 |
2025-07-19 Samuel Thibault <[email protected]> |
| 1129 |
|
| 1130 |
x86_64: Fix interrupt build |
| 1131 |
Otherwise we get |
| 1132 |
|
| 1133 |
(.text+0x4014c): relocation truncated to fit: R_X86_64_32 against symbol `irqinfo' defined in .bss section in gnumach.o |
| 1134 |
|
| 1135 |
2025-07-19 Damien Zammit <[email protected]> |
| 1136 |
|
| 1137 |
interrupt.S: Change interrupt EOI strategy |
| 1138 |
We now have a different strategy for EOI depending on trigger mode: |
| 1139 |
For edge triggered, the behaviour is unchanged; the eoi comes |
| 1140 |
before the handler so we don't miss interrupts. |
| 1141 |
For level triggered, the eoi comes after the handler since the high |
| 1142 |
interrupt line will trigger the interrupt again and stack up, before we mask |
| 1143 |
it in queue_intr (and we don't risk missing interrupts). |
| 1144 |
Message-ID: <[email protected]> |
| 1145 |
|
| 1146 |
ioapic: Introduce irqinfo helper struct |
| 1147 |
Avoid reading the ioapic registers for vector and trigger mode, |
| 1148 |
by introducing an O(1) memory lookup for these properties. |
| 1149 |
Message-ID: <[email protected]> |
| 1150 |
|
| 1151 |
2025-07-16 Samuel Thibault <[email protected]> |
| 1152 |
|
| 1153 |
irq: Print process name on irq handler setup |
| 1154 |
|
| 1155 |
2025-07-13 Samuel Thibault <[email protected]> |
| 1156 |
|
| 1157 |
i386/configfrag: Make --enable-apic the default when linux groups are not enabled |
| 1158 |
In practice this enables APIC by default for x86_64. |
| 1159 |
|
| 1160 |
2025-07-12 Damien Zammit <[email protected]> |
| 1161 |
|
| 1162 |
ioapic: Add conditional TMR bit in EOI (no-op) |
| 1163 |
This code may be needed in the future, so add it in now |
| 1164 |
but keep it disabled. The special EOI handling for |
| 1165 |
interrupts may only need to be done for one kind of trigger mode. |
| 1166 |
|
| 1167 |
ioapic: Make it clear that multiple ioapics don't quite work yet |
| 1168 |
Message-ID: <[email protected]> |
| 1169 |
|
| 1170 |
2025-07-12 Samuel Thibault <[email protected]> |
| 1171 |
|
| 1172 |
irq: make it clear what irq_lock protects |
| 1173 |
|
| 1174 |
2025-07-12 Damien Zammit <[email protected]> |
| 1175 |
|
| 1176 |
i386/irq.c: Make irq nesting smp safe |
| 1177 |
This avoids race condition with multiple devices raising interrupts |
| 1178 |
simultaneously on the same IRQ and causing mask to fail. |
| 1179 |
|
| 1180 |
TESTED: on SMP and UP+apic gnumach, boots to console and receives |
| 1181 |
a large file over rumpnet on debian hurd-i386. |
| 1182 |
|
| 1183 |
Message-ID: <[email protected]> |
| 1184 |
|
| 1185 |
2025-07-10 Damien Zammit <[email protected]> |
| 1186 |
|
| 1187 |
i386/smp.c: Change order of waiting for pending ICR |
| 1188 |
We need to wait first for pending to clear before sending |
| 1189 |
the IPI assert signal. Likewise, if we always do it this |
| 1190 |
way, we don't need to wait for pending to clear afterward |
| 1191 |
because next time we will wait again anyway. Deassert does |
| 1192 |
not seem necessary according to Intel SDM Vol 3, which |
| 1193 |
says an IPI is sent when ICR low is written. |
| 1194 |
|
| 1195 |
NB: This is not the same code as for STARTUP or INIT IPIs. |
| 1196 |
|
| 1197 |
Message-ID: <[email protected]> |
| 1198 |
|
| 1199 |
2025-06-30 Samuel Thibault <[email protected]> |
| 1200 |
|
| 1201 |
trap: Fix printf format |
| 1202 |
|
| 1203 |
2025-06-27 Milos Nikic <[email protected]> |
| 1204 |
|
| 1205 |
i386 intel read fault fix |
| 1206 |
include the missing header, fix the warning. |
| 1207 |
Message-ID: <[email protected]> |
| 1208 |
|
| 1209 |
2025-06-24 Milos Nikic <[email protected]> |
| 1210 |
|
| 1211 |
i386 kern: fix overflow in vm_object_print_part call |
| 1212 |
The call to vm_object_print_part was passing 0ULL and ~0ULL |
| 1213 |
for offset and size, respectively. These values are 64-bit |
| 1214 |
(unsigned long long), which causes compiler warnings when |
| 1215 |
building for 32-bit platforms where vm_offset_t and vm_size_t |
| 1216 |
are typedefs of uintptr_t (i.e., unsigned int). |
| 1217 |
|
| 1218 |
This patch replaces those constants with 0 and UINTPTR_MAX, |
| 1219 |
which match the expected types and avoid implicit conversion |
| 1220 |
or overflow warnings. |
| 1221 |
|
| 1222 |
No functional change. |
| 1223 |
Message-ID: <[email protected]> |
| 1224 |
|
| 1225 |
2025-06-24 Milos Nikic <[email protected]> |
| 1226 |
|
| 1227 |
kdb: Fix printf format warning for phys_addr_t |
| 1228 |
When building without PAE support, phys_addr_t is defined as unsigned long, |
| 1229 |
but the kdb printf call uses %llx, which expects an unsigned long long. |
| 1230 |
This triggers a -Wformat warning due to a type mismatch. |
| 1231 |
|
| 1232 |
Fix this by explicitly casting the phys_addr_t value to unsigned long long, |
| 1233 |
ensuring the format string and argument type always match. |
| 1234 |
|
| 1235 |
This avoids build warnings while preserving existing type definitions. |
| 1236 |
Message-ID: <[email protected]> |
| 1237 |
|
| 1238 |
2025-06-23 Milos Nikic <[email protected]> |
| 1239 |
|
| 1240 |
i386: trap.c add prototype for handle_double_fault |
| 1241 |
The handle_double_fault function is defined in trap.c and called |
| 1242 |
from x86_64/locore.S, but lacked a prototype, triggering a compiler |
| 1243 |
warning: 'no previous prototype for handle_double_fault'. |
| 1244 |
|
| 1245 |
This change adds a forward declaration at the top of trap.c to |
| 1246 |
satisfy the compiler and clarify the function's external linkage. |
| 1247 |
|
| 1248 |
No functional changes. |
| 1249 |
|
| 1250 |
2025-06-23 Milos Nikic <[email protected]> |
| 1251 |
|
| 1252 |
i386 ldt.c make ldt_fill static |
| 1253 |
Compiler warns about it, and its only invoked from this file. |
| 1254 |
Message-ID: <[email protected]> |
| 1255 |
|
| 1256 |
2025-06-22 Damien Zammit <[email protected]> |
| 1257 |
|
| 1258 |
ioapic.c: Fix default polarity and trigger mode for irqs |
| 1259 |
0-13 are on rising edge (legacy) |
| 1260 |
14-N are active-low level triggered. |
| 1261 |
|
| 1262 |
This allows for PIIX3 chipset to have working IDE, |
| 1263 |
if we patch hurd/acpi to ignore buggy irq 9 response. |
| 1264 |
|
| 1265 |
Message-ID: <[email protected]> |
| 1266 |
|
| 1267 |
2025-06-22 Samuel Thibault <[email protected]> |
| 1268 |
|
| 1269 |
tests: also disable stack protector |
| 1270 |
Similarly to Makefile.am, otherwise when the host compiler enables it by |
| 1271 |
default, we get undefined reference to `__stack_chk_fail_local' |
| 1272 |
|
| 1273 |
Fix syntax |
| 1274 |
|
| 1275 |
tests: Also try to use mig as USER_MIG when not cross-building |
| 1276 |
|
| 1277 |
2025-06-21 Milos Nikic <[email protected]> |
| 1278 |
|
| 1279 |
smp: fix warning |
| 1280 |
Reading lapic->error_status.r may have side effects, and we must preserve it. To avoid a compiler warning about err being unused, cast it to (void). |
| 1281 |
|
| 1282 |
This keeps the behavior intact while eliminating the warning. |
| 1283 |
Message-ID: <[email protected]> |
| 1284 |
|
| 1285 |
2025-06-21 Milos Nikic <[email protected]> |
| 1286 |
|
| 1287 |
ktss: fix compiler warnings |
| 1288 |
Fixing compiler warnings on ktss c-file. Some that only appear when building on 32 bit arch, some that happen regardless of architecture. Changes tested on the 32 bit build. |
| 1289 |
|
| 1290 |
Message-ID: <[email protected]> |
| 1291 |
|
| 1292 |
2025-06-21 Milos Nikic <[email protected]> |
| 1293 |
|
| 1294 |
lock_mon: clean lip/lis functions |
| 1295 |
The function lock_info_sort was defined as static and aliased via a macro to lis, requiring a forward declaration to be callable from lip(). This indirection served no functional purpose and made the code less readable and emitting a compiler (declared 'static' but never defined) warning. |
| 1296 |
|
| 1297 |
This change: |
| 1298 |
- Removes the macro aliasing lock_info_sort to lis |
| 1299 |
- Moves lock_info_sort before lip() to eliminate the need for a forward declaration |
| 1300 |
- Updates the call in lip() to refer to lock_info_sort directly |
| 1301 |
|
| 1302 |
The result is a cleaner and more straightforward structure without changing behavior which also fixes a compiler warning. |
| 1303 |
Message-ID: <[email protected]> |
| 1304 |
|
| 1305 |
2025-06-17 Samuel Thibault <[email protected]> |
| 1306 |
|
| 1307 |
tests: Fix missing file clean |
| 1308 |
|
| 1309 |
tests: Fix make clean |
| 1310 |
It was dropping the .c file when building inside the source tree |
| 1311 |
|
| 1312 |
2025-06-16 Michael Kelly <[email protected]> |
| 1313 |
|
| 1314 |
vm_page: Make sure to inspect internal page list |
| 1315 |
notably when the external page list is not empty but vm_page_can_move |
| 1316 |
returns false. |
| 1317 |
|
| 1318 |
2025-06-12 Michael Kelly <[email protected]> |
| 1319 |
|
| 1320 |
Make the swapin thread vm-privileged too |
| 1321 |
So it can be swapped in. |
| 1322 |
|
| 1323 |
2025-06-09 Samuel Thibault <[email protected]> |
| 1324 |
|
| 1325 |
user32: Extend userland address space to 4G |
| 1326 |
glibc and hurd servers cope fine, and this allows to have more userland |
| 1327 |
memory for very large builds. |
| 1328 |
|
| 1329 |
db: Discard unsupported ansi sequences |
| 1330 |
Similarly to 360d54234f76 ("kd: Discard unsupported ansi sequences"), we |
| 1331 |
should discard unsupported ansi sequences in db input, notably the |
| 1332 |
bracketed paste sequences. |
| 1333 |
|
| 1334 |
kd: Discard more ansi sequences |
| 1335 |
The full range between @ and ~ is defined to be potential ANSI |
| 1336 |
sequences, so ignore them all. |
| 1337 |
|
| 1338 |
test-mach_host.c: Add time tests |
| 1339 |
|
| 1340 |
vm_allocate_contiguous: Avoid 64bit addresses for 32bit userland |
| 1341 |
|
| 1342 |
2025-06-08 Michael Kelly <[email protected]> |
| 1343 |
|
| 1344 |
vm_object_pmap_remove: Also remove in the shadow object |
| 1345 |
Otherwise, when e.g. terminating tasks with shared mappings, some references |
| 1346 |
remain within the pv_head_table to pmap_t objects that had already been |
| 1347 |
destroyed. |
| 1348 |
|
| 1349 |
2025-06-03 Samuel Thibault <[email protected]> |
| 1350 |
|
| 1351 |
thread_create: Inherit vm_privilege between threads of the same task |
| 1352 |
So that e.g. all rumpdisk threads get vm_privilege |
| 1353 |
|
| 1354 |
ddb: Print vm_privilege in thread state |
| 1355 |
|
| 1356 |
2025-05-29 Samuel Thibault <[email protected]> |
| 1357 |
|
| 1358 |
vm_page_seg_evict: Fix creating a pager for internal objects with DMM |
| 1359 |
fd63a4bbf6f2 ("vm_page: Avoid creating a pager in DMM when not |
| 1360 |
double-paging") avoided crashes when we do not have a DMM and wish to evict |
| 1361 |
an internal opbject. But the double_paging condition was too restrictive and |
| 1362 |
prevented normal internal objects from paging out when we do have a DMM. |
| 1363 |
|
| 1364 |
This re-enables creating a pager when we do have a DMM, so internal |
| 1365 |
objects can be paged out. |
| 1366 |
|
| 1367 |
2025-05-29 Michael Kelly <[email protected]> |
| 1368 |
|
| 1369 |
vm_page_seg_evict: Fix object pointer on restart |
| 1370 |
The code further down depends on object being NULL if we goto out. |
| 1371 |
|
| 1372 |
2025-05-12 Samuel Thibault <[email protected]> |
| 1373 |
|
| 1374 |
vm_page: Explain which we clear modify on migration of a non-dirty page |
| 1375 |
|
| 1376 |
2025-05-07 Samuel Thibault <[email protected]> |
| 1377 |
|
| 1378 |
vm: Add missing lock |
| 1379 |
|
| 1380 |
2025-05-05 Samuel Thibault <[email protected]> |
| 1381 |
|
| 1382 |
Fix IRC network name |
| 1383 |
|
| 1384 |
2025-05-01 Zhaoming Luo <[email protected]> |
| 1385 |
|
| 1386 |
Fix comment |
| 1387 |
We can have better resolution now so this comment can be removed. |
| 1388 |
|
| 1389 |
Message-ID: <[email protected]> |
| 1390 |
|
| 1391 |
2025-04-29 Samuel Thibault <[email protected]> |
| 1392 |
|
| 1393 |
typo |
| 1394 |
|
| 1395 |
2025-04-28 Samuel Thibault <[email protected]> |
| 1396 |
|
| 1397 |
test-thread-state-fp: Print mxcsr |
| 1398 |
|
| 1399 |
tests: Fix copying files |
| 1400 |
|
| 1401 |
tests: Also support test kernel not being called gnumach |
| 1402 |
|
| 1403 |
tests: make test-multiboot.in also take GNUMACH into account |
| 1404 |
|
| 1405 |
tests: Let user specify a kernel to test |
| 1406 |
|
| 1407 |
2025-04-27 Samuel Thibault <[email protected]> |
| 1408 |
|
| 1409 |
kd: Discard unsupported ansi sequences |
| 1410 |
"modern" software seem to like spitting sequences without checking for |
| 1411 |
their support in terminfo, leading to various spurious output, see e.g. |
| 1412 |
https://github.com/takluyver/bash_kernel/issues/107 |
| 1413 |
|
| 1414 |
Just drop anything we don't support, to avoid getting hit. |
| 1415 |
|
| 1416 |
2025-04-21 Samuel Thibault <[email protected]> |
| 1417 |
|
| 1418 |
xen: Add hpclock |
| 1419 |
|
| 1420 |
2025-04-20 Samuel Thibault <[email protected]> |
| 1421 |
|
| 1422 |
fpu: Fix fp_xsave_size meaning confusion |
| 1423 |
It was meant to be the size of the whole ifps, but then it was mistaken as |
| 1424 |
the xsave size. Switch to that meaning, and add to it the offset as |
| 1425 |
appropriate. |
| 1426 |
|
| 1427 |
fpu_get/set_state: Do not convert tag between fxsr and i387 |
| 1428 |
i386_XFLOAT_STATE does expect fxsr tag. |
| 1429 |
|
| 1430 |
fpu_get_state: Fail if requested xfloat state while we have saved 387 state |
| 1431 |
Userland will fall back to 387 support, which is what it should. |
| 1432 |
|
| 1433 |
2025-04-19 Samuel Thibault <[email protected]> |
| 1434 |
|
| 1435 |
fpu: Fix saving/restoring SSE MXCSR state |
| 1436 |
|
| 1437 |
2025-04-07 Etienne Brateau <[email protected]> |
| 1438 |
|
| 1439 |
x86_64: update ifdef to exclude the x86_64 for i386 only specific conditions |
| 1440 |
Message-ID: <[email protected]> |
| 1441 |
|
| 1442 |
2025-03-25 Samuel Thibault <[email protected]> |
| 1443 |
|
| 1444 |
vm_page_free: Do not check mem->object lock when mem->absent is false |
| 1445 |
It may be NULL in that case. |
| 1446 |
|
| 1447 |
2025-03-25 Zhaoming Luo <[email protected]> |
| 1448 |
|
| 1449 |
Integrate HPET so the functions used for getting time can have a higher accuracy |
| 1450 |
Integrate HPET so host_get_time, host_get_time64, and host_get_uptime64 |
| 1451 |
are more precise. The highest precision can be 10ns when this patch is |
| 1452 |
applied. |
| 1453 |
|
| 1454 |
* i386/i386/apic.c: Implement the two high-precision clock interface functions |
| 1455 |
added in this patch for i386. |
| 1456 |
* i386/i386at/model_dep.c: Initialize HPET if APIC is defined |
| 1457 |
* kern/mach_clock.c: Integrate the high-precision clocks to have the |
| 1458 |
10ns precise time values. |
| 1459 |
* kern/mach_clock.h: Add two new interface functions for accessing the |
| 1460 |
high-precision clocks. |
| 1461 |
|
| 1462 |
Message-ID: <[email protected]> |
| 1463 |
|
| 1464 |
2025-02-26 Samuel Thibault <[email protected]> |
| 1465 |
|
| 1466 |
vm_map_print: show the number of wired pages |
| 1467 |
|
| 1468 |
2025-02-25 Samuel Thibault <[email protected]> |
| 1469 |
|
| 1470 |
vm_object: Drop old now-unused counter |
| 1471 |
|
| 1472 |
2025-02-14 Samuel Thibault <[email protected]> |
| 1473 |
|
| 1474 |
Avoid MACRO_BEGIN/END for installed files |
| 1475 |
|
| 1476 |
2025-02-12 Samuel Thibault <[email protected]> |
| 1477 |
|
| 1478 |
Use MACRO_BEGIN/END |
| 1479 |
This notably fixes at least a SAVE_HINT call. |
| 1480 |
|
| 1481 |
lock: Also enable non-SMP slock checking code on MACH_LDEBUG |
| 1482 |
|
| 1483 |
lock: Fix build with MACH_LDEBUG but no SMP |
| 1484 |
|
| 1485 |
vm: Add and use vm_object_lock_taken, vm_object_cache_locked, vm_page_locked_queues |
| 1486 |
to check locking |
| 1487 |
|
| 1488 |
vm: Fix checking lock |
| 1489 |
|
| 1490 |
vm: Add missing locking |
| 1491 |
|
| 1492 |
db_show_all_slocks: Fix build on amd64 |
| 1493 |
|
| 1494 |
i386 lock: Fix building with MACH_SLOCKS and no SMP |
| 1495 |
We need the slock initializer in that case. |
| 1496 |
|
| 1497 |
2025-02-12 Samuel Thibault <[email protected]> |
| 1498 |
|
| 1499 |
Revert "vm_page: Keep evicting out pages with external pager" |
| 1500 |
This reverts commit 07f78f7000400bd9d2b3a9f665e7cdfea0cd3df9. |
| 1501 |
|
| 1502 |
Using double_paging is not only about insisting on triggering more |
| 1503 |
evictions, but also about page being non-NULL and thus following a |
| 1504 |
different codepath. |
| 1505 |
|
| 1506 |
2025-02-11 Samuel Thibault <[email protected]> |
| 1507 |
|
| 1508 |
vm_page: Keep evicting out pages with external pager |
| 1509 |
`double_paging` used to be used to detect when we have not really flushed |
| 1510 |
a page yet (we have just pushed it to the external pager for now) and we |
| 1511 |
really want to flush something because allocations are paused. But when we |
| 1512 |
do not have a default pager, we are not double-paging but we should still |
| 1513 |
continue evicting pages. |
| 1514 |
|
| 1515 |
2025-02-10 Flavio Cruz <[email protected]> |
| 1516 |
|
| 1517 |
mig_strncpy: ensure destination string is null terminated |
| 1518 |
Message-ID: <aasqh5rjtuuf6uwvczxtn2k6eyg3mdnkmcsmw6bkzbjitcatrk@tovv247rvlnh> |
| 1519 |
|
| 1520 |
2025-02-09 Samuel Thibault <[email protected]> |
| 1521 |
|
| 1522 |
vm_page: Avoid double-paging when we do not have a DMM |
| 1523 |
|
| 1524 |
vm_page: Avoid creating a pager in DMM when not double-paging |
| 1525 |
|
| 1526 |
vm_page: Also detect default memory manager being dead |
| 1527 |
|
| 1528 |
fix build |
| 1529 |
|
| 1530 |
2025-02-08 Samuel Thibault <[email protected]> |
| 1531 |
|
| 1532 |
set startup thread name to pageout after setup |
| 1533 |
|
| 1534 |
Add names to kernel tasks and threads |
| 1535 |
|
| 1536 |
2025-02-05 Samuel Thibault <[email protected]> |
| 1537 |
|
| 1538 |
vm_page_print: Fix typo |
| 1539 |
|
| 1540 |
2025-02-04 Samuel Thibault <[email protected]> |
| 1541 |
|
| 1542 |
Fix build against automake 1.17 |
| 1543 |
|
| 1544 |
2025-02-04 Samuel Thibault <[email protected]> |
| 1545 |
|
| 1546 |
vm_page: Avoid trying to evict internal pages until defpager is up |
| 1547 |
Otherwise we will get stuck inside vm_object_pager_create's call to |
| 1548 |
vm_object_enter trying to reference it. |
| 1549 |
|
| 1550 |
This avoids getting stuck when there is no swap and we don't start a |
| 1551 |
defpager. |
| 1552 |
|
| 1553 |
2025-01-14 Diego Nieto Cid <[email protected]> |
| 1554 |
|
| 1555 |
make hwcaps_t a pointer to uint64_t |
| 1556 |
* aarch64/include/mach/aarch64/mach_aarch64.defs: (hwcaps_t) make type an |
| 1557 |
array of uint64_t. |
| 1558 |
* aarch64/include/mach/aarch64/mach_aarch64_types.h (hwcaps_t) make type a |
| 1559 |
pointer to uint64_t |
| 1560 |
|
| 1561 |
Acked-by: Sergey Bugaev <[email protected]> |
| 1562 |
|
| 1563 |
Message-ID: <[email protected]> |
| 1564 |
|
| 1565 |
2025-01-11 gfleury <[email protected]> |
| 1566 |
|
| 1567 |
Fix boot with smp 1 |
| 1568 |
Message-ID: <[email protected]> |
| 1569 |
|
| 1570 |
2024-12-29 Zhaoming Luo <[email protected]> |
| 1571 |
|
| 1572 |
kern: Add a mach host operation which returns elapsed time since bootup |
| 1573 |
Add host_get_uptime64() mach interface operation. It can be used to get |
| 1574 |
the time passed since the boot up. |
| 1575 |
|
| 1576 |
* doc/mach.texi: Add the documentation for the operation |
| 1577 |
* include/mach/mach_host.defs: Add the interface |
| 1578 |
* include/mach/time_value.h: Extend the mappable time variable |
| 1579 |
* kern/mach_clock.c: Operation implementation |
| 1580 |
* kern/mach_clock.h: Add a new variable for storing uptime |
| 1581 |
|
| 1582 |
Message-ID: <[email protected]> |
| 1583 |
|
| 1584 |
2024-12-29 Damien Zammit <[email protected]> |
| 1585 |
|
| 1586 |
i386/irq: Add missing enumeration for high interrupts |
| 1587 |
Because we support up to 64 irqs with 2 IOAPICs. |
| 1588 |
|
| 1589 |
Message-ID: <[email protected]> |
| 1590 |
|
| 1591 |
2024-12-28 Samuel Thibault <[email protected]> |
| 1592 |
|
| 1593 |
tests: Fix out-of-order generation of mig files |
| 1594 |
Make is allowed to run the tests/module-% prereqs out-of-order, so |
| 1595 |
explicit the dependency between installing .defs files and generating |
| 1596 |
.user/server.c. |
| 1597 |
|
| 1598 |
tests: Fix parallel build of iso files |
| 1599 |
We need to use a separate iso tree directory. |
| 1600 |
|
| 1601 |
xen: Fix build |
| 1602 |
|
| 1603 |
2024-12-24 Zhaoming Luo <[email protected]> |
| 1604 |
|
| 1605 |
kern: Comment fixed |
| 1606 |
Read also: |
| 1607 |
https://mail.gnu.org/archive/html/bug-hurd/2024-12/msg00219.html |
| 1608 |
|
| 1609 |
Message-ID: <[email protected]> |
| 1610 |
|
| 1611 |
2024-12-24 Samuel Thibault <[email protected]> |
| 1612 |
|
| 1613 |
irq: make device_intr_register reject bogus intr id |
| 1614 |
|
| 1615 |
2024-12-23 Samuel Thibault <[email protected]> |
| 1616 |
|
| 1617 |
intr: Note which interrupt is being refused to userland |
| 1618 |
|
| 1619 |
2024-12-22 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1620 |
|
| 1621 |
apic: Add extended feature registers for local apic unit |
| 1622 |
Add workaround for broken systems that advertise 8 bit APIC ids |
| 1623 |
but only match IPIs on 4 bits of the APIC id. |
| 1624 |
Message-ID: <[email protected]> |
| 1625 |
|
| 1626 |
2024-12-22 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1627 |
|
| 1628 |
smp: Use deassert for startup IPI not assert |
| 1629 |
Fixes ESR==0x8 error on AMD fam15h. Fixed timings. |
| 1630 |
|
| 1631 |
Cannot locate documentation on correct mode for STARTUP IPI, |
| 1632 |
but this patch works on AMD hw and qemu. |
| 1633 |
Message-ID: <[email protected]> |
| 1634 |
|
| 1635 |
2024-12-22 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1636 |
|
| 1637 |
smp: Parallel SMP init |
| 1638 |
Now that things are in place, we switch to parallel init. |
| 1639 |
The key to this change is that the INIT/STARTUP sequence |
| 1640 |
is done in one step, and all cpus wake up at the same time. |
| 1641 |
Synchronisation is done via waiting for individual flags stored |
| 1642 |
in separate memory locations. |
| 1643 |
Message-ID: <[email protected]> |
| 1644 |
|
| 1645 |
2024-12-22 Samuel Thibault <[email protected]> |
| 1646 |
|
| 1647 |
cpuboot: Use x86 array indexing to make code more readable |
| 1648 |
|
| 1649 |
cpuboot: Make sure we copy forward |
| 1650 |
|
| 1651 |
2024-12-22 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1652 |
|
| 1653 |
cpuboot: Fix percpu apboot_gdt for early gs |
| 1654 |
This allocates a constant space for percpu gdts |
| 1655 |
and copies the first entry to the nth entry on each cpu, |
| 1656 |
then patches its own copy of the gdt so it can function |
| 1657 |
independently. |
| 1658 |
Message-ID: <[email protected]> |
| 1659 |
|
| 1660 |
2024-12-21 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1661 |
|
| 1662 |
acpi_parse_apic: Check CAPABLE bit field on lapic MADT flag |
| 1663 |
Previously, we were ignoring cpus that were not enabled |
| 1664 |
but online-capable. |
| 1665 |
Message-ID: <[email protected]> |
| 1666 |
|
| 1667 |
2024-12-15 Samuel Thibault <[email protected]> |
| 1668 |
|
| 1669 |
task_info: Fix resident_size overflow |
| 1670 |
|
| 1671 |
2024-12-10 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1672 |
|
| 1673 |
smp: Make sure BSP is cpu 0 when starting other cpus |
| 1674 |
This is basically a no-op but ensures we are doing smp |
| 1675 |
bringup correctly. |
| 1676 |
|
| 1677 |
Message-ID: <[email protected]> |
| 1678 |
|
| 1679 |
2024-12-10 Damien Zammit <[email protected]> |
| 1680 |
|
| 1681 |
i386/apic: Fix logical id numbering |
| 1682 |
The number is actually a mask bit per cpu. |
| 1683 |
Message-ID: <[email protected]> |
| 1684 |
|
| 1685 |
2024-12-10 Sergey Bugaev <[email protected]> |
| 1686 |
|
| 1687 |
intr: Protect internals with a lock |
| 1688 |
On SMP builds with 2 CPU cores, we've seen whole-system lock-ups caused |
| 1689 |
by irqdev.tot_num_intr getting set to -1, even though it's supposed to |
| 1690 |
always stay non-negative. Indeed, it was modified without the |
| 1691 |
appropriate synchronization. Fix this by protecting it, as well as |
| 1692 |
various other internals of device/intr with a simple_lock_irq. |
| 1693 |
|
| 1694 |
Reported-by: Damien Zammit <[email protected]> |
| 1695 |
Message-ID: <[email protected]> |
| 1696 |
|
| 1697 |
2024-12-10 Sergey Bugaev <[email protected]> |
| 1698 |
|
| 1699 |
linux: Fix building with C23 |
| 1700 |
'true' and 'false' are keywords in C23. This will equally be an issue on |
| 1701 |
older standards if something pulls in stdbool.h, which make these into |
| 1702 |
macros. In either of these two cases, just typedef 'boolean' from |
| 1703 |
'bool' (avoiding the enum), and rely on 'true' and 'false' being valid |
| 1704 |
values of the type. |
| 1705 |
|
| 1706 |
Message-ID: <[email protected]> |
| 1707 |
|
| 1708 |
2024-12-10 Sergey Bugaev <[email protected]> |
| 1709 |
|
| 1710 |
Fix various function pointer types |
| 1711 |
Fixes Wincompatible-pointer-types errors on GCC 15. |
| 1712 |
|
| 1713 |
Message-ID: <[email protected]> |
| 1714 |
|
| 1715 |
2024-12-09 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1716 |
|
| 1717 |
i386/apic: Fix condition on non-BSP |
| 1718 |
The condition was intended for non-BSP processors to |
| 1719 |
disable timer, but apic_id != 0 means it could affect BSP |
| 1720 |
if its apic id is non-zero. Fixes this bug. |
| 1721 |
|
| 1722 |
Message-ID: <[email protected]> |
| 1723 |
|
| 1724 |
2024-12-09 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1725 |
|
| 1726 |
smp: Use logical destination not physical apic id |
| 1727 |
Since modern x86 cpus only support 4 bits of destination field |
| 1728 |
in ICR, we could only address up to 16 processors, assuming |
| 1729 |
their physical APIC ID was < 0x10. Some processors eg AMD fam15h |
| 1730 |
have physical apic ids starting at 0x10 but only support 4 bits. |
| 1731 |
So these lapics are unaddressable using physical destination mode. |
| 1732 |
|
| 1733 |
Therefore, we switch to using logical destinations for IPIs which |
| 1734 |
gives us 8 bits of unique mask for addressing up to 8 groups of processors. |
| 1735 |
|
| 1736 |
INIT and STARTUP is not changed here. |
| 1737 |
|
| 1738 |
Message-ID: <[email protected]> |
| 1739 |
|
| 1740 |
2024-12-09 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1741 |
|
| 1742 |
pmap: Separate temporary_mapping from set_page_dir |
| 1743 |
Prepare for smp parallel init where we want to call these |
| 1744 |
two functions on different cpus at different times. |
| 1745 |
|
| 1746 |
Message-ID: <[email protected]> |
| 1747 |
|
| 1748 |
2024-12-09 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1749 |
|
| 1750 |
i386/cpuboot: Dont use CPU_NUMBER_NO_STACK() early |
| 1751 |
Since we just set up the gs segment, we can use |
| 1752 |
CPU_NUMBER instead of CPU_NUMBER_NO_STACK. |
| 1753 |
Message-ID: <[email protected]> |
| 1754 |
|
| 1755 |
2024-12-09 Samuel Thibault <[email protected]> |
| 1756 |
|
| 1757 |
Comment on the reason for the different CPU_NUMBER versions |
| 1758 |
|
| 1759 |
2024-12-09 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1760 |
|
| 1761 |
i386/cpuboot: Simplify for legibility |
| 1762 |
The current segmentation already adds -KERNELBASE. |
| 1763 |
But only when accessing the memory. |
| 1764 |
|
| 1765 |
Message-ID: <[email protected]> |
| 1766 |
|
| 1767 |
2024-12-09 Samuel Thibault <[email protected]> |
| 1768 |
|
| 1769 |
Fix ipc_mqueue_receive locking documentation |
| 1770 |
|
| 1771 |
2024-12-07 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1772 |
|
| 1773 |
mp_desc: Add assert for AP having non-zero cpu number |
| 1774 |
Non-master processors cannot have cpu_number() == 0. |
| 1775 |
The synchronisation fails hard if the cpu number is wrong. |
| 1776 |
Alert the condition if this is the case. |
| 1777 |
|
| 1778 |
(On AMD fam15h, this assert currently fails, but I haven't |
| 1779 |
been able to boot it with smp yet either). |
| 1780 |
|
| 1781 |
Message-ID: <[email protected]> |
| 1782 |
|
| 1783 |
2024-12-06 Etienne Brateau <[email protected]> |
| 1784 |
|
| 1785 |
ipc_kmsg: fix print of size of mach_msg_header |
| 1786 |
msgh_size is a mach_msg_size_t which represent an unsigned int, so %u |
| 1787 |
must me used there instead of %d |
| 1788 |
Message-ID: <[email protected]> |
| 1789 |
|
| 1790 |
2024-12-05 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1791 |
|
| 1792 |
fpu: Fix for cpus that have no fxsave instruction |
| 1793 |
Fallthrough was incorrectly using fxsave() instead of |
| 1794 |
xsave() or xsaveopt(). |
| 1795 |
|
| 1796 |
TESTED: on AMD fam15h: no longer throws "No coprocessor" exception. |
| 1797 |
Message-ID: <[email protected]> |
| 1798 |
|
| 1799 |
2024-12-04 Samuel Thibault <[email protected]> |
| 1800 |
|
| 1801 |
warn about incompatibility between linux disk driver and PAE |
| 1802 |
|
| 1803 |
2024-12-02 Etienne Brateau <[email protected]> |
| 1804 |
|
| 1805 |
vm_page.c: fix a deadlock when running with smp enabled |
| 1806 |
the call vm_page_seg_pull_cache_page() return an vm_page (src) with his |
| 1807 |
object being locked, as we don’t unlock before doing the vm_page_insert, |
| 1808 |
it is still lock there, and so trying to relock it cause a deadlock. |
| 1809 |
Replace this lock by an assert. |
| 1810 |
This case was not seen as for non-smp locking is a no-op. |
| 1811 |
Message-ID: <[email protected]> |
| 1812 |
|
| 1813 |
2024-11-24 Damien Zammit via Bug reports for the GNU Hurd <[email protected]> |
| 1814 |
|
| 1815 |
device/intr: Account for interrupts that could not be delivered |
| 1816 |
When an irq handler dies, we are decrementing the n_unacked count |
| 1817 |
and calling __enable_irq() the right number of times, but we need |
| 1818 |
to decrement the total interrupt count by the number that were lost |
| 1819 |
and also clear that number. |
| 1820 |
|
| 1821 |
This fixes a hang when a shared irq handler quits and leaves some |
| 1822 |
unacked interrupts. |
| 1823 |
|
| 1824 |
Message-ID: <[email protected]> |
| 1825 |
|
| 1826 |
2024-11-20 Etienne Brateau <[email protected]> |
| 1827 |
|
| 1828 |
configfrag: fix usage of mach_ncpus before his definition |
| 1829 |
Message-ID: <[email protected]> |
| 1830 |
|
| 1831 |
2024-10-30 Samuel Thibault <[email protected]> |
| 1832 |
|
| 1833 |
Fix x86_64 build |
| 1834 |
|
| 1835 |
2024-10-27 Damien Zammit <[email protected]> |
| 1836 |
|
| 1837 |
Expose device(mbinfo) with read access to multiboot raw info |
| 1838 |
Message-ID: <[email protected]> |
| 1839 |
|
| 1840 |
2024-10-26 Damien Zammit <[email protected]> |
| 1841 |
|
| 1842 |
multiboot: Support graphic mode preferences |
| 1843 |
This change forces multiboot loader to provide video mode info |
| 1844 |
and also sets the preferred video mode to EGA text to ensure |
| 1845 |
existing console behaviour still works. |
| 1846 |
|
| 1847 |
When support for graphical consoles is provided, we can change |
| 1848 |
the preferred mode to linear framebuffer. |
| 1849 |
|
| 1850 |
Message-ID: <[email protected]> |
| 1851 |
|
| 1852 |
2024-10-26 Damien Zammit <[email protected]> |
| 1853 |
|
| 1854 |
multiboot v1: Add video framebuffer info |
| 1855 |
Message-ID: <[email protected]> |
| 1856 |
|
| 1857 |
2024-10-22 [email protected] <[email protected]> |
| 1858 |
|
| 1859 |
fix a compile warning. |
| 1860 |
* i386/i386at/acpi_parse_apci.c (acpi_print_info): %lx -> %llx |
| 1861 |
|
| 1862 |
i386/i386at/acpi_parse_apic.c: In function 'acpi_print_info': |
| 1863 |
i386/i386at/acpi_parse_apic.c:51:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=] |
| 1864 |
51 | printf(" rsdp = 0x%lx\n", rsdp); |
| 1865 |
| ~~^ ~~~~ |
| 1866 |
| | | |
| 1867 |
| | phys_addr_t {aka long long unsigned int} |
| 1868 |
| long unsigned int |
| 1869 |
| %llx |
| 1870 |
Message-ID: <[email protected]> |
| 1871 |
|
| 1872 |
2024-10-22 [email protected] <[email protected]> |
| 1873 |
|
| 1874 |
fix some compiler warnings. |
| 1875 |
I compiled with ./configure --enable-xen --enable-acpi. |
| 1876 |
|
| 1877 |
* i386/intel/pmap.c (pmap_bootstrap_xen, pmap_bootstrap, |
| 1878 |
pmap_set_page_readwrite, pmap_clear_bootstrap_pagetable, pmap_map_mfn, |
| 1879 |
pmap_expand_level, pmap_collect): Lots of tiny changes. I've copied |
| 1880 |
in some of the error messages. |
| 1881 |
|
| 1882 |
cast many variables to (long unsigned int), (vm_offset_t) -> (unsigned |
| 1883 |
long), %llx <-- (uint64_t) variable, |
| 1884 |
|
| 1885 |
In file included from i386/intel/pmap.c:63: |
| 1886 |
i386/intel/pmap.c: In function 'pmap_bootstrap_xen': |
| 1887 |
i386/intel/pmap.c:703:39: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'unsigned int' [-Wformat=] |
| 1888 |
703 | panic("couldn't pin page %p(%lx)", l1_map[n_l1map], (vm_offset_t) kv_to_ma (l1_map[n_l1map])); |
| 1889 |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1890 |
|
| 1891 |
i386/intel/pmap.c: In function 'pmap_set_page_readwrite': |
| 1892 |
i386/intel/pmap.c:897:23: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'vm_offset_t' {aka 'unsigned int'} [-Wformat=] |
| 1893 |
897 | panic("couldn't set hiMMU readwrite for addr %lx(%lx)\n", vaddr, (vm_offset_t) pa_to_ma (paddr)); |
| 1894 |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ |
| 1895 |
| | |
| 1896 |
| vm_offset_t {aka unsigned int} |
| 1897 |
./kern/debug.h:67:50: note: in definition of macro 'panic' |
| 1898 |
67 | Panic (__FILE__, __LINE__, __FUNCTION__, s, ##__VA_ARGS__) |
| 1899 |
| ^ |
| 1900 |
i386/intel/pmap.c:897:64: note: format string is defined here |
| 1901 |
897 | panic("couldn't set hiMMU readwrite for addr %lx(%lx)\n", vaddr, (vm_offset_t) pa_to_ma (paddr)); |
| 1902 |
| ~~^ |
| 1903 |
| | |
| 1904 |
| long unsigned int |
| 1905 |
| %x |
| 1906 |
i386/intel/pmap.c:897:23: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'unsigned int' [-Wformat=] |
| 1907 |
897 | panic("couldn't set hiMMU readwrite for addr %lx(%lx)\n", vaddr, (vm_offset_t) pa_to_ma (paddr)); |
| 1908 |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1909 |
./kern/debug.h:67:50: note: in definition of macro 'panic' |
| 1910 |
67 | Panic (__FILE__, __LINE__, __FUNCTION__, s, ##__VA_ARGS__) |
| 1911 |
| ^ |
| 1912 |
i386/intel/pmap.c:897:68: note: format string is defined here |
| 1913 |
897 | panic("couldn't set hiMMU readwrite for addr %lx(%lx)\n", vaddr, (vm_offset_t) pa_to_ma (paddr)); |
| 1914 |
| ~~^ |
| 1915 |
| | |
| 1916 |
| long unsigned int |
| 1917 |
| %x |
| 1918 |
Message-ID: <[email protected]> |
| 1919 |
|
| 1920 |
2024-10-22 Damien Zammit <[email protected]> |
| 1921 |
|
| 1922 |
ioapic: Initially mask all IRQs individually |
| 1923 |
This fixes a spurious intnull(9) from occurring on real hardware |
| 1924 |
during ACPI startup when compiled with --enable-apic |
| 1925 |
|
| 1926 |
Message-ID: <[email protected]> |
| 1927 |
|
| 1928 |
2024-10-21 [email protected] <[email protected]> |
| 1929 |
|
| 1930 |
fix a compiler warning. |
| 1931 |
* i386/intel/pmap.c (pmap_page_table_page_dealloc): define it only on |
| 1932 |
the Xen platform. Best not to delete page_alloc, so we know how to do |
| 1933 |
so if need be. |
| 1934 |
|
| 1935 |
i386/intel/pmap.c:1265:1: warning: 'pmap_page_table_page_dealloc' defined but not used [-Wunused-function] |
| 1936 |
1265 | pmap_page_table_page_dealloc(vm_offset_t pa) |
| 1937 |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1938 |
i386/intel/pmap.c:1171:1: warning: 'pmap_page_table_page_alloc' defined but not used [-Wunused-function] |
| 1939 |
1171 | pmap_page_table_page_alloc(void) |
| 1940 |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1941 |
Message-ID: <[email protected]> |
| 1942 |
|
| 1943 |
2024-10-21 [email protected] <[email protected]> |
| 1944 |
|
| 1945 |
fix a compiler warning. |
| 1946 |
* kern/slab.c(kalloc_init): %lu -> %zu |
| 1947 |
|
| 1948 |
kern/slab.c: In function 'kalloc_init': |
| 1949 |
kern/slab.c:1349:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=] |
| 1950 |
1349 | sprintf(name, "kalloc_%lu", size); |
| 1951 |
| ~~^ ~~~~ |
| 1952 |
| | | |
| 1953 |
| | size_t {aka unsigned int} |
| 1954 |
| long unsigned int |
| 1955 |
| %u |
| 1956 |
Message-ID: <[email protected]> |
| 1957 |
|
| 1958 |
2024-10-21 [email protected] <[email protected]> |
| 1959 |
|
| 1960 |
fix a compile warning. |
| 1961 |
* vm/vm_page.c(vm_page_setup): %lu -> %zu |
| 1962 |
|
| 1963 |
vm/vm_page.c: In function 'vm_page_setup': |
| 1964 |
vm/vm_page.c:1425:41: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=] |
| 1965 |
1425 | printf("vm_page: page table size: %lu entries (%luk)\n", nr_pages, |
| 1966 |
| ~~^ ~~~~~~~~ |
| 1967 |
| | | |
| 1968 |
| long unsigned int size_t {aka unsigned int} |
| 1969 |
| %u |
| 1970 |
vm/vm_page.c:1425:54: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=] |
| 1971 |
1425 | printf("vm_page: page table size: %lu entries (%luk)\n", nr_pages, |
| 1972 |
| ~~^ |
| 1973 |
| | |
| 1974 |
| long unsigned int |
| 1975 |
| %u |
| 1976 |
1426 | table_size >> 10); |
| 1977 |
| ~~~~~~~~~~~~~~~~ |
| 1978 |
| | |
| 1979 |
| size_t {aka unsigned int} |
| 1980 |
Message-ID: <[email protected]> |
| 1981 |
|
| 1982 |
2024-10-17 Samuel Thibault <[email protected]> |
| 1983 |
|
| 1984 |
Add missing caddr_t type |
| 1985 |
Now that gnumach does not define it any more. |
| 1986 |
|
| 1987 |
2024-09-08 Samuel Thibault <[email protected]> |
| 1988 |
|
| 1989 |
fpu_set_state: accept fp_save_kind being incoherent if initialized is not set |
| 1990 |
|
| 1991 |
2024-09-08 Luca Dariz <[email protected]> |
| 1992 |
|
| 1993 |
add tests for FLOAT/XFLOAT state |
| 1994 |
Message-ID: <[email protected]> |
| 1995 |
|
| 1996 |
2024-09-08 Samuel Thibault <[email protected]> |
| 1997 |
|
| 1998 |
fpu_set_state: return an error on incoherent fp_save_kind |
| 1999 |
|
| 2000 |
2024-09-08 Luca Dariz <[email protected]> |
| 2001 |
|
| 2002 |
add xfloat thread state interface |
| 2003 |
* i386/i386/fpu.c: extend current getter and setter to support the |
| 2004 |
extended state; move the struct casting here to reuse the locking |
| 2005 |
and allocation logic for the thread state; make sure the new state |
| 2006 |
is set as valid, otherwise it won't be applied; add |
| 2007 |
i386_get_xstate_size() to dynamically retrieve the FPU state size. |
| 2008 |
* i386/i386/fpu.h: update prototypes to accept generic thread state |
| 2009 |
* i386/i386/pcb.c: forward raw thread state to getter and setter, only |
| 2010 |
checking for minimum size and use the new i386_get_xstate_size() |
| 2011 |
helper. |
| 2012 |
* i386/include/mach/i386/mach_i386.defs: expose the new helper |
| 2013 |
i386_get_xstate_size(). |
| 2014 |
* i386/include/mach/i386/thread_status.h: add interface definition for |
| 2015 |
I386_XFLOAT_STATE and the corresponding data structure. |
| 2016 |
Message-ID: <[email protected]> |
| 2017 |
|
| 2018 |
x86_64: fix double fault handler |
| 2019 |
* x86_64/locore.S: adjust to the changes in the thread state |
| 2020 |
structure (segment registers), and add the missing opcode. |
| 2021 |
Message-ID: <[email protected]> |
| 2022 |
|
| 2023 |
2024-08-22 Luca Dariz <[email protected]> |
| 2024 |
|
| 2025 |
add rpc interrupted test |
| 2026 |
* tests/test-machmsg.c: add two use cases used by glibc during signal |
| 2027 |
handling |
| 2028 |
* tests/include/testlib.h |
| 2029 |
* tests/testlib.c: add new wait_thread_terminated() helper |
| 2030 |
Message-ID: <[email protected]> |
| 2031 |
|
| 2032 |
2024-07-31 Samuel Thibault <[email protected]> |
| 2033 |
|
| 2034 |
fpu: Drop conflicting alignment |
| 2035 |
struct i386_xfp_xstate_header header is at offset 440 of struct |
| 2036 |
i386_xfp_save, so not a multiple of 64 anyway. |
| 2037 |
|
| 2038 |
2024-07-14 Flavio Cruz <[email protected]> |
| 2039 |
|
| 2040 |
Add thread_get_name RPC to get the name of a thread. |
| 2041 |
Message-ID: <6qm4fdtthi5nrmmleum7z2xemxz77adohed454eaeuzlmvfx4d@l3pyff4tqwry> |
| 2042 |
|
| 2043 |
2024-07-10 Flavio Cruz <[email protected]> |
| 2044 |
|
| 2045 |
Include stddef.h in sys/types.h to get size_t and NULL. |
| 2046 |
Remove unnecessary definitions from sys/types.h. |
| 2047 |
Message-ID: <oitneneybjishhqq7bgedkasrqqd6nq7vselruaacw27sbe47e@6rt3xbi7fnie> |
| 2048 |
|
| 2049 |
Ensure we always pass -ffreestanding -nostdlib even if CFLAGS are overridden. |
| 2050 |
Message-ID: <4cea36qrjeo7tkklmqcwgkrxstxiqykdofha65zxmpni2o6lp3@2offokab6fvn> |
| 2051 |
|
| 2052 |
2024-07-09 Samuel Thibault <[email protected]> |
| 2053 |
|
| 2054 |
Fix bogus format |
| 2055 |
|
| 2056 |
2024-07-07 Samuel Thibault <[email protected]> |
| 2057 |
|
| 2058 |
Fix xen build |
| 2059 |
with -Werror=incompatible-pointer-types and |
| 2060 |
-Werror=implicit-function-declaration. |
| 2061 |
|
| 2062 |
2024-06-24 Flavio Cruz <[email protected]> |
| 2063 |
|
| 2064 |
Disable specific warnings that are now errors in GCC 14 |
| 2065 |
Message-ID: <376mwj4qtzxqgg2p4teqefxep7qz2kxll25synb3sulgof24j5@wxhqtaf7ei32> |
| 2066 |
|
| 2067 |
2024-06-12 Luca Dariz <[email protected]> |
| 2068 |
|
| 2069 |
tests/machmsg: check rx message size on different code paths |
| 2070 |
* tests/test-machmsg.c: add more combinations to existing cases: |
| 2071 |
- make tx and rx ports independent in the send/receive tests |
| 2072 |
- add two more variants for send/receive tests, using two separate |
| 2073 |
system calls, using different code paths in mach_msg(). |
| 2074 |
Message-ID: <[email protected]> |
| 2075 |
|
| 2076 |
x86_64: fix msg size forwarding in case it's not set by userspace |
| 2077 |
* ipc/copy_user.c: recent MIG stubs should always fill the size |
| 2078 |
correctly in the msg header, but we shouldn't rely on that. Instead, |
| 2079 |
we use the size that was correctly copied-in, overwriting the value |
| 2080 |
in the header. This is already done by the 32-bit copyinmsg(), and |
| 2081 |
was missing in the 64-bit version. |
| 2082 |
Furthermore, the assertion about user/kernel size make sense with |
| 2083 |
and without USER32, so take it out if the #ifdef. |
| 2084 |
Message-ID: <[email protected]> |
| 2085 |
|
| 2086 |
2024-04-16 Sergey Bugaev <[email protected]> |
| 2087 |
|
| 2088 |
Add a test for thread state |
| 2089 |
This tests generating and handling exceptions, thread_get_state(), |
| 2090 |
thread_set_state(), and newly added thread_set_self_state(). It does |
| 2091 |
many of the same things that glibc does when handling a signal. |
| 2092 |
Message-ID: <[email protected]> |
| 2093 |
|
| 2094 |
2024-04-16 Sergey Bugaev <[email protected]> |
| 2095 |
|
| 2096 |
Add thread_set_self_state() trap |
| 2097 |
This is a new Mach trap that sets the calling thread's state to the |
| 2098 |
passed value, as if with a call to the thread_set_state() RPC. If the |
| 2099 |
flavor of state being set is the one that contains the register used for |
| 2100 |
syscall return value (i386_THREAD_STATE or i386_REGS_SEGS_STATE on x86, |
| 2101 |
AARCH64_THREAD_STATE on AArch64), the set register value is *not* |
| 2102 |
overwritten with KERN_SUCCESS when the state gets set successfully, yet |
| 2103 |
errors do get reported if the syscall fails. |
| 2104 |
|
| 2105 |
Although the trap is intended to enable userland to implement sigreturn |
| 2106 |
functionality in the AArch64 port (more on which below), the trap itself |
| 2107 |
is architecture-independent, and fully implemented in terms of the |
| 2108 |
existing kernel routines (thread_setstatus & thread_set_syscall_return). |
| 2109 |
|
| 2110 |
This trap's functionality is similar to sigreturn() on Unix or |
| 2111 |
NtContinue() on NT. The use case for these all is restoring the local |
| 2112 |
state of an interrupted thread in the following set-up: |
| 2113 |
|
| 2114 |
1. A thread is running some arbitrary code. |
| 2115 |
2. An event happens that deserves the thread's immediate attention, |
| 2116 |
analogous to a hardware interrupt request. This might be caused by |
| 2117 |
the thread itself (e.g. running into a Mach exception that was |
| 2118 |
arranged to be handled by the same thread), or by external events |
| 2119 |
(e.g. receiving a Unix SIGCHLD). |
| 2120 |
3. Another thread (or perhaps the kernel, although this is not the case |
| 2121 |
on Mach) suspends the thread, saves its state at the point of |
| 2122 |
interruption, alters its state to execute some sort of handler for |
| 2123 |
the event, and resumes the thread again, now running the handler. |
| 2124 |
4. Once the thread is done running the handler, it wants to return to |
| 2125 |
what it was doing at the time it was interrupted. To do this, it |
| 2126 |
needs to restore the state as saved at the moment of interruption. |
| 2127 |
|
| 2128 |
Unlike with setjmp()/longjmp(), we cannot rely on the interrupted logic |
| 2129 |
collaborating in any way, as it's not aware that it's being interrupted. |
| 2130 |
This means that we have to fully restore the state, including values of |
| 2131 |
all the general-purpose registers, as well as the stack pointer, program |
| 2132 |
counter, and any state flags. |
| 2133 |
|
| 2134 |
Depending on the instruction set, this may or may not be possible to do |
| 2135 |
fully in userland, simply by loading all the registers with their saved |
| 2136 |
values. It should be more or less easy to load the saved values into |
| 2137 |
general-purpose registers, but state flags and the program counter can |
| 2138 |
be more of a challenge. Loading the program counter value (in other |
| 2139 |
words, performing an indirect jump to the interrupted instruction) has |
| 2140 |
to be the very last thing we do, since we don't control the program flow |
| 2141 |
after that. The only real place program counter can be loaded from is |
| 2142 |
popped off the stack, since all general-purpose registers would already |
| 2143 |
contain their restored values by that point, and using global storage is |
| 2144 |
incompatible with another interruption of the same kind happening at the |
| 2145 |
time we were about to return. For the same reason, the saved program |
| 2146 |
counter cannot be really stored outside of the "active" stack area (such |
| 2147 |
as below the stack pointer), since otherwise it can get clobbered by |
| 2148 |
another interruption. |
| 2149 |
|
| 2150 |
This means that to support fully-userland returns, the instruction set |
| 2151 |
must provide a single instruction that loads an address from the stack, |
| 2152 |
adjusts the stack pointer, and performs an indirect jump to the loaded |
| 2153 |
address. The instruction must also either preserve (previously |
| 2154 |
restored) state flags, or additionally load state flags from the stack |
| 2155 |
in addition to the jump address. |
| 2156 |
|
| 2157 |
On x86, 'ret' is such an instruction: it pops an address from the stack, |
| 2158 |
adjusting the stack pointer without modifying flags, and performs an |
| 2159 |
indirect jump to the address. On x86_64, where the ABI mandates a red |
| 2160 |
zone, one can use the 'ret imm16' variant to additionally adjust the |
| 2161 |
stack pointer by the size of the red zone, atomically restoring the |
| 2162 |
value of the stack pointer at the time of the interruption while loading |
| 2163 |
the return address from outside the red zone. This is how sigreturn is |
| 2164 |
implemented in glibc for the Hurd on x86. |
| 2165 |
|
| 2166 |
On ARM AArch32, 'pop {pc}' (alternatively written 'ldr pc, [sp], #4') is |
| 2167 |
such an instruction: since SP and PC are just general-purpose, directly |
| 2168 |
accessible registers (r13 and r15), it is possible to perform a load |
| 2169 |
from the address pointed to by SP into PC, with a post-increment of SP. |
| 2170 |
It is, in fact, possible to restore all the other general-purpose |
| 2171 |
registers too in a single instruction this way: 'pop {r0-r12, r14, r15}' |
| 2172 |
will do that; here r13, the stack pointer, gets incremented after all |
| 2173 |
the other registers get loaded from the stack. This also preserves the |
| 2174 |
CPSR flags, which would need to be restored just prior to the 'pop'. |
| 2175 |
|
| 2176 |
On ARM AArch64 however, PC is no longer a directly accessible general- |
| 2177 |
purpose register (and SP is only accessible that way by some of the |
| 2178 |
instructions); so it is no longer possible to load PC from memory in a |
| 2179 |
single instruction. The only way to perform an indirect jump is by |
| 2180 |
using one of the dedicated branching instructions ('br', 'blr', or |
| 2181 |
'ret'). All of them accept the address to branch to in a general- |
| 2182 |
purpose register, which is incompatible with our use case. |
| 2183 |
|
| 2184 |
Moreover, with the BTI extension, there is a BTYPE field in PSTATE that |
| 2185 |
tracks which type (if any) of an indirect branch was the last executed |
| 2186 |
instruction; this is then used to raise an exception if the instruction |
| 2187 |
the indirect branch lands on was not intended to be a target of an |
| 2188 |
indirect branch (of a matching type). It is important to restore the |
| 2189 |
BTYPE (among the other state) when returning to an interrupted context; |
| 2190 |
failing to do that will either cause an unexpected BTI failure exception |
| 2191 |
(if the last executed instruction before the interruption was not an |
| 2192 |
indirect branch, but the last instruction of the restoration logic is), |
| 2193 |
or open up a window for exploitation (if the last executed instruction |
| 2194 |
before the interruption was an indirect branch, but the last instruction |
| 2195 |
of the restoration logic is not -- note that 'ret' is not considered an |
| 2196 |
indirect branch for the purposes of BTI). |
| 2197 |
|
| 2198 |
So, it is not possible to fully restore the state of an interrupted |
| 2199 |
context in userland on AArch64. The kernel can do that however (and is |
| 2200 |
in fact doing just that every time it handles a fault or an IRQ): the |
| 2201 |
'eret' instruction for returning from an exception is accessible to EL1 |
| 2202 |
(the kernel), but not EL0 (the user). 'eret' atomically restores PC |
| 2203 |
from the ELR_EL1 system register, and PSTATE from the SPSR_EL1 system |
| 2204 |
register (and does other things); both of these system registers are |
| 2205 |
inaccessible from userland, and so couldn't have been used by the |
| 2206 |
interrupted context for any purpose, meaning their values doesn't need |
| 2207 |
to be restored. (They can be used by the kernel code, which presents an |
| 2208 |
additional complication when it's the kernel context that gets |
| 2209 |
interrupted and has to be returned to. To make this work, the kernel |
| 2210 |
masks interrupt requests and avoids doing anything that could cause a |
| 2211 |
fault when using those registers.) |
| 2212 |
|
| 2213 |
The above justifies the need for a kernel API to atomically restore |
| 2214 |
saved userland state on AArch64 (and possibly other platforms that |
| 2215 |
aren't x86). Mach already has an API to set state of a thread, namely |
| 2216 |
the thread_set_state() RPC; however, a thread calling thread_set_state() |
| 2217 |
on itself is explicitly disallowed. We have previously relaxed this |
| 2218 |
restriction to allow setting i386_DEBUG_STATE and i386_FSGS_BASE_STATE |
| 2219 |
on the current thread, so one way to address the need for such an API on |
| 2220 |
AArch64 would be to also allow setting AARCH64_THREAD_STATE on the |
| 2221 |
current thread. That is what I have originally proposed and |
| 2222 |
implemented. Like the thread_set_self_state() trap implemented by this |
| 2223 |
patch, the implementation of setting AARCH64_THREAD_STATE on the current |
| 2224 |
thread needs to ensure that the set value of the x0 register does not |
| 2225 |
get immediately overwritten with the return value of the mach_msg() |
| 2226 |
trap. |
| 2227 |
|
| 2228 |
However, it's not only the return value of the mach_msg() trap that is |
| 2229 |
important, but also the RPC reply message. The thread_set_state() RPC |
| 2230 |
should not generate a reply message when used for returning to an |
| 2231 |
interrupted context, since there'd be nobody expecting the message. |
| 2232 |
This could be achieved by special-casing that in the kernel as well, or |
| 2233 |
(simpler) by userland not passing a valid reply port in the first place. |
| 2234 |
Note that the implementation of sigreturn in glibc already uses the |
| 2235 |
strategy of passing an invalid reply port for the last RPC is does |
| 2236 |
before returning to the interrupted context (which is deallocating the |
| 2237 |
reply port used by the signal handler). |
| 2238 |
|
| 2239 |
Not passing a valid reply port and consequently not blocking on awaiting |
| 2240 |
the reply message works, since the way Mach is implemented, kernel RPCs |
| 2241 |
are always executed synchronously when userland sends the request |
| 2242 |
message (unless the routine implementation includes explicit asynchrony, |
| 2243 |
as device RPCs do, and gsync_wait() should do, but currently doesn't), |
| 2244 |
meaning the RPC caller never has to *wait* for the reply message, as one |
| 2245 |
is produced immediately. In other words, the mere act of invoking a |
| 2246 |
kernel RPC (that does not involve explicit asynchrony) is enough to |
| 2247 |
ensure it completes when mach_msg() returns, even if a reply message is |
| 2248 |
not received (whether because an invalid reply port has been specified, |
| 2249 |
or because MACH_RCV_MSG wasn't passed to mach_msg(), or because a |
| 2250 |
message other than the kernel RPC's reply was received by the call). |
| 2251 |
|
| 2252 |
However, the same is not true when interposing is involved, and the |
| 2253 |
thread's self port does not in fact point directly to the kernel, but to |
| 2254 |
a userspace proxy of some sort. The two primary examples of this are |
| 2255 |
Hurd's rpctrace tool, which interposes all the task's ports and proxies |
| 2256 |
all RPCs after tracing them, and Mach's old netmsg/netname server, which |
| 2257 |
proxies ports and messages over network. In this case, the actual |
| 2258 |
implementation only runs once the request reaches the actual kernel, and |
| 2259 |
not once the request message has been sent by the original caller, so it |
| 2260 |
*is* necessary for the caller to await the reply message if it wants to |
| 2261 |
make sure that the requested action has been completed. This does not |
| 2262 |
cause much issues for deallocation of a reply port on the sigreturn code |
| 2263 |
path in glibc, since that only delays when the port is deallocated, but |
| 2264 |
does not otherwise change the program behavior. With |
| 2265 |
thread_set_state(mach_thread_self()), however, this would be quite |
| 2266 |
catastrophic, since the message-send would return back to the caller |
| 2267 |
without changing its state, and the actual change of state would only |
| 2268 |
happen at some later point. |
| 2269 |
|
| 2270 |
This issue is avoided nicely by turning the functionality into an |
| 2271 |
explicit Mach trap rather than an RPC. As it's not an RPC, it doesn't |
| 2272 |
involve messaging, and doesn't need a reply port or a reply message. It |
| 2273 |
is always a direct call to the kernel (and not to any interposer), and |
| 2274 |
it's always guaranteed to have completed synchronously once the trap |
| 2275 |
returns. That also means that the thread_set_self_state() call won't be |
| 2276 |
visible to rpctrace or forwarded over network for netmsg, but this is |
| 2277 |
fine, since all it does is sets thread state (i.e. register values); the |
| 2278 |
thread could do the same on its own by issuing relevant machine |
| 2279 |
instruction without involving any Mach abstractions (traps or RPCs) at |
| 2280 |
all if it weren't for the need of atomicity. |
| 2281 |
|
| 2282 |
Finally, this new trap is unfortunately somewhat of a security concern |
| 2283 |
(as any sigreturn-like functionality is in general), since it would |
| 2284 |
potentially allow an attacker who already has a way to invoke a function |
| 2285 |
with 3 controlled argument values to set the values of all registers to |
| 2286 |
any desired values (sigreturn-oriented programming). There is currently |
| 2287 |
no mitigation for this other than the generic ones such as PAC and stack |
| 2288 |
check guards. |
| 2289 |
|
| 2290 |
The limit of 150 used in the implementation has been chosen to be large |
| 2291 |
enough to fit the largest thread state flavor so far, namely |
| 2292 |
AARCH64_FLOAT_STATE, but small enough to not overflow the 4K stack. If |
| 2293 |
a new thread state flavor is added that is too big to fit on the stack, |
| 2294 |
the implementation should be switched to use kalloc instead of on-stack |
| 2295 |
storage. |
| 2296 |
Message-ID: <[email protected]> |
| 2297 |
|
| 2298 |
2024-04-16 Sergey Bugaev <[email protected]> |
| 2299 |
|
| 2300 |
aarch64: Add thread state types |
| 2301 |
Notes: |
| 2302 |
* TPIDR_EL0, the TLS pointer, is included in the generic state directly. |
| 2303 |
* TPIDR2_EL0, part of the SME extension, is not included in the generic |
| 2304 |
state. If we add SME support, it will be a part of something like |
| 2305 |
aarch64_sme_state. |
| 2306 |
* CPSR is not a real register in AArch64 (unlike in AArch32), but a |
| 2307 |
collection of individually accessible bits and pieces from PSTATE. |
| 2308 |
Due to how the kernel accesses user mode's PSTATE (via SPSR), it's |
| 2309 |
convenient to represent PSTATE as a pseudo-register in the same |
| 2310 |
format as SPSR. This is also what QEMU and XNU do. |
| 2311 |
* There is no hardware-enforced 'natural' order to place the registers |
| 2312 |
in, since no registers get pushed onto the stack on exception entry. |
| 2313 |
Saving and restoring registers from an instance of struct |
| 2314 |
aarch64_thread_state is implemented entirely in software, and the |
| 2315 |
format is essentially arbitrary. |
| 2316 |
* aarch64_float_state includes registers of a 128-bit type; this may |
| 2317 |
create issues for compilers other than GCC. |
| 2318 |
* fp_reserved is not a register, but a placeholder. If and when Arm |
| 2319 |
adds another floating-point meta-register, this will be changed to |
| 2320 |
represent it, and that would not be considered a compatibility break, |
| 2321 |
so don't access fp_reserved by name, or its value, from userland. |
| 2322 |
Instead, memset the whole structure to 0 if starting from scratch, or |
| 2323 |
memcpy an existing structure. |
| 2324 |
|
| 2325 |
More thread state types could be added in the future, such as |
| 2326 |
aarch64_debug_state, aarch64_virt_state (for hardware-accelerated |
| 2327 |
virtualization), potentially ones for PAC, SVE/SME, etc. |
| 2328 |
Message-ID: <[email protected]> |
| 2329 |
|
| 2330 |
2024-04-16 Sergey Bugaev <[email protected]> |
| 2331 |
|
| 2332 |
aarch64: Add exception type definitions |
| 2333 |
A few yet-unimplemented codes are also sketched out; these are included |
| 2334 |
so you know roughly what to expect once the missing functionality gets |
| 2335 |
implemented, but are not in any way stable or usable. |
| 2336 |
Message-ID: <[email protected]> |
| 2337 |
|
| 2338 |
2024-04-16 Sergey Bugaev <[email protected]> |
| 2339 |
|
| 2340 |
aarch64: Add mach_aarch64 API |
| 2341 |
This currently contains a single RPC to get Linux-compatible hwcaps, |
| 2342 |
as well as the values of MIDR_EL1 and REVIDR_EL1 system registers. |
| 2343 |
|
| 2344 |
In the future, this is expected to host the APIs to manage PAC keys, |
| 2345 |
and possibly some sort of AArch64-specific APIs for userland IRQ |
| 2346 |
handlers. |
| 2347 |
Message-ID: <[email protected]> |
| 2348 |
|
| 2349 |
2024-04-16 Sergey Bugaev <[email protected]> |
| 2350 |
|
| 2351 |
aarch64: Add vm_param.h |
| 2352 |
And make it so that the generic vm_param.h doesn't require the machine- |
| 2353 |
specific one to define PAGE_SIZE etc. We *don't* want a PAGE_SIZE |
| 2354 |
constant to be statically exported to userland; instead userland should |
| 2355 |
initialize vm_page_size by querying vm_statistics(), and then use |
| 2356 |
vm_page_size. |
| 2357 |
|
| 2358 |
We'd also like to eventually avoid exporting VM_MAX_ADDRESS, but this is |
| 2359 |
not feasible at the moment. To make it feasible in the future, userland |
| 2360 |
should try to avoid relying on the definition where possible. |
| 2361 |
Message-ID: <[email protected]> |
| 2362 |
|
| 2363 |
2024-04-16 Sergey Bugaev <[email protected]> |
| 2364 |
|
| 2365 |
aarch64: Add public syscall ABI |
| 2366 |
We use largely the same ABI as Linux: a syscall is invoked with the |
| 2367 |
"svc #0" instruction, passing arguments the same way as for a regular |
| 2368 |
function call. Specifically, up to 8 arguments are passed in the x0-x7 |
| 2369 |
registers, and the rest are placed on the stack (this is only necessary |
| 2370 |
for the vm_map() syscall). w8 should contain the (negative) Mach trap |
| 2371 |
number. A syscall preserves all registers except for x0, which upon |
| 2372 |
returning contains the return value. |
| 2373 |
Message-ID: <[email protected]> |
| 2374 |
|
| 2375 |
2024-04-16 Sergey Bugaev <[email protected]> |
| 2376 |
|
| 2377 |
aarch64: Add the basics |
| 2378 |
This adds "aarch64" host support to the build system, along with some |
| 2379 |
uninteresting installed headers. The empty aarch64/aarch64/ast.h header |
| 2380 |
is also added to create the aarch64/aarch64/ directory (due to Git |
| 2381 |
peculiarity). |
| 2382 |
|
| 2383 |
With this, it should be possible to run 'configure --host=aarch64-gnu' |
| 2384 |
and 'make install-data' successfully. |
| 2385 |
Message-ID: <[email protected]> |
| 2386 |
|
| 2387 |
2024-04-16 Sergey Bugaev <[email protected]> |
| 2388 |
|
| 2389 |
Add CPU_TYPE_ARM64 |
| 2390 |
This is distinct from CPU_TYPE_ARM, since we're going to exclusively use |
| 2391 |
AArch64 / A64, which CPU_TYPE_ARM was never meant to support, and to |
| 2392 |
match EM_AARCH64, which is also separate from EM_ARM. CPU_TYPE_X86_64 |
| 2393 |
was similarly made distinct from CPU_TYPE_I386. |
| 2394 |
|
| 2395 |
This is named CPU_TYPE_ARM64 rather than CPU_TYPE_AARCH64, since AArch64 |
| 2396 |
is an "execution state" (analogous to long mode on x86_64) rather than a |
| 2397 |
CPU type. "ARM64" here is not a name of the architecture, but simply |
| 2398 |
means an ARM CPU that is capable of (and for our case, will only really |
| 2399 |
be) running in the 64-bit mode (AArch64). |
| 2400 |
|
| 2401 |
There are no subtypes defined, and none are expected to be defined in |
| 2402 |
the future. Support for individual features/extensions should be |
| 2403 |
discovered by other means, i.e. the aarch64_get_hwcaps() RPC. |
| 2404 |
Message-ID: <[email protected]> |
| 2405 |
|
| 2406 |
2024-04-06 Samuel Thibault <[email protected]> |
| 2407 |
|
| 2408 |
tests: give more time |
| 2409 |
If the host is loaded it may take some time to boot. |
| 2410 |
|
| 2411 |
tests: Reboot the VM after the test |
| 2412 |
So it does not have to timeout. |
| 2413 |
|
| 2414 |
tests: Disable parallelism |
| 2415 |
The makefile pieces are not ready for this. |
| 2416 |
|
| 2417 |
Xen: Fix missing include |
| 2418 |
For thread_wakeup. |
| 2419 |
|
| 2420 |
tests: Fix running on 32bit host |
| 2421 |
qemu-system-i386 says at most 2047 MB RAM can be simulated |
| 2422 |
|
| 2423 |
tests: Fix include path |
| 2424 |
|
| 2425 |
tests: Add missing test files shipping |
| 2426 |
|
| 2427 |
2024-04-05 Samuel Thibault <[email protected]> |
| 2428 |
|
| 2429 |
SMP: force APIC |
| 2430 |
We need it to properly driver interrupts etc. of APs |
| 2431 |
|
| 2432 |
linux: Do not enable in SMP, it is not MP-safe |
| 2433 |
|
| 2434 |
2024-04-05 Sergey Bugaev <[email protected]> |
| 2435 |
|
| 2436 |
vm: Mark entries as in-transition while wiring down |
| 2437 |
When operating on the kernel map, vm_map_pageable_scan() does what |
| 2438 |
the code itself describes as "HACK HACK HACK HACK": it unlocks the map, |
| 2439 |
and calls vm_fault_wire() with the map unlocked. This hack is required |
| 2440 |
to avoid a deadlock in case vm_fault or one of its callees (perhaps, a |
| 2441 |
pager) needs to allocate memory in the kernel map. The hack relies on |
| 2442 |
other kernel code being "well-behaved", in particular on that nothing |
| 2443 |
will do any serious changes to this region of memory while the map is |
| 2444 |
unlocked, since this region of memory is "owned" by the caller. |
| 2445 |
|
| 2446 |
Even if the kernel code is "well-behaved" and doesn't alter VM regions |
| 2447 |
that it doesn't "own", it can still access adjacent regions. While this |
| 2448 |
doesn't affect the region being wired down as such, it can still end up |
| 2449 |
causing trouble due to extension & coalescence (merging) of VM entries. |
| 2450 |
|
| 2451 |
VM entry coalescence is an optimization where two adjacent VM entries |
| 2452 |
with identical properties are merged into a single one that spans the |
| 2453 |
combined region of the two original entries. VM entry extension is a |
| 2454 |
similar an optimization where an existing VM entry is extended to cover |
| 2455 |
an adjacent region, instead of a new VM entry being created to describe |
| 2456 |
the region. |
| 2457 |
|
| 2458 |
These optimizations are a private implementation detail of vm_map, and |
| 2459 |
(while they can be observed through e.g. vm_region) they are not |
| 2460 |
supposed to cause any visible effects to how the described regions of |
| 2461 |
memory behave; coalescence/extension and clipping happen automatically |
| 2462 |
as needed when adding or removing mappings, or changing their |
| 2463 |
properties. This is why it's fine for "well-behaved" kernel code to |
| 2464 |
unknowingly cause extension or coalescence of VM entries describing a |
| 2465 |
region by operating on adjacent VM regions. |
| 2466 |
|
| 2467 |
The "HACK HACK HACK HACK" code path relies on the VM entries in the |
| 2468 |
region staying intact while it keeps the map unlocked, as it passes |
| 2469 |
direct pointers to the entries into vm_fault_wire(), and also walks the |
| 2470 |
list of entries in the region by following the vme_next pointers in the |
| 2471 |
entries. Yet, this assumption is violated by the entries getting |
| 2472 |
concurrently modified by other kernel code operating on adjacent VM |
| 2473 |
regions, as described above. This is not only undefined behavior in the |
| 2474 |
sense of the C language standard, but can also cause very real issues. |
| 2475 |
|
| 2476 |
Specifically, we've been seeing the VM subsystem deadlock when building |
| 2477 |
Mach with SMP support and running a test program that calls |
| 2478 |
mach_port_names() concurrently and repearedly. mach_port_names() |
| 2479 |
implementation allocates and wires down memory, and when called from |
| 2480 |
multiple threads, it was likely to allocate, and wire, several adjacent |
| 2481 |
regions of memory, which would then cause entry coalescence/extension |
| 2482 |
and clipping to kick in. The specific sequence of events that led to a |
| 2483 |
deadlock appear to have been: |
| 2484 |
|
| 2485 |
1. Multiple threads execute mach_port_names() concurrently. |
| 2486 |
2. One of the threads is wiring down a memory region, another is |
| 2487 |
unwiring an adjacent memory region. |
| 2488 |
3. The wiring thread has unlocked the ipc_kernel_map, and called into |
| 2489 |
vm_fault_wire(). |
| 2490 |
4. Due to entry coalescence/extension, the entry the wiring thread was |
| 2491 |
going to wire down now describes a broader region of memory, namely |
| 2492 |
it includes an adjustent region of memory that has previously been |
| 2493 |
wired down by the other thread that is about to unwire it. |
| 2494 |
5. The wiring thread sets the busy bit on a wired-down page that the |
| 2495 |
unwiring thread is about to unwire, and is waiting to take the map |
| 2496 |
lock for reading in vm_map_verify(). |
| 2497 |
6. The unwiring thread holds the map lock for writing, and is waiting |
| 2498 |
for the page to lose its busy bit. |
| 2499 |
7. Deadlock! |
| 2500 |
|
| 2501 |
To prevent this from happening, we have to ensure that the VM entries, |
| 2502 |
at least as passed into vm_fault_wire() and as used for walking the list |
| 2503 |
of such entries, stay intact while we have the map unlocked. One simple |
| 2504 |
way to achieve that that I have proposed previously is to make a |
| 2505 |
temporary copy of the VM entries in the region, and pass the copies into |
| 2506 |
vm_fault_wire(). The entry copies would not be affected by coalescence/ |
| 2507 |
extension, even if the original entries in the map are. This is however |
| 2508 |
only straigtforward to do when there's just a single entry describing |
| 2509 |
the while region, and there are further concerns with e.g. whether the |
| 2510 |
underlying memory objects could, too, get coalesced. |
| 2511 |
|
| 2512 |
Arguably, making copies of the memory entries is making the hack even |
| 2513 |
bigger. This patch instead implements a relatively clean solution that, |
| 2514 |
arguably, makes the whole thing less of a hack: namely, making use of |
| 2515 |
the in-transition bit on VM entries to prevent coalescence and any other |
| 2516 |
unwanted effects. The entry in-transition bit was introduced for a very |
| 2517 |
similar use case: the VM map copyout logic has to temporarily unlock the |
| 2518 |
map to run its continuation, so it marks the VM entries it copied out |
| 2519 |
into the map up to that point as being "in transition", asking other |
| 2520 |
code to hold off making any serious changes to those entries. There's a |
| 2521 |
companion "needs wakeup" bit that other code can set to block on the VM |
| 2522 |
entry exiting this in-transition state; the code that puts an entry into |
| 2523 |
the in-transition state is expected to, when unsetting the in-transition |
| 2524 |
bit back, check for needs_wakeup being set, and wake any waiters up in |
| 2525 |
that case, so they can retry whatever operation they wanted to do. There |
| 2526 |
is no need to check for needs_wakeup in case of vm_map_pageable_scan(), |
| 2527 |
however, exactly because we expect kernel code to be "well-behaved" and |
| 2528 |
not make any attempts to modify the VM region. |
| 2529 |
|
| 2530 |
This relies on the in-transition bit inhibiting coalescence/extension, |
| 2531 |
as implemented in the previous commit. |
| 2532 |
|
| 2533 |
Also, fix a tiny sad misaligned comment line. |
| 2534 |
|
| 2535 |
Reported-by: Damien Zammit <[email protected]> |
| 2536 |
Helped-by: Damien Zammit <[email protected]> |
| 2537 |
Message-ID: <[email protected]> |
| 2538 |
|
| 2539 |
2024-04-05 Sergey Bugaev <[email protected]> |
| 2540 |
|
| 2541 |
vm: Don't attempt to extend in-transition entries |
| 2542 |
The in-transition mechanism exists to make it possible to unlock a map |
| 2543 |
while still making sure some VM entries won't disappear from under you. |
| 2544 |
This is currently used by the VM copyin mechanics. |
| 2545 |
|
| 2546 |
Entries in this state are better left alone, and extending/coalescing is |
| 2547 |
only an optimization, so it makes sense to skip it if the entry to be |
| 2548 |
extended is in transition. vm_map_coalesce_entry() already checks for |
| 2549 |
this; check for it in other similar places too. |
| 2550 |
|
| 2551 |
This is in preparation for using the in-transition mechanism for wiring, |
| 2552 |
where it's much more important that the entries are not extended while |
| 2553 |
in transition. |
| 2554 |
Message-ID: <[email protected]> |
| 2555 |
|
| 2556 |
2024-04-05 Sergey Bugaev <[email protected]> |
| 2557 |
|
| 2558 |
vm: Fix use-after-free in vm_map_pageable_scan() |
| 2559 |
When operating on the kernel map, vm_map_pageable_scan() does what |
| 2560 |
the code itself describes as "HACK HACK HACK HACK": it unlocks the map, |
| 2561 |
and calls vm_fault_wire() with the map unlocked. This hack is required |
| 2562 |
to avoid a deadlock in case vm_fault or one of its callees (perhaps, a |
| 2563 |
pager) needs to allocate memory in the kernel map. The hack relies on |
| 2564 |
other kernel code being "well-behaved", in particular on that nothing |
| 2565 |
will do any serious changes to this region of memory while the map is |
| 2566 |
unlocked, since this region of memory is "owned" by the caller. |
| 2567 |
|
| 2568 |
This reasoning doesn't apply to the validity of the 'end' entry (the |
| 2569 |
first entry after the region to be wired), since it's not a part of the |
| 2570 |
region, and is "owned" by someone else. Once the map is unlocked, the |
| 2571 |
'end' entry could get deallocated. Alternatively, a different entry |
| 2572 |
could get inserted after the VM region in front of 'end', which would |
| 2573 |
break the 'for (entry = start; entry != end; entry = entry->vme_next)' |
| 2574 |
loop condition. |
| 2575 |
|
| 2576 |
This was not an issue in the original Mach 3 kernel, since it used an |
| 2577 |
address range check for the loop condition, but got broken in commit |
| 2578 |
023401c5b97023670a44059a60eb2a3a11c8a929 "VM: rework map entry wiring". |
| 2579 |
Fix this by switching the iteration back to use an address check. |
| 2580 |
|
| 2581 |
This partly fixes a deadlock with concurrent mach_port_names() calls on |
| 2582 |
SMP, which was |
| 2583 |
|
| 2584 |
Reported-by: Damien Zammit <[email protected]> |
| 2585 |
Message-ID: <[email protected]> |
| 2586 |
|
| 2587 |
2024-03-29 Sergey Bugaev <[email protected]> |
| 2588 |
|
| 2589 |
elf-load: Respect PT_GNU_STACK |
| 2590 |
If a bootstrap ELF contains a PT_GNU_STACK phdr, take stack protection |
| 2591 |
from there. Otherwise, default to VM_PROT_ALL. |
| 2592 |
|
| 2593 |
2024-03-27 Samuel Thibault <[email protected]> |
| 2594 |
|
| 2595 |
kd: Include i386/irq.h |
| 2596 |
to get unmask_irq declaration |
| 2597 |
|
| 2598 |
2024-03-27 Sergey Bugaev <[email protected]> |
| 2599 |
|
| 2600 |
tests: Create tests/ in the build tree before trying to use it |
| 2601 |
Message-ID: <[email protected]> |
| 2602 |
|
| 2603 |
tests: Don't ask for executable stack |
| 2604 |
Message-ID: <[email protected]> |
| 2605 |
|
| 2606 |
tests: Make exception subcode a long |
| 2607 |
Message-ID: <[email protected]> |
| 2608 |
|
| 2609 |
tests: Use vm_page_size |
| 2610 |
Message-ID: <[email protected]> |
| 2611 |
|
| 2612 |
tests: Add vm_page_size |
| 2613 |
Message-ID: <[email protected]> |
| 2614 |
|
| 2615 |
tests: Add a more serious mach_msg_server() routine |
| 2616 |
Message-ID: <[email protected]> |
| 2617 |
|
| 2618 |
tests: Fix halt() |
| 2619 |
Mark it as noreturn, and make sure to halt, not reboot. |
| 2620 |
Message-ID: <[email protected]> |
| 2621 |
|
| 2622 |
Make -fno-PIE etc. architecture-dependent |
| 2623 |
There might be good reasons why Mach on x86 shouldn't be built as PIC/ |
| 2624 |
PIE, but there are also very good reasons to support PIE on other |
| 2625 |
architectures. Potentially implementing KASLR is one such reason; but |
| 2626 |
also the Linux AArch64 boot protocol (that the AArch64 port will use for |
| 2627 |
booting) lets the bootloader load the kernel image at any address, |
| 2628 |
which makes PIC pretty much required. |
| 2629 |
Message-ID: <[email protected]> |
| 2630 |
|
| 2631 |
ipc: Turn ipc_entry_lookup_failed() into a macro |
| 2632 |
ipc_entry_lookup_failed() is used with both mach_msg_user_header_t and |
| 2633 |
mach_msg_header_t arguments, which are different types. Make it into a |
| 2634 |
macro, so it works with both. |
| 2635 |
Message-ID: <[email protected]> |
| 2636 |
|
| 2637 |
kern/rdxtree: Fix undefined behavior |
| 2638 |
Initializing a variable with itself is undefined, and GCC 14 rightfully |
| 2639 |
produces a warning about the variable being used (to initialize itself) |
| 2640 |
prior to initialization. X15 sets the variables to 0 instead, so do the |
| 2641 |
same in Mach. |
| 2642 |
Message-ID: <[email protected]> |
| 2643 |
|
| 2644 |
gsync: Use copyin()/copyout() to access user memory |
| 2645 |
Depending on the architecture and setup, it may not be possible to |
| 2646 |
access user memory directly, for example, due to user mode mappings not |
| 2647 |
being accessible from kernel mode (x86 SMAP, AArch64 PAN). There are |
| 2648 |
dedicated machine-specific copyin()/copyout() routines that know how to |
| 2649 |
access user memory from the kernel; use them. |
| 2650 |
Message-ID: <[email protected]> |
| 2651 |
|
| 2652 |
Load 64-bit ELFs on all 64-bit ports |
| 2653 |
Not only on x86_64. |
| 2654 |
Message-ID: <[email protected]> |
| 2655 |
|
| 2656 |
Use the x86_64 message ABI on all 64-bit ports |
| 2657 |
Message-ID: <[email protected]> |
| 2658 |
|
| 2659 |
Disable host_kernel_version() everywhere but on i386 |
| 2660 |
It's not only x86_64, none of new architectures are going to have it. |
| 2661 |
Message-ID: <[email protected]> |
| 2662 |
|
| 2663 |
2024-03-15 Samuel Thibault <[email protected]> |
| 2664 |
|
| 2665 |
Do not install device/input.h |
| 2666 |
Is _IO{,R,W,WR} macros conflict with the glibc-provided macros and bring |
| 2667 |
confusion as to what is supposed to be the right definition. |
| 2668 |
|
| 2669 |
There is currently no user of it anyway, the Hurd console driver has its |
| 2670 |
own copy. |
| 2671 |
|
| 2672 |
2024-03-11 Flavio Cruz <[email protected]> |
| 2673 |
|
| 2674 |
x86_64: avoid iterating over the message twice in copyoutmsg/copyinmsg for faster RPCs. |
| 2675 |
This is a follow up to |
| 2676 |
https://git.savannah.gnu.org/cgit/hurd/gnumach.git/commit/?id=69620634858b2992e1a362e33c95d9a8ee57bce7 |
| 2677 |
where we made inlined ports 8 bytes long to avoid resizing. |
| 2678 |
|
| 2679 |
The last thing that copy{in,out}msg were doing was just updating |
| 2680 |
msgt_size field since that's required for kernel stub code and implicitly |
| 2681 |
assumed by IPC code. This was moved into ipc_kmsg_copy{in,out}_body. |
| 2682 |
|
| 2683 |
For a 32 bit userland, the code also stops updating |
| 2684 |
msgt_size for out of line ports, same as the 64 bit userland. |
| 2685 |
Message-ID: <[email protected]> |
| 2686 |
|
| 2687 |
2024-03-09 LD <[email protected]> |
| 2688 |
|
| 2689 |
move x86 copy_user.[ch] to ipc/ and make it arch-indipendent |
| 2690 |
Message-ID: <[email protected]> |
| 2691 |
|
| 2692 |
remove machine/machspl.h as it duplicates machine/spl.h |
| 2693 |
Message-ID: <[email protected]> |
| 2694 |
|
| 2695 |
2024-03-09 Luca Dariz <[email protected]> |
| 2696 |
|
| 2697 |
x86_64: split SET_KERNEL_SEGMENTS() for NCPU > 1 |
| 2698 |
This allows 32on64 to work again. Also, it's a clearer indication of a |
| 2699 |
missing part. |
| 2700 |
Message-ID: <[email protected]> |
| 2701 |
|
| 2702 |
2024-03-04 Samuel Thibault <[email protected]> |
| 2703 |
|
| 2704 |
linux: Add missing include |
| 2705 |
Otherwise the types in linux/dev/include/linux/skbuff.h are unknown. |
| 2706 |
|
| 2707 |
2024-03-04 Samuel Thibault <[email protected]> |
| 2708 |
|
| 2709 |
vm_allocate_contiguous: Add missing page unwiring after making the area non-pageable |
| 2710 |
Otherwise, if the allocated memory is passed over for returning data such as |
| 2711 |
in device_read, we end up with |
| 2712 |
|
| 2713 |
../vm/vm_map.c:4245: vm_map_copyin_page_list: Assertion `src_entry->wired_count > 0' failed.Debugger invoked: assertion failure |
| 2714 |
|
| 2715 |
2024-03-04 Samuel Thibault <[email protected]> |
| 2716 |
|
| 2717 |
x86_64 locore: Check segmentation by hand |
| 2718 |
x86_64 ignores the segmentation limit, so we have to check it by hand |
| 2719 |
when accessing userland pointers. |
| 2720 |
|
| 2721 |
Reported-by: Sergey Bugaev <[email protected]> |
| 2722 |
|
| 2723 |
2024-03-03 Samuel Thibault <[email protected]> |
| 2724 |
|
| 2725 |
pmap: Avoid leaking USER bit in page tables |
| 2726 |
We should only set USER |
| 2727 |
- for user processes maps |
| 2728 |
- for 32bit Xen support |
| 2729 |
|
| 2730 |
This was not actually posing problem since in 32bit segmentation |
| 2731 |
protects us, and in 64bit the l4 entry for the kernel is already set. |
| 2732 |
But better be safe than sorry. |
| 2733 |
|
| 2734 |
2024-03-03 Samuel Thibault <[email protected]> |
| 2735 |
|
| 2736 |
kernel traps: also catch general protection faults |
| 2737 |
If userland passes a kernel pointer, it's not a page fault that we get, |
| 2738 |
but a general protection fault. We also want to go through the recovery |
| 2739 |
in that case, to make e.g. copyin/out return an error. |
| 2740 |
|
| 2741 |
2024-02-28 Flavio Cruz <[email protected]> |
| 2742 |
|
| 2743 |
Check for null ports in task_set_essential, task_set_name and thread_set_name. |
| 2744 |
Otherwise, it is easy to crash the kernel if userland passes arbitrary port |
| 2745 |
names. |
| 2746 |
Message-ID: <[email protected]> |
| 2747 |
|
| 2748 |
2024-02-23 Damien Zammit <[email protected]> |
| 2749 |
|
| 2750 |
vm_map: Add comment and assert for vm_map_delete |
| 2751 |
This will prevent calling vm_map_delete without the map locked |
| 2752 |
unless ref_count is zero. |
| 2753 |
Message-ID: <[email protected]> |
| 2754 |
|
| 2755 |
2024-02-23 Samuel Thibault <[email protected]> |
| 2756 |
|
| 2757 |
spl: Introduce assert_splvm and use it in process_pmap_updates |
| 2758 |
Suggested-by: Damien Zammit <[email protected]> |
| 2759 |
|
| 2760 |
kern: move pset_idle_lock/unlock to header |
| 2761 |
so that kern/machine.c can use it |
| 2762 |
|
| 2763 |
2024-02-23 Damien Zammit <[email protected]> |
| 2764 |
|
| 2765 |
kern: Use _nocheck variants of locks taken at splsched() |
| 2766 |
Fixes assertion errors when LDEBUG is compiled in. |
| 2767 |
Message-ID: <[email protected]> |
| 2768 |
|
| 2769 |
kern: Use _irq variant of lock and disable interrupts |
| 2770 |
During quantum adjustment, disable interrupts and call appropriate lock. |
| 2771 |
Message-ID: <[email protected]> |
| 2772 |
|
| 2773 |
kern/processor: Do not set default_pset.empty on bootstrap |
| 2774 |
This is not needed because cpu_up does this when it comes online, |
| 2775 |
it calls pset_add_processor(). |
| 2776 |
Message-ID: <[email protected]> |
| 2777 |
|
| 2778 |
2024-02-22 Damien Zammit <[email protected]> |
| 2779 |
|
| 2780 |
kern/gsync: Use vm_map_lookup with keep_map_locked |
| 2781 |
This prevents a deadlock in smp where a read lock on the map |
| 2782 |
is taken in gsync and then the map is locked again inside |
| 2783 |
vm_map_lookup() but another thread had a pre-existing write lock, |
| 2784 |
therefore the second read lock blocks. |
| 2785 |
|
| 2786 |
This is fixed by removing the initial gsync read lock on the map |
| 2787 |
but keeping the read lock held upon returning from vm_map_lookup(). |
| 2788 |
|
| 2789 |
Co-Authored-By: Sergey Bugaev <[email protected]> |
| 2790 |
Message-ID: <[email protected]> |
| 2791 |
|
| 2792 |
2024-02-22 Damien Zammit <[email protected]> |
| 2793 |
|
| 2794 |
vm_map_lookup: Add parameter for keeping map locked |
| 2795 |
This adds a parameter called keep_map_locked to vm_map_lookup() |
| 2796 |
that allows the function to return with the map locked. |
| 2797 |
|
| 2798 |
This is to prepare for fixing a bug with gsync where the map |
| 2799 |
is locked twice by mistake. |
| 2800 |
|
| 2801 |
Co-Authored-By: Sergey Bugaev <[email protected]> |
| 2802 |
Message-ID: <[email protected]> |
| 2803 |
|
| 2804 |
2024-02-19 Damien Zammit <[email protected]> |
| 2805 |
|
| 2806 |
Fix compile with MACH_LOCK_MON |
| 2807 |
|
| 2808 |
ddb: Use _irq variants of locks to satisfy LDEBUG asserts |
| 2809 |
|
| 2810 |
2024-02-19 Samuel Thibault <[email protected]> |
| 2811 |
|
| 2812 |
Introduce and use assert_splsched() |
| 2813 |
|
| 2814 |
2024-02-19 Damien Zammit <[email protected]> |
| 2815 |
|
| 2816 |
process_pmap_updates: Use _nocheck form of lock, already at splvm |
| 2817 |
|
| 2818 |
kern: Fix parenthesis around assignment used as value |
| 2819 |
|
| 2820 |
2024-02-18 Damien Zammit <[email protected]> |
| 2821 |
|
| 2822 |
locore: Remove unnecessary call to CPU_NUMBER |
| 2823 |
The cpu number is already in edx register, so use that. |
| 2824 |
|
| 2825 |
2024-02-12 Damien Zammit <[email protected]> |
| 2826 |
|
| 2827 |
smp: Set processor set to non-empty when adding a processor |
| 2828 |
This allows the slave_pset to be used for actual tasks |
| 2829 |
with the processor_set RPCs. |
| 2830 |
Message-ID: <[email protected]> |
| 2831 |
|
| 2832 |
2024-02-12 Samuel Thibault <[email protected]> |
| 2833 |
|
| 2834 |
Add documentation for thread_set_name |
| 2835 |
|
| 2836 |
2024-02-12 Flavio Cruz <[email protected]> |
| 2837 |
|
| 2838 |
Add thread_set_name RPC. |
| 2839 |
Like task_set_name, we use the same size as the task name and will |
| 2840 |
inherit the task name, whenever it exists. This will be used to |
| 2841 |
implement pthread_setname_np. |
| 2842 |
Message-ID: <[email protected]> |
| 2843 |
|
| 2844 |
2024-02-12 Flavio Cruz <[email protected]> |
| 2845 |
|
| 2846 |
Replace kernel header includes in include/mach/mach_types.h with forward declarations. |
| 2847 |
I was trying to reuse TASK_NAME_SIZE in kern/thread.h but it was |
| 2848 |
impossible because files included from kern/task.h end up requiring |
| 2849 |
kern/thread.h (through percpu.h), creating a recursive dependency. |
| 2850 |
|
| 2851 |
With this change, mach_types.h only defines forward declarations and |
| 2852 |
modules have to explicitly include the appropriate header file if they |
| 2853 |
want to be able touch those structures. Most of the other includes are |
| 2854 |
required because we no longer grab many different includes through |
| 2855 |
mach_types.h. |
| 2856 |
Message-ID: <[email protected]> |
| 2857 |
|
| 2858 |
2024-02-11 Damien Zammit <[email protected]> |
| 2859 |
|
| 2860 |
Enable MACH_HOST |
| 2861 |
This is only enabled when NCPUS > 1. |
| 2862 |
|
| 2863 |
Enables some code paths that allows userspace to manage cpu resources via |
| 2864 |
processor set RPCs. |
| 2865 |
|
| 2866 |
Message-ID: <[email protected]> |
| 2867 |
|
| 2868 |
2024-02-11 Samuel Thibault <[email protected]> |
| 2869 |
|
| 2870 |
task: fix addressability of assign_active field |
| 2871 |
It is used for thread_wakeup and alike. |
| 2872 |
|
| 2873 |
2024-02-11 Damien Zammit <[email protected]> |
| 2874 |
|
| 2875 |
smp: Create AP processor set and put all APs inside it |
| 2876 |
This has the effect of running with one cpu only with smp, |
| 2877 |
but has the ability to enable APs in userspace with the right |
| 2878 |
processor set RPCs. |
| 2879 |
Message-ID: <[email protected]> |
| 2880 |
|
| 2881 |
ddb: Make show all runqs iterate over psets. |
| 2882 |
|
| 2883 |
smp: Fix unable to enter kdb during boot |
| 2884 |
Message-ID: <[email protected]> |
| 2885 |
|
| 2886 |
smp: Fix parenthesis around logic expression value |
| 2887 |
Message-ID: <[email protected]> |
| 2888 |
|
| 2889 |
2024-02-10 Samuel Thibault <[email protected]> |
| 2890 |
|
| 2891 |
Fix build with APIC without SMP |
| 2892 |
|
| 2893 |
2024-02-09 Damien Zammit <[email protected]> |
| 2894 |
|
| 2895 |
smp: Fix compile error with missing apboot_addr |
| 2896 |
Message-ID: <[email protected]> |
| 2897 |
|
| 2898 |
smp: Fix INIT/STARTUP IPI sequence |
| 2899 |
TESTED: works in qemu |
| 2900 |
TESTED: works hardware with AMD cpu |
| 2901 |
Message-ID: <[email protected]> |
| 2902 |
|
| 2903 |
2024-02-09 Samuel Thibault <[email protected]> |
| 2904 |
|
| 2905 |
SMP: Fix allocating the apboot page |
| 2906 |
vm_page_grab_contig does not necessarily allocate at the beginning of |
| 2907 |
the DMA segment, so rather allocate by hand very early. |
| 2908 |
|
| 2909 |
2024-02-08 Olivier Valentin <[email protected]> |
| 2910 |
|
| 2911 |
fpu: Fix cpuid feature detection |
| 2912 |
Make sure to fetch capabilities from cpuid(0xd,0x1) |
| 2913 |
Message-ID: <[email protected]> |
| 2914 |
|
| 2915 |
Revert "fpu: Fix cpuid feature detection" |
| 2916 |
This reverts commit f8d0f98e80b3d7d9b24fa077818113fb0f4b3970. |
| 2917 |
Message-ID: <[email protected]> |
| 2918 |
|
| 2919 |
2024-02-08 Damien Zammit <[email protected]> |
| 2920 |
|
| 2921 |
smp: Use HPET instead of pit one-shot that is unreliable |
| 2922 |
NB: Every x86 board that uses ACPI most likely has a HPET since 2005. |
| 2923 |
We can roll back to PIT in the cases where its not present, |
| 2924 |
but the PIT one shot code is definitely currently broken. |
| 2925 |
Message-ID: <[email protected]> |
| 2926 |
|
| 2927 |
2024-02-08 Damien Zammit <[email protected]> |
| 2928 |
|
| 2929 |
Add HPET timer for small accurate delays |
| 2930 |
TESTED: This works in qemu correctly |
| 2931 |
TESTED: This works on an AMD board with ACPI v2.0 correctly |
| 2932 |
|
| 2933 |
Message-ID: <[email protected]> |
| 2934 |
|
| 2935 |
2024-02-08 Damien Zammit <[email protected]> |
| 2936 |
|
| 2937 |
separate lapic_enable from lapic_setup |
| 2938 |
This initializes the lapic without |
| 2939 |
turning on the IOAPIC interrupts during SMP init. |
| 2940 |
|
| 2941 |
Message-ID: <[email protected]> |
| 2942 |
|
| 2943 |
2024-02-05 Samuel Thibault <[email protected]> |
| 2944 |
|
| 2945 |
apboot: avoid self-modifying code |
| 2946 |
self-modifying code is generally frowned upon, Intel largely says the |
| 2947 |
support is model-dependent. We can as well just relocate from the C |
| 2948 |
code like we did for the temporary gdt. |
| 2949 |
|
| 2950 |
2024-02-05 Damien Zammit <[email protected]> |
| 2951 |
|
| 2952 |
smp: Remove hardcoded AP_BOOT_ADDR |
| 2953 |
This took some time to figure out. |
| 2954 |
Involves a hand-crafted 16 bit assembly instruction [1] |
| 2955 |
because it requires an immediate for the memory address |
| 2956 |
of far jump. This required self-modifying code |
| 2957 |
to inject the next instruction, therefore I added a near |
| 2958 |
jump to clear the instruction cache queue in case the pipeline |
| 2959 |
cached the unmodified jump location. |
| 2960 |
|
| 2961 |
[1] Intel Architecture Software Developer's Manual, |
| 2962 |
Volume 2: Instruction Set Reference Manual |
| 2963 |
|
| 2964 |
2024-02-05 Damien Zammit <[email protected]> |
| 2965 |
|
| 2966 |
Fix apic_send_ipi function clobbering read only fields |
| 2967 |
This was the root cause of failing to INIT. |
| 2968 |
We were clobbering remote_read_status. |
| 2969 |
And also, we need to reference the .r register |
| 2970 |
when writing the ICR regs otherwise I think |
| 2971 |
it writes all of the block. |
| 2972 |
Message-ID: <[email protected]> |
| 2973 |
|
| 2974 |
2024-02-04 Samuel Thibault <[email protected]> |
| 2975 |
|
| 2976 |
vm_pages_phys: Avoid faults while we keep vm locks |
| 2977 |
In principle we are actually writing to the allocated area outside of |
| 2978 |
the vm lock, but better be safe in case somebody changes things. |
| 2979 |
|
| 2980 |
2024-02-01 Damien Zammit <[email protected]> |
| 2981 |
|
| 2982 |
ACPI: Support XSDT (ACPI >= v2.0) |
| 2983 |
This enables gnumach to additionally parse the XSDT table |
| 2984 |
if the revision of ACPI is 2. |
| 2985 |
|
| 2986 |
TESTED: Still works on qemu (ACPI v1.0) |
| 2987 |
TESTED: Works on a x86 board with XSDT (ACPI v2.0) |
| 2988 |
Message-ID: <[email protected]> |
| 2989 |
|
| 2990 |
2024-02-01 Damien Zammit <[email protected]> |
| 2991 |
|
| 2992 |
model_dep: Fix serial console with APIC enabled |
| 2993 |
Move cninit() further down so that IOAPIC has a chance |
| 2994 |
to initialize before the com port interrupt is unmasked |
| 2995 |
in the IOAPIC, fixing a fault and reboot. |
| 2996 |
Message-ID: <[email protected]> |
| 2997 |
|
| 2998 |
2024-01-31 Samuel Thibault <[email protected]> |
| 2999 |
|
| 3000 |
fix doc build |
| 3001 |
|
| 3002 |
2024-01-30 Samuel Thibault <[email protected]> |
| 3003 |
|
| 3004 |
Add vm_pages_phys |
| 3005 |
For rumpdisk to efficiently determine the physical address, both |
| 3006 |
for checking whether it is below 4GiB, and for giving it to the disk |
| 3007 |
driver, we need a gnumach primitive (and that is not conditioned by |
| 3008 |
MACH_VM_DEBUG like mach_vm_region_info and mach_vm_object_pages_phys |
| 3009 |
are). |
| 3010 |
|
| 3011 |
2024-01-30 Damien Zammit <[email protected]> |
| 3012 |
|
| 3013 |
apic: Set up LAPICs in xAPIC mode |
| 3014 |
Clear flag in msr for xAPIC mode. |
| 3015 |
|
| 3016 |
Message-ID: <[email protected]> |
| 3017 |
|
| 3018 |
2024-01-29 Damien Zammit <[email protected]> |
| 3019 |
|
| 3020 |
Support up to two IOAPICs with up to 32 GSIs on each |
| 3021 |
Previously, only IOAPIC[0] was supported. |
| 3022 |
Now this supports up to two IOAPICs. |
| 3023 |
|
| 3024 |
Message-ID: <[email protected]> |
| 3025 |
|
| 3026 |
2024-01-27 Olivier Valentin <[email protected]> |
| 3027 |
|
| 3028 |
fpu: Fix cpuid feature detection |
| 3029 |
Make sure to fetch capabilities from cpuid(0xd,0x1) |
| 3030 |
and max structure sizes from cpuid(0xd,0x0). |
| 3031 |
Message-ID: <[email protected]> |
| 3032 |
|
| 3033 |
2024-01-27 Damien Zammit <[email protected]> |
| 3034 |
|
| 3035 |
ioapic: Remove IMCR toggle |
| 3036 |
Since we are not using legacy MP tables but intending to use ACPI |
| 3037 |
to configure interrupt routing, we can assume all boards have |
| 3038 |
virtual wire mode, thus do not require setting of IMCR register. |
| 3039 |
(This may fix crashes on machines that do not have IMCR registers). |
| 3040 |
Message-ID: <[email protected]> |
| 3041 |
|
| 3042 |
2024-01-23 Samuel Thibault <[email protected]> |
| 3043 |
|
| 3044 |
linux: Add noide and noahci kernel options |
| 3045 |
They were meant to be temporary, but that got longer, and people seem to |
| 3046 |
expect them to be there now. |
| 3047 |
|
| 3048 |
2024-01-23 Janneke Nieuwenhuizen <[email protected]> |
| 3049 |
|
| 3050 |
Resurrect x86-linux build. |
| 3051 |
This avoids using system headers, which may result in |
| 3052 |
|
| 3053 |
kern/strings.c: In function 'strchr': |
| 3054 |
kern/strings.c:188:32: error: 'NULL' undeclared (first use in this function) |
| 3055 |
|
| 3056 |
In file included from util/atoi.c:77: |
| 3057 |
./util/atoi.h:65:29: error: unknown type name 'u_char' |
| 3058 |
|
| 3059 |
device/net_io.c: In function 'bpf_do_filter': |
| 3060 |
device/net_io.c:1636:34: error: 'u_int' undeclared (first use in this function); did you mean 'int'? |
| 3061 |
|
| 3062 |
In file included from device/subrs.c:36: |
| 3063 |
./device/if_ether.h:43:9: error: unknown type name 'u_char' |
| 3064 |
43 | u_char ether_dhost[6]; |
| 3065 |
|
| 3066 |
./linux/dev/include/linux/fs.h:304:5: error: unknown type name 'loff_t' |
| 3067 |
304 | loff_t f_pos; |
| 3068 |
|
| 3069 |
This is a follow-up to commit |
| 3070 |
d5e5dd3401ea0d0475aa830c2171be5b8a72f4fa |
| 3071 |
Update configure.ac so that we don't need glibc when running ./configure. |
| 3072 |
Message-ID: <[email protected]> |
| 3073 |
|
| 3074 |
2024-01-20 Damien Zammit <[email protected]> |
| 3075 |
|
| 3076 |
console: Fix baud rate on com ports, use 115200 default baud, 8 data bits |
| 3077 |
TESTED: By booting gnumach off an HP T620 with console=com0 and receiving 115200 8N1 console |
| 3078 |
on another machine connected via the serial port in minicom. |
| 3079 |
Without this patch, part of the console is garbled by mismatching com params (9600 7N1). |
| 3080 |
|
| 3081 |
Message-ID: <[email protected]> |
| 3082 |
|
| 3083 |
2024-01-13 Samuel Thibault <[email protected]> |
| 3084 |
|
| 3085 |
tests: clean test-installed mach headers |
| 3086 |
We are for now lacking proper dependencies between the source headers and |
| 3087 |
the test-installed headers, but we can at least clean them out. |
| 3088 |
|
| 3089 |
2024-01-13 Luca Dariz <[email protected]> |
| 3090 |
|
| 3091 |
add basic thread tests |
| 3092 |
Message-ID: <[email protected]> |
| 3093 |
|
| 3094 |
add basic task tests |
| 3095 |
Message-ID: <[email protected]> |
| 3096 |
|
| 3097 |
add raw mach_msg tests |
| 3098 |
Message-ID: <[email protected]> |
| 3099 |
|
| 3100 |
add syscall tests |
| 3101 |
Message-ID: <[email protected]> |
| 3102 |
|
| 3103 |
add thread creation helper to tests |
| 3104 |
Message-ID: <[email protected]> |
| 3105 |
|
| 3106 |
add basic vm tests |
| 3107 |
Message-ID: <[email protected]> |
| 3108 |
|
| 3109 |
2024-01-13 Luca Dariz <[email protected]> |
| 3110 |
|
| 3111 |
adjust range when changing memory pageability |
| 3112 |
* vm/vm_map.c: use actual limits instead of min/max boundaries to |
| 3113 |
change pageability of the currently mapped memory. |
| 3114 |
|
| 3115 |
This caused the initial vm_wire_all(host, task VM_WIRE_ALL) in glibc |
| 3116 |
startup to fail with KERN_NO_SPACE. |
| 3117 |
Message-ID: <[email protected]> |
| 3118 |
|
| 3119 |
2024-01-13 Luca Dariz <[email protected]> |
| 3120 |
|
| 3121 |
add mach_port tests |
| 3122 |
Message-ID: <[email protected]> |
| 3123 |
|
| 3124 |
add gsync tests |
| 3125 |
Message-ID: <[email protected]> |
| 3126 |
|
| 3127 |
add mach_host tests |
| 3128 |
Message-ID: <[email protected]> |
| 3129 |
|
| 3130 |
add basic user-space tests with qemu |
| 3131 |
* configure.ac: move test fragment to have USER32 |
| 3132 |
* tests/Makefrag.am: add user tests |
| 3133 |
* tests/README: add basic info on how to run and debug user tests |
| 3134 |
* tests/configfrag.ac: allow the test compiler/flags to be |
| 3135 |
autoconfigured or customized |
| 3136 |
* tests/grub.cfg.single.template: add minimal grub config to boot a |
| 3137 |
module |
| 3138 |
* tests/include/device/cons.h: add a simplified version of |
| 3139 |
device/cons.h usable for tests |
| 3140 |
* tests/include/kern/printf.h: symlink to kern/printf.h |
| 3141 |
* tests/include/mach/mig_support.h: add basic version for user-space |
| 3142 |
tests |
| 3143 |
* tests/include/syscalls.h: add prototypes for syscalls used in tests. |
| 3144 |
* tests/include/testlib.h: add definitions for common test |
| 3145 |
functionalities |
| 3146 |
* tests/include/util/atoi.h: symlink to util/atoi.h |
| 3147 |
* tests/run-qemu.sh.template: add a simple qemu test runner |
| 3148 |
* tests/start.S: add arch-specific entry point |
| 3149 |
* tests/syscalls.S: generate syscalls entry points |
| 3150 |
* tests/test-hello.c: add basic smoke test |
| 3151 |
* tests/testlib.c: add the minimal functionality to run a user-space |
| 3152 |
executable and reboot the system, and some test helpers. |
| 3153 |
* tests/user-qemu.mk: add rules to build simple user-space test |
| 3154 |
modules, including generating mig stubs. The tests reuse some kernel |
| 3155 |
code (like printf(), mach_atoi(), mem*(), str*() functions) so we can |
| 3156 |
use the freestanding environment and not depend on glibc. |
| 3157 |
Message-ID: <[email protected]> |
| 3158 |
|
| 3159 |
2023-12-29 Luca Dariz <[email protected]> |
| 3160 |
|
| 3161 |
expose MACH_MSG_USER_ALIGNMENT for manually-built messages |
| 3162 |
Message-ID: <[email protected]> |
| 3163 |
|
| 3164 |
USER32: change default to disabled and make it a general option |
| 3165 |
* configfrag.ac: add the global option USER32; although it makes sense |
| 3166 |
for 64-bit versions only, it can be used by future 64-bit |
| 3167 |
architectiures and not only x86_64. |
| 3168 |
Also, change the default setting to be disabled; now that we have a |
| 3169 |
working full 64-bit system, it makes sense to consider it the common |
| 3170 |
choice. |
| 3171 |
* x86_64/configfrag.ac: define the correct 32-bit cpu if USER32 is |
| 3172 |
enabled. |
| 3173 |
Message-ID: <[email protected]> |
| 3174 |
|
| 3175 |
2023-12-17 Flavio Cruz <[email protected]> |
| 3176 |
|
| 3177 |
Reorder mach_msg_type_t fields to ensure msgt_name and msgt_size are byte aligned |
| 3178 |
msgt_unused appears right after msgt_size since msgt_size can be reduced |
| 3179 |
to only 8 bits in the future, so we leave the door opened to make |
| 3180 |
msgt_unused 13 bits long. |
| 3181 |
|
| 3182 |
2023-12-17 Flavio Cruz <[email protected]> |
| 3183 |
|
| 3184 |
x86_64: Support 8 byte inlined port rights to avoid message resizing. |
| 3185 |
If a port is inlined in a message, the user has to use |
| 3186 |
mach_port_name_inlined_t to define each port. Out of line memory |
| 3187 |
continues to use mach_port_name_t since that memory has to be copied to |
| 3188 |
the kernel anyway. |
| 3189 |
|
| 3190 |
Both copyinmsg and copyoutmsg can be reduced to nothing (if we ignore |
| 3191 |
USER32) as a follow up but kept this patch simple for ease of review. |
| 3192 |
|
| 3193 |
2023-12-03 Samuel Thibault <[email protected]> |
| 3194 |
|
| 3195 |
Revert "Reorder mach_msg_type_t fields to ensure msgt_name and msgt_size are byte aligned" |
| 3196 |
This reverts commit 2db6b9b7b23b3bab944665b3b6012d24dd425d97. |
| 3197 |
|
| 3198 |
Revert "x86_64: Support 8 byte inlined port rights to avoid message resizing." |
| 3199 |
This reverts commit 29d4bcaafc4c2040df27a6247603c68e7757205c. |
| 3200 |
|
| 3201 |
Xen: fix build |
| 3202 |
|
| 3203 |
Fix 32-on-64: Fix missing es push |
| 3204 |
push %es actually cannot be compiled |
| 3205 |
|
| 3206 |
2023-12-03 Flavio Cruz <[email protected]> |
| 3207 |
|
| 3208 |
x86_64: Support 8 byte inlined port rights to avoid message resizing. |
| 3209 |
If a port is inlined in a message, the user has to use |
| 3210 |
mach_port_name_inlined_t to define each port. Out of line memory |
| 3211 |
continues to use mach_port_name_t since that memory has to be copied to |
| 3212 |
the kernel anyway. |
| 3213 |
|
| 3214 |
Both copyinmsg and copyoutmsg can be reduced to nothing (if we ignore |
| 3215 |
USER32) as a follow up but kept this patch simple for ease of review. |
| 3216 |
Message-ID: <[email protected]> |
| 3217 |
|
| 3218 |
2023-12-03 Flavio Cruz <[email protected]> |
| 3219 |
|
| 3220 |
Reorder mach_msg_type_t fields to ensure msgt_name and msgt_size are byte aligned |
| 3221 |
msgt_unused appears right after msgt_size since msgt_size can be reduced |
| 3222 |
to only 8 bits in the future, so we leave the door opened to make |
| 3223 |
msgt_unused 13 bits long. |
| 3224 |
Message-ID: <[email protected]> |
| 3225 |
|
| 3226 |
2023-11-29 Flavio Cruz <[email protected]> |
| 3227 |
|
| 3228 |
Use MACH_PORT_NAME_NULL and MACH_PORT_NAME_DEAD when checking for null or dead rights |
| 3229 |
Comparing mach_port_name_t that is MACH_PORT_NAME_DEAD against |
| 3230 |
MACH_PORT_DEAD will always return false. |
| 3231 |
Message-ID: <[email protected]> |
| 3232 |
|
| 3233 |
2023-11-27 Sergey Bugaev <[email protected]> |
| 3234 |
|
| 3235 |
vm: Coalesce map entries |
| 3236 |
When |
| 3237 |
- extending an existing entry, |
| 3238 |
- changing protection or inheritance of a range of entries, |
| 3239 |
we can get several entries that could be coalesced. Attempt to do that. |
| 3240 |
Message-ID: <[email protected]> |
| 3241 |
|
| 3242 |
vm: Add vm_map_coalesce_entry |
| 3243 |
This function attempts to coalesce a VM map entry with its preceeding |
| 3244 |
entry. It wraps vm_object_coalesce. |
| 3245 |
Message-ID: <[email protected]> |
| 3246 |
|
| 3247 |
2023-11-19 Samuel Thibault <[email protected]> |
| 3248 |
|
| 3249 |
ipc_entry_lookup_failed: Also write message id in bogus port warning |
| 3250 |
It may be enough to get an idea of the origin of the port without having |
| 3251 |
to produce a stack trace. |
| 3252 |
|
| 3253 |
2023-11-18 Samuel Thibault <[email protected]> |
| 3254 |
|
| 3255 |
ipc_entry_lookup: Generalize warnings about bogus port names |
| 3256 |
Looking up a bogus port name is generally a sign of a real bug, such as a |
| 3257 |
spurious mach port deallocation. |
| 3258 |
|
| 3259 |
2023-11-12 Samuel Thibault <[email protected]> |
| 3260 |
|
| 3261 |
Fix indent |
| 3262 |
|
| 3263 |
2023-11-07 Samuel Thibault <[email protected]> |
| 3264 |
|
| 3265 |
mach/message.h: Fix C++98 build |
| 3266 |
static_assert was introduced in C++11. |
| 3267 |
|
| 3268 |
2023-11-07 Flavio Cruz <[email protected]> |
| 3269 |
|
| 3270 |
Fix assertion for i686 since mach_port_name_t and mach_port_t have the same size |
| 3271 |
Message-ID: <[email protected]> |
| 3272 |
|
| 3273 |
2023-11-03 Samuel Thibault <[email protected]> |
| 3274 |
|
| 3275 |
mach/message.h: Fix C++ build |
| 3276 |
|
| 3277 |
2023-11-01 Samuel Thibault <[email protected]> |
| 3278 |
|
| 3279 |
64bit: Fix user memory leaks on non-inline port arrays |
| 3280 |
The userland allocation is for port names, not ports (as translated |
| 3281 |
below), so we need to allocate less. |
| 3282 |
|
| 3283 |
2023-10-28 Samuel Thibault <[email protected]> |
| 3284 |
|
| 3285 |
locore: Homogeneize 32bit and 64bit |
| 3286 |
|
| 3287 |
2023-10-28 Samuel Thibault <[email protected]> |
| 3288 |
|
| 3289 |
64bit: Fix locore build |
| 3290 |
To allow references to int_stack_base to be quite unconstrained, we need |
| 3291 |
to use 64bit register indexing. |
| 3292 |
|
| 3293 |
CPU_NUMBER_NO_GS was missing a 64bit variant. |
| 3294 |
|
| 3295 |
CPU_NUMBER_NO_STACK assumes being passed a 32bit register. |
| 3296 |
|
| 3297 |
2023-10-28 Samuel Thibault <[email protected]> |
| 3298 |
|
| 3299 |
64bit: Fix types in lock.h |
| 3300 |
simple locks use natural_t, and indexes for bt/bts/btr have to be 32bit. |
| 3301 |
|
| 3302 |
2023-10-28 Damien Zammit <[email protected]> |
| 3303 |
|
| 3304 |
x86_64/locore.S: Fix int stack checks when NCPUS > 1 |
| 3305 |
Message-ID: <[email protected]> |
| 3306 |
|
| 3307 |
2023-10-27 Samuel Thibault <[email protected]> |
| 3308 |
|
| 3309 |
Factorize more push/pop code |
| 3310 |
|
| 3311 |
2023-10-27 Samuel Thibault <[email protected]> |
| 3312 |
|
| 3313 |
locore: Also factorize segment management on i386 |
| 3314 |
and harmonize i386/x86_64. |
| 3315 |
|
| 3316 |
This btw fixes not using dx in 32-on-64's alltraps. |
| 3317 |
|
| 3318 |
2023-10-27 Samuel Thibault <[email protected]> |
| 3319 |
|
| 3320 |
32-on-64: Fix missing es push |
| 3321 |
|
| 3322 |
2023-10-03 Damien Zammit <[email protected]> |
| 3323 |
|
| 3324 |
Fix interrupt handling |
| 3325 |
Logic for interrupts: |
| 3326 |
|
| 3327 |
- interrupt.S raises spl (thus IF cleared) |
| 3328 |
- interrupt.S EOI |
| 3329 |
- interrupt.S calls the handler |
| 3330 |
- for pure in-kernel handlers, they do whatever they want with IF |
| 3331 |
cleared. |
| 3332 |
- when a userland handler is registers, queue_intr masks the irq. |
| 3333 |
- interrupt.S lowers spl with splx_cli, thus IF still cleared |
| 3334 |
- iret, that sets IF |
| 3335 |
|
| 3336 |
- later on, userland acks the IRQ, that unmasks the irq |
| 3337 |
|
| 3338 |
The key to this change is that all interrupts, including IPIs, are |
| 3339 |
treated the same way. Eg. the spl level is now raised before an IPI and |
| 3340 |
restored after. Also, EOI is not needed inside irq_acknowledge. |
| 3341 |
|
| 3342 |
With this change and the experimental change not to dispatch threads |
| 3343 |
direct to idle processors in the scheduler, I no longer observe kernel |
| 3344 |
faults, but an occasional hang does occur. |
| 3345 |
|
| 3346 |
Message-Id: <[email protected]> |
| 3347 |
|
| 3348 |
2023-10-03 Samuel Thibault <[email protected]> |
| 3349 |
|
| 3350 |
Xen: do not check for multiboot format |
| 3351 |
The xen build is not multiboot. |
| 3352 |
|
| 3353 |
2023-10-02 Samuel Thibault <[email protected]> |
| 3354 |
|
| 3355 |
Fix non-PAE build |
| 3356 |
|
| 3357 |
2023-10-01 Samuel Thibault <[email protected]> |
| 3358 |
|
| 3359 |
copyinmsg: Check that we have not overflown |
| 3360 |
This if of course too late in case of a failure, but better assert than get |
| 3361 |
awful bugs, and it's really not supposed to happen. |
| 3362 |
|
| 3363 |
ipc: Fix allocating kernel buffer for storing user message |
| 3364 |
Otherwise ipc_kmsg_copyin_body will overflow. |
| 3365 |
|
| 3366 |
2023-10-01 Samuel Thibault <[email protected]> |
| 3367 |
|
| 3368 |
mach_msg: Fix checking reception size |
| 3369 |
We need to check against the actual user size that will be used, not the |
| 3370 |
current kernel size. |
| 3371 |
|
| 3372 |
Usually userland uses amply-large reception buffer, but better be exact. |
| 3373 |
|
| 3374 |
2023-10-01 Samuel Thibault <[email protected]> |
| 3375 |
|
| 3376 |
Add and use ikm_cache_alloc/free/_try |
| 3377 |
|
| 3378 |
ddb: Make whatis print copy/pastable text |
| 3379 |
|
| 3380 |
slab: Make whatis look further |
| 3381 |
Without a tree, we can still look up by hand in the buffers. This |
| 3382 |
also allows to find freed objects. |
| 3383 |
|
| 3384 |
2023-10-01 Damien Zammit <[email protected]> |
| 3385 |
|
| 3386 |
com/lpr: Handle masking of interrupts in the driver |
| 3387 |
Message-Id: <[email protected]> |
| 3388 |
|
| 3389 |
kd: Handle masking of keyboard interrupt in the driver |
| 3390 |
Message-Id: <[email protected]> |
| 3391 |
|
| 3392 |
2023-10-01 Samuel Thibault <[email protected]> |
| 3393 |
|
| 3394 |
mach_port_names: Make sure we did not overflow the allocated area |
| 3395 |
|
| 3396 |
pmap: Factorize l4 base access |
| 3397 |
This also makes the code more coherent with other levels. |
| 3398 |
|
| 3399 |
copyout_unpack_msg_type: Avoid changing the kernel header |
| 3400 |
|
| 3401 |
ddb: Add whatis command |
| 3402 |
This is convenient when tracking buffer overflows |
| 3403 |
|
| 3404 |
2023-09-30 Samuel Thibault <[email protected]> |
| 3405 |
|
| 3406 |
Re-enable MACH_PCSAMPLE for non-smp |
| 3407 |
|
| 3408 |
2023-09-30 Damien Zammit <[email protected]> |
| 3409 |
|
| 3410 |
Allow disabling of MACH_PCSAMPLE and disable by default |
| 3411 |
This fixes a page fault when the sampling occurs in MP. |
| 3412 |
Perhaps it is not MP safe yet. |
| 3413 |
Message-Id: <[email protected]> |
| 3414 |
|
| 3415 |
ioapic: Add simple locking for non-atomic accesses |
| 3416 |
Message-Id: <[email protected]> |
| 3417 |
|
| 3418 |
ioapic: Detect version of IOAPIC for correct EOI handling |
| 3419 |
Message-Id: <[email protected]> |
| 3420 |
|
| 3421 |
2023-09-29 Damien Zammit <[email protected]> |
| 3422 |
|
| 3423 |
kdb: Add "show all runqs" debug command |
| 3424 |
Message-Id: <[email protected]> |
| 3425 |
|
| 3426 |
2023-09-28 Samuel Thibault <[email protected]> |
| 3427 |
|
| 3428 |
x86_64: Drop segments from thread status |
| 3429 |
They are useless on x86_64. |
| 3430 |
|
| 3431 |
x86_64: remove more unneeded segment selectors handling on full 64bit |
| 3432 |
This follows aaa33bd1ef300380279d9e2875b61a7abaf2c88d |
| 3433 |
|
| 3434 |
2023-09-27 Samuel Thibault <[email protected]> |
| 3435 |
|
| 3436 |
percpu: simplify access in NCPUS==1 case |
| 3437 |
|
| 3438 |
2023-09-25 Flavio Cruz <[email protected]> |
| 3439 |
|
| 3440 |
Update the 64bit RPC ABI to be simpler |
| 3441 |
* Make full use of the 8 bytes available in mach_msg_type_t by moving |
| 3442 |
into the unused 4 bytes. This allows us to use 32bits for |
| 3443 |
mach_msg_type_number_t whether we use the longform or not. |
| 3444 |
* Make mach_msg_type_long_t exactly the same as mach_msg_type_t. |
| 3445 |
Updating MiG is strongly encouraged since it will generate better code |
| 3446 |
to handle this new format. |
| 3447 |
|
| 3448 |
After this change, any compatibility with compiled binaries for Hurd x86_64 |
| 3449 |
will break since the message format is different. However, the new |
| 3450 |
schema simplifies the overall ABI, without having "holes" and also |
| 3451 |
avoids the need to have a 16 byte mach_msg_type_long_t. |
| 3452 |
|
| 3453 |
Was able to boot a basic system up to a bash shell. |
| 3454 |
Message-Id: <[email protected]> |
| 3455 |
|
| 3456 |
2023-09-25 Damien Zammit <[email protected]> |
| 3457 |
|
| 3458 |
percpu: active_stack with gs |
| 3459 |
Message-Id: <[email protected]> |
| 3460 |
|
| 3461 |
x86_64: Change active_threads to use gs like i386 |
| 3462 |
Message-Id: <[email protected]> |
| 3463 |
|
| 3464 |
2023-09-24 Samuel Thibault <[email protected]> |
| 3465 |
|
| 3466 |
SMP: Fix setting up initial gdt |
| 3467 |
We cannot access cpu_id_lut from the initial AP state, so update the |
| 3468 |
percpu segment after loading gdt. |
| 3469 |
|
| 3470 |
boothdr: Fix initial gdt |
| 3471 |
|
| 3472 |
cpuboot: Also set up %gs for AP |
| 3473 |
So they can use it very early. |
| 3474 |
|
| 3475 |
boothdr: Do not bother computing precise limit |
| 3476 |
Computing it would be complex, and this is a temporary descriptor |
| 3477 |
anyway. |
| 3478 |
|
| 3479 |
boothdr: Drop spurious limit field |
| 3480 |
|
| 3481 |
Use fewer cpu_number_slow calls |
| 3482 |
Now that gs is initialized early. |
| 3483 |
|
| 3484 |
2023-09-24 Damien Zammit <[email protected]> |
| 3485 |
|
| 3486 |
percpu active_thread using gs segment |
| 3487 |
TESTED: As per previous commit |
| 3488 |
Message-Id: <[email protected]> |
| 3489 |
|
| 3490 |
2023-09-24 Samuel Thibault <[email protected]> |
| 3491 |
|
| 3492 |
spl: Use gs to access CPU number |
| 3493 |
Now that it can be used early. |
| 3494 |
|
| 3495 |
boothdr: Also set up %gs for percpu access |
| 3496 |
So we can use it very early. |
| 3497 |
|
| 3498 |
start/switch_timer: Use CPU_NUMBER |
| 3499 |
They are called from context that has gs initialized. |
| 3500 |
|
| 3501 |
2023-09-24 Damien Zammit <[email protected]> |
| 3502 |
|
| 3503 |
percpu area using gs segment |
| 3504 |
This speeds up smp again, by storing the struct processor |
| 3505 |
in a percpu area and avoiding an expensive cpu_number every call |
| 3506 |
of current_processor(), as well as getting the cpu_number by |
| 3507 |
an offset into the percpu area. Untested on 64 bit |
| 3508 |
and work remains to use other percpu arrays. |
| 3509 |
|
| 3510 |
TESTED: (NCPUS=8) -smp 1 boots to login shell ~2x slower than uniprocessor |
| 3511 |
TESTED: (NCPUS=8) -smp 2 boots to INIT but hangs there |
| 3512 |
TESTED: (NCPUS=8) -smp 4 gets stuck seemingly within rumpdisk and hangs |
| 3513 |
TESTED: (NCPUS=1) uniprocessor is a bit faster than normal |
| 3514 |
|
| 3515 |
Message-Id: <[email protected]> |
| 3516 |
|
| 3517 |
2023-09-24 Damien Zammit <[email protected]> |
| 3518 |
|
| 3519 |
cpu_number: Inline widely used simple function |
| 3520 |
TESTED: on uniprocessor and smp, both behaved as normal. |
| 3521 |
|
| 3522 |
Message-Id: <[email protected]> |
| 3523 |
|
| 3524 |
2023-09-24 Damien Zammit <[email protected]> |
| 3525 |
|
| 3526 |
gdt: Cleanup gdt.h included in asm |
| 3527 |
Message-Id: <[email protected]> |
| 3528 |
|
| 3529 |
2023-09-23 Damien Zammit <[email protected]> |
| 3530 |
|
| 3531 |
cpuboot: Use CPU_NUMBER_NO_STACK before stack is set up |
| 3532 |
Message-Id: <[email protected]> |
| 3533 |
|
| 3534 |
2023-08-30 Samuel Thibault <[email protected]> |
| 3535 |
|
| 3536 |
Fix 64bit xen build |
| 3537 |
|
| 3538 |
linux: DMA32 is now correctly handled |
| 3539 |
|
| 3540 |
2023-08-29 Samuel Thibault <[email protected]> |
| 3541 |
|
| 3542 |
vm_page_bootalloc: Return a phys_addr_t |
| 3543 |
|
| 3544 |
vm_page: Fix setting higher bits in physical addresses |
| 3545 |
|
| 3546 |
2023-08-28 Samuel Thibault <[email protected]> |
| 3547 |
|
| 3548 |
mach_vm_object_pages: Extend for PAE |
| 3549 |
|
| 3550 |
vm_allocate_contiguous: Accept returning end of allowed memory |
| 3551 |
*result_paddr + size is exactly pass the allocated memory, so it can be |
| 3552 |
equal to the requested bound. |
| 3553 |
|
| 3554 |
typo |
| 3555 |
|
| 3556 |
i386_btop/ptob/trunc/round_page: Fix PAE case |
| 3557 |
We need to extend to 64bit (or keep the 64bits) before shifting. |
| 3558 |
|
| 3559 |
pmap_phys_address: Fix casting |
| 3560 |
We need to extend the frame number to 64bit before converting to |
| 3561 |
address. |
| 3562 |
|
| 3563 |
Fix crash at boot |
| 3564 |
spl cannot be called before the clock is set up. |
| 3565 |
|
| 3566 |
pmap: Fix spurious pte release on 64bit and PAE |
| 3567 |
|
| 3568 |
2023-08-22 Samuel Thibault <[email protected]> |
| 3569 |
|
| 3570 |
Fix non-SMP build |
| 3571 |
|
| 3572 |
2023-08-22 Damien Zammit <[email protected]> |
| 3573 |
|
| 3574 |
sched_prim.c: Check all run queues not just master processor |
| 3575 |
Message-Id: <[email protected]> |
| 3576 |
|
| 3577 |
2023-08-22 Samuel Thibault <[email protected]> |
| 3578 |
|
| 3579 |
eventcount: Fix locking thread while calling thread_setrun |
| 3580 |
|
| 3581 |
2023-08-22 Damien Zammit <[email protected]> |
| 3582 |
|
| 3583 |
sched_prim.c: Lock thread when calling thread_setrun |
| 3584 |
Message-Id: <[email protected]> |
| 3585 |
|
| 3586 |
apic: Use cpuid to read the apic id for speed |
| 3587 |
Message-Id: <[email protected]> |
| 3588 |
|
| 3589 |
2023-08-21 Samuel Thibault <[email protected]> |
| 3590 |
|
| 3591 |
slab: Optimize non-slab PAGE_SIZE allocations |
| 3592 |
In case there is no slab for PAGE_SIZE allocations, we can use direct |
| 3593 |
physical allocation rather than consuming the kernel virtual space. |
| 3594 |
|
| 3595 |
kernel traps: Also print code and cr2 |
| 3596 |
|
| 3597 |
vm_allocate_contiguous: better handle pmax |
| 3598 |
In case pmax is inside a segment, we should avoid using it, and stay |
| 3599 |
with the previous segment, thus being sure to respect the caller's |
| 3600 |
constraints. |
| 3601 |
|
| 3602 |
page segments: Fix more dma32/directmap inversions |
| 3603 |
We need to make sure segments are in addresses order, and avoid returning |
| 3604 |
dma32 memory when it's not actually within directmap memory. |
| 3605 |
|
| 3606 |
2023-08-14 Samuel Thibault <[email protected]> |
| 3607 |
|
| 3608 |
vm: Also check for virtual addresses in vm_map_delete |
| 3609 |
|
| 3610 |
pmap: Add missing declaration |
| 3611 |
|
| 3612 |
pmap+slab: Add more smoketests |
| 3613 |
Checking the range of addresses for operations on the kernel_pmap is |
| 3614 |
quite cheap, and allows to catch oddities quite early enough. |
| 3615 |
|
| 3616 |
pmap: Fix mayhem when releasing near the end of virtual memory |
| 3617 |
l is used to skip over the area mapped by a whole pde. It was clipped to |
| 3618 |
e, but if e is already near the end of virtual memory, l will |
| 3619 |
wrap-around to 0, and mayhem entails. |
| 3620 |
|
| 3621 |
pmap: Add MAPWINDOW_SIZE macro |
| 3622 |
|
| 3623 |
pmap: reserve last virtual page |
| 3624 |
So as to catch trying to dereference -1 |
| 3625 |
|
| 3626 |
pmap: Add more debugging information when getting a null pv_list |
| 3627 |
|
| 3628 |
vm: Fix ordering of addresses between DMA32 and DIRECTMAP |
| 3629 |
|
| 3630 |
pmap: Fix x32 PAE builds |
| 3631 |
|
| 3632 |
pmap: Fix coping with VM_MAX_USER_ADDRESS not being aligned on l4 limit |
| 3633 |
It is however usually aligned on l3 limit. |
| 3634 |
|
| 3635 |
x86_64: Fix memory leak on pmap destruction |
| 3636 |
We do need to go through the whole page table, to release the pdpt-s and |
| 3637 |
pdet-s that map the kernel. Only the ptpt-s that map the kernel are shared |
| 3638 |
between tasks. |
| 3639 |
|
| 3640 |
slab [SLAB_VERIFY]: Fix not enabling KMEM_CF_VERIFY on 4K slabs |
| 3641 |
|
| 3642 |
2023-08-13 Samuel Thibault <[email protected]> |
| 3643 |
|
| 3644 |
slab [SLAB_VERIFY]: Do not enable KMEM_CF_VERIFY on large slabs |
| 3645 |
That would be refused by kmem_cache_compute_properties later on anyway, |
| 3646 |
and prevent the kernel from booting at all. |
| 3647 |
|
| 3648 |
immc: Add support for \r and \t |
| 3649 |
|
| 3650 |
x86_64: Do not disassemble instructions |
| 3651 |
The instruction set decoding needs an update, avoid showing bogus output. |
| 3652 |
|
| 3653 |
lock: Fix SMP build |
| 3654 |
|
| 3655 |
IPI: Do not include support when NCPUS=1 |
| 3656 |
|
| 3657 |
IPI: Rework irq names and fix x86_64 build |
| 3658 |
|
| 3659 |
2023-08-13 Damien Zammit <[email protected]> |
| 3660 |
|
| 3661 |
i386/x86_64: Add remote AST via IPI mechanism |
| 3662 |
|
| 3663 |
kern/sched_prim: Cause ast on cpu coming out of idle |
| 3664 |
Message-Id: <[email protected]> |
| 3665 |
|
| 3666 |
2023-08-12 Samuel Thibault <[email protected]> |
| 3667 |
|
| 3668 |
simple lock: check that the non-_irq variants are not called from IRQ |
| 3669 |
|
| 3670 |
assert: fix concurrency against irqs |
| 3671 |
by using simple_lock_irq. |
| 3672 |
|
| 3673 |
clock: Convert timer_lock to using simple_lock_irq |
| 3674 |
|
| 3675 |
sched: Add waitq_lock helpers which check they are called at spl7 |
| 3676 |
|
| 3677 |
sched: Add runq_lock helpers which check they are called at spl7 |
| 3678 |
|
| 3679 |
kern: Check that locking thread is done at spl7 |
| 3680 |
|
| 3681 |
xen: Convert console to using simple_lock_irq |
| 3682 |
|
| 3683 |
kmsg: Fix concurrency against irqs |
| 3684 |
by using simple_lock_irq. |
| 3685 |
|
| 3686 |
device: Convert io_done_list_lock to simple_lock_irq |
| 3687 |
|
| 3688 |
tty: Convert t_lock to using simple_lock_irq |
| 3689 |
|
| 3690 |
2023-08-12 Samuel Thibault <[email protected]> |
| 3691 |
|
| 3692 |
lock: Add _irq variants |
| 3693 |
And pave the way for making the non-_irq variants check that they are |
| 3694 |
never used within interrupts. |
| 3695 |
|
| 3696 |
We do have a few places which were missing it, as the following commits will |
| 3697 |
show. |
| 3698 |
|
| 3699 |
2023-08-12 Samuel Thibault <[email protected]> |
| 3700 |
|
| 3701 |
pmap: Make pmap_protect sparse-pde aware |
| 3702 |
222020cff440 ("pmap: dynamically allocate the whole user page tree map") |
| 3703 |
made the pde array sparse, but missed updating pmap_protect accordingly: |
| 3704 |
we have to re-lookup for the pde on each PDE_MAPPED_SIZE section. |
| 3705 |
|
| 3706 |
x86_64: don't bother printing function arguments |
| 3707 |
They are in registers, and most probably very quickly overwritten. |
| 3708 |
|
| 3709 |
kdb: Show page fault details in traces |
| 3710 |
|
| 3711 |
x86_64: Fix catching kernel NULL deferences |
| 3712 |
On x86_64 we have no segmentation, and thus kernel's NULL is at linear |
| 3713 |
address zero, while LINEAR_MIN_KERNEL_ADDRESS is not zero. We thus have |
| 3714 |
to special-case it in otder to catch NULL dereferences. |
| 3715 |
|
| 3716 |
x86_64: Fix loading ELF symbols |
| 3717 |
|
| 3718 |
2023-08-12 Samuel Thibault <[email protected]> |
| 3719 |
|
| 3720 |
elf64: Update names |
| 3721 |
Apparently the ELF world changed their mind on the naming of integers, |
| 3722 |
let's get coherent with it. |
| 3723 |
|
| 3724 |
Elf64_Quarter (16b) disappeared, replaced by Elf64_Half (now 16b instead of |
| 3725 |
Elf64_32b). And previous Elf64_Half (16b) thus now need to be Elf64_Word |
| 3726 |
(16b). |
| 3727 |
|
| 3728 |
2023-08-12 Samuel Thibault <[email protected]> |
| 3729 |
|
| 3730 |
lock: Add more sanity checks |
| 3731 |
|
| 3732 |
model_dep: drop duplicate declaration |
| 3733 |
|
| 3734 |
lock: Reset l->writer also for read-write upgradees which are done |
| 3735 |
|
| 3736 |
lock: Fix building with MACH_LDEBUG but NCPUS==1 |
| 3737 |
|
| 3738 |
x86_64: fix NCPUS > 1 build of CX() macro |
| 3739 |
With the kernel gone to -2GB, the base+index addressing needs to use a 64bit |
| 3740 |
register index. |
| 3741 |
|
| 3742 |
lock: Rename simple_unlock version with information to _simple_unlock |
| 3743 |
For coherency with the rest of the implementations |
| 3744 |
|
| 3745 |
x86_64: Fix printing kernel trap number and error |
| 3746 |
|
| 3747 |
2023-08-10 Samuel Thibault <[email protected]> |
| 3748 |
|
| 3749 |
Acknowledge IRQ *before* calling the handler |
| 3750 |
5da1aea7ab3c ("Acknoledge interrupt after handler call") moved the IRQ ack |
| 3751 |
to after calling the handler because of overflows. But that was because the |
| 3752 |
interrupts were getting enabled at some point. Now that all spl levels |
| 3753 |
above 0 just disable interrupts, once we have called spl7 we are safe |
| 3754 |
until splx_cli is called (and even that doesn't release interrupts, only |
| 3755 |
the eventual iret will). |
| 3756 |
|
| 3757 |
And if the handler triggers another IRQ, it will be lost, so we do want |
| 3758 |
to ack the IRQ before handling it. |
| 3759 |
|
| 3760 |
2023-08-10 Samuel Thibault <[email protected]> |
| 3761 |
|
| 3762 |
x86_64: homogeneize with i386 about _call_single |
| 3763 |
|
| 3764 |
x86_64: fix recursive disabling of interrupts |
| 3765 |
In case interrupts were already disabled before TIME_TRAP_[US]ENTRY are |
| 3766 |
called, we don't want to execute sti. |
| 3767 |
|
| 3768 |
2023-08-09 Samuel Thibault <[email protected]> |
| 3769 |
|
| 3770 |
Fix missing DMA32 limit |
| 3771 |
Rumpdisk needs to allocate dma32 memory areas, so we do always need this |
| 3772 |
limit. |
| 3773 |
|
| 3774 |
The non-Xen x86_64 case had a typo, and the 32bit PAE case didn't have |
| 3775 |
the DMA32 limit. |
| 3776 |
|
| 3777 |
Also, we have to cope with VM_PAGE_DMA32_LIMIT being either above or below |
| 3778 |
VM_PAGE_DIRECTMAP_LIMIT depending on the cases. |
| 3779 |
|
| 3780 |
2023-08-08 Samuel Thibault <[email protected]> |
| 3781 |
|
| 3782 |
net_io: Fix long / int confusion |
| 3783 |
In network terms, long is 32bit, i.e. an int for us. |
| 3784 |
|
| 3785 |
2023-08-06 Damien Zammit <[email protected]> |
| 3786 |
|
| 3787 |
pmap: Add missing PMAP_READ_LOCK fixes uninitialized spl |
| 3788 |
Message-Id: <[email protected]> |
| 3789 |
|
| 3790 |
kern/thread: Only loop over cpus that exist |
| 3791 |
Message-Id: <[email protected]> |
| 3792 |
|
| 3793 |
interrupt.S: No nested interrupts during IPIs && more x86_64 smp support |
| 3794 |
Message-Id: <[email protected]> |
| 3795 |
|
| 3796 |
2023-08-05 Damien Zammit <[email protected]> |
| 3797 |
|
| 3798 |
cpu_number: Look up cpu kernel_id via lookup table |
| 3799 |
This speeds up smp slightly by reducing the cpu_number() |
| 3800 |
complexity to have no branching, just a look up table. |
| 3801 |
It also addresses the problem that CPU_NUMBER was only using |
| 3802 |
raw apic_id as an approximation of the kernel_id. |
| 3803 |
Other improvements were to remove unnecessary checks now that |
| 3804 |
the lookup table always resolves to a valid value. |
| 3805 |
Message-Id: <[email protected]> |
| 3806 |
|
| 3807 |
2023-08-05 Damien Zammit <[email protected]> |
| 3808 |
|
| 3809 |
Add timing info to MACH_LOCK_MON lock monitoring |
| 3810 |
Booting to beginning of bootstrap with different number of cpus |
| 3811 |
and checking the lock statistics where TIME is in milliseconds: |
| 3812 |
|
| 3813 |
Set MACH_LOCK_MON to 1 in configfrag.ac, then |
| 3814 |
|
| 3815 |
Configure options |
| 3816 |
--enable-ncpus=8 --enable-kdb --enable-apic --disable-linux-groups |
| 3817 |
|
| 3818 |
-smp 1 |
| 3819 |
|
| 3820 |
db{0}> show all slocks |
| 3821 |
|
| 3822 |
SUCCESS FAIL MASKED STACK TIME LOCK/CALLER |
| 3823 |
4208 0/0 4208/100 2/0 7890/1 0xc1098f54(c11847c8) |
| 3824 |
1 0/0 1/100 0/0 7890/7890 0x315(c11966e0) |
| 3825 |
30742 0/0 0/0 2106/0 160/0 0xf52a9e2c(f5a07958) |
| 3826 |
30742 0/0 0/0 0/0 140/0 0xf52a5e2c(f5a07b10) |
| 3827 |
149649 0/0 3372/2 1/0 120/0 0xc118a590(c118a9d4) |
| 3828 |
16428 0/0 0/0 1/0 90/0 0xf52a5dd0(f5a07ab8) |
| 3829 |
14345 0/0 0/0 18/0 80/0 0xf64afe2c(f64aa488) |
| 3830 |
1791 0/0 0/0 1/0 80/0 0xf52a3e70(f5e57f70) |
| 3831 |
|
| 3832 |
17331 total locks, 0 empty buckets |
| 3833 |
2320150 0/0 455490/19 11570533/4 17860/0 0xc10a4580(c10a4580) |
| 3834 |
|
| 3835 |
-smp 2 |
| 3836 |
|
| 3837 |
(could not wait until booted) |
| 3838 |
|
| 3839 |
db{0}> show all slocks |
| 3840 |
|
| 3841 |
SUCCESS FAIL MASKED STACK TIME LOCK/CALLER |
| 3842 |
47082 0/0 47082/100 0/0 413940/8 0xc1098f54(c11847c8) |
| 3843 |
2 0/0 2/100 0/0 413940/206970 0x6ede(c11966e0) |
| 3844 |
47139 0/0 0/0 2106/0 4670/0 0xc119edec(f5e409b0) |
| 3845 |
132895 3/0 3372/2 1/0 4580/0 0xc118a590(c118a9d4) |
| 3846 |
118313 0/0 2/0 0/0 3660/0 0xc1098ec4(c1189f80) |
| 3847 |
183233 1/0 1714/0 2/0 2290/0 0xc1098e54(c118aa8c) |
| 3848 |
14357 0/0 0/0 1878/0 1200/0 0xf52a4de0(f5e40a60) |
| 3849 |
14345 0/0 0/0 18/0 1200/0 0xf52a4dec(f528f488) |
| 3850 |
|
| 3851 |
16910 total locks, 0 empty buckets |
| 3852 |
2220850 455/0 485391/21 11549793/5 879030/0 0xc10a4580(c10a4580) |
| 3853 |
Message-Id: <[email protected]> |
| 3854 |
|
| 3855 |
2023-08-05 Damien Zammit <[email protected]> |
| 3856 |
|
| 3857 |
db_interface: Don't call db_on if MACH_KDB is off |
| 3858 |
Allows building of gnumach with --disable-kdb and --enable-ncpus > 1 |
| 3859 |
Message-Id: <[email protected]> |
| 3860 |
|
| 3861 |
2023-08-04 Luca Dariz <[email protected]> |
| 3862 |
|
| 3863 |
x86_64: remove unneeded segment selectors handling on full 64 bit |
| 3864 |
* i386/i386/db_interface.c: don't set unused segment selectors on full |
| 3865 |
64-bit |
| 3866 |
* i386/i386/db_trace.c: likewise. |
| 3867 |
* i386/i386/i386asm.sym: likewise. |
| 3868 |
* i386/i386/pcb.c:: likewise. |
| 3869 |
* i386/i386/thread.h: remove ES/DS/FS/GS from thread state on !USER32, |
| 3870 |
as they are unused in this configuration. Only SS and CS are kept. |
| 3871 |
* x86_64/locore.S: convert segment handling macros to no-op on full |
| 3872 |
64-bit |
| 3873 |
Message-Id: <[email protected]> |
| 3874 |
|
| 3875 |
2023-08-04 Luca Dariz <[email protected]> |
| 3876 |
|
| 3877 |
x86_64: refactor segment register handling |
| 3878 |
The actual values are not saved together with the rest of the thread |
| 3879 |
state, both because it would be quite espensive (reading MSR, unless |
| 3880 |
rdfsbase instructions are supported, but that's optional) and not |
| 3881 |
really needed. The only way the user has to change its value is with a |
| 3882 |
specific RPC, so we can intercept the change easily. Furthermore, |
| 3883 |
Leaving the values there exposes them to being corrupted in case of a |
| 3884 |
double interruption, e.g. an irq is handled just before iretq but |
| 3885 |
after starting to restore the thread state. This solution was |
| 3886 |
suggested by Sergey Bugaev. |
| 3887 |
|
| 3888 |
* i386/i386/db_trace.c: remove fsbase/gsbase from the registers |
| 3889 |
available |
| 3890 |
* i386/i386/debug_i386.c: remove fsbase/gsbase from the printed thread |
| 3891 |
state |
| 3892 |
* i386/i386/i386asm.sym: remove fsbase/gsbase as it's not needed in |
| 3893 |
asm anymore |
| 3894 |
* i386/i386/pcb.c: point fsbase/gsbase to the new location |
| 3895 |
* i386/i386/thread.h: move fsbase/gsbase to the machine state |
| 3896 |
* x86_64/locore.S: generalize segment-handling including es/ds/gs/fs |
| 3897 |
and remove fsbase/gsbase handling. Also, factor out kernel segment |
| 3898 |
selector setting to a macro. |
| 3899 |
Message-Id: <[email protected]> |
| 3900 |
|
| 3901 |
2023-08-04 Luca Dariz <[email protected]> |
| 3902 |
|
| 3903 |
x86_64: format pusha/popa macros for readability |
| 3904 |
Message-Id: <[email protected]> |
| 3905 |
|
| 3906 |
x86_64: disable V86 mode on full 64-bit configuration |
| 3907 |
* i386/i386/pcb.c: simplify exception stack location and adapt thread |
| 3908 |
gettrs/setters |
| 3909 |
* i386/i386/thread.h: don't include V86 fields on full 64-bit |
| 3910 |
* x86_64/locore.S: don't include checks for V86 mode on full 64-bit |
| 3911 |
Message-Id: <[email protected]> |
| 3912 |
|
| 3913 |
x86_64: fix stack handling on recursive interrupts for USER32 |
| 3914 |
* x86_64/locore.S: ensure the thread state is filled completely even |
| 3915 |
on recursive interrups. The value of the segment selectors is not |
| 3916 |
very important in this case, but we still need to align the stack to |
| 3917 |
the bottom of i386_interrupt_state. |
| 3918 |
Message-Id: <[email protected]> |
| 3919 |
|
| 3920 |
x86_64: install emergency handler for double fault |
| 3921 |
* i386/i386/idt.c: add selector for the interrupt-specific stack |
| 3922 |
* i386/i386/ktss.c: configure ist1 to use a dedicated stack |
| 3923 |
* i386/i386/trap.c: add double fault handler, which just prints the |
| 3924 |
state and panics. There is not much else to do in this case but it's |
| 3925 |
useful for troubleshooting |
| 3926 |
* x86_64/idt_inittab.S: allow to specify an interrupt stack for custom |
| 3927 |
handlers |
| 3928 |
* x86_64/locore.S: add double fault handler |
| 3929 |
Message-Id: <[email protected]> |
| 3930 |
|
| 3931 |
2023-07-05 Sergey Bugaev <[email protected]> |
| 3932 |
|
| 3933 |
vm: Make vm_object_coalesce return new object and offset |
| 3934 |
vm_object_coalesce() callers used to rely on the fact that it always |
| 3935 |
merged the next_object into prev_object, potentially destroying |
| 3936 |
next_object and leaving prev_object the result of the whole operation. |
| 3937 |
|
| 3938 |
After ee65849bec5da261be90f565bee096abb4117bdd |
| 3939 |
"vm: Allow coalescing null object with an internal object", this is no |
| 3940 |
longer true, since in case of prev_object == VM_OBJECT_NULL and |
| 3941 |
next_object != VM_OBJECT_NULL, the overall result is next_object, not |
| 3942 |
prev_object. The current callers are prepared to deal with this since |
| 3943 |
they handle this case seprately anyway, but the following commit will |
| 3944 |
introduce another caller that handles both cases in the same code path. |
| 3945 |
|
| 3946 |
So, declare the way vm_object_coalesce() coalesces the two objects its |
| 3947 |
implementation detail, and make it return the resulting object and the |
| 3948 |
offset into it explicitly. This simplifies the callers, too. |
| 3949 |
Message-Id: <[email protected]> |
| 3950 |
|
| 3951 |
2023-07-03 Sergey Bugaev <[email protected]> |
| 3952 |
|
| 3953 |
vm: Eagerly release deallocated pages |
| 3954 |
If a deallocated VM map entry refers to an object that only has a single |
| 3955 |
reference and doesn't have a pager port, we can eagerly release any |
| 3956 |
physical pages that were contained in the deallocated range. |
| 3957 |
|
| 3958 |
This is not a 100% solution: it is still possible to "leak" physical |
| 3959 |
pages that can never appear in virtual memory again by creating several |
| 3960 |
references to a memory object (perhaps by forking a VM map with |
| 3961 |
VM_INHERIT_SHARE) and deallocating the pages from all the maps referring |
| 3962 |
to the object. That being said, it should help to release the pages in |
| 3963 |
the common case sooner. |
| 3964 |
Message-Id: <[email protected]> |
| 3965 |
|
| 3966 |
2023-07-03 Sergey Bugaev <[email protected]> |
| 3967 |
|
| 3968 |
vm: Allow coalescing entries forward |
| 3969 |
When entering an object into a map, try to extend the next entry |
| 3970 |
backward, in addition to the previously existing attempt to extend the |
| 3971 |
previous entry forward. |
| 3972 |
Message-Id: <[email protected]> |
| 3973 |
|
| 3974 |
2023-07-03 Sergey Bugaev <[email protected]> |
| 3975 |
|
| 3976 |
vm: Allow coalescing null object with an internal object |
| 3977 |
Previously, vm_object_coalesce would only succeed with next_object being |
| 3978 |
VM_OBJECT_NULL (and with the previous patch, with the two object |
| 3979 |
references pointing to the same object). This patch additionally allows |
| 3980 |
the inverse: prev_object being VM_OBJECT_NULL and next_object being some |
| 3981 |
internal VM object that we have not created a pager port for, provided |
| 3982 |
the offset of the existing mapping in the object allows for placing the |
| 3983 |
new mapping before it. |
| 3984 |
|
| 3985 |
This is not used anywhere at the moment (the only caller, vm_map_enter, |
| 3986 |
ensures that next_object is either VM_OBJECT_NULL or an object that has |
| 3987 |
a pager port), but it will get used with the next patch. |
| 3988 |
Message-Id: <[email protected]> |
| 3989 |
|
| 3990 |
2023-07-03 Sergey Bugaev <[email protected]> |
| 3991 |
|
| 3992 |
vm: Allow coalescing a VM object with itself |
| 3993 |
If a mapping of an object is made right next to another mapping of the |
| 3994 |
same object have the same properties (protection, inheritance, etc.), |
| 3995 |
Mach will now expand the previous VM map entry to cover the new address |
| 3996 |
range instead of creating a new entry. |
| 3997 |
Message-Id: <[email protected]> |
| 3998 |
|
| 3999 |
2023-07-03 Sergey Bugaev <[email protected]> |
| 4000 |
|
| 4001 |
Shrink struct vm_page size |
| 4002 |
struct vm_page is supposed to be a "small structure", but it takes up 96 |
| 4003 |
bytes on x86_64 (to represent a 4k page). By utilizing bitfields and |
| 4004 |
strategically reordering members to avoid excessive padding, it can be |
| 4005 |
shrunk to 80 bytes. |
| 4006 |
|
| 4007 |
- page_lock and unlock_request only need to store a bitmask of |
| 4008 |
VM_PROT_READ, VM_PROT_WRITE, and VM_PROT_EXECUTE. Even though the |
| 4009 |
special values VM_PROT_NO_CHANGE and VM_PROT_NOTIFY are defined, they |
| 4010 |
are not used for the two struct vm_page members. |
| 4011 |
|
| 4012 |
- type and seg_index both need to store one of the four possible values |
| 4013 |
in the range from 0 to 3. Two bits are sufficient for this. |
| 4014 |
|
| 4015 |
- order needs to store a number from 0 to VM_PAGE_NR_FREE_LISTS (which |
| 4016 |
is 11), or a special value VM_PAGE_ORDER_UNLISTED. Four bits are |
| 4017 |
sufficient for this. |
| 4018 |
|
| 4019 |
No functional change. |
| 4020 |
Message-Id: <[email protected]> |
| 4021 |
|
| 4022 |
2023-06-20 Damien Zammit <[email protected]> |
| 4023 |
|
| 4024 |
i386/apic.c: Pre-initialize the lapic pointer with a dummy structure |
| 4025 |
Fixes an early crash when APIC is defined, NCPUS > 1 and LINUX_DEV is not defined. |
| 4026 |
|
| 4027 |
CPU_NUMBER can now be called before the local apic pointer is properly |
| 4028 |
initialized. |
| 4029 |
Message-Id: <[email protected]> |
| 4030 |
|
| 4031 |
2023-06-18 Sergey Bugaev <[email protected]> |
| 4032 |
|
| 4033 |
Fix copying in MACH_PORT_DEAD on x86_64 |
| 4034 |
We need to properly convert MACH_PORT_NAME_DEAD (which is 32-bit -1) |
| 4035 |
into IO_DEAD, which is 64-bit -1. |
| 4036 |
|
| 4037 |
To reproduce: |
| 4038 |
|
| 4039 |
$ portinfo -va 1 |
| 4040 |
(see the Mach crash trying to access a port at 0xffffffff) |
| 4041 |
Message-Id: <[email protected]> |
| 4042 |
|
| 4043 |
2023-06-17 Luca Dariz <[email protected]> |
| 4044 |
|
| 4045 |
x86_64: add a critical section on entry and exit from syscall/sysret |
| 4046 |
When entering a syscall we're still using the user stack, so we can't |
| 4047 |
reliably handle exceptions or interrupts, otherwise a user thread can |
| 4048 |
easily crash the machine with an invalid stack. Instead, disable |
| 4049 |
interrupts and (hopefullly) avoid traps in the fragments where we need |
| 4050 |
to have the user stack in RSP. |
| 4051 |
|
| 4052 |
* i386/i386/ldt.c: mask interrupts and IOPL on syscall entry |
| 4053 |
* x86_64/locore.S: keep interrupts disabled when we use the user stack |
| 4054 |
|
| 4055 |
2023-06-17 Luca Dariz <[email protected]> |
| 4056 |
|
| 4057 |
x86_64: use solid intstack already during bootstrap |
| 4058 |
* x86_64/boothdr.S: there is no reason to not use it right away |
| 4059 |
Message-Id: <[email protected]> |
| 4060 |
|
| 4061 |
2023-06-12 Flavio Cruz <[email protected]> |
| 4062 |
|
| 4063 |
copyinmsg: allow for the last message element to have msgt_number = 0. |
| 4064 |
When copying messages from user space, some messages may have |
| 4065 |
mach_msg_type_t with msgt_number = 0 and no data after. This is a valid |
| 4066 |
message and we want to allow that. |
| 4067 |
|
| 4068 |
I found this bug when testing "[PATCH gnumach] Update the |
| 4069 |
64bit RPC ABI to be simpler" and attempting to run a basic Hurd x86_64 that can start a |
| 4070 |
bash shell. When mach_msg_type_long_t is the same size as |
| 4071 |
mach_msg_type_t this bug happens quite frequently and prevents the |
| 4072 |
system from starting properly. |
| 4073 |
Message-Id: <[email protected]> |
| 4074 |
|
| 4075 |
2023-06-12 Samuel Thibault <[email protected]> |
| 4076 |
|
| 4077 |
intr: Fix crash on irq notification port destruction |
| 4078 |
When the Linux IRQ driver is used we don't really control the list, so |
| 4079 |
we end up with a small leak. |
| 4080 |
|
| 4081 |
2023-05-26 Luca Dariz <[email protected]> |
| 4082 |
|
| 4083 |
x86_64: add 64-bit registers when dumping thread state |
| 4084 |
* i386/i386/debug_i386.c: when using a 64-bit userspace we need to use |
| 4085 |
RAX and so on, and we can ignore most segments except FS/GS, but |
| 4086 |
only the base address is useful. |
| 4087 |
Message-Id: <[email protected]> |
| 4088 |
|
| 4089 |
x86_64: enable code for managing interrupts |
| 4090 |
* device/ds_routines.c: enable interrupt registration and acknowledge |
| 4091 |
for x86_64. We can reuse the 32-bit mechanisms. |
| 4092 |
Message-Id: <[email protected]> |
| 4093 |
|
| 4094 |
pmap: only map lower BIOS memory 1:1 when using Linux drivers |
| 4095 |
* i386/intel/pmap.c: add the check for LINUX_DEV; we could also check |
| 4096 |
for !__x86_64__, as this config would break ther kernel map by |
| 4097 |
removing the BIOS mem map, needed by the console and keyboard |
| 4098 |
drivers, but hopefully we won't need to enable Linux drivers on |
| 4099 |
x86_64. |
| 4100 |
Message-Id: <[email protected]> |
| 4101 |
|
| 4102 |
2023-05-26 Samuel Thibault <[email protected]> |
| 4103 |
|
| 4104 |
kdb: Add showing new 64bit registers |
| 4105 |
|
| 4106 |
Xen 64bit: Also put kernel at end of addressing space |
| 4107 |
|
| 4108 |
xen: Fix 64bit build |
| 4109 |
|
| 4110 |
2023-05-21 Luca Dariz <[email protected]> |
| 4111 |
|
| 4112 |
x86_64: fix APIC initialization |
| 4113 |
* i386/i386at/acpi_parse_apic.c: use vm_offset_t instead of uint32_t |
| 4114 |
for vm addresses |
| 4115 |
* x86_64/Makefrag.am: support --enable-apic |
| 4116 |
Message-Id: <[email protected]> |
| 4117 |
|
| 4118 |
x86_64: push user's VM_MAX_ADDRESS |
| 4119 |
* i386/include/mach/i386/vm_param.h: check for both KERNEL and USER32 |
| 4120 |
to differentiate between user/kernel on x86_64, and push the upper |
| 4121 |
limit of user address space to 128 TB. |
| 4122 |
Message-Id: <[email protected]> |
| 4123 |
|
| 4124 |
2023-05-21 Samuel Thibault <[email protected]> |
| 4125 |
|
| 4126 |
pmap: Simplify code |
| 4127 |
Notably, ptes_per_vm_page is meaninful for the pte level anyway. |
| 4128 |
|
| 4129 |
2023-05-21 Luca Dariz <[email protected]> |
| 4130 |
|
| 4131 |
pmap: dynamically allocate the whole user page tree map |
| 4132 |
* i386/intel/pmap.c: switch to dynamic allocation of all the page tree |
| 4133 |
map levels for the user-space address range, using a separate kmem |
| 4134 |
cache for each level. This allows to extend the usable memory space |
| 4135 |
on x86_64 to use more than one L3 page for user space. The kernel |
| 4136 |
address map is left untouched for now as it needs a different |
| 4137 |
initialization. |
| 4138 |
* i386/intel/pmap.h: remove hardcoded user pages and add macro to |
| 4139 |
recontruct the page-to-virtual mapping |
| 4140 |
Message-Id: <[email protected]> |
| 4141 |
|
| 4142 |
x86_64: fix descriptor loading for 64-bit addresses |
| 4143 |
* i386/i386/seg.h: use proper type for segment addresses. This is not |
| 4144 |
impacting any functionality on 64-bit, as segments limits are |
| 4145 |
ignored, but at least we silence a warning. |
| 4146 |
Message-Id: <[email protected]> |
| 4147 |
|
| 4148 |
2023-05-20 Samuel Thibault <[email protected]> |
| 4149 |
|
| 4150 |
Ship missing msr.h file |
| 4151 |
|
| 4152 |
2023-05-18 Luca Dariz <[email protected]> |
| 4153 |
|
| 4154 |
fix fs/gs save/restore and USER32 |
| 4155 |
* x86_64/locore.S: fix PUSH_FSGS -> _ISR and always make room for |
| 4156 |
fsgsbase on a 64-bit kernel. |
| 4157 |
Message-Id: <[email protected]> |
| 4158 |
|
| 4159 |
2023-05-17 Sergey Bugaev <[email protected]> |
| 4160 |
|
| 4161 |
x86_64: Attempt to fix ast_from_interrupt |
| 4162 |
Message-Id: <[email protected]> |
| 4163 |
|
| 4164 |
2023-05-17 Flavio Cruz <[email protected]> |
| 4165 |
|
| 4166 |
Fix task_info for TASK_THREAD_TIMES_INFO. |
| 4167 |
We are checking for the existence of time_value64_t but we didn't add |
| 4168 |
that to the task_thread_times_info structure. |
| 4169 |
Message-Id: <[email protected]> |
| 4170 |
|
| 4171 |
2023-05-15 Sergey Bugaev <[email protected]> |
| 4172 |
|
| 4173 |
x86_64: Fix reporting fsgs base in thread_get_state () |
| 4174 |
Fixes 31dd30a94a682955c3c9e2f42252b4a07687067a "add setting gs/fsbase". |
| 4175 |
Message-Id: <[email protected]> |
| 4176 |
|
| 4177 |
2023-05-12 Sergey Bugaev <[email protected]> |
| 4178 |
|
| 4179 |
x86_64: Check for AST when exiting a syscall |
| 4180 |
...like it's already done when exiting a trap. This is required, since |
| 4181 |
handing a syscall can result in an AST; in particular this happens when |
| 4182 |
the current thread is being terminated, which sets AST_TERMINATE and |
| 4183 |
expects the thread to never return to userspace. |
| 4184 |
|
| 4185 |
Fixes a kernel crash upon calling exit () or pthread_exit () in glibc. |
| 4186 |
Message-Id: <[email protected]> |
| 4187 |
|
| 4188 |
2023-05-12 Sergey Bugaev <[email protected]> |
| 4189 |
|
| 4190 |
x86_64: Fix updating fsgs base on context switch |
| 4191 |
Commit 31dd30a94a682955c3c9e2f42252b4a07687067a "add setting gs/fsbase" |
| 4192 |
added the code to set fs and gs bases on context_switch. However, this |
| 4193 |
was only being done when switching context via the explicit |
| 4194 |
switch_context() method, but not in other cases where the context is |
| 4195 |
switched, such as with call_continuation(). |
| 4196 |
|
| 4197 |
Instead, put setting fsgs base into switch_ktss(), where it will be |
| 4198 |
called in all cases. |
| 4199 |
Message-Id: <[email protected]> |
| 4200 |
|
| 4201 |
2023-05-11 Samuel Thibault <[email protected]> |
| 4202 |
|
| 4203 |
Do not expose CPU_TYPE_X86_64 when running 32bit userland |
| 4204 |
So that userland's uname -m still reports i686-AT386. |
| 4205 |
|
| 4206 |
Keep host_get_kernel_version for USER32-on-x86_64 case |
| 4207 |
|
| 4208 |
2023-05-11 Flavio Cruz <[email protected]> |
| 4209 |
|
| 4210 |
Remove host_kernel_version RPC for x86_64 |
| 4211 |
We can fast track the simplification of the RPC ABI for x86_64 if we don't have |
| 4212 |
MACH_MSG_TYPE_STRING used in RPCs which forces msgt_size to use more than 8 |
| 4213 |
bits. |
| 4214 |
Message-Id: <ZFht+/[email protected]> |
| 4215 |
|
| 4216 |
2023-05-06 Flavio Cruz <[email protected]> |
| 4217 |
|
| 4218 |
Delete include/mach/rpc.h |
| 4219 |
File is unused. |
| 4220 |
Message-Id: <[email protected]> |
| 4221 |
|
| 4222 |
2023-05-06 Samuel Thibault <[email protected]> |
| 4223 |
|
| 4224 |
x86_64: Add CPU_TYPE_X86_64 CPU type |
| 4225 |
|
| 4226 |
2023-05-05 Flavio Cruz <[email protected]> |
| 4227 |
|
| 4228 |
Use designated initializers in kern/ipc_kobject.c |
| 4229 |
msgt_deallocate was not initialized explicitly, this fixes that too. |
| 4230 |
Message-Id: <ZFM2cLr1Ms/[email protected]> |
| 4231 |
|
| 4232 |
Improve portability for device/net_io.c and use designated initializers |
| 4233 |
Message-Id: <[email protected]> |
| 4234 |
|
| 4235 |
2023-05-04 Flavio Cruz <[email protected]> |
| 4236 |
|
| 4237 |
Use designated initializers in kern/exception.c |
| 4238 |
Message-Id: <ZFLq5/[email protected]> |
| 4239 |
|
| 4240 |
2023-05-02 Flavio Cruz <[email protected]> |
| 4241 |
|
| 4242 |
Implement mig_deallocate to free memory when kernel server RPC succeeds |
| 4243 |
In case the kernel interfaces use dynamically sized strings, we will |
| 4244 |
end up calling mig_deallocate to free the out of line string that was copied |
| 4245 |
into the kernel. As a matter of contract such type of data is freed |
| 4246 |
automatically either in kernel code when the RPC fails or in the MiG |
| 4247 |
stub if it succeeds. |
| 4248 |
|
| 4249 |
This was tested by changing task_set_name to use dynamic strings and making |
| 4250 |
sure out of line data is passed when strlen(name) > 4. |
| 4251 |
Message-Id: <ZFB64/[email protected]> |
| 4252 |
|
| 4253 |
2023-05-02 Flavio Cruz <[email protected]> |
| 4254 |
|
| 4255 |
Use mig_support.h prototypes instead of duplicating them. |
| 4256 |
* include/mach/mig_support.h: Drop the ifndef because this file is only |
| 4257 |
used internally to compile gnumach. We export mig_support.h from glibc |
| 4258 |
already. |
| 4259 |
* kern/ipc_mig.c: len should be vm_size_t. |
| 4260 |
* kern/ipc_mig.h: Drop duplicate prototypes. |
| 4261 |
Message-Id: <[email protected]> |
| 4262 |
|
| 4263 |
2023-05-01 Luca Dariz <[email protected]> |
| 4264 |
|
| 4265 |
add setting gs/fsbase |
| 4266 |
* i386/i386/i386asm.sym: add offsets for asm |
| 4267 |
* i386/i386/pcb.c: switch FSBASE/GSBASE on context switch and |
| 4268 |
implement accessors in thread setstatus/getstatus |
| 4269 |
* i386/i386/thread.h: add new state to thread saved state |
| 4270 |
* kern/thread.c: add i386_FSGS_BASE_STATE handler |
| 4271 |
* x86_64/locore.S: fix fs/gs handling, skipping the base address and |
| 4272 |
avoid resetting it by manually re-loading fs/gs |
| 4273 |
Message-Id: <[email protected]> |
| 4274 |
|
| 4275 |
2023-05-01 Luca Dariz <[email protected]> |
| 4276 |
|
| 4277 |
x86_64: add 64-bit syscall entry point |
| 4278 |
While theoretically we could still use the same call gate as for |
| 4279 |
32-bit userspace, it doesn't seem very common, and gcc seems to not |
| 4280 |
encode properly the instruction. Instead we use syscall/sysret as |
| 4281 |
other kernels (e.g. XNU,Linux). This version still has some |
| 4282 |
limitations, but should be enough to start working on the 64-bit user |
| 4283 |
space. |
| 4284 |
|
| 4285 |
* i386/i386/i386asm.sym: add more constants to fill pcb->iss |
| 4286 |
* i386/i386/ldt.c: configure 64-bit syscall entry point. We can just |
| 4287 |
check for the SEP bit as MSR are always available on x86_64. |
| 4288 |
* i386/i386/ldt.h: swap CS/DS segments order if !USER32 as required by |
| 4289 |
sysret |
| 4290 |
* i386/i386/locore.h: add syscall64 prototype |
| 4291 |
* i386/i386/msr.h: add MSR definitions and C read/write helpers |
| 4292 |
* i386/include/mach/i386/syscall_sw.h: remove old BSD_TRAP |
| 4293 |
* x86_64/Makefrag.am: selectively install syscall_sw.h depending on |
| 4294 |
USER32 |
| 4295 |
* x86_64/include/syscall_sw.h: add entry point template from user |
| 4296 |
space |
| 4297 |
* x86_64/locore.S: implement syscall64 entry point and use it when a |
| 4298 |
64-bit user-space is configured |
| 4299 |
Message-Id: <[email protected]> |
| 4300 |
|
| 4301 |
2023-04-29 Flavio Cruz <[email protected]> |
| 4302 |
|
| 4303 |
Use c_string for dev_name_t in the device subsystem. |
| 4304 |
Added device_open_new and device_open_new_request and reused the old MiG |
| 4305 |
ID for xxx_device_set_status which has not been in used in the past |
| 4306 |
decade. |
| 4307 |
|
| 4308 |
Note that device_open_new is gated on defining |
| 4309 |
DEVICE_ENABLE_DEVICE_OPEN_NEW because otherwise some hurd servers |
| 4310 |
wouldn't compile anymore unless patched. This macro allows us to control |
| 4311 |
the rollout. |
| 4312 |
Message-Id: <[email protected]> |
| 4313 |
|
| 4314 |
2023-04-27 Flavio Cruz <[email protected]> |
| 4315 |
|
| 4316 |
Update task_basic_info and thread_basic_info to include time_value64_t data. |
| 4317 |
RPCs remain compatible with existing clients but if they know about the |
| 4318 |
new size then we will populate the new fields. |
| 4319 |
Message-Id: <[email protected]> |
| 4320 |
|
| 4321 |
2023-04-20 Luca Dariz <[email protected]> |
| 4322 |
|
| 4323 |
fix copyoutmsg for 64-bit userspace |
| 4324 |
* x86_64/copy_user.c: use the correct user/kernel msg structure |
| 4325 |
Message-Id: <[email protected]> |
| 4326 |
|
| 4327 |
fix address fault for 32-on-64-bit syscall |
| 4328 |
* x86_64/locore.S: the faulty address is found in %rbp and not in |
| 4329 |
%rsi, so copy that in CR2 |
| 4330 |
Message-Id: <[email protected]> |
| 4331 |
|
| 4332 |
2023-04-11 Samuel Thibault <[email protected]> |
| 4333 |
|
| 4334 |
Fix Xen build |
| 4335 |
|
| 4336 |
2023-04-10 Samuel Thibault <[email protected]> |
| 4337 |
|
| 4338 |
Fix missing shipping required header |
| 4339 |
|
| 4340 |
2023-04-10 Flavio Cruz <[email protected]> |
| 4341 |
|
| 4342 |
Delete include/mach/default_pager_helper.defs |
| 4343 |
Not used. |
| 4344 |
Message-Id: <[email protected]> |
| 4345 |
|
| 4346 |
2023-04-07 Flavio Cruz <[email protected]> |
| 4347 |
|
| 4348 |
Remove host_get_boot_info and host_get_kernel_boot_info since they are not used. |
| 4349 |
host_get_kernel_boot_info was added recently to fix the use of |
| 4350 |
MACH_MSG_TYPE_STRING. |
| 4351 |
Message-Id: <[email protected]> |
| 4352 |
|
| 4353 |
2023-04-04 Flavio Cruz <[email protected]> |
| 4354 |
|
| 4355 |
Align the user stack correctly for 64 bit programs. |
| 4356 |
* i386/i386/thread.h: Define USER_STACK_ALIGN which is 16-byte for 64 bit |
| 4357 |
programs as recommended by the System V AMD64 guidelines. Also define |
| 4358 |
KERNEL_STACK_ALIGN which can differ from user land. |
| 4359 |
* i386/i386/pcb.c: Use USER_STACK_ALIGN to align the bootstrap arguments and |
| 4360 |
ultimately the stack where the program starts on. |
| 4361 |
* kern/bootstrap.c: Do not align arg_len here since it will be aligned |
| 4362 |
in set_user_regs. |
| 4363 |
Message-Id: <[email protected]> |
| 4364 |
|
| 4365 |
2023-04-03 Sergey Bugaev <[email protected]> |
| 4366 |
|
| 4367 |
Make exception subcode a long |
| 4368 |
On EXC_BAD_ACCESS, exception subcode is used to pass the faulting memory |
| 4369 |
address, so it needs to be (at least) pointer-sized. Thus, make it into |
| 4370 |
a long. |
| 4371 |
|
| 4372 |
This requires matching changes in glibc and the Hurd. |
| 4373 |
Message-Id: <[email protected]> |
| 4374 |
|
| 4375 |
2023-04-03 Sergey Bugaev <[email protected]> |
| 4376 |
|
| 4377 |
Remove bootstrap.defs |
| 4378 |
As far as I can see, this file was imported in the very beginning of GNU Mach |
| 4379 |
history, and unused since then. Nobody implements or uses this interface. GNU |
| 4380 |
Mach uses a different way to pass the privileged ports to the bootstrap tasks: |
| 4381 |
instead of the task(s) actively asking for the ports in an RPC, the ports are |
| 4382 |
preemptively inserted into the IPC space(s) of the task(s), as configured by |
| 4383 |
the boot script. |
| 4384 |
|
| 4385 |
Remove bootstrap.defs so as to not confuse anyone into thinking it works. |
| 4386 |
Message-Id: <[email protected]> |
| 4387 |
|
| 4388 |
2023-04-03 Sergey Bugaev <[email protected]> |
| 4389 |
|
| 4390 |
Add i386_fsgs_base_state |
| 4391 |
Message-Id: <[email protected]> |
| 4392 |
|
| 4393 |
2023-04-03 Flavio Cruz <[email protected]> |
| 4394 |
|
| 4395 |
Use c_string to define symtab_name_t. |
| 4396 |
As mentioned in 5447f965, the c_string type correctly uses |
| 4397 |
msgt_size/msgt_number, resulting in a more compact ABI that doesn't |
| 4398 |
require mach_msg_type_long_t. |
| 4399 |
|
| 4400 |
I redefined host_load_symbol_table with a new Id since this is just a |
| 4401 |
debug RPC and is not used anywhere. |
| 4402 |
Message-Id: <[email protected]> |
| 4403 |
|
| 4404 |
2023-03-13 Samuel Thibault <[email protected]> |
| 4405 |
|
| 4406 |
Drop spurious tabs |
| 4407 |
|
| 4408 |
2023-03-13 Flavio Cruz <[email protected]> |
| 4409 |
|
| 4410 |
Track task and thread time using time_value64_t. |
| 4411 |
Changed kern/timer.c to use the higher precision time_value64_t. |
| 4412 |
Of course, this won't suffer from the 2038 overflow but it does provide |
| 4413 |
nanosecond precision (if gnumach ever uses a better timer) and |
| 4414 |
moves us closer to only having time_value64_t. |
| 4415 |
Message-Id: <[email protected]> |
| 4416 |
|
| 4417 |
Use host_get_time64 in glue code |
| 4418 |
Message-Id: <[email protected]> |
| 4419 |
|
| 4420 |
2023-03-13 Flavio Cruz <[email protected]> |
| 4421 |
|
| 4422 |
Use c_string to define host_get_kernel_version and host_get_kernel_boot_info. |
| 4423 |
The existing definitions for kernel_version_t and kernel_boot_info_t use |
| 4424 |
(MACH_MSG_TYPE_STRING, length*8) which result in message types that have |
| 4425 |
a single element of 512 or 4096 bytes (set as msgt_size). This results |
| 4426 |
in MiG generating mach_msg_type_long_t. Using c_string has the benefit |
| 4427 |
of moving this size to be defined as msgt_number which doesn't overflow. |
| 4428 |
This will allow us to simplify the 64 bit RPC ABI since all msgt_size can |
| 4429 |
be defined with just 8 bits (as it should be expected). |
| 4430 |
|
| 4431 |
The resulting implementation is the same but we still need to define new |
| 4432 |
RPCs since server and user expect different mach_msg_type_t. |
| 4433 |
Message-Id: <[email protected]> |
| 4434 |
|
| 4435 |
2023-03-12 Flavio Cruz <[email protected]> |
| 4436 |
|
| 4437 |
Update thread and task creation time to use time_value64_t |
| 4438 |
Message-Id: <[email protected]> |
| 4439 |
|
| 4440 |
2023-03-11 Damien Zammit <[email protected]> |
| 4441 |
|
| 4442 |
ioapic: Timer calibrated in 10 mach ticks |
| 4443 |
hz variable is the number of mach ticks in 1 second. |
| 4444 |
We want to know how many lapic ticks in 1 mach tick. |
| 4445 |
Therefore, we set a timer for 10 mach ticks and divide |
| 4446 |
the lapic stopwatch counter value by 10. |
| 4447 |
Message-Id: <[email protected]> |
| 4448 |
|
| 4449 |
2023-03-08 Flavio Cruz <[email protected]> |
| 4450 |
|
| 4451 |
Align mach_msg_type_t and mach_msg_type_long_t with the same alignment as uintptr_t. |
| 4452 |
With this change, any 64 bit code using the IPC subsystem without relying on |
| 4453 |
MiG will work without any changes. We have a few examples of this inside gnumach but |
| 4454 |
also in the Hurd servers. For example, in hurd/console/display.c |
| 4455 |
|
| 4456 |
typedef struct |
| 4457 |
{ |
| 4458 |
mach_msg_header_t Head; |
| 4459 |
mach_msg_type_t ticknoType; |
| 4460 |
natural_t tickno; |
| 4461 |
mach_msg_type_t changeType; |
| 4462 |
file_changed_type_t change; |
| 4463 |
mach_msg_type_t startType; |
| 4464 |
loff_t start; |
| 4465 |
mach_msg_type_t endType; |
| 4466 |
loff_t end; |
| 4467 |
} Request; |
| 4468 |
|
| 4469 |
This will now work correctly in 64 bits, without requiring any explicit padding. |
| 4470 |
|
| 4471 |
As a follow up, we can simplify mach_msg_type_long_t so that we |
| 4472 |
only need an 8 byte structure where the second field will include the |
| 4473 |
number of elements for the long form. This is already included in |
| 4474 |
mach_msg_type_t as unused_msgtl_number. |
| 4475 |
Message-Id: <[email protected]> |
| 4476 |
|
| 4477 |
2023-03-07 Samuel Thibault <[email protected]> |
| 4478 |
|
| 4479 |
lock_mon: Fix warnings |
| 4480 |
|
| 4481 |
2023-03-07 Damien Zammit <[email protected]> |
| 4482 |
|
| 4483 |
kern: Fix MACH_LOCK_MON lock monitoring debug |
| 4484 |
TESTED: |
| 4485 |
- by setting MACH_LOCK_MON to 1 in configfrag.ac |
| 4486 |
and running "show all slocks" in kdb |
| 4487 |
- does not break default configured kernel |
| 4488 |
Message-Id: <[email protected]> |
| 4489 |
|
| 4490 |
2023-03-07 Samuel Thibault <[email protected]> |
| 4491 |
|
| 4492 |
apic: Drop declaration of inexisting function |
| 4493 |
|
| 4494 |
2023-03-07 Damien Zammit <[email protected]> |
| 4495 |
|
| 4496 |
lapic timer: Calibrate via mach timer not PIT |
| 4497 |
Previously the lapic timer was calibrated by one-shot PIT timer2. |
| 4498 |
This method can be buggy and generally unused in emulation environments. |
| 4499 |
This patch reworks the timer calibration to use a mach timer based |
| 4500 |
on regular PIT interrupts to remapped IOAPIC pin. |
| 4501 |
This also changes the primary clock source to use PIT timer0 remapped |
| 4502 |
to an IOAPIC pin when APIC mode is enabled, instead of a periodic lapic |
| 4503 |
timer. |
| 4504 |
Message-Id: <[email protected]> |
| 4505 |
|
| 4506 |
2023-02-27 Flavio Cruz <[email protected]> |
| 4507 |
|
| 4508 |
Support alignment requirements for a 64 bit kernel. |
| 4509 |
We introduce both a user alignment and a kernel alignment. These are |
| 4510 |
separate requirements since for 64 bit with a 32 bit kernel we need to |
| 4511 |
ensure the kernel can consume messages that are 8-byte aligned. This |
| 4512 |
change removes any possibility of undefined behavior and also allows the |
| 4513 |
kernel to support 64 bit RPCs for the userland. |
| 4514 |
|
| 4515 |
A lot of the code that performs alignment was simplified under the |
| 4516 |
assumption that the message headers are well aligned. To enforce that |
| 4517 |
going forward, a few static assertions were added. |
| 4518 |
Message-Id: <Y/[email protected]> |
| 4519 |
|
| 4520 |
2023-02-27 Luca Dariz <[email protected]> |
| 4521 |
|
| 4522 |
x86_64: fix user trap during syscall with an invalid user stack |
| 4523 |
* i386/i386/locore.h: user vm_offset_t in the recovery_table |
| 4524 |
* x86_64/locore.S: fix RECOVERY() location and keep user regs in %rbx, |
| 4525 |
as it seems the convention. This only applies to 32-bit userspace. |
| 4526 |
Message-Id: <[email protected]> |
| 4527 |
|
| 4528 |
fix port name copyin |
| 4529 |
* x86_64/copy_user.c: in mach_msg_user_header_t there are some holes |
| 4530 |
that need to be cleared, to adapt to the different layout of |
| 4531 |
mach_msg_header_t. |
| 4532 |
Message-Id: <[email protected]> |
| 4533 |
|
| 4534 |
fix copyin/outmsg header for ! USER32 |
| 4535 |
* x86_64/copy_user.c: fix copyin/out, we already have a pointer to |
| 4536 |
user/kernel buffers |
| 4537 |
Message-Id: <[email protected]> |
| 4538 |
|
| 4539 |
x86_64: allow compilation if ! USER32 |
| 4540 |
* i386/intel/pmap.c: remove #error and allow compilation, keeping a |
| 4541 |
reminder to fix the pmap module. |
| 4542 |
Message-Id: <[email protected]> |
| 4543 |
|
| 4544 |
2023-02-26 Damien Zammit <[email protected]> |
| 4545 |
|
| 4546 |
lapic timer: Calibrate based on 10 PIT sleeps for 10ms |
| 4547 |
NB: This relies on a fix for QEMU as one-shot PIT mode |
| 4548 |
is currently broken in qemu. |
| 4549 |
Message-Id: <[email protected]> |
| 4550 |
|
| 4551 |
2023-02-26 Damien Zammit <[email protected]> |
| 4552 |
|
| 4553 |
pit: Use corrected clock frequency |
| 4554 |
All PC compatibles operate the PIT at a clock rate of (105/88) MHz |
| 4555 |
|
| 4556 |
Message-Id: <[email protected]> |
| 4557 |
|
| 4558 |
2023-02-26 Damien Zammit <[email protected]> |
| 4559 |
|
| 4560 |
pit: Fix shadowed hz variable && define modes correctly |
| 4561 |
Message-Id: <[email protected]> |
| 4562 |
|
| 4563 |
2023-02-25 Damien Zammit <[email protected]> |
| 4564 |
|
| 4565 |
kd_mouse: Fix IBM mouse irq getting stuck and blocking console |
| 4566 |
TESTED: With and without apic/smp |
| 4567 |
|
| 4568 |
Message-Id: <[email protected]> |
| 4569 |
|
| 4570 |
2023-02-23 Flavio Cruz <[email protected]> |
| 4571 |
|
| 4572 |
Add TIME_VALUE64_TO_TIMESPEC and TIMESPEC_TO_TIME_VALUE64 |
| 4573 |
We can use these in userland with the new time_value64_t struct. |
| 4574 |
Message-Id: <Y/[email protected]> |
| 4575 |
|
| 4576 |
2023-02-20 Flavio Cruz <[email protected]> |
| 4577 |
|
| 4578 |
Delete include/mach/msg_type.h |
| 4579 |
File is not included anywhere. |
| 4580 |
Message-Id: <Y/[email protected]> |
| 4581 |
|
| 4582 |
2023-02-19 Damien Zammit <[email protected]> |
| 4583 |
|
| 4584 |
model_dep: Call acpi_apic_init if APIC defined |
| 4585 |
Fixes boot --enable-ncpus=1 with --enable-apic configuration |
| 4586 |
albeit the keyboard is stuck and network cannot be accessed. |
| 4587 |
|
| 4588 |
Error messages: |
| 4589 |
|
| 4590 |
Timeout reached while wating for return value |
| 4591 |
/bin/console: Could not receive return value from daemon process: Connection timed out |
| 4592 |
Message-Id: <[email protected]> |
| 4593 |
|
| 4594 |
2023-02-16 Luca Dariz <[email protected]> |
| 4595 |
|
| 4596 |
x86_64: set user segments as 64-bit if ! USER32 |
| 4597 |
* i386/i386/ldt.c: set the L bit if user-space is 64-bit |
| 4598 |
Message-Id: <[email protected]> |
| 4599 |
|
| 4600 |
x86_64: fix argument passing to bootstrap modules if ! USER32 |
| 4601 |
* kern/bootstrap.c: replace integers with long/vm_offset_t |
| 4602 |
Message-Id: <[email protected]> |
| 4603 |
|
| 4604 |
x86_64: load Elf64 bootstrap modules if ! USER32 |
| 4605 |
* i386/include/mach/i386/exec/elf.h: add Elf64 definitions and define |
| 4606 |
common Elf structures, corresponding to 32/64 bit variants at |
| 4607 |
compile time. |
| 4608 |
* include/mach/exec/elf.h: add Elf64 definitions |
| 4609 |
* kern/elf-load.c: use common Elf structures |
| 4610 |
Message-Id: <[email protected]> |
| 4611 |
|
| 4612 |
x86_64: fix some compiler warnings |
| 4613 |
* i386/include/mach/i386/vm_param.h: extend the vm constants to ULL on |
| 4614 |
x86_64 to avoid a shift overflow warning |
| 4615 |
* i386/intel/pmap.c: fix cast and unused variables |
| 4616 |
Message-Id: <[email protected]> |
| 4617 |
|
| 4618 |
2023-02-16 Damien Zammit <[email protected]> |
| 4619 |
|
| 4620 |
trap: Fix Wformat issues |
| 4621 |
Message-Id: <[email protected]> |
| 4622 |
|
| 4623 |
2023-02-16 Samuel Thibault <[email protected]> |
| 4624 |
|
| 4625 |
intr: Simplify clearing after intr port deallocation |
| 4626 |
This notably avoids calling ipc_port_release from the interrupt handler, |
| 4627 |
which was completely unsafe. |
| 4628 |
|
| 4629 |
2023-02-15 Samuel Thibault <[email protected]> |
| 4630 |
|
| 4631 |
Document spl levels of locks taken during interrupts |
| 4632 |
|
| 4633 |
2023-02-15 Flavio Cruz <[email protected]> |
| 4634 |
|
| 4635 |
Define prototype for bogus in gensym.awk |
| 4636 |
Otherwise gcc will complain that bogus does not have a prototype. |
| 4637 |
Message-Id: <[email protected]> |
| 4638 |
|
| 4639 |
Rename efl to rfl for x86_64 in struct i386_thread_state |
| 4640 |
Message-Id: <[email protected]> |
| 4641 |
|
| 4642 |
2023-02-15 Samuel Thibault <[email protected]> |
| 4643 |
|
| 4644 |
pmap: Make mapwindow per CPU |
| 4645 |
They are used temporarily without CPU exchanges, and may need to be used |
| 4646 |
concurrently so 2 slots only would not be enough anyway. This also saves |
| 4647 |
having to lock for them. |
| 4648 |
|
| 4649 |
timer: Fix atomicity of timer reads |
| 4650 |
Similarly to update_mapped_time/read_mapped_time, one need to |
| 4651 |
synchronize the writes and read to make sure they are performed in the |
| 4652 |
expected order. |
| 4653 |
|
| 4654 |
2023-02-15 Damien Zammit <[email protected]> |
| 4655 |
|
| 4656 |
Add missing init_fpu() for APs |
| 4657 |
Message-Id: <[email protected]> |
| 4658 |
|
| 4659 |
2023-02-15 Samuel Thibault <[email protected]> |
| 4660 |
|
| 4661 |
smp: Fix more busy loops |
| 4662 |
We need to avoid the kernel optimizing away the reads from |
| 4663 |
memory. Use a standard relaxing instruction for that. |
| 4664 |
|
| 4665 |
pmap: Do not TLB shootdown IPI for mapwindow updates |
| 4666 |
These are used only temporarily by the current processor only, so we don't |
| 4667 |
need to notify other processors about them. We however then should flush TLB |
| 4668 |
at allocation, to make sure we don't have some remnant. |
| 4669 |
|
| 4670 |
pmap: Fix busy loop waiting for pmap users |
| 4671 |
We need to avoid the kernel optimizing away the read from |
| 4672 |
pmap->cpus_using. Use a standard relaxing instruction for that. |
| 4673 |
|
| 4674 |
2023-02-15 Samuel Thibault <[email protected]> |
| 4675 |
|
| 4676 |
pmap: Do not send TLB flush IPI when a cpu is idle |
| 4677 |
MARK_CPU_ACTIVE already knows to flush TLB when a cpu comes out of idle. |
| 4678 |
|
| 4679 |
However, add memory barriers to be sure that setting cpu_update_needed is |
| 4680 |
seen before testing for cpus_idle. |
| 4681 |
|
| 4682 |
2023-02-14 Samuel Thibault <[email protected]> |
| 4683 |
|
| 4684 |
linux: Fix non-SMP build |
| 4685 |
|
| 4686 |
Fix warning |
| 4687 |
|
| 4688 |
2023-02-14 Damien Zammit <[email protected]> |
| 4689 |
|
| 4690 |
Remove verbose debug printfs |
| 4691 |
Message-Id: <[email protected]> |
| 4692 |
|
| 4693 |
Make curr_ipl[] per cpu |
| 4694 |
|
| 4695 |
2023-02-13 Damien Zammit <[email protected]> |
| 4696 |
|
| 4697 |
pmap: Signal cpu for TLB update if kernel_pmap |
| 4698 |
Message-Id: <[email protected]> |
| 4699 |
|
| 4700 |
interrupt.S: Dont change ipl for pmap_update_interrupt |
| 4701 |
Message-Id: <[email protected]> |
| 4702 |
|
| 4703 |
x86_64: Fix broken int_stack_base |
| 4704 |
Message-Id: <[email protected]> |
| 4705 |
|
| 4706 |
2023-02-13 Damien Zammit <[email protected]> |
| 4707 |
|
| 4708 |
cpu_number: Short circuit if smp init not done |
| 4709 |
This depends on serialised AP init patch. |
| 4710 |
|
| 4711 |
Fixes warnings spewing at boot with APIC and SMP |
| 4712 |
Message-Id: <[email protected]> |
| 4713 |
|
| 4714 |
2023-02-13 Samuel Thibault <[email protected]> |
| 4715 |
|
| 4716 |
mp_desc: Add missing setting PAE mode on AP |
| 4717 |
|
| 4718 |
2023-02-13 Damien Zammit <[email protected]> |
| 4719 |
|
| 4720 |
i386: Refactor int stacks to be per cpu for SMP |
| 4721 |
This also serialises the AP bringup, so paging can be enabled per cpu |
| 4722 |
one by one. |
| 4723 |
|
| 4724 |
Also-by: Almudena Garcia <[email protected]> |
| 4725 |
|
| 4726 |
2023-02-13 Flavio Cruz <[email protected]> |
| 4727 |
|
| 4728 |
Make mach_msg_header_t have the same size for both 64 bit kernel and userland. |
| 4729 |
This has several advantages: |
| 4730 |
1) We don't need to resize mach_msg_header_t, it is just a copy. |
| 4731 |
2) Mig won't require any changes because it statically computes the size |
| 4732 |
of mach_msg_header_t, otherwise we would need two sizes (28 vs 32 bytes). |
| 4733 |
Message-Id: <[email protected]> |
| 4734 |
|
| 4735 |
2023-02-13 Samuel Thibault <[email protected]> |
| 4736 |
|
| 4737 |
time_value: Fix rpc_time_value_t compatibility. |
| 4738 |
5fdc928d3d29 ("fix rpc time value for 64 bit") broke hurd build because |
| 4739 |
structures are never compatible in C. For userland we however know |
| 4740 |
that rpc_time_value is the same as time_value, so we can just typedef |
| 4741 |
rpc_time_value_t to struct time_value as userland is used to. |
| 4742 |
|
| 4743 |
2023-02-12 Flavio Cruz <[email protected]> |
| 4744 |
|
| 4745 |
Add x86_64 registers to i386_thread_state |
| 4746 |
This is required to implement ptrace. |
| 4747 |
Message-Id: <[email protected]> |
| 4748 |
|
| 4749 |
2023-02-12 Flavio Cruz <[email protected]> |
| 4750 |
|
| 4751 |
Consider protected payloads in mach_msg_header_t when resizing messages. |
| 4752 |
Protected payloads will be 8-byte longs which are the same size as |
| 4753 |
kernel ports. |
| 4754 |
|
| 4755 |
Also aligned all the structures to be 4-byte aligned since it makes it |
| 4756 |
easier to parse them as padding won't be added to mach_msg_user_header_t |
| 4757 |
before the protected payload. |
| 4758 |
Message-Id: <[email protected]> |
| 4759 |
|
| 4760 |
2023-02-12 Luca Dariz <[email protected]> |
| 4761 |
|
| 4762 |
move kernel virtual address space to upper addresses |
| 4763 |
* i386/i386/vm_param.h: adjust constants to the new kernel map |
| 4764 |
- the boothdr.S code already sets up a temporary map to higher |
| 4765 |
addresses, so we can use INIT_VM_MIN_KERNEL_ADDRESS as in xen |
| 4766 |
- increase the kernel map size to accomodate for bigger structures |
| 4767 |
and more memory |
| 4768 |
- adjust kernel max address and directmap limit |
| 4769 |
* i386/i386at/biosmem.c: enable directmap check also on x86_64 |
| 4770 |
* i386/include/mach/i386/vm_param.h: increase user virtual memory |
| 4771 |
limit as it's not conflicting with the kernel's anymore |
| 4772 |
* i386/intel/pmap.h: adjust lin2pdenum_cont() and INTEL_PTE_PFN to the |
| 4773 |
new kernel map |
| 4774 |
* x86_64/Makefrag.am: change KERNEL_MAP_BASE to be above 4G, and |
| 4775 |
according to mcmodel=kernel. This will allow to use the full memory |
| 4776 |
address space. |
| 4777 |
Message-Id: <[email protected]> |
| 4778 |
|
| 4779 |
separate initialization of kernel and user PTP tables |
| 4780 |
* i386/i386/vm_param.h: temporariliy fix kernel upper address |
| 4781 |
* i386/intel/pmap.c: split kernel and user L3 map initialization. For |
| 4782 |
simplicity in handling the different configurations, on 32-bit |
| 4783 |
(+PAE) the name PDPNUM_KERNEL is used in place of PDPNUM, while only |
| 4784 |
on x86_64 the PDPNUM_USER and PDPNUM_KERNEL are treated differently. |
| 4785 |
Also, change iterating over PTP tables in case the kernel map is not |
| 4786 |
right after the user map. |
| 4787 |
* i386/intel/pmap.h: define PDPNUM_USER and PDPNUM_KERNEL and move |
| 4788 |
PDPSHIFT to simplify ifdefs. |
| 4789 |
Message-Id: <[email protected]> |
| 4790 |
|
| 4791 |
extend data types to hold a 64-bit address |
| 4792 |
* i386/i386/trap.c: change from int to a proper type to hold a |
| 4793 |
register value |
| 4794 |
* x86_64/locore.S: use 64-bit register to avoid address truncation |
| 4795 |
Message-Id: <[email protected]> |
| 4796 |
|
| 4797 |
add more explicit names for user space virtual space limits |
| 4798 |
* i386/i386/vm_param.h: add VM_MAX/MIN_USER_ADDRESS to kernel headers. |
| 4799 |
* i386/i386/db_interface.c |
| 4800 |
* i386/i386/ldt.c |
| 4801 |
* i386/i386/pcb.c |
| 4802 |
* i386/intel/pmap.c |
| 4803 |
* kern/task.c: replace VM_MAX/MIN_ADDRESS with VM_MAX/MIN_USER_ADDRESS |
| 4804 |
Message-Id: <[email protected]> |
| 4805 |
|
| 4806 |
2023-02-12 Luca Dariz <[email protected]> |
| 4807 |
|
| 4808 |
use L4 page table directly on x86_64 instead of short-circuiting to pdpbase |
| 4809 |
This is a preparation to run the kernel on high addresses, where the |
| 4810 |
user vm region and the kernel vm region will use different L3 page |
| 4811 |
tables. |
| 4812 |
|
| 4813 |
* i386/intel/pmap.c: on x86_64, retrieve the value of pdpbase from the |
| 4814 |
L4 table, and add the pmap_pdp() helper (useful also for PAE). |
| 4815 |
* i386/intel/pmap.h: remove pdpbase on x86_64. |
| 4816 |
Message-Id: <[email protected]> |
| 4817 |
|
| 4818 |
2023-02-12 Luca Dariz <[email protected]> |
| 4819 |
|
| 4820 |
factor out PAE-specific bootstrap |
| 4821 |
* i386/intel/pmap.c: move it to pmap_bootstrap_pae() |
| 4822 |
Message-Id: <[email protected]> |
| 4823 |
|
| 4824 |
factor out xen-specific bootstrap |
| 4825 |
* i386/intel/pmap.c: move it to pmap_bootstrap_xen() |
| 4826 |
Message-Id: <[email protected]> |
| 4827 |
|
| 4828 |
2023-02-12 Samuel Thibault <[email protected]> |
| 4829 |
|
| 4830 |
pmap: Fix warning |
| 4831 |
|
| 4832 |
2023-02-12 Luca Dariz <[email protected]> |
| 4833 |
|
| 4834 |
fix x86_64 asm for higher kernel addresses |
| 4835 |
* x86_64/interrupt.S: use 64-bit registers as variables could be |
| 4836 |
stored at high addresses |
| 4837 |
* x86_64/locore.S: Likewise |
| 4838 |
Message-Id: <[email protected]> |
| 4839 |
|
| 4840 |
prepare pmap helpers for full 64 bit memory map |
| 4841 |
* i386/intel/pmap.c: start walking the page table tree from the L4 |
| 4842 |
table instead of the PDP table in pmap_pte() and pmap_pde(), |
| 4843 |
preparing for the kernel to run on high addresses. |
| 4844 |
Message-Id: <[email protected]> |
| 4845 |
|
| 4846 |
enable syscalls on x86_64 |
| 4847 |
Message-Id: <[email protected]> |
| 4848 |
|
| 4849 |
fix port name size in notifications |
| 4850 |
* ipc/ipc_machdep.h: define PORT_NAME_T_SIZE_IN_BITS |
| 4851 |
* ipc/ipc_notify.c: fix port name size in notification message |
| 4852 |
templates |
| 4853 |
Message-Id: <[email protected]> |
| 4854 |
|
| 4855 |
fix rpc time value for 64 bit |
| 4856 |
* include/mach/task_info.h: use rpc variant of time_value_t |
| 4857 |
* include/mach/thread_info.h: Likewise |
| 4858 |
* kern/mach_clock.c: use rpc variant of time_value_t in |
| 4859 |
read_time_stamp() |
| 4860 |
* kern/mach_clock.h: Likewise |
| 4861 |
* kern/thread.c: use rpc variant of thread_read_times() |
| 4862 |
* kern/timer.h_ add thread_read_times_rpc() by converting time_value_t |
| 4863 |
to the corresponding rpc structures inline. |
| 4864 |
Message-Id: <[email protected]> |
| 4865 |
|
| 4866 |
add L4 kmem cache for x86_64 |
| 4867 |
* i386/intel/pmap.c: allocate the L4 page table from a dedicate kmem |
| 4868 |
cache instead of the generic kernel map. |
| 4869 |
Also improve readability of nested ifdef's. |
| 4870 |
Message-Id: <[email protected]> |
| 4871 |
|
| 4872 |
fix hardcoded physical address |
| 4873 |
* i386/i386at/com.c use proper helper to convert physical to virtual |
| 4874 |
address. |
| 4875 |
Message-Id: <[email protected]> |
| 4876 |
|
| 4877 |
thread_getstatus: set unused members of thread state to 0 |
| 4878 |
* i386/i386/pcb.c: always set esp to 0, it seems unused. |
| 4879 |
Message-Id: <[email protected]> |
| 4880 |
|
| 4881 |
2023-02-09 Flavio Cruz <[email protected]> |
| 4882 |
|
| 4883 |
Remove a.out support for ddb |
| 4884 |
We haven't built gnumach using a.out for a very long time. |
| 4885 |
|
| 4886 |
Message-Id: <[email protected]> |
| 4887 |
|
| 4888 |
2023-02-09 Flavio Cruz <[email protected]> |
| 4889 |
|
| 4890 |
memory_object_create_proxy: avoid casting parameters to 32 bits since the types are correct now |
| 4891 |
Message-Id: <[email protected]> |
| 4892 |
|
| 4893 |
2023-02-09 Samuel Thibault <[email protected]> |
| 4894 |
|
| 4895 |
lock: Add missing def_simple_lock_data definition for ncpus=1 |
| 4896 |
|
| 4897 |
2023-02-09 Etienne Brateau <[email protected]> |
| 4898 |
|
| 4899 |
vm_page.c: add missing object lock |
| 4900 |
The documentation of vm_page_insert says that the object must be locked. |
| 4901 |
Moreover, the unlock call is here but no call was present. |
| 4902 |
Message-Id: <[email protected]> |
| 4903 |
|
| 4904 |
2023-02-08 Samuel Thibault <[email protected]> |
| 4905 |
|
| 4906 |
slock: Fix initialization of statically-allocated slocks |
| 4907 |
(this is actually a no-op for i386) |
| 4908 |
|
| 4909 |
i386: relax CPU within spinlock loop |
| 4910 |
|
| 4911 |
2023-02-07 Samuel Thibault <[email protected]> |
| 4912 |
|
| 4913 |
Lock get_mapwindow infrastructure |
| 4914 |
|
| 4915 |
2023-02-04 Damien Zammit <[email protected]> |
| 4916 |
|
| 4917 |
cpu_number: Fix missing return |
| 4918 |
Message-Id: <[email protected]> |
| 4919 |
|
| 4920 |
2023-02-03 Damien Zammit <[email protected]> |
| 4921 |
|
| 4922 |
linux: Keep existing timer interrupt handler for APIC |
| 4923 |
Message-Id: <[email protected]> |
| 4924 |
|
| 4925 |
pmap: Refactor temporary mapping functions |
| 4926 |
Message-Id: <[email protected]> |
| 4927 |
|
| 4928 |
2023-02-01 Damien Zammit <[email protected]> |
| 4929 |
|
| 4930 |
linux: Skip probing IDE when 255 phys heads detected |
| 4931 |
This allows qemu -M q35 to boot without 30 second timeout |
| 4932 |
failing on hd0, when disk is actually attached via ahci. |
| 4933 |
|
| 4934 |
kdb: Fix ON_INT_STACK() macro to be cpu_number aware |
| 4935 |
Message-Id: <[email protected]> |
| 4936 |
|
| 4937 |
pmap: Debug printf when pmap_update_interrupt runs |
| 4938 |
Message-Id: <[email protected]> |
| 4939 |
|
| 4940 |
2023-01-31 Flavio Cruz <[email protected]> |
| 4941 |
|
| 4942 |
Define rpc_vm_size_array_t and rpc_vm_offset_array_t |
| 4943 |
When generating stubs, Mig will will take the vm_size_array_t and define the |
| 4944 |
input request struct using rpc_vm_size_t since the size is variable. This will turn cause a mismatch |
| 4945 |
between types (vm_size_t* vs rpc_vm_size_t*). We could also ask Mig to produce |
| 4946 |
a prototype by using rpc_vm_size_t*, however we would need to change the implementation |
| 4947 |
of the RPC to use rpc_* types anyway since we want to avoid another allocation |
| 4948 |
of the array. |
| 4949 |
Message-Id: <[email protected]> |
| 4950 |
|
| 4951 |
2023-01-31 Damien Zammit <[email protected]> |
| 4952 |
|
| 4953 |
fix accessing per-cpu data |
| 4954 |
|
| 4955 |
2023-01-31 Samuel Thibault <[email protected]> |
| 4956 |
|
| 4957 |
Fix other confusions between KERNEL_STACK_SIZE and INTSTACK_SIZE |
| 4958 |
|
| 4959 |
2023-01-31 Damien Zammit <[email protected]> |
| 4960 |
|
| 4961 |
locore: Fix int stack check |
| 4962 |
TODO: Return kernel_id via lookup table, not apic_id |
| 4963 |
|
| 4964 |
Message-Id: <[email protected]> |
| 4965 |
|
| 4966 |
2023-01-31 Damien Zammit <[email protected]> |
| 4967 |
|
| 4968 |
Debug printf when sending TLB IPI |
| 4969 |
Message-Id: <[email protected]> |
| 4970 |
|
| 4971 |
Fix makefrags |
| 4972 |
Message-Id: <[email protected]> |
| 4973 |
|
| 4974 |
smp: Deassert IPI 251 as part of sequence |
| 4975 |
Message-Id: <[email protected]> |
| 4976 |
|
| 4977 |
Always use directed EOI and disable focus |
| 4978 |
Message-Id: <[email protected]> |
| 4979 |
|
| 4980 |
linux: Skip updating jiffies on AP timer |
| 4981 |
Message-Id: <[email protected]> |
| 4982 |
|
| 4983 |
2023-01-31 Damien Zammit <[email protected]> |
| 4984 |
|
| 4985 |
interrupt: Send EOI before handling update interrupt |
| 4986 |
To make sure we don't miss any pmap update. |
| 4987 |
|
| 4988 |
Message-Id: <[email protected]> |
| 4989 |
|
| 4990 |
2023-01-31 Damien Zammit <[email protected]> |
| 4991 |
|
| 4992 |
Print warning on bad cpu numbering and assume BSP |
| 4993 |
Message-Id: <[email protected]> |
| 4994 |
|
| 4995 |
2023-01-31 Damien Zammit <[email protected]> |
| 4996 |
|
| 4997 |
Add cpu_number and cpuboot |
| 4998 |
I addressed most of the previous review. |
| 4999 |
MSRs are easier to set in asm so I have left it in. |
| 5000 |
|
| 5001 |
Message-Id: <[email protected]> |
| 5002 |
|
| 5003 |
2023-01-31 Samuel Thibault <[email protected]> |
| 5004 |
|
| 5005 |
fix warnings |
| 5006 |
|
| 5007 |
2023-01-31 Damien Zammit <[email protected]> |
| 5008 |
|
| 5009 |
i386: Fix lapic and ioapic for smp |
| 5010 |
Also-by: Almudena Garcia <[email protected]> |
| 5011 |
Message-Id: <[email protected]> |
| 5012 |
|
| 5013 |
2023-01-30 Flavio Cruz <[email protected]> |
| 5014 |
|
| 5015 |
Use $(CC) instead of gcc to avoid relying on the host gcc. |
| 5016 |
Message-Id: <[email protected]> |
| 5017 |
|
| 5018 |
Include i386asm.h using i386/i386/i386.asm.h |
| 5019 |
If we 1) build for x86_64 and 2) build in a separate directory, we will not have |
| 5020 |
-Ii386 (-Ix86_64 instead) hence this file won't be found since it is autogenerated. |
| 5021 |
Message-Id: <[email protected]> |
| 5022 |
|
| 5023 |
2023-01-29 Damien Zammit <[email protected]> |
| 5024 |
|
| 5025 |
i386: Add AP variants of descriptor tables |
| 5026 |
|
| 5027 |
2023-01-29 Damien Zammit <[email protected]> |
| 5028 |
|
| 5029 |
i386/apic: Add ifdefs for APIC for mask/unmask irqs |
| 5030 |
This prepares for --enable-ncpus=2 with --disable-apic option |
| 5031 |
|
| 5032 |
Message-Id: <[email protected]> |
| 5033 |
|
| 5034 |
2023-01-29 Flavio Cruz <[email protected]> |
| 5035 |
|
| 5036 |
Enable -Wmissing-prototypes. |
| 5037 |
* Makefile.am: enable -Wmissing-prototypes |
| 5038 |
* ddb/db_inout.h: Prototype kdb_kintr for entering into DDB. |
| 5039 |
* ddb/db_mp.c Include ddb/db_input.h to get kdb_kintr. |
| 5040 |
* i386/i386at/kd.h: Include ddb/input.h to get kdb_kintr. |
| 5041 |
* linux/Makefrag.am: Disable some of the new warnings for linux drivers, |
| 5042 |
otherwise we will get more and more noise. |
| 5043 |
Message-Id: <[email protected]> |
| 5044 |
|
| 5045 |
2023-01-28 Flavio Cruz <[email protected]> |
| 5046 |
|
| 5047 |
Add host_set_time64 and host_adjust_time64 |
| 5048 |
Same existing logic, just with 64 bits. Old RPCs are implemented by |
| 5049 |
calling into the new RPCs. |
| 5050 |
Message-Id: <[email protected]> |
| 5051 |
|
| 5052 |
2023-01-28 Flavio Cruz <[email protected]> |
| 5053 |
|
| 5054 |
Use standard types in include/device/input.h |
| 5055 |
--enable-platform=xen won't compile because u_char is not included from |
| 5056 |
sys/types.h. Also, we are forcing users of include/device/input.h to |
| 5057 |
include glibc headers that export such types which should not be |
| 5058 |
necessary. |
| 5059 |
|
| 5060 |
For i386/i386at/kd.h we include input.h to get Scancode. |
| 5061 |
Message-Id: <[email protected]> |
| 5062 |
|
| 5063 |
2023-01-28 Flavio Cruz <[email protected]> |
| 5064 |
|
| 5065 |
Delete unused header cthreads.h |
| 5066 |
Message-Id: <[email protected]> |
| 5067 |
|
| 5068 |
Fix compiler warnings |
| 5069 |
* i386/xen/xen.c: Move failsafe_callback_regs to header file and include |
| 5070 |
xen/xen.h |
| 5071 |
* xen/block.c: `name` must be const. Fix format string. |
| 5072 |
* xen/console.c: Move hyp_console_write and inline it in the header. |
| 5073 |
Use static qualifier whenever possible. Cast to interrupt_handler_fn. |
| 5074 |
* xen/console.h: Define hyp_console_write as inline function. |
| 5075 |
* xen/evt.c: Avoid old style declaration and use interrupt_handler_fn. |
| 5076 |
* xen/evt.h: Use interrupt_handler_fn. |
| 5077 |
* xen/net.c: Use static. Use correct format and make `name` const. |
| 5078 |
* xen/time.c: Avoid old style declarations by adding void to the |
| 5079 |
parameter list. |
| 5080 |
* xen/xen.c: Use static. Use interrupt_handler_fn. Delete `_hyp_halt` |
| 5081 |
and `_hyp_todo`. |
| 5082 |
* xen/xen.h: Define hyp_failsafe_c_callback here to make sure we have |
| 5083 |
the prototype. |
| 5084 |
Message-Id: <Y9S6cTHziR/[email protected]> |
| 5085 |
|
| 5086 |
2023-01-27 Flavio Cruz <[email protected]> |
| 5087 |
|
| 5088 |
Change i386 RPC subsystem to include descriptor instead of real_descriptor |
| 5089 |
This should avoid issues with glibc and hurd as introduced in |
| 5090 |
https://git.savannah.gnu.org/cgit/hurd/gnumach.git/commit/?id=b379d5afdf65cce11426ab0349a3778b3fd632f5 |
| 5091 |
since we are changing the types of the parameters when implementing the RPCs to match the previous |
| 5092 |
declaration using `struct descriptor`. |
| 5093 |
|
| 5094 |
Message-Id: <Y9Nx/[email protected]> |
| 5095 |
|
| 5096 |
2023-01-26 Flavio Cruz <[email protected]> |
| 5097 |
|
| 5098 |
Do not include seg.c when building for x86_64 |
| 5099 |
File was removed in a previous patch for i386. |
| 5100 |
|
| 5101 |
To avoid future problems, include some common files between i386 and |
| 5102 |
x86_64 in i386/Makefrag_x86.am. It is also easier to see what is different and |
| 5103 |
what lacks support for x86_64 (e.g., SMP). |
| 5104 |
Message-Id: <[email protected]> |
| 5105 |
|
| 5106 |
2023-01-25 Flavio Cruz <[email protected]> |
| 5107 |
|
| 5108 |
Fix several warnings for -Wmissing-prototypes (part 2) |
| 5109 |
* i386/i386/io_map.c: code is unused. |
| 5110 |
* i386/i386/io_perm.c: include mig prototypes. |
| 5111 |
* i386/i386/mp_desc.c: Deleted interrupt_stack_alloc since it is not |
| 5112 |
used. |
| 5113 |
* i386/i386/seg.h: Moved descriptor structs to i386/include/mach/i386/mach_i386_types.h |
| 5114 |
as that represents the interface types for RPCs. |
| 5115 |
Defined aliases for real_descriptor since those are used by the i386 RPCs. Inlined many |
| 5116 |
functions here too and removed seg.c. |
| 5117 |
* i386/i386/seg.c: Removed. All the functions are inline now. |
| 5118 |
* i386/i386/trap.c: Use static. |
| 5119 |
* i386/i386/trap.h: Define missing prototypes. |
| 5120 |
* i386/i386/tss.h: Use static inline for ltr. |
| 5121 |
* i386/i386/user_ldt.c: Include mig prototypes. |
| 5122 |
* i386/include/mach/i386/mach_i386.defs: Define real_descriptor_t types |
| 5123 |
since those are used in the RPC definition. Now both prototypes and |
| 5124 |
definitions will match. |
| 5125 |
* i386/include/mach/i386/mach_i386_types.h: Move struct descriptor |
| 5126 |
from seg.h since we need those for the RPC interfaces. Removed include |
| 5127 |
of io_perm.h since it generates circular includes otherwise. |
| 5128 |
* i386/intel/pmap.c: pmap_map is unused. Added static qualifier for |
| 5129 |
several functions. |
| 5130 |
* i386/intel/pmap.h: pmap_update_interrupt declared for non-SMP and SMP. |
| 5131 |
Message-Id: <[email protected]> |
| 5132 |
|
| 5133 |
2023-01-25 Samuel Thibault <[email protected]> |
| 5134 |
|
| 5135 |
ddb/db_mp.c: re-introduce remote_db_enter |
| 5136 |
which will be useful for smp |
| 5137 |
|
| 5138 |
2023-01-25 Flavio Cruz <[email protected]> |
| 5139 |
|
| 5140 |
Set kr if copy cannot be copied to user space |
| 5141 |
Compiler will complain otherwise that kr is not initialized. |
| 5142 |
Message-Id: <[email protected]> |
| 5143 |
|
| 5144 |
dev_pager.c: use mach_msg_type_number_t |
| 5145 |
Otherwise it will fail to compile due to conflicting types. |
| 5146 |
Message-Id: <Y89jA/[email protected]> |
| 5147 |
|
| 5148 |
2023-01-24 Flavio Cruz <[email protected]> |
| 5149 |
|
| 5150 |
Use -O2 -g by default when compiling |
| 5151 |
After d5e5dd3401ea0d0475aa830c2171be5b8a72f4fa we can configure and make |
| 5152 |
gnumach without glibc, however it no longer used -O2 -g in CFLAGS by default. |
| 5153 |
This reverts that behavior. |
| 5154 |
Message-Id: <[email protected]> |
| 5155 |
|
| 5156 |
2023-01-24 Samuel Thibault <[email protected]> |
| 5157 |
|
| 5158 |
ddb: Add prototype for remote_db_enter |
| 5159 |
It will be useful for smp support. |
| 5160 |
|
| 5161 |
2023-01-24 Flavio Cruz <[email protected]> |
| 5162 |
|
| 5163 |
Fix several warnings for -Wmissing-prototypes |
| 5164 |
* device/ds_routines.c: use static qualifier. |
| 5165 |
* device/subrs.c: delete unused functions. |
| 5166 |
* i386/i386/ast_check.c: include prototypes in kern/ast.h |
| 5167 |
* i386/i386/db_disasm.c: Include prototypes in ddb/db_examine.h |
| 5168 |
* i386/i386/db_interface.h: Define prototype for kdb_kentry. Expose |
| 5169 |
debug methods feep and kd_debug_put. |
| 5170 |
* i386/i386/db_trace.c: delete left over cthreads support, functions are |
| 5171 |
not used. |
| 5172 |
* i386/i386/model_dep.h: Define prototype for c_boot_entry. |
| 5173 |
* i386/i386at/acpi_parse_apic.c: Static qualifiers. |
| 5174 |
* i386/i386at/autoconf.c: Include header file for prototypes and remove |
| 5175 |
dead code. |
| 5176 |
* i386/i386at/autoconf.h: Fix prototype. |
| 5177 |
* i386/i386at/com.c: Add static qualifiers, delete dead code. |
| 5178 |
* i386/i386at/com.c: ditto. |
| 5179 |
* i386/i386at/com.h: Define prototypes for debug functions. |
| 5180 |
* i386/i386at/int_init.c: Include header. |
| 5181 |
* i386/i386at/kd.c: Include header for debug interface. Remove dead |
| 5182 |
kd_cmdreg_read and make xga_getpos static. |
| 5183 |
* i386/i386at/kd_mouse.c: Static qualifiers. |
| 5184 |
* i386/i386at/lpr.c: Dead lprpr. |
| 5185 |
* i386/i386at/model_dep.c: Remove exit function. |
| 5186 |
* kern/mach_clock.c: Include mig prototypes. |
| 5187 |
* kern/mach_clock.h: Remove duplicates of mig prototypes. |
| 5188 |
* kern/machine.c: Use static. |
| 5189 |
* kern/startup.c: slave_main is unused. |
| 5190 |
* kern/thread.h: Define thread_stats that is useful for debugging. |
| 5191 |
* kern/timer.c: Keep db_thread_times since it can be used for debugging. |
| 5192 |
* kern/timer.h: ditto. |
| 5193 |
* linux/dev/glue/misc.c: Use mig header for host_get_time. |
| 5194 |
Message-Id: <[email protected]> |
| 5195 |
|
| 5196 |
2023-01-19 Flavio Cruz <[email protected]> |
| 5197 |
|
| 5198 |
Remove existing old style definitions and use -Wold-style-definition. |
| 5199 |
Message-Id: <Y8mYd/pt/[email protected]> |
| 5200 |
|
| 5201 |
Include mig generated device headers to avoid missing prototypes |
| 5202 |
Some of the existing definitions lacked the const qualifier, which was |
| 5203 |
added. |
| 5204 |
Message-Id: <[email protected]> |
| 5205 |
|
| 5206 |
2023-01-19 Samuel Thibault <[email protected]> |
| 5207 |
|
| 5208 |
Rename msg_is_misaligned and msg_align |
| 5209 |
message.h is installed so we need to hide these behind a mach_ prefix |
| 5210 |
|
| 5211 |
2023-01-19 Flavio Cruz <[email protected]> |
| 5212 |
|
| 5213 |
Add host_get_time64 RPC to return the time as time_value64_t |
| 5214 |
Also updated the mapped time to support the new 64-bit time while |
| 5215 |
keeping compatible with the user land programs currently using it so |
| 5216 |
they can be migrated in parallel. |
| 5217 |
|
| 5218 |
2023-01-19 Samuel Thibault <[email protected]> |
| 5219 |
|
| 5220 |
Fix i386 PAE boot |
| 5221 |
|
| 5222 |
2023-01-19 Flavio Cruz <[email protected]> |
| 5223 |
|
| 5224 |
Include mig generated headers to avoid warnings with -Wmissing-prototypes. |
| 5225 |
This also reverts 566c227636481b246d928772ebeaacbc7c37145b and |
| 5226 |
963b1794d7117064cee8ab5638b329db51dad854 |
| 5227 |
Message-Id: <[email protected]> |
| 5228 |
|
| 5229 |
2023-01-18 Luca Dariz <[email protected]> |
| 5230 |
|
| 5231 |
replace mach_port_t with mach_port_name_t |
| 5232 |
This is a cleanup following the introduction of mach_port_name_t. |
| 5233 |
The same set of changes is applied to all files: |
| 5234 |
- rename mach_port_t to mach_port_name_t where a port name is used, |
| 5235 |
- use MACH_PORT_NAME_NULL and MACH_PORT_NAME_DEAD where appropriate, |
| 5236 |
- use invalid_port_to_name() and invalid_name_to_port() for conversion |
| 5237 |
where appropriate, |
| 5238 |
- use regular copyout() insted of copyout_port() when we deal with |
| 5239 |
mach_port_name_t already before copyout, |
| 5240 |
- use the new helper ipc_kmsg_copyout_object_to_port() when we really |
| 5241 |
want to place a port name in the space of a mach_port_t. |
| 5242 |
|
| 5243 |
* include/mach/notify.h: Likewise |
| 5244 |
* ipc/ipc_entry.c: Likewise |
| 5245 |
* ipc/ipc_kmsg.c: Likewise |
| 5246 |
* ipc/ipc_kmsg.h: Likewise, and add ipc_kmsg_copyout_object_to_port() |
| 5247 |
* ipc/ipc_marequest.c: Likewise |
| 5248 |
* ipc/ipc_object.c: Likewise |
| 5249 |
* ipc/ipc_port.c: Likewise |
| 5250 |
* ipc/ipc_space.h: Likewise |
| 5251 |
* ipc/mach_msg.c: Likewise |
| 5252 |
* ipc/mach_port.c: Likewise |
| 5253 |
* kern/exception.c: Likewise |
| 5254 |
* kern/ipc_mig.c: Likewise |
| 5255 |
Message-Id: <[email protected]> |
| 5256 |
|
| 5257 |
2023-01-18 Luca Dariz <[email protected]> |
| 5258 |
|
| 5259 |
add conversion helpers for invalid mach port names |
| 5260 |
* include/mach/port.h: add _NAME_ variants for port NULL and DEAD and |
| 5261 |
add helpers to check for invalid port names |
| 5262 |
* ipc/port.h: add helpers to properly convert to/from invalid mach |
| 5263 |
port names. |
| 5264 |
Message-Id: <[email protected]> |
| 5265 |
|
| 5266 |
adjust rdxtree key to the correct size |
| 5267 |
* Makefile.am: define RDXTREE_KEY_32 |
| 5268 |
Message-Id: <[email protected]> |
| 5269 |
|
| 5270 |
update writev syscall signature with rpc types |
| 5271 |
* device/device_emul.h: write/writev: update trap argument types |
| 5272 |
* device/ds_routines.c: update argument types and adjust copyin |
| 5273 |
* device/ds_routines.h: write/writev: update trap argument type |
| 5274 |
* include/device/device_types.h: add rpc_io_buf_vec_t type |
| 5275 |
* kern/ipc_mig.c: write/writev: update trap argument type |
| 5276 |
* kern/ipc_mig.h: Likewise |
| 5277 |
Message-Id: <[email protected]> |
| 5278 |
|
| 5279 |
2023-01-18 Luca Dariz <[email protected]> |
| 5280 |
|
| 5281 |
update syscall signature with rpc_vm_* and mach_port_name_t |
| 5282 |
* include/mach/mach_types.h: use mach port names |
| 5283 |
* kern/ipc_mig.c: update vm types and use copyin/copyout helpers |
| 5284 |
* kern/ipc_mig.h: Likewise |
| 5285 |
|
| 5286 |
Message-Id: <[email protected]> |
| 5287 |
|
| 5288 |
2023-01-18 Luca Dariz <[email protected]> |
| 5289 |
|
| 5290 |
x86_64: expand and shrink messages in copy{in, out}msg routines |
| 5291 |
* i386/i386/copy_user.h: new file to handle 32/64 bit differences |
| 5292 |
- add msg_usize() to recontruct the user-space message size |
| 5293 |
- add copyin/copyout helpers for addresses and ports |
| 5294 |
* include/mach/message.h: add msg alignment macros |
| 5295 |
* ipc/ipc_kmsg.c: |
| 5296 |
- copyin/out ports names instead of using pointer magic |
| 5297 |
* ipc/ipc_mqueue.c: use msg_usize() to check if we can actually |
| 5298 |
receive the message |
| 5299 |
* ipc/mach_msg.c: Likewise for continuations in receive path |
| 5300 |
* x86_64/Makefrag.am: add x86_64/copy_user.c |
| 5301 |
* x86_64/copy_user.c: new file to handle message expansion and |
| 5302 |
shrinking during copyinmsg/copyoutmsg for 64 bit kernels. |
| 5303 |
- port names -> port pointers on all 64-bit builds |
| 5304 |
- 32-bit pointer -> 64 bit pointer when using 32-bit userspace |
| 5305 |
* x86_64/locore.S: remove copyinmsg() and copyoutmsg() |
| 5306 |
Message-Id: <[email protected]> |
| 5307 |
|
| 5308 |
add msg_user_header_t for user-side msg structure |
| 5309 |
* include/mach/message.h: use mach_msg_user_header_t only in KERNEL, |
| 5310 |
and define it as mach_msh_header_t for user space |
| 5311 |
* ipc/ipc_kmsg.c: use mach_msg_user_header_t where appropriate |
| 5312 |
* ipc/ipc_kmsg.h: Likewise |
| 5313 |
* ipc/mach_msg.c: Likewise |
| 5314 |
* ipc/mach_msg.h: Likewise |
| 5315 |
* kern/thread.h: Likewise |
| 5316 |
Message-Id: <[email protected]> |
| 5317 |
|
| 5318 |
2023-01-18 Flavio Cruz <[email protected]> |
| 5319 |
|
| 5320 |
Add static qualifiers |
| 5321 |
stack_statistics, swapin_thread_continue, and memory_object_lock_page are |
| 5322 |
not used outside their module. |
| 5323 |
|
| 5324 |
Delete x86 string functions |
| 5325 |
The i386 functions are not used and the more portable versions in kern/strings.c |
| 5326 |
are faster (1-4x faster in synthetic benchmarks compiled with -O2 on my x86_64 box). |
| 5327 |
Message-Id: <[email protected]> |
| 5328 |
|
| 5329 |
Delete util/putchar.{c,h} and util/puts.c |
| 5330 |
Those functions are unused. |
| 5331 |
Message-Id: <[email protected]> |
| 5332 |
|
| 5333 |
2023-01-16 Luca Dariz <[email protected]> |
| 5334 |
|
| 5335 |
fix warnings |
| 5336 |
* ipc/ipc_kmsg.c: drop useless cast. |
| 5337 |
* ipc/ipc_port.c: upcast rpc_vm_offset_t to full vm_offset_t |
| 5338 |
* kern/pc_sample.c: Likewise |
| 5339 |
Message-Id: <[email protected]> |
| 5340 |
|
| 5341 |
remove unused file ipc/mach_rpc.c |
| 5342 |
* Makefrag.am: remove ipc/mach_rpc.c |
| 5343 |
* ipc/mach_rpc.c: remove file, all functions here seem unused. |
| 5344 |
Message-Id: <[email protected]> |
| 5345 |
|
| 5346 |
2023-01-16 Luca Dariz <[email protected]> |
| 5347 |
|
| 5348 |
add required include |
| 5349 |
* kern/syscall_sw.h: add missing include |
| 5350 |
|
| 5351 |
Message-Id: <[email protected]> |
| 5352 |
|
| 5353 |
2023-01-16 Luca Dariz <[email protected]> |
| 5354 |
|
| 5355 |
add missing argument names |
| 5356 |
* ddb/db_break.c: add argument name, compilation fails on Debian/Linux |
| 5357 |
stable with gcc 10.2 otherwise. For some reason on Debian/Hurd a |
| 5358 |
simple test program without argname succeeds, unless I force |
| 5359 |
-std=c11 or similar; I suppose because newer gcc have different |
| 5360 |
defaults. Gnumach seem to still require c89 for some older code, |
| 5361 |
otherwise we could explicitely use gnu99/c99 or gnu11/c11. |
| 5362 |
* ddb/db_cond.c: Likewise |
| 5363 |
* ddb/db_examine.c: Likewise |
| 5364 |
* ddb/db_macro.c: Likewise |
| 5365 |
* ddb/db_watch.c: Likewise |
| 5366 |
* device/dev_name.c: Likewise |
| 5367 |
Message-Id: <[email protected]> |
| 5368 |
|
| 5369 |
2023-01-15 Flavio Cruz <[email protected]> |
| 5370 |
|
| 5371 |
Delete ffs and strrchr prototypes. |
| 5372 |
We use __builtin_ffs instead of ffs. strrchr is not used. |
| 5373 |
|
| 5374 |
Also removed the commented out memset implementation since it is |
| 5375 |
implemented in arch-specific code. |
| 5376 |
Message-Id: <[email protected]> |
| 5377 |
|
| 5378 |
2023-01-13 Etienne Brateau <[email protected]> |
| 5379 |
|
| 5380 |
Fix build for smp |
| 5381 |
ad51c68171cb6a1cae15c61ca0218bbee2c05485 missed one replacement which |
| 5382 |
was not discovered because it’s only when building with smp enabled. |
| 5383 |
Message-Id: <[email protected]> |
| 5384 |
|
| 5385 |
2023-01-13 Flavio Cruz <[email protected]> |
| 5386 |
|
| 5387 |
Create kern/mach4.h and kern/mach_host.h and define the RPC prototypes for mach4.defs and mach_host.defs. |
| 5388 |
Also move more mach_debug rpcs to kern/mach_debug.h. |
| 5389 |
Message-Id: <[email protected]> |
| 5390 |
|
| 5391 |
Use rpc_uintptr_t for protected payloads. |
| 5392 |
Not only is uintptr_t more accurate for what protected payloads are but |
| 5393 |
we also provide compatibility for 64 + 32 bits. Also the use of |
| 5394 |
natural_t in the RPC definition is wrong since it is always 32 bits. |
| 5395 |
Message-Id: <Y7+LHVbmYxO/[email protected]> |
| 5396 |
|
| 5397 |
2023-01-10 Flavio Cruz <[email protected]> |
| 5398 |
|
| 5399 |
Preemptively fix warnings that will be caused by -Wmissing-prototypes |
| 5400 |
Declared RPCs in ipc/mach_port.c and ddb/db_ext_symtab.c in their corresponding headers. |
| 5401 |
Ideally these should be used by mig instead of mig declaring its own |
| 5402 |
prototypes. |
| 5403 |
Message-Id: <Y7z/[email protected]> |
| 5404 |
|
| 5405 |
Update configure.ac so that we don't need glibc when running ./configure. |
| 5406 |
For x86_64-pc-gnu we still do not have a working glibc so ./configure will fail |
| 5407 |
under a freestanding environment. We force ./configure to avoid running |
| 5408 |
compiled C programs as a test which it is not needed when compiling a kernel. |
| 5409 |
Message-Id: <[email protected]> |
| 5410 |
|
| 5411 |
2023-01-09 Flavio Cruz <[email protected]> |
| 5412 |
|
| 5413 |
Remove unused db_set_variable |
| 5414 |
Message-Id: <[email protected]> |
| 5415 |
|
| 5416 |
Remove unused db_lookup_port |
| 5417 |
Message-Id: <[email protected]> |
| 5418 |
|
| 5419 |
Export input structures used by Hurd in device/input.h. |
| 5420 |
Also delete sys/ioctl.h and merge it with device/input.h since it is |
| 5421 |
only needed here. |
| 5422 |
Message-Id: <[email protected]> |
| 5423 |
|
| 5424 |
2023-01-09 Flavio Cruz <[email protected]> |
| 5425 |
|
| 5426 |
Set max-page-size when linking the kernel to 0x1000. |
| 5427 |
With the exception of linux, x86_64 ld default's max-page-size |
| 5428 |
is 2MB (default for i386 is 4K) and compiling gnumach with x86_64-pc-gnu-ld |
| 5429 |
will generate a kernel image where the boot section starts at the file offset |
| 5430 |
2MB. This makes it unbootable on grub because the file is no longer multiboot. |
| 5431 |
|
| 5432 |
Here's the objdump -h output before the patch: |
| 5433 |
|
| 5434 |
Sections: |
| 5435 |
Idx Name Size VMA LMA File off Algn |
| 5436 |
0 .boot 0000c000 0000000001000000 0000000001000000 00200000 2**12 |
| 5437 |
CONTENTS, ALLOC, LOAD, READONLY, CODE |
| 5438 |
1 .text 0009078f 000000004100c000 000000000100c000 0020c000 2**2 |
| 5439 |
CONTENTS, ALLOC, LOAD, READONLY, CODE |
| 5440 |
2 .rodata 000110fc 000000004109c7a0 000000000109c7a0 0029c7a0 2**5 |
| 5441 |
CONTENTS, ALLOC, LOAD, READONLY, DATA |
| 5442 |
3 .eh_frame 000101f0 00000000410ad8a0 00000000010ad8a0 002ad8a0 2**3 |
| 5443 |
CONTENTS, ALLOC, LOAD, READONLY, DATA |
| 5444 |
4 .data 000070a0 00000000412bdaa0 00000000012bdaa0 002bdaa0 2**5 |
| 5445 |
CONTENTS, ALLOC, LOAD, DATA |
| 5446 |
5 .bss 00023f10 00000000412c5000 00000000012c5000 002c4b40 2**12 |
| 5447 |
ALLOC |
| 5448 |
6 .comment 00000012 0000000000000000 0000000000000000 002c4b40 2**0 |
| 5449 |
CONTENTS, READONLY |
| 5450 |
|
| 5451 |
After, when forcing ld's max-page-size to be 4K: |
| 5452 |
|
| 5453 |
Sections: |
| 5454 |
Idx Name Size VMA LMA File off Algn |
| 5455 |
0 .boot 0000c000 0000000001000000 0000000001000000 00001000 2**12 |
| 5456 |
CONTENTS, ALLOC, LOAD, READONLY, CODE |
| 5457 |
1 .text 0009078f 000000004100c000 000000000100c000 0000d000 2**2 |
| 5458 |
CONTENTS, ALLOC, LOAD, READONLY, CODE |
| 5459 |
2 .rodata 000110fc 000000004109c7a0 000000000109c7a0 0009d7a0 2**5 |
| 5460 |
CONTENTS, ALLOC, LOAD, READONLY, DATA |
| 5461 |
3 .eh_frame 000101f0 00000000410ad8a0 00000000010ad8a0 000ae8a0 2**3 |
| 5462 |
CONTENTS, ALLOC, LOAD, READONLY, DATA |
| 5463 |
4 .data 000070a0 00000000410beaa0 00000000010beaa0 000beaa0 2**5 |
| 5464 |
CONTENTS, ALLOC, LOAD, DATA |
| 5465 |
5 .bss 00023f10 00000000410c6000 00000000010c6000 000c5b40 2**12 |
| 5466 |
ALLOC |
| 5467 |
6 .comment 00000012 0000000000000000 0000000000000000 000c5b40 2**0 |
| 5468 |
CONTENTS, READONLY |
| 5469 |
|
| 5470 |
It is also possible that something is wrong with the linker script but |
| 5471 |
couldn't find anything concrete so far. After this patch the kernel is |
| 5472 |
bootable with x86_64-pc-gnu-ld (and far smaller in size). |
| 5473 |
Message-Id: <[email protected]> |
| 5474 |
|
| 5475 |
2023-01-07 Flavio Cruz <[email protected]> |
| 5476 |
|
| 5477 |
Fix warning at pic_isa.c |
| 5478 |
Message-Id: <[email protected]> |
| 5479 |
|
| 5480 |
Use grub-file instead of mbchk to test multiboot header |
| 5481 |
mbchk is not part of grub2 and only available on grub-legacy. |
| 5482 |
Message-Id: <Y7ewlry3pRHRAR/[email protected]> |
| 5483 |
|
| 5484 |
Move cpu_down and other functions inside SMP ifdef |
| 5485 |
cpu_down is shown as not required when disabling SMP so moving it inside |
| 5486 |
NCPUS > 1 to eliminate the warning. Note that the diff ended up looking |
| 5487 |
a bit different due the way functions are laid out. |
| 5488 |
Message-Id: <[email protected]> |
| 5489 |
|
| 5490 |
2023-01-05 Flavio Cruz <[email protected]> |
| 5491 |
|
| 5492 |
Fix ddb warnings introduced with -Wstrict-prototypes |
| 5493 |
Changed some ddb command functions to have the expected signature but |
| 5494 |
not all of them due to the being difficult to inter-dependency between |
| 5495 |
header files (for those just used cast). |
| 5496 |
Message-Id: <Y7UO9HTfpZ8U0Nfy@mars> |
| 5497 |
|
| 5498 |
2023-01-03 Flavio Cruz <[email protected]> |
| 5499 |
|
| 5500 |
Introduce time_value64_t to keep track of real time in the kernel |
| 5501 |
time_value64_t uses int64_t to track seconds and nanoseconds and hence |
| 5502 |
is Y2038 proof. It does not have nano second resolution but it could |
| 5503 |
be provided in the future. |
| 5504 |
|
| 5505 |
Removed include/sys/time.h as it remaps time_value_t into timeval which |
| 5506 |
can create confusion. |
| 5507 |
|
| 5508 |
The timestamp from keyboard and mouse events is no longer set and |
| 5509 |
replaced with rpc_time_value for better compatibility. |
| 5510 |
|
| 5511 |
2023-01-01 Guy-Fleury Iteriteka <[email protected]> |
| 5512 |
|
| 5513 |
fix warning from -Wstrict-prototypes |
| 5514 |
Message-Id: <Y7GEhcafJ+4Wn3ao@falom> |
| 5515 |
|
| 5516 |
convert K&R into ansi |
| 5517 |
Message-Id: <Y7GBQ5bk6ZQqtfda@falom> |
| 5518 |
|
| 5519 |
convert K&R into ansi. |
| 5520 |
Message-Id: <Y7GBIF6mBjV6kBM+@falom> |
| 5521 |
|
| 5522 |
2022-12-27 Flavio Cruz <[email protected]> |
| 5523 |
|
| 5524 |
Fix inttypes.h format constants for uintptr_t and intptr_t. |
| 5525 |
The format constants are not correct for 32 bits and there was |
| 5526 |
duplication for PRIx* constants (replaced with octal constants). |
| 5527 |
|
| 5528 |
Fixed a few format warnings too. |
| 5529 |
Message-Id: <Y6o5KsvtPavCYe8f@mars> |
| 5530 |
|
| 5531 |
2022-12-27 Flavio Cruz <[email protected]> |
| 5532 |
|
| 5533 |
Delete kern_timestamp system call since it is not used |
| 5534 |
Message-Id: <Y6r72z4cKVCMDSKy@mars> |
| 5535 |
|
| 5536 |
Use uintptr_t to define vm_size_t/vm_offset_t/vm_address |
| 5537 |
Message-Id: <Y6j9bnHphZp0ZPYC@mars> |
| 5538 |
|
| 5539 |
2022-12-27 Flavio Cruz <[email protected]> |
| 5540 |
|
| 5541 |
Fix some warnings with -Wmissing-prototypes. |
| 5542 |
Marked some functions as static (private) as needed and added missing |
| 5543 |
includes. |
| 5544 |
|
| 5545 |
This also revealed some dead code which was removed. |
| 5546 |
|
| 5547 |
Note that -Wmissing-prototypes is not enabled here since there is a |
| 5548 |
bunch more warnings. |
| 5549 |
Message-Id: <Y6j72lWRL9rsYy4j@mars> |
| 5550 |
|
| 5551 |
2022-12-27 Samuel Thibault <[email protected]> |
| 5552 |
|
| 5553 |
Fix hardclock prototype |
| 5554 |
|
| 5555 |
2022-12-24 Samuel Thibault <[email protected]> |
| 5556 |
|
| 5557 |
intr: Drop irq parameter |
| 5558 |
This is not actually used. |
| 5559 |
|
| 5560 |
Xen: Fix ivect prototype |
| 5561 |
448889a4f0c3 ("Use -Wstrict-prototypes and fix warnings") simplified the |
| 5562 |
prototype of ivect, so we have to update the Xen version. |
| 5563 |
|
| 5564 |
Add missing htons |
| 5565 |
|
| 5566 |
Xen: Fix warning |
| 5567 |
|
| 5568 |
ld_magic_routines: Restore yet more symbol |
| 5569 |
cef6d34aa026 ("Implement our own functions to convert between host and |
| 5570 |
network values") dropped the glibc pieces from clib_routines, but |
| 5571 |
dropped too many ld symbols. |
| 5572 |
|
| 5573 |
ld_magic_routines: Restore more more symbols |
| 5574 |
cef6d34aa026 ("Implement our own functions to convert between host and |
| 5575 |
network values") dropped the glibc pieces from clib_routines, but |
| 5576 |
dropped too many ld symbols. |
| 5577 |
|
| 5578 |
2022-12-22 Samuel Thibault <[email protected]> |
| 5579 |
|
| 5580 |
Drop spurious changes |
| 5581 |
|
| 5582 |
Warn only once about not being able to recycle pages |
| 5583 |
|
| 5584 |
2022-12-21 Flavio Cruz <[email protected]> |
| 5585 |
|
| 5586 |
Use -Wstrict-prototypes and fix warnings |
| 5587 |
Most of the changes include defining and using proper function type |
| 5588 |
declarations (with argument types declared) and avoiding using the |
| 5589 |
K&R style of function declarations. |
| 5590 |
Message-Id: <Y6Jazsuis1QA0lXI@mars> |
| 5591 |
|
| 5592 |
2022-12-19 Flavio Cruz <[email protected]> |
| 5593 |
|
| 5594 |
x86_64: stdint.h no longer exists so don't install it |
| 5595 |
Message-Id: <Y6Bw/vU85SK5GrMZ@mars> |
| 5596 |
|
| 5597 |
2022-12-19 Samuel Thibault <[email protected]> |
| 5598 |
|
| 5599 |
time_value: Fix usage in e.g. c89 programs |
| 5600 |
The inline keyword was not defined there, so we need to use __inline__. |
| 5601 |
|
| 5602 |
This fixes make check in glibc. |
| 5603 |
|
| 5604 |
2022-12-19 Flavio Cruz <[email protected]> |
| 5605 |
|
| 5606 |
Remove custom stdint.h and rely on freestanding headers |
| 5607 |
GCC already provides this so we don't need to have our own. |
| 5608 |
Message-Id: <Y5+02FVA6jf4GPgA@mars> |
| 5609 |
|
| 5610 |
2022-12-18 Flavio Cruz <[email protected]> |
| 5611 |
|
| 5612 |
Use long_natural_t for recnum_t |
| 5613 |
For 64 bits, device operations will provide an addressing space of 64 |
| 5614 |
bits. |
| 5615 |
|
| 5616 |
Also define the translation functions if long_natural_t or |
| 5617 |
long_integer_t are ever used in RPCs. |
| 5618 |
|
| 5619 |
Note that MIG does not implicitly inherit the translation functions from |
| 5620 |
types hence the need to redefine them for recnum_t. |
| 5621 |
Message-Id: <Y59MFzekEA0YUXIw@mars> |
| 5622 |
|
| 5623 |
2022-12-18 Samuel Thibault <[email protected]> |
| 5624 |
|
| 5625 |
libgcc_routines: Restore some symbols |
| 5626 |
cef6d34aa026 ("Implement our own functions to convert between host and |
| 5627 |
network values") dropped the glibc pieces from clib_routines, but missed |
| 5628 |
moving all its gcc symbols into libgcc_routines. |
| 5629 |
|
| 5630 |
vm_page_evict: avoid crashing |
| 5631 |
It seems we hit he "unable to recycle any page" even when there is no |
| 5632 |
memory pressure, probably just because the pageout thread somehow to |
| 5633 |
kicked but there's nothing to page out left. |
| 5634 |
|
| 5635 |
2022-12-17 Flavio Cruz <[email protected]> |
| 5636 |
|
| 5637 |
Use struct for time_value_t and define seconds as long_integer_t. |
| 5638 |
On 64 bit kernels, seconds will be 64 bits long and won't suffer from |
| 5639 |
the 2038 problem. We also add a new type rpc_time_value_t to handle the |
| 5640 |
conversion between 32 bit userland and 64 bit kernel. |
| 5641 |
Message-Id: <Y50kIaIgaIdGjDAk@mars> |
| 5642 |
|
| 5643 |
Fix compiler warnings due to use of inline for mask_irq/unmask_irq |
| 5644 |
Message-Id: <Y5z01C/L+pnSVNIP@mars> |
| 5645 |
|
| 5646 |
2022-12-17 Flavio Cruz <[email protected]> |
| 5647 |
|
| 5648 |
Implement our own functions to convert between host and network values |
| 5649 |
We add htonl, ntohl and ntohs which were the last symbols we relied on |
| 5650 |
from libc. |
| 5651 |
|
| 5652 |
The Makefile.am file was updated to reflect the fact that we only require libgcc. |
| 5653 |
Message-Id: <Y5zNdOJ/YnyYCOhX@mars> |
| 5654 |
|
| 5655 |
2022-12-15 Flavio Cruz <[email protected]> |
| 5656 |
|
| 5657 |
Use __builtin_ffs instead of libc provided ffs in vm_map.c |
| 5658 |
We already use this built-in in other places and this will move us closer to |
| 5659 |
being able to build the kernel without libc. |
| 5660 |
Message-Id: <Y5l80/[email protected]> |
| 5661 |
|
| 5662 |
2022-12-12 Samuel Thibault <[email protected]> |
| 5663 |
|
| 5664 |
copy_to/from_phys: fix non-page-aligned case |
| 5665 |
The vaddr field of the returned map only points to the base address, we |
| 5666 |
have to add the offset within the page before reading/writing. |
| 5667 |
|
| 5668 |
This fixes accessing tasks different from the current task, and |
| 5669 |
the user part of ddb backtraces. |
| 5670 |
|
| 5671 |
2022-12-11 Samuel Thibault <[email protected]> |
| 5672 |
|
| 5673 |
db: Add support for CSI-based arrows |
| 5674 |
|
| 5675 |
i386 db: Fix db_read_bytes over multiple pages |
| 5676 |
The target pointer was not getting advanced between page chunks. |
| 5677 |
|
| 5678 |
i386 db: Add ud2 instruction |
| 5679 |
|
| 5680 |
2022-12-11 Flavio Cruz <[email protected]> |
| 5681 |
|
| 5682 |
Delete rpc copyout multiname code |
| 5683 |
Message-Id: <[email protected]> |
| 5684 |
|
| 5685 |
2022-12-11 Flavio Cruz <[email protected]> |
| 5686 |
|
| 5687 |
Delete thread_get_state_KERNEL and thread_set_state_KERNEL |
| 5688 |
These are not used. |
| 5689 |
|
| 5690 |
Message-Id: <[email protected]> |
| 5691 |
|
| 5692 |
2022-12-07 Flavio Cruz <[email protected]> |
| 5693 |
|
| 5694 |
Use mach_port_name in db_lookup_port |
| 5695 |
Message-Id: <Y5AdTQfSxStjbhsj@reue> |
| 5696 |
|
| 5697 |
Update kern/ directory to use mach_port_name_t. |
| 5698 |
Make it clear where exactly we use port names vs port addresses. |
| 5699 |
Message-Id: <Y5AdJGuzXBMO7YRK@reue> |
| 5700 |
|
| 5701 |
Use long_natural_t in kern/task.h and kern/slab.h |
| 5702 |
RPC interfaces already use long_natural_t so internally we can also use |
| 5703 |
this type. |
| 5704 |
Message-Id: <Y5AdPNqg4l5jAZ3n@reue> |
| 5705 |
|
| 5706 |
2022-12-06 Flavio Cruz <[email protected]> |
| 5707 |
|
| 5708 |
Define vm_size_t and vm_offset_t as __mach_uintptr_t. |
| 5709 |
This allows *printf to use %zd/%zu/%zx to print vm_size_t and |
| 5710 |
vm_offset_t. Warnings using the incorrect specifiers were fixed. |
| 5711 |
|
| 5712 |
Note that MACH_PORT_NULL became just 0 because GCC thinks that we were |
| 5713 |
comparing a pointer to a character (due to it being an unsigned int) so |
| 5714 |
I removed the explicit cast. |
| 5715 |
Message-Id: <Y47UNdcUF35Ag4Vw@reue> |
| 5716 |
|
| 5717 |
2022-12-06 Flavio Cruz <[email protected]> |
| 5718 |
|
| 5719 |
Make task_info.h structs more portable |
| 5720 |
Changed vm_size_t to rpc_size_t so that both userland and kernel agree |
| 5721 |
on the same size. Also changed the denominator for the maximum struct |
| 5722 |
sizes to be integer_t to match the other declarations. |
| 5723 |
|
| 5724 |
Introduced long_natural_t and rpc_long_natural_t to represent large |
| 5725 |
counters. Replaced rpc_unsigned_long with rpc_long_natural_t. |
| 5726 |
Message-Id: <Y47UhaOzKnqhgYq4@reue> |
| 5727 |
|
| 5728 |
2022-12-03 Samuel Thibault <[email protected]> |
| 5729 |
|
| 5730 |
task: Add task_set_essential |
| 5731 |
Whenever a Hurd essential task crashes, startup just reboots the system |
| 5732 |
since there's not much that can be done at that point. When we have a |
| 5733 |
kernel debugger, however, we could at least get crashing information, so |
| 5734 |
let's let Hurd's startup tell the kernel which tasks are essential, and |
| 5735 |
trigger the debugger whenever they crash. |
| 5736 |
|
| 5737 |
2022-12-03 Flavio Cruz <[email protected]> |
| 5738 |
|
| 5739 |
Use mach_port_name_t in a few more places |
| 5740 |
A few places that I missed in 958686efa2175abe3f7044890c2c2370e29147f2. |
| 5741 |
Message-Id: <Y4g+4THLC/1NvnkM@viriathus> |
| 5742 |
|
| 5743 |
2022-11-30 Flavio Cruz <[email protected]> |
| 5744 |
|
| 5745 |
Update ipc/ directory to use mach_port_name_t |
| 5746 |
Make it explicit where we use port names versus actual ports. For the 64 |
| 5747 |
bit kernel, port names and ports are of different size so this corrects |
| 5748 |
the syscall arguments and internal structs to have the right size. |
| 5749 |
|
| 5750 |
This patch also uncovered several issues we need to solve to make |
| 5751 |
GNUMach work well on 64 bits. First, the mach_msg call will receive 4 |
| 5752 |
byte port names while the kernel "thinks" they are 8 bytes, which will |
| 5753 |
be a problem. Also, when we send a message, the kernel translates the |
| 5754 |
port names into port pointers in the message copied from user space. |
| 5755 |
This also won't work on 64 bits. In this patch, I added several TODOs to fix |
| 5756 |
the issues later. |
| 5757 |
Message-Id: <Y4cCzNmc6vC4bjsX@viriathus> |
| 5758 |
|
| 5759 |
2022-11-29 Samuel Thibault <[email protected]> |
| 5760 |
|
| 5761 |
Add missing gitignore rules |
| 5762 |
|
| 5763 |
2022-11-28 Flavio Cruz <[email protected]> |
| 5764 |
|
| 5765 |
Use portable rpc types to define 'struct sample'. |
| 5766 |
Message-Id: <Y4QQFkTUR4M60Gx0@viriathus> |
| 5767 |
|
| 5768 |
Update mach_port_status_t definition to use the new struct |
| 5769 |
Also update C definition to use proper types. |
| 5770 |
Message-Id: <Y4QKgh0zHdB8pWhD@viriathus> |
| 5771 |
|
| 5772 |
Delete mach_debug/pc_info.h |
| 5773 |
mach/pc_sample.h has the definitions that the kernel actually uses. |
| 5774 |
Message-Id: <Y4QKGtUdbz+AVO3l@viriathus> |
| 5775 |
|
| 5776 |
2022-11-27 Samuel Thibault <[email protected]> |
| 5777 |
|
| 5778 |
x86_64: fix build |
| 5779 |
|
| 5780 |
2022-11-27 Samuel Thibault <[email protected]> |
| 5781 |
|
| 5782 |
Revert "x86_64: fix installing x86_64-specific headers" |
| 5783 |
This reverts commit 8c58257c4da364ffcb797f9d454c37de939a052b. |
| 5784 |
|
| 5785 |
These headers are actually coming from i386. This change was making |
| 5786 |
`make dist` try to build the x86_64/include/mach/x86_64 directory in the |
| 5787 |
dist tarball. |
| 5788 |
|
| 5789 |
2022-11-27 Samuel Thibault <[email protected]> |
| 5790 |
|
| 5791 |
vm_wire_all: Fix vm_map_protect case |
| 5792 |
If a "wire_required" process calls vm_map_protect(0), the |
| 5793 |
memory gets unwired as expected. But if the process then calls |
| 5794 |
vm_map_protect(VM_PROT_READ) again, we need to wire that memory. |
| 5795 |
|
| 5796 |
(This happens to be exactly what glibc does for its heap) |
| 5797 |
|
| 5798 |
This fixes Hurd hangs on lack of memory, during which mach was swapping |
| 5799 |
pieces of mach-defpager out. |
| 5800 |
|
| 5801 |
2022-11-27 Samuel Thibault <[email protected]> |
| 5802 |
|
| 5803 |
Update kdb_kintr according to new interrupt stack layout |
| 5804 |
e2fcf261076b ("interrupt: Fix saving irq/ipl when linux drivers are |
| 5805 |
disabled") changed the stack layout for interrupt handlers, but missed |
| 5806 |
updating kdb_kintr's code that tries to mangle it. |
| 5807 |
|
| 5808 |
This restores the control-alt-d shortcut. |
| 5809 |
|
| 5810 |
2022-11-25 Flavio Cruz <[email protected]> |
| 5811 |
|
| 5812 |
Update mach_debug interfaces to use struct. |
| 5813 |
The new interfaces will be compatible both with a 64 bits kernel and |
| 5814 |
userland and 64 bits kernel and 32 bit userland. Also removed many |
| 5815 |
of the uses of natural_t where an unsigned int suffices. Ideally we |
| 5816 |
should replace natural_t with something more portable such as uintptr_t |
| 5817 |
or a basic int type for counters since for the most part we don't |
| 5818 |
need counters to have the same width as the pointer type. |
| 5819 |
|
| 5820 |
* i386/include/mach/i386/vm_types.h: Define rpc_unsigned_long. |
| 5821 |
* include/mach/mach_types.defs: Define type rpc_vm_offset_t. |
| 5822 |
* include/mach_debug/hash_info.h: Use unsigned int instead of natural_t. |
| 5823 |
* include/mach_debug/mach_debug_types.defs: Update cache_info_t, |
| 5824 |
hash_info_bucket_t, vm_region_info_t, vm_object_info_t and |
| 5825 |
vm_page_info_t to use struct. |
| 5826 |
* include/mach_debug/slab_info.h: Use rpc_vm_size_t and |
| 5827 |
rpc_unsigned_long for compatibility with 32 bits userland. |
| 5828 |
* include/mach_debug/vm_info.h: Update struct fields to use the correct |
| 5829 |
types and avoid natural_t whenever we just want to keep a count of |
| 5830 |
something. |
| 5831 |
Message-Id: <Y32lp1SuV01ImCx9@viriathus> |
| 5832 |
|
| 5833 |
2022-11-25 Flavio Cruz <[email protected]> |
| 5834 |
|
| 5835 |
Delete ipc_info.h since it is not used |
| 5836 |
Message-Id: <Y35PHuUNCFb6sQO0@viriathus> |
| 5837 |
|
| 5838 |
2022-11-15 Samuel Thibault <[email protected]> |
| 5839 |
|
| 5840 |
x86_64: Add missing int_entry_table entries for APIC |
| 5841 |
214866d58ac2 ("Add ioapic support disabled by default") missed adding |
| 5842 |
them for x86_64. |
| 5843 |
|
| 5844 |
2022-11-11 Flavio Cruz <[email protected]> |
| 5845 |
|
| 5846 |
default_pager_types.defs: define existing struct types as true structs |
| 5847 |
Message-Id: <Y23fab31RM6HcCyb@viriathus> |
| 5848 |
|
| 5849 |
2022-11-10 Samuel Thibault <[email protected]> |
| 5850 |
|
| 5851 |
interrupt: Fix passing parameter to splx_cli and ioapic_irq_eoi |
| 5852 |
e2fcf261076b (""interrupt: Fix saving irq/ipl when linux drivers are |
| 5853 |
disabled") broke booting under some conditions, because the parameters were |
| 5854 |
erroneously written 4 bytes too far for splx_cli and ioapic_irq_eoi to |
| 5855 |
read them. |
| 5856 |
|
| 5857 |
2022-11-06 Samuel Thibault <[email protected]> |
| 5858 |
|
| 5859 |
doc: Add hints on using convenience variables in show commands |
| 5860 |
|
| 5861 |
2022-11-06 Flavio Cruz <[email protected]> |
| 5862 |
|
| 5863 |
Remove unused mig type definitions in gnumach |
| 5864 |
* include/mach/mach_types.defs: host_basic_info_data_t, |
| 5865 |
host_sched_info_data_t, |
| 5866 |
host_load_info_data_t, |
| 5867 |
processor_basic_info_data_t, |
| 5868 |
processor_set_basic_info_data_t, |
| 5869 |
processor_set_sched_info_data_t, |
| 5870 |
hread_basic_info_data_t, |
| 5871 |
thread_sched_info_data_t, |
| 5872 |
task_basic_info_data_t, |
| 5873 |
task_events_info, |
| 5874 |
task_thread_times_info_data_t, |
| 5875 |
machine_info_data_t, |
| 5876 |
machine_slot_data_t |
| 5877 |
* include/mach_debug/mach_debug_types.defs: ipc_info_name_t, |
| 5878 |
ipc_info_name_array_t |
| 5879 |
|
| 5880 |
Tested by bootstrapping a Hurd system from scratch. |
| 5881 |
Message-Id: <Y2dD7Z60Bwybg4jF@viriathus> |
| 5882 |
|
| 5883 |
2022-10-26 Damien Zammit <[email protected]> |
| 5884 |
|
| 5885 |
i386/pit: Tune delays |
| 5886 |
- Add half a clock tick for more accuracy |
| 5887 |
- Start the pit countdown during pit_sleep |
| 5888 |
- Add pit_mdelay and pit_udelay functions |
| 5889 |
Message-Id: <[email protected]> |
| 5890 |
|
| 5891 |
linux drivers: Don't depend on curr_pic_mask for APIC |
| 5892 |
Message-Id: <[email protected]> |
| 5893 |
|
| 5894 |
2022-10-25 Damien Zammit <[email protected]> |
| 5895 |
Almudena Garcia <[email protected]> |
| 5896 |
|
| 5897 |
acpi: Add lapic_addr |
| 5898 |
Message-Id: <[email protected]> |
| 5899 |
|
| 5900 |
2022-10-25 Damien Zammit <[email protected]> |
| 5901 |
|
| 5902 |
bios32: Use phystokv() on low bios addresses |
| 5903 |
Message-Id: <[email protected]> |
| 5904 |
|
| 5905 |
2022-10-25 Samuel Thibault <[email protected]> |
| 5906 |
|
| 5907 |
proc_reg: Fix pushf/popf |
| 5908 |
|
| 5909 |
2022-10-25 Damien Zammit <[email protected]> |
| 5910 |
|
| 5911 |
kdb: Fix TODO for multiprocessor |
| 5912 |
Message-Id: <[email protected]> |
| 5913 |
|
| 5914 |
2022-09-26 Etienne Brateau <[email protected]> |
| 5915 |
|
| 5916 |
Fix when enabling APIC without SMP |
| 5917 |
When we want to enable APIC, we must initialize the structure or |
| 5918 |
otherwise, it will try to access to a not initialized memory addresses. |
| 5919 |
Message-Id: <[email protected]> |
| 5920 |
|
| 5921 |
2022-09-18 Samuel Thibault <[email protected]> |
| 5922 |
|
| 5923 |
std_types: Drop char, short and int type definitions |
| 5924 |
These are provided by mig since ecf59842e472 ("Make MIG recognize the |
| 5925 |
basic C integral types."), released in snapshot v1.8+git20200618. |
| 5926 |
|
| 5927 |
x86_64: ignore warning |
| 5928 |
|
| 5929 |
2022-09-17 Samuel Thibault <[email protected]> |
| 5930 |
|
| 5931 |
interrupt: Fix saving irq/ipl when linux drivers are disabled |
| 5932 |
When Linux drivers are disabled, in hardclock() the linux_timer_intr() |
| 5933 |
call is dropped, and gcc can tail-recursion-optimize the call to |
| 5934 |
clock_interrupt(). To do so, it overwrites the hardclock() parameters to |
| 5935 |
suit the clock_interrupt parameters layout. This however means it thrashes |
| 5936 |
the backups that the interrupt() function had made of irq/ipl, leading to |
| 5937 |
mayhem. |
| 5938 |
|
| 5939 |
interrupt should thus really properly separate its irq/ipl backups from the |
| 5940 |
interrupt function parameters. |
| 5941 |
|
| 5942 |
Thanks a lot to Etienne Brateau for the tricky investigation! |
| 5943 |
|
| 5944 |
2022-09-17 Samuel Thibault <[email protected]> |
| 5945 |
|
| 5946 |
kd_mouse: Fix warning |
| 5947 |
|
| 5948 |
x86_64: fix warning |
| 5949 |
|
| 5950 |
x86_64: fix build |
| 5951 |
|
| 5952 |
2022-08-28 Luca Dariz <[email protected]> |
| 5953 |
|
| 5954 |
hack vm memory object proxy creation for vm arrays |
| 5955 |
* vm/memory_object_proxy.c: truncate vm array types as if they were |
| 5956 |
the rpc_ version because MIG can't handle that. This rpc can't |
| 5957 |
handle more than one element anyway. |
| 5958 |
|
| 5959 |
Note that the same issue with vm arrays is present at least with |
| 5960 |
syscall emulation, but that functionality seems unused for now. |
| 5961 |
|
| 5962 |
A better fix could be to add a vm descriptor type in include/mach/message.h, |
| 5963 |
but then probably we don't need to use the rpc_ types in MIG anymore, |
| 5964 |
they would be needed only for the syscall definitions. |
| 5965 |
|
| 5966 |
Message-Id: <[email protected]> |
| 5967 |
|
| 5968 |
2022-08-28 Samuel Thibault <[email protected]> |
| 5969 |
|
| 5970 |
copyinmsg: Set msgh_size inside copyinmsg rather than the caller |
| 5971 |
In the 32/64 conversion case it is copyinmsg that will know the |
| 5972 |
eventual size. |
| 5973 |
|
| 5974 |
kmsg: factorize uint32_t into an alignment type |
| 5975 |
and restore the checks for offset alignment in the message, even if |
| 5976 |
currently it is trivially always alright. |
| 5977 |
|
| 5978 |
2022-08-28 Luca Dariz <[email protected]> |
| 5979 |
|
| 5980 |
kmsg: fix msg body alignment |
| 5981 |
* ipc/ipc_kmsg.c: align msg body to 4 bytes as done in mig |
| 5982 |
|
| 5983 |
Message-Id: <[email protected]> |
| 5984 |
|
| 5985 |
2022-08-28 Samuel Thibault <[email protected]> |
| 5986 |
|
| 5987 |
x86_64: fix installing x86_64-specific headers |
| 5988 |
|
| 5989 |
2022-08-28 Luca Dariz <[email protected]> |
| 5990 |
|
| 5991 |
use port name type in mach_port_names() |
| 5992 |
* ipc/mach_port.c: use mach_port_name_t instead of mach_port_t, since |
| 5993 |
they could have different size. Fortunately we can keep the same |
| 5994 |
optimization about allocationg memory, since mach_port_type_t has |
| 5995 |
the same size as a name. |
| 5996 |
|
| 5997 |
Message-Id: <[email protected]> |
| 5998 |
|
| 5999 |
2022-08-28 Luca Dariz <[email protected]> |
| 6000 |
|
| 6001 |
fix host_info structure definition |
| 6002 |
* include/mach/host_info.h: replace vm_size_t with rpc_ version for 64 |
| 6003 |
bit compatibility. Ideally it should use phys_addr_t or another unit |
| 6004 |
like KB or MB |
| 6005 |
|
| 6006 |
Message-Id: <[email protected]> |
| 6007 |
|
| 6008 |
2022-08-28 Luca Dariz <[email protected]> |
| 6009 |
|
| 6010 |
sign-extend mask in vm_map() with 32-bit userspace |
| 6011 |
* vm/vm_user.c: sign-extend mask with USER32 |
| 6012 |
|
| 6013 |
Message-Id: <[email protected]> |
| 6014 |
|
| 6015 |
2022-08-28 Luca Dariz <[email protected]> |
| 6016 |
|
| 6017 |
compute mach port size from the corresponding type |
| 6018 |
* ipc/ipc_machdep.h: re-define PORT_T_SIZE_IN_BITS to be computed from |
| 6019 |
mach_port_t instead of being hardcoded. |
| 6020 |
|
| 6021 |
Message-Id: <[email protected]> |
| 6022 |
|
| 6023 |
2022-08-28 Samuel Thibault <[email protected]> |
| 6024 |
|
| 6025 |
Fix 64-to-32 copyout |
| 6026 |
We cannot assume that the processor is little-endian. |
| 6027 |
|
| 6028 |
2022-08-28 Luca Dariz <[email protected]> |
| 6029 |
|
| 6030 |
fix argument passing to bootstrap modules |
| 6031 |
* kern/bootstrap.c: use rpc_ vm types to put the bootstrap module |
| 6032 |
arguments on the stack, make it consistent with user-space types. |
| 6033 |
|
| 6034 |
Message-Id: <[email protected]> |
| 6035 |
|
| 6036 |
2022-08-28 Luca Dariz <[email protected]> |
| 6037 |
|
| 6038 |
simplify ipc_kmsg_copyout_body() usage |
| 6039 |
* ipc/ipc_kmsg.h: change prototype of ipc_kmsg_copyout_body() |
| 6040 |
* ipc/ipc_kmsg.c: change prototype and usage of |
| 6041 |
ipc_kmsg_copyout_body() by incorporating common code |
| 6042 |
* ipc/mach_msg.c: change usage of ipc_kmsg_copyout_body() |
| 6043 |
|
| 6044 |
Message-Id: <[email protected]> |
| 6045 |
|
| 6046 |
2022-08-28 Luca Dariz <[email protected]> |
| 6047 |
|
| 6048 |
fix rpc types for KERNEL_USER stubs |
| 6049 |
* include/mach/mach_types.defs: use rpc_ vm types for KERNEL_USER stubs. |
| 6050 |
|
| 6051 |
This change fixes two use cases: |
| 6052 |
* internal rpc, e.g. when a memory object is initialized as a |
| 6053 |
consequence of vm_map(); for example, the bootstrap modules use the |
| 6054 |
"time" kernel device and memory-map it during startup. This |
| 6055 |
triggers a kernel-side rpc to initialize the memory object and |
| 6056 |
install the map, which is completely transparent form user-space. |
| 6057 |
* notifications from kernel to user-space |
| 6058 |
|
| 6059 |
Message-Id: <[email protected]> |
| 6060 |
|
| 6061 |
2022-08-28 Samuel Thibault <[email protected]> |
| 6062 |
|
| 6063 |
Add missing const_mach_port_name_array_t type |
| 6064 |
|
| 6065 |
Fix inclusability of <mach/mach_types.h> |
| 6066 |
Now that mach/machine/vm_types.h uses stdint types, we have to ship a |
| 6067 |
header that defines them. |
| 6068 |
|
| 6069 |
2022-08-27 Samuel Thibault <[email protected]> |
| 6070 |
|
| 6071 |
Fix building x86_64 xen platform |
| 6072 |
On Xen we do not have a separate boot section, we directly start at the |
| 6073 |
kernel map address. We thus do not have a map shift. |
| 6074 |
|
| 6075 |
2022-08-27 Luca Dariz <[email protected]> |
| 6076 |
|
| 6077 |
cleanup headers in printf.c |
| 6078 |
* kern/printf.c: remove unnecessary #include and reorder |
| 6079 |
|
| 6080 |
This allows the file to be reused for minimal user-space tests. |
| 6081 |
|
| 6082 |
Message-Id: <[email protected]> |
| 6083 |
|
| 6084 |
2022-08-27 Luca Dariz <[email protected]> |
| 6085 |
|
| 6086 |
add rpc_versions for vm types |
| 6087 |
* vm_types.h: add new types and conversion functions |
| 6088 |
* mach_types.defs: adapt vm types depending on kernel user/server |
| 6089 |
* vm_info.h: adapt rpc structure to have uniformly-sized members also |
| 6090 |
on 64-bit |
| 6091 |
* x86_64/configfrag.c: add new option to select the user-space variant. |
| 6092 |
|
| 6093 |
Note that with this change the user-space interface is somehow fixed, |
| 6094 |
i.e. it can't support 32-bit and 64-bit tasks at the same time. |
| 6095 |
If this would be needed at some point, this change needs to be reworked. |
| 6096 |
|
| 6097 |
Message-Id: <[email protected]> |
| 6098 |
|
| 6099 |
2022-08-27 Luca Dariz <[email protected]> |
| 6100 |
|
| 6101 |
add port name types |
| 6102 |
* include/mach/mach_port.defs |
| 6103 |
- use C type mach_port_name_array_t |
| 6104 |
* include/mach/port.h: |
| 6105 |
- add new types mach_port_name_t and mach_port_name_array_t |
| 6106 |
- refine mach_port_t type for user and kernel space |
| 6107 |
- use port names in mach_port_status to allow compilation of 64-bit |
| 6108 |
- use port name to have uniform sizes and remove the |
| 6109 |
old_mach_port_status_t as it's unused |
| 6110 |
* include/mach/std_types.defs |
| 6111 |
- use C type mach_port_name_array_t |
| 6112 |
* kern/thread.{h,c} |
| 6113 |
- fix prototype to use port names. So far it seems the only rpc to |
| 6114 |
cause a conflict between the mig-generated header and the regular |
| 6115 |
header, so compilation fails. |
| 6116 |
|
| 6117 |
Message-Id: <[email protected]> |
| 6118 |
|
| 6119 |
2022-08-27 Luca Dariz <[email protected]> |
| 6120 |
|
| 6121 |
fix warnings for 32 bit builds |
| 6122 |
Message-Id: <[email protected]> |
| 6123 |
|
| 6124 |
2022-08-27 Luca Dariz <[email protected]> |
| 6125 |
|
| 6126 |
x86_64: fix exception stack alignment |
| 6127 |
* i386/i386/pcb.c: |
| 6128 |
- increase alignment of pcb cache to 16 |
| 6129 |
- ensure the stack is properly aligned when switching ktss |
| 6130 |
* i386/i386/thread.h: |
| 6131 |
- add padding tomake iss field end aligned to 16 bytes |
| 6132 |
* i386/i386/trap.c: |
| 6133 |
- ensure the state we get after the trap points to the correct place |
| 6134 |
in the pcb structure |
| 6135 |
|
| 6136 |
When handling exceptions from IA-32e compatibility mode in user space, |
| 6137 |
on a 64-bit kernel, the exception stack where error info is pushed |
| 6138 |
needs to be aligned to 16 bytes (see Intel System Programming guide, |
| 6139 |
$6.14.2) |
| 6140 |
|
| 6141 |
The exception stack frame is set in the middle of pcb->iss, but it's not always |
| 6142 |
16-byte aligned; to make sure it is, we increase the alignment of the |
| 6143 |
pcb cache and add a padding field in the pcb structure. |
| 6144 |
|
| 6145 |
This issue resulted in a general protection failure due to CS being |
| 6146 |
corrupted after a page fault. The corruption was happening when the |
| 6147 |
exception stack frame was not properly aligned and a page fault |
| 6148 |
happened; the error info was then pushed after re-aligning the stack, |
| 6149 |
so the value of eflags was actually written in CS place and other |
| 6150 |
fields were shifted too. |
| 6151 |
|
| 6152 |
It also makes sense to ensure this by adding two assertions, although |
| 6153 |
these were primarly useful during debug. |
| 6154 |
|
| 6155 |
Message-Id: <[email protected]> |
| 6156 |
|
| 6157 |
2022-08-27 Luca Dariz <[email protected]> |
| 6158 |
|
| 6159 |
fix Task State Segment layout for 64 bit |
| 6160 |
Message-Id: <[email protected]> |
| 6161 |
|
| 6162 |
2022-08-27 Luca Dariz <[email protected]> |
| 6163 |
|
| 6164 |
enable user access |
| 6165 |
The pmap module is a bit limited on 64 bit paging, so this should be |
| 6166 |
refined when we'll be able to use addresses over 4G. |
| 6167 |
|
| 6168 |
Message-Id: <[email protected]> |
| 6169 |
|
| 6170 |
2022-08-27 Luca Dariz <[email protected]> |
| 6171 |
|
| 6172 |
fix console setting from cmdline |
| 6173 |
The leading space prevents it working if console=comX is the only |
| 6174 |
argument, so handle this case separately. |
| 6175 |
|
| 6176 |
Message-Id: <[email protected]> |
| 6177 |
|
| 6178 |
2022-08-27 Luca Dariz <[email protected]> |
| 6179 |
|
| 6180 |
fix register corruption in irq on qemu |
| 6181 |
rbx was used to compute the irq index in iunit and ivect arrays, |
| 6182 |
however it should be preserved by pushing it in to the stack. As a |
| 6183 |
solution, we use rax instead, which is caller-saved. |
| 6184 |
|
| 6185 |
Message-Id: <[email protected]> |
| 6186 |
|
| 6187 |
2022-08-27 Luca Dariz <[email protected]> |
| 6188 |
|
| 6189 |
cleanup multiboot |
| 6190 |
* use _raw_ structs where we refer to the bootloader-provided data |
| 6191 |
* remove unused structures |
| 6192 |
* fix 64 bit boot |
| 6193 |
|
| 6194 |
Message-Id: <[email protected]> |
| 6195 |
|
| 6196 |
2022-08-27 Samuel Thibault <[email protected]> |
| 6197 |
|
| 6198 |
x86_64 boothdr: Fix _start symbol for multiboot address overrides |
| 6199 |
We shouldn't be needing that since we won't use a.out for 64bit, but using |
| 6200 |
address override in the multiboot header could be useful at least for |
| 6201 |
testing. |
| 6202 |
|
| 6203 |
2022-08-27 Luca Dariz <[email protected]> |
| 6204 |
|
| 6205 |
add support for booting from grub with x86_64 |
| 6206 |
* configure: compile for native x86_64 by default instead of xen |
| 6207 |
* x86_64/Makefrag.am: introduce KERNEL_MAP_BASE to reuse the constant |
| 6208 |
in both code and linker script |
| 6209 |
* x86_64/ldscript: use a .boot section for the very first operations, |
| 6210 |
until we reach long mode. This section is not really allocated, so |
| 6211 |
it doesn't need to be freed later. The vm system is later |
| 6212 |
initialized starting from .text and not including .boot |
| 6213 |
* link kernel at 0x4000000 as the xen version, higher values causes |
| 6214 |
linker errors |
| 6215 |
* we can't use full segmentation in long mode, so we need to create a |
| 6216 |
temporary mapping during early boot to be able to jump to high |
| 6217 |
addresses |
| 6218 |
* build direct map for first 4G in boothdr, it seems required by Linux |
| 6219 |
drivers |
| 6220 |
* add INTEL_PTE_PS bit definition to enable 2MB pages during bootstrap |
| 6221 |
* ensure write bit is set in PDP entry access rights. This only |
| 6222 |
applies to PAE-enabled kernels, mandatory for x86_64. On xen |
| 6223 |
platform it seems to be handled differently |
| 6224 |
|
| 6225 |
Message-Id: <[email protected]> |
| 6226 |
|
| 6227 |
2022-08-23 Damien Zammit <[email protected]> |
| 6228 |
|
| 6229 |
gnumach: Remove PCI_CFG2_* as a reserved ioport range |
| 6230 |
PCI CONF2 access method was deprecated in PCI v2.0 |
| 6231 |
|
| 6232 |
Also, the conf2 ioport range is only activated for use |
| 6233 |
as pci configuration space when conf1 registers are accessed |
| 6234 |
in a particular sequence. |
| 6235 |
|
| 6236 |
Since the pci-arbiter does not access the conf1 forwarding register, |
| 6237 |
we are safe to remove this completely from gnumach to allow |
| 6238 |
normal I/O use of the conf2 range as modern hardware expects. |
| 6239 |
Message-Id: <[email protected]> |
| 6240 |
|
| 6241 |
2022-08-21 Damien Zammit <[email protected]> |
| 6242 |
|
| 6243 |
gnumach: vm_allocate_contiguous: Allow small power 2 alignments |
| 6244 |
This allows contiguous allocations aligned to values |
| 6245 |
smaller than one page, but still a power of 2, |
| 6246 |
by forcing the alignment to be to the nearest page. |
| 6247 |
|
| 6248 |
This works because PAGE_SIZE is a power of two. |
| 6249 |
|
| 6250 |
Message-Id: <[email protected]> |
| 6251 |
|
| 6252 |
2022-08-09 Joan Lledó <[email protected]> |
| 6253 |
|
| 6254 |
dev_pager.c: fix wrong condition to remove entries |
| 6255 |
* device/dev_pager.c: |
| 6256 |
* dev_pager_hash_delete() and dev_device_hash_delete(): |
| 6257 |
* Fix condition to call kmem_cache_free(), it was being called always. |
| 6258 |
* https://lists.gnu.org/archive/html/bug-hurd/2022-08/msg00002.html |
| 6259 |
|
| 6260 |
2022-07-20 Samuel Thibault <[email protected]> |
| 6261 |
|
| 6262 |
Complete no-pie flags |
| 6263 |
* Makefile.am (AM_CFLAGS): Add -fno-PIE -fno-pie as well. |
| 6264 |
|
| 6265 |
2022-05-27 Guy-Fleury Iteriteka <[email protected]> |
| 6266 |
|
| 6267 |
convert K&R into ansi |
| 6268 |
Message-Id: <Yo+lzS7RtW5ZjQHN@debian> |
| 6269 |
|
| 6270 |
2022-05-02 Guy-Fleury Iteriteka <[email protected]> |
| 6271 |
|
| 6272 |
convert k&R to ansi. |
| 6273 |
Message-Id: <Ym+Of2H8SFEuUw9K@debian> |
| 6274 |
|
| 6275 |
2022-04-03 Luca Dariz <[email protected]> |
| 6276 |
|
| 6277 |
remove the old_mach_port_status_t as it's unused |
| 6278 |
* include/mach/port.h: |
| 6279 |
- remove the old_mach_port_status_t as it's unused. |
| 6280 |
|
| 6281 |
2022-03-13 Samuel Thibault <[email protected]> |
| 6282 |
|
| 6283 |
device intr: Return an error on bogus intr port |
| 6284 |
Rather than risking dereferencing NULL. |
| 6285 |
|
| 6286 |
device intr: Fix hypothetical NULL dererefence |
| 6287 |
|
| 6288 |
device: Fix NULL dereference |
| 6289 |
|
| 6290 |
device: Avoid NULL dereference |
| 6291 |
|
| 6292 |
2022-02-18 Samuel Thibault <[email protected]> |
| 6293 |
|
| 6294 |
device_map_page: update prototype |
| 6295 |
|
| 6296 |
vm_object_page_map: update prototype |
| 6297 |
|
| 6298 |
2022-02-17 Samuel Thibault <[email protected]> |
| 6299 |
|
| 6300 |
vm_allocate_contiguous: fix checking the end of the allocation |
| 6301 |
|
| 6302 |
mach_vm_object_pages: Print a warning if the physical address is beyond 4GiB |
| 6303 |
vpi_offset is not currently large enough to store it. |
| 6304 |
|
| 6305 |
vm_allocate_contiguous: Make sure we enforce physical addresses contraints |
| 6306 |
|
| 6307 |
pmap: Make sure we do not allocate page tables beyond 4GiB |
| 6308 |
vm_page_insert would not be able to store the offset. |
| 6309 |
|
| 6310 |
projected_buffer_*: Fix storing physical address |
| 6311 |
|
| 6312 |
2022-02-16 Samuel Thibault <[email protected]> |
| 6313 |
|
| 6314 |
xen: Fix storing physical addresses |
| 6315 |
|
| 6316 |
io_map: Fix using physical addresses |
| 6317 |
|
| 6318 |
db: Fix db_user_to_phys_address returning physical addresses |
| 6319 |
It shall return a phys_addr_t, not vm_offset_t. |
| 6320 |
|
| 6321 |
vm_object: Fix vm_object_page_map map function prototype |
| 6322 |
The map function is supposed to return physical addresses, thus phys_addr_t. |
| 6323 |
|
| 6324 |
2022-02-15 Damien Zammit <[email protected]> |
| 6325 |
|
| 6326 |
biosmem: Narrow e820 regions as required |
| 6327 |
Message-Id: <[email protected]> |
| 6328 |
|
| 6329 |
2022-02-11 Samuel Thibault <[email protected]> |
| 6330 |
|
| 6331 |
Drop spurious version suffix |
| 6332 |
|
| 6333 |
2022-02-06 Samuel Thibault <[email protected]> |
| 6334 |
|
| 6335 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 6336 |
|
| 6337 |
Ship x86_64/x86_64 and x86_64/include/mach/x86_64 |
| 6338 |
* Makefrag.am (EXTRA_DIST): Ship the x86_64/x86_64 and |
| 6339 |
x86_64/include/mach/x86_64 symlinks. |
| 6340 |
|
| 6341 |
Makefrag.am: Move architecture condition inside architecture Makefrag.am |
| 6342 |
Otherwise we cannot use _DIST there and have them all taken into account. |
| 6343 |
As a consequence, we can drop duplicate _DIST between i386 and x86_64. |
| 6344 |
|
| 6345 |
Ship x86_64/x86_64 |
| 6346 |
* x86_64/Makefrag.am (EXTRA_DIST): Ship the x86_64/x86_64 symlink. |
| 6347 |
|
| 6348 |
2022-01-21 Samuel Thibault <[email protected]> |
| 6349 |
|
| 6350 |
thread_terminate_release: Error out early if thread is NULL |
| 6351 |
We do not want to destroy the port and release the stack if thread is |
| 6352 |
NULL, i.e. we will fail. |
| 6353 |
|
| 6354 |
2022-01-21 Etienne Brateau <[email protected]> |
| 6355 |
|
| 6356 |
Convert from K&R to ANSI |
| 6357 |
* hardclock.c: convert to ANSI |
| 6358 |
* com.c: ditto |
| 6359 |
* lpr.c: ditto |
| 6360 |
* mem.c: ditto |
| 6361 |
Message-Id: <[email protected]> |
| 6362 |
|
| 6363 |
2022-01-16 Samuel Thibault <[email protected]> |
| 6364 |
|
| 6365 |
task_set_name: make string parameter const |
| 6366 |
This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server |
| 6367 |
side") |
| 6368 |
|
| 6369 |
device_types: Add more const_ types |
| 6370 |
|
| 6371 |
typo |
| 6372 |
|
| 6373 |
Add yet more const string types |
| 6374 |
|
| 6375 |
mach_debug_types: Add const_dev_name_t |
| 6376 |
This will avoid forcing the caller to respect the definite string size. |
| 6377 |
|
| 6378 |
device_types: Add const_dev_name_t |
| 6379 |
This will avoid forcing the caller to respect the definite string size. |
| 6380 |
|
| 6381 |
2022-01-01 Samuel Thibault <[email protected]> |
| 6382 |
|
| 6383 |
mach_i386: include MACH_I386_IMPORTS |
| 6384 |
Like other defs header do, to allow e.g. including libports/ports.h |
| 6385 |
|
| 6386 |
2021-12-31 Alicia <[email protected]> |
| 6387 |
|
| 6388 |
thread: Fix thread_abort clearing of an event wait |
| 6389 |
881fe9da8bd1 ("kern/thread.c: some minor style changes") introduced a |
| 6390 |
spurious comment. |
| 6391 |
|
| 6392 |
2021-12-30 Etienne Brateau <[email protected]> |
| 6393 |
|
| 6394 |
Convert from K&R to ANSI |
| 6395 |
* device/dev_name.c: Convert function prototypes from K&R to ANSI. |
| 6396 |
* device/subr.c: Convert function prototypes from K&R to ANSI. |
| 6397 |
Message-Id: <[email protected]> |
| 6398 |
|
| 6399 |
2021-12-30 Adam Kandur <[email protected]> |
| 6400 |
|
| 6401 |
kern/thread.c: some minor style changes |
| 6402 |
Greeting, I have changed some stuff in kern/thread.c which makes code |
| 6403 |
more readable for me. Maybe it will be usefull. |
| 6404 |
|
| 6405 |
Message-Id: <[email protected]> |
| 6406 |
|
| 6407 |
2021-12-29 Samuel Thibault <[email protected]> |
| 6408 |
|
| 6409 |
ddb: Fix updating sp while progressing through frames |
| 6410 |
Notably trap/interrupt/syscall provide an exact SP value. |
| 6411 |
|
| 6412 |
ddb: Unwind over RET |
| 6413 |
When we don't have a frame but PC points to a RET instruction (e.g. in the |
| 6414 |
userland system call assembly code), we can trivially unwind it. |
| 6415 |
|
| 6416 |
2021-12-28 Samuel Thibault <[email protected]> |
| 6417 |
|
| 6418 |
ddb: Fix accessing high memory |
| 6419 |
User processes loaded in high memory are not visible to ddb through the |
| 6420 |
direct mapping. We can however read/write data through copy_from/to_phys. |
| 6421 |
|
| 6422 |
2021-12-16 Samuel Thibault <[email protected]> |
| 6423 |
|
| 6424 |
rtc: drop message on setting RTC time |
| 6425 |
We haven't seen the 2032 bug for a long time, f040677be3c0 ("kd: Do not |
| 6426 |
read the CMOS ram") probably fixed it at last. |
| 6427 |
|
| 6428 |
vm_wire: extend per-task wiring limit to 8MiB |
| 6429 |
Like Linux just did. |
| 6430 |
|
| 6431 |
2021-11-28 Samuel Thibault <[email protected]> |
| 6432 |
|
| 6433 |
memmmap: Use biosmem_addr_available rather than vm_page_lookup_pa |
| 6434 |
The segment code actually has vm_page entries for reserved pages, and |
| 6435 |
thus memmmap would reject mapping ACPI pages. Taking the information |
| 6436 |
from biosmem is much more precise, and indeed knows all hardware quirks |
| 6437 |
which can now be dropped from memmmap. |
| 6438 |
|
| 6439 |
Fix rejecting the mapping of some pages |
| 6440 |
The memmmap method may reject some offsets (because it falls in non-device |
| 6441 |
ranges), so device_map_page has to notice this and report the error. |
| 6442 |
device_pager_data_request then has to notice as well and report. |
| 6443 |
|
| 6444 |
2021-11-07 Sergey Bugaev <[email protected]> |
| 6445 |
|
| 6446 |
vm_region_get_proxy: rename to create_proxy |
| 6447 |
For coherency with memory_object_create_proxy. |
| 6448 |
|
| 6449 |
Memory proxies: Add support for anonymous mappings |
| 6450 |
* vm/vm_map.c (vm_region_get_proxy): |
| 6451 |
- Return KERN_INVALID_ARGUMENT when the entry is a submap. |
| 6452 |
- Create a pager for the vm_object when the entry doesn't |
| 6453 |
have any yet, since it's an anonymous mapping. |
| 6454 |
Message-Id: <[email protected]> |
| 6455 |
|
| 6456 |
2021-11-07 Joan Lledó <[email protected]> |
| 6457 |
|
| 6458 |
vm: vm_region_get_proxy |
| 6459 |
To get a proxy to the region a given address belongs to, |
| 6460 |
with protection and range limited to the region ones. |
| 6461 |
|
| 6462 |
* include/mach/mach4.defs: vm_region_get_proxy RPC declaration |
| 6463 |
* vm/vm_map.c: vm_region_get_proxy implementation |
| 6464 |
Message-Id: <[email protected]> |
| 6465 |
|
| 6466 |
2021-11-07 Samuel Thibault <[email protected]> |
| 6467 |
|
| 6468 |
memory_object_create_proxy: Fix and check coherency with RPC |
| 6469 |
* vm/memory_object_proxy.c: Include kern/mach4.server.h. |
| 6470 |
(memory_object_create_proxy): Drop const qualifiers. |
| 6471 |
|
| 6472 |
2021-11-07 Samuel Thibault <[email protected]> |
| 6473 |
|
| 6474 |
memory_object: Fix memory_object_t type in the kernel |
| 6475 |
mach_port_t is for userland, kernel sees the translated ipc_port_t. |
| 6476 |
|
| 6477 |
* include/mach/memory_object.h [MACH_KERNEL]: Include ipc/ipc_types.h |
| 6478 |
[MACH_KERNEL] (memory_object_t): Typedef to ipc_port_t instead of |
| 6479 |
mach_port_t. |
| 6480 |
(memory_object_array_t): Typedef to memory_object_t* instead of |
| 6481 |
mach_port_t*. |
| 6482 |
|
| 6483 |
2021-11-07 Samuel Thibault <[email protected]> |
| 6484 |
|
| 6485 |
Drop unused device_pager_release |
| 6486 |
* device/dev_pager.c (device_pager_release): Drop unused function. |
| 6487 |
|
| 6488 |
2021-10-17 Samuel Thibault <[email protected]> |
| 6489 |
|
| 6490 |
memory_object_create_proxy: Make len parameter vm_size_array_t |
| 6491 |
This is a no-op on i386. |
| 6492 |
|
| 6493 |
* i386/include/mach/i386/vm_types.h (vm_size_array_t): New type. |
| 6494 |
* include/mach/mach4.defs (vm_size_array_t): New type. |
| 6495 |
(memory_object_create_proxy): Turn len parameter from vm_offset_array_t |
| 6496 |
to vm_size_array_t. |
| 6497 |
* vm/memory_object_proxy.c (memory_object_create_proxy): Turn len |
| 6498 |
parameter from const vm_offset_t * to const vm_size_t *. |
| 6499 |
|
| 6500 |
2021-09-23 Samuel Thibault <[email protected]> |
| 6501 |
|
| 6502 |
i386/i386/fpu.h: Fix xrstor and xrstors macros |
| 6503 |
xrstor and xrstors also take the xsave support bitmask. |
| 6504 |
|
| 6505 |
We were otherwise not necessarily properly reloading all the FPU state, |
| 6506 |
thus leading to various subtle bugs, notably with glibc 2.33's |
| 6507 |
ifunc-optimized memcpy etc. |
| 6508 |
|
| 6509 |
* i386/i386/fpu.h (xrstor, xrstors): Pass fp_xsave_support in EDX:EAX. |
| 6510 |
|
| 6511 |
2021-09-23 Samuel Thibault <[email protected]> |
| 6512 |
|
| 6513 |
i386/i386/fpu.h: Drop spurious backslashes |
| 6514 |
|
| 6515 |
2021-09-18 Samuel Thibault <[email protected]> |
| 6516 |
|
| 6517 |
x86_64: Fix installation target of headers |
| 6518 |
* x86_64/Makefrag.am (include_mach_i386dir): Rename to include_mach_x86_64dir, set to $(includedir)/mach/x86_64. |
| 6519 |
(include_mach_i386_HEADERS): Rename to include_mach_x86_64_HEADERS. |
| 6520 |
|
| 6521 |
Reported-by: Andrea Monaco <[email protected]> |
| 6522 |
|
| 6523 |
2021-09-18 Miguel Figueiredo <[email protected]> |
| 6524 |
|
| 6525 |
replace obsolete AC_CONFIG_HEADER with AC_CONFIG_HEADERS |
| 6526 |
|
| 6527 |
2021-09-12 Andrea Monaco <[email protected]> |
| 6528 |
|
| 6529 |
ahci: Do not even try AHCI identify when device is ATAPI |
| 6530 |
* linux/dev/drivers/block/ahci.c (ahci_probe_port): Avoid trying AHCI |
| 6531 |
identify when PxCMD.ATAPI is set. |
| 6532 |
|
| 6533 |
ahci: Fix warning content |
| 6534 |
* linux/dev/drivers/block/ahci.c (ahci_identify): Fix warning for the |
| 6535 |
identify timeout. |
| 6536 |
|
| 6537 |
2021-08-28 Joan Lledó <[email protected]> |
| 6538 |
|
| 6539 |
dev_pager: rename hash macros |
| 6540 |
Remove the reference to the pager hash since they are used |
| 6541 |
both in the pager and the device hashes. |
| 6542 |
|
| 6543 |
* device/dev_pager.c: |
| 6544 |
* Rename DEV_PAGER_HASH_COUNT to DEV_HASH_COUNT |
| 6545 |
* Rename dev_pager_hash to dev_hash |
| 6546 |
Message-Id: <[email protected]> |
| 6547 |
|
| 6548 |
2021-08-28 Joan Lledó <[email protected]> |
| 6549 |
|
| 6550 |
dev_pager: implement offset |
| 6551 |
* device/dev_pager.c: |
| 6552 |
* struct dev_pager: add offset field |
| 6553 |
* new struct dev_device_entry: includes device and offset |
| 6554 |
* new hash table dev_device_hashtable |
| 6555 |
* index [device + offset] |
| 6556 |
* new functions dev_device_hash[init,insert,delete,lookup] |
| 6557 |
* do the same as their counterparts for |
| 6558 |
dev_pager_hashtable |
| 6559 |
* dev_pager_setup(): record the offset |
| 6560 |
* device_map_page(): add the recorded offset on the fly |
| 6561 |
Message-Id: <[email protected]> |
| 6562 |
|
| 6563 |
2021-08-28 Samuel Thibault <[email protected]> |
| 6564 |
|
| 6565 |
linux block: allow loading data up to 4GiB limit |
| 6566 |
Linux drivers are only limited by the DMA32 constraint, not by the directmap |
| 6567 |
constraint. But our segment order is currently set to |
| 6568 |
DMA < DMA32 < DIRECTMAP < HIGHMEM (since that is what we will have in 64bit |
| 6569 |
mode). In PAE mode this makes DMA32 limited to 800MiB. Ideally we'd have |
| 6570 |
DMA < DIRECTMAP < DMA32 < HIGHMEM but that'd make the memory code more |
| 6571 |
complex, and we are to remove the Linux drivers anyway. In the |
| 6572 |
meanwhile, In non-PAE mode we can just use HIGHMEM which is already |
| 6573 |
limited to 4GiB, that will do the work. |
| 6574 |
|
| 6575 |
* linux/dev/glue/block.c (VM_PAGE_LINUX): New macro. |
| 6576 |
(device_read): Use VM_PAGE_LINUX instead of VM_PAGE_DMA32. |
| 6577 |
|
| 6578 |
2021-08-28 Samuel Thibault <[email protected]> |
| 6579 |
|
| 6580 |
linux: Use kvtophys instead of _kvtophys |
| 6581 |
_kvtophys only works with direct-mappable memory, which is scarse, |
| 6582 |
better use kvtophys that can work with any kind of memory. |
| 6583 |
|
| 6584 |
* linux/src/include/asm-i386/io.h: Include <intel/pmap.h> |
| 6585 |
(virt_to_phys): Use kvtophys instead of _kvtophys. |
| 6586 |
|
| 6587 |
2021-08-27 Samuel Thibault <[email protected]> |
| 6588 |
|
| 6589 |
linux block: Fix checking block sector. |
| 6590 |
* linux/dev/glue/block.c (check_rw_block): Return 0 on no error. |
| 6591 |
|
| 6592 |
2021-08-27 Samuel Thibault <[email protected]> |
| 6593 |
|
| 6594 |
vm_page_grab: allow allocating in high memory |
| 6595 |
vm_page_grab was systematically using the VM_PAGE_SEL_DIRECTMAP selector |
| 6596 |
to play safe with existing code. |
| 6597 |
|
| 6598 |
This adds a flags parameter to let callers of vm_page_grab specify their |
| 6599 |
constraints. |
| 6600 |
|
| 6601 |
Linux drivers need 32bit dmas, Xen drivers use kvtophys to clear some |
| 6602 |
data. Callers of kmem_pagealloc_physmem and vm_page_grab_phys_addr also use |
| 6603 |
kvtophys. Otherwise allocations can go to highmem. |
| 6604 |
|
| 6605 |
This fixes the allocation jam in the directmap segment. |
| 6606 |
|
| 6607 |
* vm/vm_page.h (VM_PAGE_DMA, VM_PAGE_DMA32, VM_PAGE_DIRECTMAP, |
| 6608 |
VM_PAGE_HIGHMEM): New macros. |
| 6609 |
(vm_page_grab): Add flags parameter. |
| 6610 |
* vm/vm_resident.c (vm_page_grab): Choose allocation selector according |
| 6611 |
to flags parameter. |
| 6612 |
(vm_page_convert, vm_page_alloc): Pass VM_PAGE_HIGHMEM to vm_page_grab. |
| 6613 |
(vm_page_grab_phys_addr): Pass VM_PAGE_DIRECTMAP to vm_page_grab. |
| 6614 |
* vm/vm_fault.c (vm_fault_page): Pass VM_PAGE_HIGHMEM to vm_page_grab. |
| 6615 |
* vm/vm_map.c (vm_map_copy_steal_pages): Pass VM_PAGE_HIGHMEM to vm_page_grab. |
| 6616 |
* kern/slab.c (kmem_pagealloc_physmem): Pass VM_PAGE_DIRECTMAP to vm_page_grab. |
| 6617 |
* i386/intel/pmap.c (pmap_page_table_page_alloc): Pass VM_PAGE_DIRECTMAP to |
| 6618 |
vm_page_grab. |
| 6619 |
* xen/block.c (device_read): Pass VM_PAGE_DIRECTMAP to vm_page_grab. |
| 6620 |
* linux/dev/glue/block.c (alloc_buffer): Pass VM_PAGE_DMA32 to vm_page_grab. |
| 6621 |
|
| 6622 |
2021-08-23 Samuel Thibault <[email protected]> |
| 6623 |
|
| 6624 |
db_show_vmstat: Show segment name rather than its number |
| 6625 |
|
| 6626 |
2021-08-22 Samuel Thibault <[email protected]> |
| 6627 |
|
| 6628 |
db_show_vmstat: Also show segment size |
| 6629 |
* vm/vm_page.c (db_show_vmstat): Add printing the segment size. |
| 6630 |
|
| 6631 |
db_show_vmstat: Drop duplicate output |
| 6632 |
* vm/vm_page.c (db_show_vmstat): Drop displaying cache numbers a second |
| 6633 |
time. |
| 6634 |
|
| 6635 |
2021-08-21 Samuel Thibault <[email protected]> |
| 6636 |
|
| 6637 |
device_read: Add dealloc for data |
| 6638 |
It would be very tricky for the server to manage deallocation for |
| 6639 |
device_read, and does not seem useful anyway. device_reply.defs already |
| 6640 |
has it. |
| 6641 |
|
| 6642 |
* include/device/device.defs (device_read): Add dealloc flag for the data |
| 6643 |
array. |
| 6644 |
|
| 6645 |
2021-08-21 Samuel Thibault <[email protected]> |
| 6646 |
|
| 6647 |
db show vmstat: also show segments stats |
| 6648 |
* vm/vm_page.c (db_show_vmstat) |
| 6649 |
|
| 6650 |
2021-08-21 Samuel Thibault <[email protected]> |
| 6651 |
|
| 6652 |
db: Add show vmstat command |
| 6653 |
with an output similar to the userland vmstat command |
| 6654 |
|
| 6655 |
* vm/vm_page.c (db_show_vmstat): New function. |
| 6656 |
* vm/vm_page.h (db_show_vmstat): New prototype. |
| 6657 |
* ddb/db_command.c (db_show_cmds): Add vmstat command. |
| 6658 |
|
| 6659 |
2021-08-17 Samuel Thibault <[email protected]> |
| 6660 |
|
| 6661 |
block: Look out for disk sector number overflow |
| 6662 |
* linux/dev/drivers/block/ahci.c (ahci_do_port_request): Reject sectors |
| 6663 |
beyond LBA48 or LBA28. |
| 6664 |
* linux/dev/glue/block.c (check_rw_block): New function. |
| 6665 |
(rdwr_partial, rdwr_full): Use check_rw_block to reject block number |
| 6666 |
overflows. |
| 6667 |
* linux/src/drivers/block/ide.c (do_rw_disk): Reject sectors beyond |
| 6668 |
LBA28 or CHS. |
| 6669 |
|
| 6670 |
2021-08-12 Samuel Thibault <[email protected]> |
| 6671 |
|
| 6672 |
assert: Tell the compiler that failures are unlikely |
| 6673 |
|
| 6674 |
2021-08-09 Samuel Thibault <[email protected]> |
| 6675 |
|
| 6676 |
memory_object_proxy: Deliver no-sender notifications on a separate port |
| 6677 |
Otherwise userland can send spurious notifications. |
| 6678 |
|
| 6679 |
memory_object_proxy: Explicit that creation wants a send right |
| 6680 |
This is required anyway, and allows the caller to pass on MAKE_SEND. |
| 6681 |
|
| 6682 |
memory_object_proxy: Fix send port right leak |
| 6683 |
On success we'd have to clean the port right. Just consume it. |
| 6684 |
|
| 6685 |
memory_object_proxy: Fix checking proxy length |
| 6686 |
We want to prevent subproxies from requesting larger sizes than what a |
| 6687 |
proxy initially allowed. |
| 6688 |
|
| 6689 |
2021-08-09 Joan Lledó <[email protected]> |
| 6690 |
|
| 6691 |
Memory object proxy: add support for ranges and nesting |
| 6692 |
|
| 6693 |
2021-08-09 Samuel Thibault <[email protected]> |
| 6694 |
|
| 6695 |
memory_object_proxy: release resources on no-send notification |
| 6696 |
|
| 6697 |
2021-06-06 Samuel Thibault <[email protected]> |
| 6698 |
|
| 6699 |
vm_map: Allow exagerated max_prot for now |
| 6700 |
glibc's mmap implementation assumes that gnumach will cap the prot for it, |
| 6701 |
so for now let's revert back to capping rather than rejecting. |
| 6702 |
|
| 6703 |
That fixes mmap(SHARED|READ) for read-only objects. |
| 6704 |
|
| 6705 |
2021-05-24 Samuel Thibault <[email protected]> |
| 6706 |
|
| 6707 |
Revert "vm_map: Allow passing the name of a memory object" |
| 6708 |
This reverts commit af9f471b500bcd0c1023259c7577e074fe6d3ee5. |
| 6709 |
|
| 6710 |
2021-05-24 Sergey Bugaev <[email protected]> |
| 6711 |
|
| 6712 |
vm_map: Fix proxy object protection check |
| 6713 |
* If not making a copy, don't cap protection to the limit enforced |
| 6714 |
by the proxy, and only require read access. This fixes mapping |
| 6715 |
parts of read-only files MAP_ANON + PROT_READ|PROT_WRITE. |
| 6716 |
|
| 6717 |
* Instead of silently capping protection, return KERN_PROTECTION_FAILURE |
| 6718 |
to the caller like the other vm_*() routines do. |
| 6719 |
|
| 6720 |
2021-04-05 Samuel Thibault <[email protected]> |
| 6721 |
|
| 6722 |
rtc: Add read/write messages |
| 6723 |
We are still having issues with bogus dates. This adds prints at boot |
| 6724 |
and time set, to make sure what we actually read and write. |
| 6725 |
|
| 6726 |
* i386/i386at/rtc.c: Include <kern/printf.h> |
| 6727 |
(readtodc): Warning about reaching CENTURY_START. Print the time read |
| 6728 |
from RTC. |
| 6729 |
(writetodc): Record in RTC remainder of division of year by 100 rather |
| 6730 |
than subtracting 1900. Print the time written to RTC. |
| 6731 |
|
| 6732 |
2021-04-05 Samuel Thibault <[email protected]> |
| 6733 |
|
| 6734 |
kd: Do not read the CMOS ram |
| 6735 |
This could conflict with read/writing the RTC. |
| 6736 |
|
| 6737 |
* i386/i386at/kd.c (kd_xga_init): Do not read the CRAM. We were always |
| 6738 |
assuming VGA anyway. |
| 6739 |
|
| 6740 |
2021-04-05 Samuel Thibault <[email protected]> |
| 6741 |
|
| 6742 |
apic: Also unmask irq 3 and 4 early |
| 6743 |
We unmasked by hand kd's irq 1, but com0/1 also need unmasking. More |
| 6744 |
generally we should unmask irqs as appropriate. |
| 6745 |
|
| 6746 |
* i386/i386at/model_dep.c (machine_init): Unmask irq 3 and 4. |
| 6747 |
|
| 6748 |
2021-04-05 Damien Zammit <[email protected]> |
| 6749 |
|
| 6750 |
ioapic: Fix arg passing of redirection entry |
| 6751 |
Message-Id: <[email protected]> |
| 6752 |
|
| 6753 |
ioapic: Refactor EOI |
| 6754 |
Message-Id: <[email protected]> |
| 6755 |
|
| 6756 |
2021-04-05 Samuel Thibault <[email protected]> |
| 6757 |
|
| 6758 |
thread_info: Fix crash when requesting for thread that never ran |
| 6759 |
* kern/thread.c (thread_info): Set last_processor to 0 when the thread |
| 6760 |
never ran. |
| 6761 |
|
| 6762 |
2021-04-05 Samuel Thibault <[email protected]> |
| 6763 |
|
| 6764 |
thread_info: Fix returning last_processor |
| 6765 |
thread->last_processor is a processor_t, not a slot number. |
| 6766 |
|
| 6767 |
* kern/thread.c (thread_info): Set sched_info->last_processor to |
| 6768 |
thread->last_processor->slot_num rather than thread->last_processor. |
| 6769 |
|
| 6770 |
2021-04-05 Damien Zammit <[email protected]> |
| 6771 |
|
| 6772 |
ioapic: Use irq specific EOI properly when detected |
| 6773 |
Message-Id: <[email protected]> |
| 6774 |
|
| 6775 |
Don't call EOI on spurious interrupts |
| 6776 |
Message-Id: <[email protected]> |
| 6777 |
|
| 6778 |
ioapic: target first processor for interrupts |
| 6779 |
Message-Id: <[email protected]> |
| 6780 |
|
| 6781 |
ioapic: Enable processor focus to BSP |
| 6782 |
Message-Id: <[email protected]> |
| 6783 |
|
| 6784 |
2021-04-04 Samuel Thibault <[email protected]> |
| 6785 |
|
| 6786 |
SMP: Fix warnings |
| 6787 |
|
| 6788 |
SMP: fix getting the interrupt stack address and size |
| 6789 |
* i386/i386at/boothdr.S (_eintstack): Add missing common. |
| 6790 |
* i386/xen/xen_boothdr.S (_eintstack): Add missing common. |
| 6791 |
* x86_64/xen/xen_boothdr.S (_eintstack): Add missing common. |
| 6792 |
* i386/i386/mp_desc.c (intstack, eintstack): Add missing underscore. |
| 6793 |
|
| 6794 |
2021-04-04 Damien Zammit <[email protected]> |
| 6795 |
|
| 6796 |
Add ioapic support disabled by default |
| 6797 |
Use --enable-ncpus=x --enable-apic where x > 1 for SMP+APIC support. |
| 6798 |
|
| 6799 |
Use neither for no SMP and old PIC support. |
| 6800 |
Message-Id: <[email protected]> |
| 6801 |
|
| 6802 |
2021-04-03 Samuel Thibault <[email protected]> |
| 6803 |
|
| 6804 |
pit: Add more macros |
| 6805 |
* i386/i386/pit.h (PITAUX_VAL, PIT_C2): New macros. |
| 6806 |
(PIT_RATEMODE): Fix macro value. |
| 6807 |
|
| 6808 |
2021-03-31 Samuel Thibault <[email protected]> |
| 6809 |
|
| 6810 |
linux: Add option to disable Linux groups |
| 6811 |
* linux/configfrag.ac (--disable-linux-groups): New option. |
| 6812 |
(AC_OPTION_Linux_group): Default to $enable_linux_groups. |
| 6813 |
|
| 6814 |
2021-03-31 Samuel Thibault <[email protected]> |
| 6815 |
|
| 6816 |
intr: Always share irqs |
| 6817 |
We currently already always assume that irqs user handlers can be shared |
| 6818 |
|
| 6819 |
* device/intr.c (install_user_intr_handler): Add SA_SHIRQ to flags. |
| 6820 |
|
| 6821 |
2021-03-31 Damien Zammit <[email protected]> |
| 6822 |
|
| 6823 |
intr: Add user interrupt handling code for non-Linux case |
| 6824 |
* device/intr.c: Include <kern/assert.h> |
| 6825 |
(struct intr_list): New structure. |
| 6826 |
(user_intr_handlers): New array. |
| 6827 |
(user_irq_handler): New function. |
| 6828 |
(install_user_intr_handler): New function. |
| 6829 |
|
| 6830 |
Message-Id: <[email protected]> |
| 6831 |
|
| 6832 |
2021-03-31 Samuel Thibault <[email protected]> |
| 6833 |
|
| 6834 |
Keep BIOS mapped even without Linux |
| 6835 |
Not only Linux drivers need BIOS mapped. |
| 6836 |
|
| 6837 |
* i386/i386at/model_dep.c (i386at_init) [!LINUX_DEV]: Map the low |
| 6838 |
memory. |
| 6839 |
* i386/intel/pmap.c (pmap_create) [!LINUX_DEV]: Likewise. |
| 6840 |
|
| 6841 |
2021-03-29 Damien Zammit <[email protected]> |
| 6842 |
|
| 6843 |
apic: Reorder defines |
| 6844 |
|
| 6845 |
2021-03-28 Damien Zammit <[email protected]> |
| 6846 |
|
| 6847 |
linux irq: Avoid hardcoding the number of interrupts. |
| 6848 |
* linux/dev/arch/i386/kernel/irq.c: Include <i386/irq.h> instead of |
| 6849 |
<i386/pic.h>. |
| 6850 |
(irq_action): Use NINTR instead of 16, do not bother expliciting the |
| 6851 |
initialization. |
| 6852 |
(install_user_intr_handler, request_irq, free_irq, probe_irq_on, |
| 6853 |
probe_irq_off, reserve_mach_irqs): Use NINTR instead of 16. |
| 6854 |
|
| 6855 |
pic: Move to interrupts 0x20-0x2f |
| 6856 |
* i386/i386/pic.h (PICM_VECTBASE): Set to 0x20. |
| 6857 |
* i386/i386at/idt.h (IDTSZ): Set to 0x20 + 0x10. |
| 6858 |
(PIC_INT_BASE): Set to 0x20. |
| 6859 |
|
| 6860 |
2021-03-28 Damien Zammit <[email protected]> |
| 6861 |
|
| 6862 |
Existing SMP apic code improvements |
| 6863 |
* i386/i386/apic.c (acpi_get_irq_override): New function. |
| 6864 |
(apic_get_ioapic): Make it return IoApicData* rather than IoApicData. |
| 6865 |
(apic_print_info): Manage IoApicData* rather than IoApicData. |
| 6866 |
* i386/i386/apic.h (struct ApicReg): Use uint32_t instead of unsigned. |
| 6867 |
(struct ioapic_route_entry): New structure. |
| 6868 |
(union ioapic_route_entry_union): New union. |
| 6869 |
(ApicLocalUnit): Rename base to gsi_base. Add ioapic field. |
| 6870 |
(APIC_IRQ_OVERRIDE_POLARITY_MASK, APIC_IRQ_OVERRIDE_TRIGGER_MASK): New |
| 6871 |
macros. |
| 6872 |
(acpi_get_irq_override, ): New prototype. |
| 6873 |
(apic_get_ioapic): Update prototype. |
| 6874 |
(lapic): New declaration. |
| 6875 |
(IMCR_SELECT, IMCR_DATA, MODE_IMCR, IMCR_USE_PIC, IMCR_USE_APIC, |
| 6876 |
LAPIC_ENABLE, LAPIC_NMI, LAPIC_DISABLE, LAPIC_TIMER_PERIODIC, |
| 6877 |
LAPIC_TIMER_DIVIDE_2, LAPIC_TIMER_DIVIDE_4, LAPIC_TIMER_DIVIDE_8, |
| 6878 |
LAPIC_TIMER_DIVIDE_16, LAPIC_TIMER_BASEDIV, NINTR, IOAPIC_FIXED, |
| 6879 |
IOAPIC_PHYSICAL, IOAPIC_LOGICAL, IOAPIC_NMI, IOAPIC_EXTINT, |
| 6880 |
IOAPIC_ACTIVE_HIGH, IOAPIC_ACTIVE_LOW, IOAPIC_EDGE_TRIGGERED, |
| 6881 |
IOAPIC_LEVEL_TRIGGERED, IOAPIC_MASK_ENABLED, IOAPIC_MASK_DISABLED): New |
| 6882 |
macros. |
| 6883 |
* i386/i386at/acpi_parse_apic.h (struct acpi_apic_ioapic): Rename base |
| 6884 |
field to gsi_base. |
| 6885 |
* i386/i386at/acpi_parse_apic.c (acpi_apic_add_ioapic): Update to |
| 6886 |
gsi_base new name. Set ioapic field. |
| 6887 |
(acpi_apic_setup): Rename lapic to lapic_unit. |
| 6888 |
|
| 6889 |
Message-Id: <[email protected]> |
| 6890 |
|
| 6891 |
2021-03-28 Damien Zammit <[email protected]> |
| 6892 |
|
| 6893 |
Don't allow writing to acpi table in memory |
| 6894 |
* i386/i386at/acpi_parse_apic.c (acpi_get_apic): Map rsdt entries read-only. |
| 6895 |
|
| 6896 |
Message-Id: <[email protected]> |
| 6897 |
|
| 6898 |
2021-03-28 Damien Zammit <[email protected]> |
| 6899 |
|
| 6900 |
fixup acpi base table search |
| 6901 |
* i386/i386at/acpi_parse_apic.c (acpi_check_rsdp_align): Make it take a |
| 6902 |
void* instead of uint32_t. |
| 6903 |
(acpi_get_rsdp): Apply phystokv on the EBDA base and 0xE0000. |
| 6904 |
(acpi_apic_setup): Drop spurious negation. |
| 6905 |
|
| 6906 |
Message-Id: <[email protected]> |
| 6907 |
|
| 6908 |
2021-03-28 Damien Zammit <[email protected]> |
| 6909 |
|
| 6910 |
configure: Add block group |
| 6911 |
This is the last group needed to easily disable the Linux glue. |
| 6912 |
|
| 6913 |
* linux/configfrag.ac (block): New group. |
| 6914 |
(floppy): Set group to block. |
| 6915 |
(ide): Set group to block. |
| 6916 |
|
| 6917 |
Message-Id: <[email protected]> |
| 6918 |
|
| 6919 |
2021-03-27 Damien Zammit <[email protected]> |
| 6920 |
|
| 6921 |
fix EISA check in init_IRQ |
| 6922 |
Message-Id: <[email protected]> |
| 6923 |
|
| 6924 |
clock: Let timer proceed even before we have set threads |
| 6925 |
Message-Id: <[email protected]> |
| 6926 |
|
| 6927 |
2021-02-21 Andrea G. Monaco <[email protected]> |
| 6928 |
|
| 6929 |
ahci: Fix variable name |
| 6930 |
* linux/dev/drivers/block/ahci.c (ahci_probe_dev): Rename spd to det. |
| 6931 |
|
| 6932 |
2021-02-11 Andrea G. Monaco <[email protected]> |
| 6933 |
|
| 6934 |
i386 fpu: fix bogus check |
| 6935 |
Avoid panicing on all CPUs that do not support xsaves. |
| 6936 |
|
| 6937 |
* i386/i386/fpu.c (init_fpu): Panic on CPUs that do not support xsaves |
| 6938 |
only if the cpu-reported xsave size is smaller than expected. |
| 6939 |
|
| 6940 |
2021-02-09 Samuel Thibault <[email protected]> |
| 6941 |
|
| 6942 |
Default MIG to mig when not found. |
| 6943 |
bash: no: command not found |
| 6944 |
|
| 6945 |
seems to be confusing for users. Revert to setting back to mig, but |
| 6946 |
after printing the warning. |
| 6947 |
|
| 6948 |
* configure.ac (MIG): Default to mig when not found. |
| 6949 |
|
| 6950 |
2021-02-09 Samuel Thibault <[email protected]> |
| 6951 |
|
| 6952 |
Warn about missing mig |
| 6953 |
* configure.ac (MIG): Do not default to mig, and warn when this is |
| 6954 |
missing. Advertise the MIG variable. |
| 6955 |
|
| 6956 |
2021-02-07 Samuel Thibault <[email protected]> |
| 6957 |
|
| 6958 |
Advise to simply use a cross-toolchain |
| 6959 |
* README: Advise to use i686-linux-gnu-* tools. |
| 6960 |
|
| 6961 |
2021-02-03 Andrea G. Monaco <[email protected]> |
| 6962 |
|
| 6963 |
com: Fix bogus NCOM test |
| 6964 |
* i386/i386at/com.c (comprobe_general): Reject unit being equal to NCOM. |
| 6965 |
|
| 6966 |
2021-01-20 Guy-Fleury Iteriteka <[email protected]> |
| 6967 |
|
| 6968 |
doc: Add a missing field for 'struct thread_sched_info'. |
| 6969 |
* doc/mach.texi(struct thread_sched_info): Add 'int last_processor' item. |
| 6970 |
Message-Id: <[email protected]> |
| 6971 |
|
| 6972 |
2021-01-09 guy fleury iteriteka <[email protected]> |
| 6973 |
|
| 6974 |
add a missing include header guard. |
| 6975 |
* i386/i386at/comreg.h: Add header guard angaist multiple inclusion. |
| 6976 |
Message-Id: <[email protected]> |
| 6977 |
|
| 6978 |
2021-01-04 Samuel Thibault <[email protected]> |
| 6979 |
|
| 6980 |
vm_map: Avoid linking gaps for vm_copy_t |
| 6981 |
This does not make sense, and produces incorrect results (since |
| 6982 |
vme_end is 0, etc.) |
| 6983 |
|
| 6984 |
* vm/vm_map.h (_vm_map_clip_start, _vm_map_clip_end): Add link_gap |
| 6985 |
parameter. |
| 6986 |
|
| 6987 |
* vm/vm_map.c (_vm_map_entry_link): Add link_gap parameter, do not call |
| 6988 |
vm_map_gap_insert if it is 0. |
| 6989 |
(vm_map_entry_link): Set link_gap to 1 in _vm_map_entry_link call. |
| 6990 |
(_vm_map_clip_start): Add link_gap parameter, pass it to |
| 6991 |
_vm_map_entry_link call.. |
| 6992 |
(vm_map_clip_start): Set link_gap_to 1 in _vm_map_clip_start call. |
| 6993 |
|
| 6994 |
(vm_map_copy_entry_link): Set link_gap to 0 in _vm_map_entry_link call. |
| 6995 |
(vm_map_copy_clip_start): Set link_gap_to 0 in _vm_map_clip_start call. |
| 6996 |
|
| 6997 |
(_vm_map_entry_unlink): Add unlink_gap parameter, do not call |
| 6998 |
vm_map_gap_remove if it is 0. |
| 6999 |
(vm_map_entry_unlink): Set unlink_gap to 1 in _vm_map_entry_unlink call. |
| 7000 |
(_vm_map_clip_end): Add link_gap parameter, pass it to |
| 7001 |
_vm_map_entry_link call.. |
| 7002 |
(vm_map_clip_end): Set link_gap_to 1 in _vm_map_clip_end call. |
| 7003 |
|
| 7004 |
(vm_map_copy_entry_unlink): Set unlink_gap to 0 in _vm_map_entry_unlink call. |
| 7005 |
(vm_map_copy_clip_end): Set link_gap_to 0 in _vm_map_clip_end call. |
| 7006 |
|
| 7007 |
* vm/vm_kern.c (projected_buffer_deallocate): set link_gap to 1 in |
| 7008 |
_vm_map_clip_start and _vm_map_clip_end calls. |
| 7009 |
|
| 7010 |
2021-01-04 Samuel Thibault <[email protected]> |
| 7011 |
|
| 7012 |
vm_map: print warning when max_size gets smaller than size |
| 7013 |
* vm/vm_map.c (vm_map_find_entry_anywhere): Print warning when max_size |
| 7014 |
gets smaller than size. |
| 7015 |
|
| 7016 |
2020-12-23 Samuel Thibault <[email protected]> |
| 7017 |
|
| 7018 |
Fix _Static_assert call |
| 7019 |
Before C2X, _Static_assert requires a second parameter |
| 7020 |
|
| 7021 |
Reported by Andrea G. Monaco <[email protected]> |
| 7022 |
|
| 7023 |
* i386/i386/fpu.c: Add second parameter to _Static_assert calls. |
| 7024 |
|
| 7025 |
2020-12-20 Samuel Thibault <[email protected]> |
| 7026 |
|
| 7027 |
vm_map: Fix taking into account high bits in mask |
| 7028 |
glibc's sysdeps/mach/hurd/dl-sysdep.c has been wanting to use this for |
| 7029 |
decades. |
| 7030 |
|
| 7031 |
* include/string.h (ffs): New declaration. |
| 7032 |
* vm/vm_map.c: Include <string.h>. |
| 7033 |
(vm_map_find_entry_anywhere): Separate out high bits from mask, to |
| 7034 |
compute the maximum offset instead of map->max_offset. |
| 7035 |
* doc/mach.texi (vm_map): Update documentation accordingly. |
| 7036 |
|
| 7037 |
2020-12-07 Samuel Thibault <[email protected]> |
| 7038 |
|
| 7039 |
i386at: Really disable com and lpr above NCOM and NLPR |
| 7040 |
commmodem and lprinfo arrays would otherwise overflow. |
| 7041 |
|
| 7042 |
* i386/i386at/com.c (comattach): Return early when unit is beyond NCOM. |
| 7043 |
* i386/i386at/lpr.c (lprattach): Return early when unit is beyond NLPR. |
| 7044 |
|
| 7045 |
2020-12-02 Samuel Thibault <[email protected]> |
| 7046 |
|
| 7047 |
pmap: Note that we should support PCID |
| 7048 |
|
| 7049 |
2020-12-01 Samuel Thibault <[email protected]> |
| 7050 |
|
| 7051 |
x86: Move fp_reg.h static assertions to .c file |
| 7052 |
Since fp_reg.h is installed on the system, and compilers may not even |
| 7053 |
support _Static_assert. |
| 7054 |
|
| 7055 |
* i386/include/mach/i386/fp_reg.h: Move _Static_assert to... |
| 7056 |
* i386/i386/fpu.c: ... c file. |
| 7057 |
|
| 7058 |
2020-12-01 Samuel Thibault <[email protected]> |
| 7059 |
|
| 7060 |
gsync: Use vm_address_t instead of vm_offset_t |
| 7061 |
vm_offset_t are offsets inside memory objects, not actual addresses. |
| 7062 |
|
| 7063 |
* include/mach/gnumach.defs (gsync_wait, gsync_wake, gsync_requeue): Use |
| 7064 |
vm_address_t instead of vm_offset_t. |
| 7065 |
|
| 7066 |
2020-12-01 Samuel Thibault <[email protected]> |
| 7067 |
|
| 7068 |
x86: Keep fp_regs.h standalone |
| 7069 |
We cannot include stdint.h in fp_regs.h since this is included by |
| 7070 |
mach_types.h for bootstrapping, before we have stdint.h from glibc. |
| 7071 |
|
| 7072 |
* i386/include/mach/i386/fp_reg.h: Do not include <stdint.h> |
| 7073 |
(XSAVE_XCOMP_BV_COMPACT, struct i386_xfp_xstate_header): Use unsigned |
| 7074 |
long long instead of uint64_t. |
| 7075 |
|
| 7076 |
2020-11-29 Samuel Thibault <[email protected]> |
| 7077 |
|
| 7078 |
x86: Get default state from the CPU itself |
| 7079 |
It seems that at least qemu does not like our initial state. We can as |
| 7080 |
well just take it from fninit. |
| 7081 |
|
| 7082 |
* i386/i386/fpu.c (MXCSR_DEFAULT, CWD_DEFAULT): Remove macros. |
| 7083 |
(fpu_module_init): Get default state from CPU. |
| 7084 |
(fpinit): Do not call fninit. |
| 7085 |
|
| 7086 |
2020-11-29 Samuel Thibault <[email protected]> |
| 7087 |
|
| 7088 |
x86: Make sure we allocate as much as our structure should hold |
| 7089 |
* i386/i386/fpu.c (init_fpu): Panic if the CPU gives us a size that is |
| 7090 |
smaller than it should. |
| 7091 |
|
| 7092 |
2020-11-29 Samuel Thibault <[email protected]> |
| 7093 |
|
| 7094 |
x86: clear exceptions etc. on fpinit |
| 7095 |
fpu_rstor is not enough, exceptions and such remain behind, so restore |
| 7096 |
calling fninit. |
| 7097 |
|
| 7098 |
* i386/i386/fpu.c (fpinit): call fninit() before fpu_rstor(). |
| 7099 |
|
| 7100 |
2020-11-29 Samuel Thibault <[email protected]> |
| 7101 |
|
| 7102 |
x86: Fix initial control word |
| 7103 |
The value in fp_state_alloc was actually an oldie, the value in fpinit |
| 7104 |
was the expected one nowadays. |
| 7105 |
|
| 7106 |
* i386/i386/fpu.c (CWD_DEFAULT): Set to 0x37f. |
| 7107 |
|
| 7108 |
2020-11-29 Samuel Thibault <[email protected]> |
| 7109 |
|
| 7110 |
x86: Fix initialization of new threads |
| 7111 |
fninit does not clear MMX/SSE/AVX registers, so we have to use rstor to |
| 7112 |
clear them when starting a new thread. Along the way, we can as well |
| 7113 |
just have a default state to be loaded in each new thread. |
| 7114 |
|
| 7115 |
* i386/include/mach/i386/fp_reg.h (XSAVE_XCOMP_BV_COMPACT): New macro. |
| 7116 |
* i386/i386/fpu.h (fp_default_state): New variable declaration. |
| 7117 |
* i386/i386/fpu.c (fp_default_state): New variable. |
| 7118 |
(MXCSR_DEFAULT, CWD_DEFAULT): New macros. |
| 7119 |
(fpu_module_init): Allocate and initialize fp_default_state. |
| 7120 |
(fpinit): rstor from fp_default_state instead of setting FPU state by |
| 7121 |
hand. |
| 7122 |
(fp_load): Copy initial state from fp_default_state instead of setting |
| 7123 |
it to 0. This is more future-proof since this is the exact state that we are |
| 7124 |
loading in fpinit. |
| 7125 |
(fp_state_alloc): fp_state_alloc: Copy initial state from |
| 7126 |
fp_default_state. |
| 7127 |
|
| 7128 |
2020-11-29 Samuel Thibault <[email protected]> |
| 7129 |
|
| 7130 |
x86: Factorize fpu save/restore |
| 7131 |
* i386/i386/fpu.h (fpu_save, fpu_rstor): New macros. |
| 7132 |
(fpu_save_context): Use fpu_save macro. |
| 7133 |
* i386/i386/fpu.c (fp_save): Use fpu_save macro. |
| 7134 |
(fp_load): Use fpu_rstor macro. |
| 7135 |
|
| 7136 |
2020-11-28 Samuel Thibault <[email protected]> |
| 7137 |
|
| 7138 |
x86: Drop XSAVE support limitation |
| 7139 |
Now that XSAVEOPT is supported, we are fine with supporting large FPU |
| 7140 |
state. |
| 7141 |
|
| 7142 |
* i386/i386/fpu.c (init_fpu): Do not limit fp_xsave_support to |
| 7143 |
CPU_XCR0_SUPPORTED. |
| 7144 |
* i386/i386/fpu.h (CPU_XCR0_SUPPORTED): Remove macro. |
| 7145 |
|
| 7146 |
2020-11-28 Samuel Thibault <[email protected]> |
| 7147 |
|
| 7148 |
x86: Add XSAVEOPT, XSAVEC, XSAVES support |
| 7149 |
* i386/i386/fpu.h (CPU_FEATURE_XSAVEOPT, CPU_FEATURE_XSAVEC, |
| 7150 |
CPU_FEATURE_XGETBV1, CPU_FEATURE_XSAVES): New macros. |
| 7151 |
(xsaveopt, xsavec, xsaves, xrstors): New macros. |
| 7152 |
(fpu_save_context): Use xsaveopt, xsavec, or xsaves when available. |
| 7153 |
(fp_save_kind): New enum. |
| 7154 |
(fp_save_kind): New variable declaration. |
| 7155 |
* i386/i386/fpu.c (fp_save_kind): New variable. |
| 7156 |
(init_fpu): Set fp_save_kind according to enumeration. When XSAVES is |
| 7157 |
supported, use xsave area size from corresponding enumeration. |
| 7158 |
(fp_save): Use xsaveopt, xsavec, xsaves when available. |
| 7159 |
(fp_load): Use xrstors when available. |
| 7160 |
|
| 7161 |
x86: Extend XSAVE support to unbound state |
| 7162 |
* i386/i386/fpu.c (fp_xsave_size): New variable. |
| 7163 |
(init_fpu): Save XSAVE size to fp_xsave_size. |
| 7164 |
(fpu_module_init): Pass fp_xsave_size as size to kmem_cache_init. |
| 7165 |
(fpu_set_state, fp_load, fp_state_alloc): Use fp_xsave_size to clear |
| 7166 |
ifps. |
| 7167 |
* i386/include/mach/i386/fp_reg.h (struct i386_xfp_save): Replace static |
| 7168 |
fp_yreg_word with extended field. |
| 7169 |
* i386/i386/thread.h (struct i386_fpsave_state): Make fp_valid field |
| 7170 |
first in the structure to let the extended finish the structure. |
| 7171 |
|
| 7172 |
x86: Add XSAVE support |
| 7173 |
* i386/i386/fpu.h (CPU_XCR0_X87, CPU_XCR0_SSE, CPU_XCR0_AVX, |
| 7174 |
CPU_XCR0_MPX, CPU_XCR0_AVX512): New macros. |
| 7175 |
(xsave): Pass fp_xsave_support to xsave. |
| 7176 |
(fpu_save_context): When fp_kind is FP_387X, use xsave. |
| 7177 |
(fp_xsave_support): New variable declaration. |
| 7178 |
* i386/i386/proc_reg.h (cpuid): New macro. |
| 7179 |
* linux/src/include/asm-i386/processor.h (cpuid): Disable macro. |
| 7180 |
* i386/include/mach/i386/fp_reg.h: Include <stdint.h> |
| 7181 |
(i386_xfp_xstate_header): New structure. |
| 7182 |
(i386_xfp_save): Add xsave fields. |
| 7183 |
* i386/i386/fpu.c (fp_xsave_support): New variable. |
| 7184 |
(init_fpu): Look for XSAVE feature; if available, get the supported |
| 7185 |
parts and set fp_kind to FP_387X. |
| 7186 |
(fpu_module_init): Set ifps_cache alignment to alignof(struct |
| 7187 |
i386_fpsave_state). |
| 7188 |
(fpu_set_state): Make sure to clear all the ifps structure. |
| 7189 |
Reuse the FP_387FX for the FP_387X case. |
| 7190 |
(fpu_get_state, fpexterrflt, fpastintr, fp_state_alloc): Reuse the FP_387FX |
| 7191 |
for the FP_387X case. |
| 7192 |
(fp_save): When fp_kind is FP_387X, use xsave. |
| 7193 |
(fp_load): When fp_kind is FP_387X, use xrstor. |
| 7194 |
Reuse the FP_387FX for the FP_387X case. |
| 7195 |
|
| 7196 |
2020-11-28 Samuel Thibault <[email protected]> |
| 7197 |
|
| 7198 |
fpu: Rename FP_387X to FP_387FX |
| 7199 |
To leave FP_387X for XSAVE-supporting CPU (as opposed to |
| 7200 |
FXSAVE-supporting CPU) |
| 7201 |
|
| 7202 |
* i386/include/mach/i386/fp_reg.h (FP_387X): Rename to FP_387FX. |
| 7203 |
(FP_387X): New macro. |
| 7204 |
* i386/i386/fpu.c (init_fpu, fpu_set_state, fpu_get_state, fpexterrflt, |
| 7205 |
fpastintr, fp_save, fp_load, fp_state_alloc): Update accordingly. |
| 7206 |
* i386/i386/fpu.h (fpu_save_context): Likewise. |
| 7207 |
|
| 7208 |
2020-11-28 Samuel Thibault <[email protected]> |
| 7209 |
|
| 7210 |
fp_reg: update to latest SSE supported by FXSAVE |
| 7211 |
* i386/include/mach/i386/fp_reg.h (struct i386_xfp_save): Extend |
| 7212 |
fp_xreg_word to 16 registers. |
| 7213 |
(sizeof(struct i386_xfp_save)): Assert that it is equal to 512. |
| 7214 |
|
| 7215 |
x86: Pave the way for xsave/xrstor support |
| 7216 |
* i386/i386/fpu.h (xgetbv, get_xcr0, xsetbv, set_xcr0): New inline |
| 7217 |
functions. |
| 7218 |
(xsave, xrstor): New macros. |
| 7219 |
* i386/i386/locore.S (cpu_features): Extend to two words. |
| 7220 |
(cpu_features_edx, cpu_features_ecx): New labels. |
| 7221 |
(discover_x86_cpu_type): Also save ecx cpuid(1) report. |
| 7222 |
* x86_64/locore.S: Likewise. |
| 7223 |
* i386/i386/locore.h (cpu_features): Extend to two words. |
| 7224 |
(CPU_FEATURE_XSAVE): New macro. |
| 7225 |
* i386/i386/proc_reg.h (CR4_OSXSAVE): New macro. |
| 7226 |
|
| 7227 |
x86: allow using 8bit constants in in/out instructions |
| 7228 |
* i386/i386/pio.h (inl, inw, inb, outl, outw, outb): Add N constraint |
| 7229 |
alternative on port. |
| 7230 |
(outl): Cast data to unsigned int. |
| 7231 |
|
| 7232 |
2020-11-22 Samuel Thibault <[email protected]> |
| 7233 |
|
| 7234 |
Disable com3 and com4 |
| 7235 |
We do not support shared IRQs for these, so avoid boot issues when |
| 7236 |
running on a system with more than 2 com ports. |
| 7237 |
|
| 7238 |
* i386/configfrag.ac (ncom) [at:i?86]: Set to 2. |
| 7239 |
* x86_64/configfrag.ac (ncom) [at:x86_64]: Set to 2. |
| 7240 |
|
| 7241 |
2020-11-22 guy fleury iteriteka <[email protected]> |
| 7242 |
|
| 7243 |
fix missing include header guard. |
| 7244 |
* i386/i386/pit.h: Add header guard angaist multiple inclusion. |
| 7245 |
Message-Id: <[email protected]> |
| 7246 |
|
| 7247 |
2020-11-15 Samuel Thibault <[email protected]> |
| 7248 |
|
| 7249 |
genhd: Fix building without IDE drivers |
| 7250 |
* linux/dev/drivers/block/genhd.c [!CONFIG_BLK_DEV_IDE] (device_setup): |
| 7251 |
Do not call ide_setup. |
| 7252 |
|
| 7253 |
2020-11-08 Masanori Ogino <[email protected]> |
| 7254 |
|
| 7255 |
i386 pmap: Omit pmap workaround on i486 or later. |
| 7256 |
As described in XXX comments, the workaround for memory mapping is |
| 7257 |
implemented for 80386 and it is unnecessary on i486 or later. Thus, it |
| 7258 |
is safe to omit that if the kernel is built for the recent (1989~) |
| 7259 |
processors. |
| 7260 |
|
| 7261 |
Fuhito Inagawa pointed out the problem to me. |
| 7262 |
|
| 7263 |
* i386/i386/trap.c (kernel_trap): Disable the workaround when the kernel |
| 7264 |
is built for i[456]86. |
| 7265 |
* i386/intel/pmap.c (pmap_protect, pmap_enter): Ditto. |
| 7266 |
* i386/intel/read_fault.c: Define intel_read_fault if and only if it is |
| 7267 |
necessary. |
| 7268 |
|
| 7269 |
2020-11-08 Samuel Thibault <[email protected]> |
| 7270 |
|
| 7271 |
pmap: Fix warning |
| 7272 |
* i386/intel/pmap.c (pmap_enter): Fix debugging print format. |
| 7273 |
|
| 7274 |
2020-10-07 Samuel Thibault <[email protected]> |
| 7275 |
|
| 7276 |
elf-load: Avoid loading PIE binaries at address 0 |
| 7277 |
It seems that ld.so sometimes gets into troubles and hangs at bootstrap. |
| 7278 |
|
| 7279 |
* kern/elf-load.c (exec_load): When x.e_type == ET_DYN || x.e_type == |
| 7280 |
ET_REL, add 128MiB as loadbase. |
| 7281 |
|
| 7282 |
2020-10-07 Samuel Thibault <[email protected]> |
| 7283 |
|
| 7284 |
bootstrap: Increase STACK_SIZE |
| 7285 |
* kern/bootstrap.c (STACK_SIZE): Set to 128KB. glibc's |
| 7286 |
__MAX_ALLOCA_CUTOFF is 64K by default. |
| 7287 |
|
| 7288 |
2020-10-07 Almudena Garcia <[email protected]> |
| 7289 |
|
| 7290 |
Add comment about mp_desc_init call |
| 7291 |
|
| 7292 |
fix: fix kernel panic in SMP mode Add mp_desc_init() call in BSP processor, to initialize some structures needed for SMP |
| 7293 |
|
| 7294 |
2020-09-19 Samuel Thibault <[email protected]> |
| 7295 |
|
| 7296 |
smp: Add --enable-ncpus option and fix build |
| 7297 |
* configfrag.ac (--enable-ncpus): Add option to set $mach_ncpus. |
| 7298 |
* i386/i386/cpu_number.h (CPU_NUMBER, cpu_number): New macros, set to 0 for |
| 7299 |
now. |
| 7300 |
* i386/i386/db_interface.c (cpu_interrupt_to_db): New function. |
| 7301 |
* i386/i386/db_interface.h (cpu_interrupt_to_db): New declaration. |
| 7302 |
* i386/i386/mp_desc.c (int_stack_base): New array. |
| 7303 |
(intel_startCPU): New function. |
| 7304 |
* i386/i386at/model_dep.c: Include <i386/smp.h> |
| 7305 |
(int_stack_top, int_stack_base): Turn into arrays |
| 7306 |
(i386at_init): Update accesses accordingly. |
| 7307 |
* i386/i386at/model_dep.h (int_stack_top, int_stack_base, ON_INT_STACK): |
| 7308 |
Likewise. |
| 7309 |
* i386/intel/pmap.c (cpus_active, cpus_idle, cpu_update_needed): Add |
| 7310 |
variables. |
| 7311 |
* i386/intel/pmap.h (cpus_active, cpus_idle, cpu_update_needed): Mark |
| 7312 |
extern. |
| 7313 |
* kern/cpu_number.h: Include <machine/cpu_number.h> |
| 7314 |
* linux/dev/arch/i386/kernel/irq.c (local_bh_count, local_irq_count): |
| 7315 |
Hardcode to the address of intr_count. We will not use the Linux code in |
| 7316 |
SMP mode anyway. |
| 7317 |
|
| 7318 |
2020-09-19 Almudena Garcia <[email protected]> |
| 7319 |
|
| 7320 |
model_dep.c: Add smp_init call |
| 7321 |
if NCPUS > 1, call to smp_init to start the search and enumeration of the cpus |
| 7322 |
|
| 7323 |
*i386/i386/model_dep.c (machine_init): add smp_init() call |
| 7324 |
|
| 7325 |
2020-09-19 Almudena Garcia <[email protected]> |
| 7326 |
|
| 7327 |
smp: Add generic smp pseudoclass |
| 7328 |
This pseudoclass generalize the initialization and access of SMP data, |
| 7329 |
allowing expands it to other architectures. In x86, the functions calls to apic functions. |
| 7330 |
|
| 7331 |
*kern/smp.c: Source file. Implements a interface to load the SMP functions for the current architecture. |
| 7332 |
*kern/smp.h: Header file. Add declaration for smp_data structure. |
| 7333 |
*i386/i386/smp.c: Source file. Implements a set of functions to manage the SMP actions in i386 |
| 7334 |
*i386/i386/smp.h: Header file. Add declarations for SMP functions in i386. |
| 7335 |
|
| 7336 |
2020-09-19 Samuel Thibault <[email protected]> |
| 7337 |
|
| 7338 |
acpi parser: Fix build warnings |
| 7339 |
|
| 7340 |
2020-09-19 Almudena Garcia <[email protected]> |
| 7341 |
|
| 7342 |
smp: Add APIC finder and parser |
| 7343 |
To find the processors, It's necessary to find the APIC (MADT) table |
| 7344 |
This table is found inside ACPI tables. |
| 7345 |
|
| 7346 |
This set of functions find the MADT table, and parse it to find the APIC structures |
| 7347 |
and register it in the kernel. |
| 7348 |
|
| 7349 |
*acpi_parse_apic.h: ACPI structures and function prototypes. |
| 7350 |
*acpi_parse_apic.c: ACPI/APIC function definitions. |
| 7351 |
|
| 7352 |
2020-09-10 Samuel Thibault <[email protected]> |
| 7353 |
|
| 7354 |
device_pager_setup: Add FIXME comment |
| 7355 |
|
| 7356 |
2020-08-12 Almudena Garcia <[email protected]> |
| 7357 |
|
| 7358 |
vm_kern: Add kmem_alloc_aligned_table |
| 7359 |
This function allows to map a table in a memory page, |
| 7360 |
using its physical address,aligning the start of the page with the start of the table |
| 7361 |
|
| 7362 |
*vm/vm_kern.c (kmem_alloc_aligned_table): New function. Returns a reference for the virtual address of the table. |
| 7363 |
*vm/vm_kern.h (kmem_alloc_aligned_table): New prototype |
| 7364 |
|
| 7365 |
2020-08-12 Almudena Garcia <[email protected]> |
| 7366 |
|
| 7367 |
smp: Add pseudoclass to manage APIC operations |
| 7368 |
The SMP support requires access, register and configure some APIC structures, |
| 7369 |
like Local APIC and IOAPIC. |
| 7370 |
This pseudoclass includes functions to register some APIC structures into the kernel, |
| 7371 |
and access to these structures to extract some information. |
| 7372 |
|
| 7373 |
*apic.h: Header file recovered from Mach 4 source code, and updated for xAPIC. |
| 7374 |
Includes some structs with Local APIC and IOAPIC fields, |
| 7375 |
and the declaration of the functions. |
| 7376 |
|
| 7377 |
*apic.c: Source file. Includes the definition of the functions, within some globals |
| 7378 |
of apic_info structures and the lapic reference. |
| 7379 |
|
| 7380 |
2020-07-19 Samuel Thibault <[email protected]> |
| 7381 |
|
| 7382 |
device intr: Fix reference leak |
| 7383 |
On RPC success we have to release the passed send rights, otherwise |
| 7384 |
references accumulate and we never notice when the receiver dies. |
| 7385 |
|
| 7386 |
* device/ds_routines.c (ds_device_intr_ack): On success, call |
| 7387 |
ipc_port_release_send on the notification receive port. |
| 7388 |
|
| 7389 |
2020-07-19 Samuel Thibault <[email protected]> |
| 7390 |
|
| 7391 |
intr_register: better document how we'd handle crashes |
| 7392 |
|
| 7393 |
2020-07-18 Samuel Thibault <[email protected]> |
| 7394 |
|
| 7395 |
64bit: fix build |
| 7396 |
* device/ds_routines.c (ds_device_intr_register, ds_device_intr_ack) |
| 7397 |
[__x86_64__]: Disable. |
| 7398 |
* x86_64/Makefrag.am (libkernel_a_SOURCES): Add i386/i386/irq.c and |
| 7399 |
i386/i386/irq.h. |
| 7400 |
|
| 7401 |
2020-07-15 Samuel Thibault <[email protected]> |
| 7402 |
|
| 7403 |
Fix xen build |
| 7404 |
* device/ds_routines.c (ds_device_intr_register, ds_device_intr_ack) |
| 7405 |
[MACH_XEN]: Return D_INVALID_OPERATION. |
| 7406 |
* i386/Makefrag.am [!PLATFORM_at] (libkernel_a_SOURCES): Remove |
| 7407 |
i386/i386/irq.c and i386/i386/irq.h. |
| 7408 |
* i386/i386/irq.c: Include <kern/assert.h>. |
| 7409 |
|
| 7410 |
2020-07-10 Samuel Thibault <[email protected]> |
| 7411 |
|
| 7412 |
Add hardware interrupt notification mechanism |
| 7413 |
This allows privileged userland drivers to get notifications of hardware |
| 7414 |
interrupts. |
| 7415 |
|
| 7416 |
Initial work by Zheng Da, reworked by Damien Zammit and myself. |
| 7417 |
|
| 7418 |
* Makefrag.am (libkernel_a_SOURCES): Add device/intr.c and |
| 7419 |
device/intr.h. |
| 7420 |
(include_device_HEADERS): Add include/device/notify.defs and |
| 7421 |
include/device/notify.h. |
| 7422 |
* device/dev_hdr.h (name_equal): Add declaration. |
| 7423 |
* device/ds_routines.c: Include <device/intr.h> |
| 7424 |
(ds_device_intr_register, ds_device_intr_ack): New functions. |
| 7425 |
* device/intr.c, device/intr.h: New files. |
| 7426 |
* doc/mach.texi (Device Interrupt): New section. |
| 7427 |
* i386/Makefrag.am (libkernel_a_SOURCES): Add i386/i386/irq.c and |
| 7428 |
i386/i386/irq.h. |
| 7429 |
* i386/i386/irq.c, i386/i386/irq.h: New files. |
| 7430 |
* i386/i386at/conf.c: Include <device/intr.h>. |
| 7431 |
(irqname): New macro. |
| 7432 |
(dev_name_list): Add irq device. |
| 7433 |
* include/device/device.defs (device_intr_register, device_intr_ack): |
| 7434 |
New RPCs. |
| 7435 |
* include/device/notify.defs, include/device/notify.h: New files. |
| 7436 |
* kern/startup.c: Include <device/intr.h> |
| 7437 |
(start_kernel_threads): Start intr_thread thread. |
| 7438 |
* linux/dev/arch/i386/kernel/irq.c: Include <device/intr.h> |
| 7439 |
(linux_action): Add user_intr field. |
| 7440 |
(linux_intr): Call user_intr action if any. |
| 7441 |
(mask_irq, unmask_irq): Move functions to i386/i386/pic.c |
| 7442 |
(__disable_irq, __enable_irq): Move functions to i386/i386/irq.c. |
| 7443 |
(install_user_intr_handler): New function. |
| 7444 |
(request_irq): Initialize user_intr field. |
| 7445 |
* linux/src/include/asm-i386/irq.h (__disable_irq, __enable_irq): Remove |
| 7446 |
prototypes. |
| 7447 |
* i386/i386/pic.c (mask_irq, unmask_irq): New functions. |
| 7448 |
* i386/i386/pic.h (mask_irq, unmask_irq): New prototypes. |
| 7449 |
|
| 7450 |
2020-07-09 Samuel Thibault <[email protected]> |
| 7451 |
|
| 7452 |
Add vm_allocate_contiguous RPC |
| 7453 |
This allows privileged userland drivers to allocate buffers for e.g. DMA, |
| 7454 |
and thus need them to be physically contiguous and get their physical |
| 7455 |
address. |
| 7456 |
|
| 7457 |
Initial work by Zheng Da, reworked by Richard Braun, Damien Zammit, and |
| 7458 |
myself. |
| 7459 |
|
| 7460 |
* doc/mach.texi (vm_allocate_contiguous): New RPC. |
| 7461 |
* i386/include/mach/i386/machine_types.defs (rpc_phys_addr_t): New type. |
| 7462 |
* i386/include/mach/i386/vm_types.h [!MACH_KERNEL] (phys_addr_t): Set |
| 7463 |
type to 64bits. |
| 7464 |
(rpc_phys_addr_t): New type, always 64bits. |
| 7465 |
* include/mach/gnumach.defs (vm_allocate_contiguous):New RPC. |
| 7466 |
* vm/vm_user.c (vm_allocate_contiguous): New function. |
| 7467 |
|
| 7468 |
2020-07-09 Samuel Thibault <[email protected]> |
| 7469 |
|
| 7470 |
Add experimental RPC infrastructure |
| 7471 |
This is free for experimenting RPCs, with no backward compatibility guarantees. |
| 7472 |
|
| 7473 |
* Makefrag.am (EXTRA_DIST): Add kern/experimental.srv. |
| 7474 |
(include_mach_HEADERS): Add include/mach/experimental.defs. |
| 7475 |
(nodist_lib_dep_tr_for_defs_a_SOURCES): Add |
| 7476 |
kern/experimental.server.defs.c. |
| 7477 |
(nodist_libkernel_a_SOURCES): Add kern/experimental.server.h, |
| 7478 |
kern/experimental.server.c, kern/experimental.server.msgids. |
| 7479 |
(nodist_libkernel_a_SOURCES): Add kern/experimental.server.defs. |
| 7480 |
* include/mach/experimental.defs: New file. |
| 7481 |
* kern/experimental.srv: New file. |
| 7482 |
* kern/ipc_kobject.c: Include <kern/experimental.server.h>. |
| 7483 |
(ipc_kobject_server): Call experimental_server_routine. |
| 7484 |
|
| 7485 |
2020-06-20 Samuel Thibault <[email protected]> |
| 7486 |
|
| 7487 |
vm_map: Allow passing the name of a memory object |
| 7488 |
as is returned by vm_info. |
| 7489 |
|
| 7490 |
* vm/vm_user.c (vm_map): Before trying to vm_object_enter, try to simply |
| 7491 |
lookup the name. |
| 7492 |
|
| 7493 |
2020-06-01 наб <[email protected]> |
| 7494 |
|
| 7495 |
Support GPT disklabels and build them by default |
| 7496 |
Based on UEFI 2.8A spec |
| 7497 |
|
| 7498 |
2020-05-01 Samuel Thibault <[email protected]> |
| 7499 |
|
| 7500 |
kmem_alloc_wired: factorize with kmem_valloc |
| 7501 |
* vm/vm_kern.c (kmem_alloc_wired): Factorize with kmem_valloc. |
| 7502 |
|
| 7503 |
2020-05-01 Samuel Thibault <[email protected]> |
| 7504 |
|
| 7505 |
Add kmem_valloc |
| 7506 |
Functions like vremap need to allocate some virtual addressing space |
| 7507 |
before making their own mapping. kmem_alloc_wired can be used for that |
| 7508 |
but that wastes memory. |
| 7509 |
|
| 7510 |
* vm/vm_kern.c (kmem_valloc): New function. |
| 7511 |
* vm/vm_kern.h (kmem_valloc): New prototype. |
| 7512 |
* linux/dev/glue/kmem.c (vremap): Call kmem_valloc instead of |
| 7513 |
kmem_alloc_wired. Also check that `offset' is aligned on a page. |
| 7514 |
|
| 7515 |
2020-04-16 Ricardo Wurmus <[email protected]> |
| 7516 |
|
| 7517 |
doc: Add missing word. |
| 7518 |
* doc/mach.texi (Features): Add missing word. |
| 7519 |
Message-Id: <[email protected]> |
| 7520 |
|
| 7521 |
2020-04-06 Samuel Thibault <[email protected]> |
| 7522 |
|
| 7523 |
mach_trap_table: Fix 64bit version |
| 7524 |
The addition of the mach_trap_name field made the 64bit unused field |
| 7525 |
spurious. |
| 7526 |
|
| 7527 |
* kern/syscall_sw.h (mach_trap_t): Remove `unused' field. |
| 7528 |
|
| 7529 |
2020-04-06 Samuel Thibault <[email protected]> |
| 7530 |
|
| 7531 |
Add warning about one of the next 64bit fixes to make |
| 7532 |
|
| 7533 |
ddb: Add 64bit support to memory examination |
| 7534 |
* ddb/db_examine.c(db_examine): Add q modifier to examine 64bit values. |
| 7535 |
* doc/mach.texi (examine): Document q modifier. |
| 7536 |
|
| 7537 |
2020-04-06 Samuel Thibault <[email protected]> |
| 7538 |
|
| 7539 |
bootstrap: Add missing reference to send port between tasks |
| 7540 |
When giving the port to a bootstrap task to another bootstrap task, we |
| 7541 |
need to add a reference. This shows up on error-cleanup (e.g. when |
| 7542 |
forgetting to define the root). |
| 7543 |
|
| 7544 |
* kern/bootstrap.c (boot_script_insert_task_port): Call |
| 7545 |
ipc_port_make_send on `task''s itk_sself. |
| 7546 |
|
| 7547 |
2020-04-06 Samuel Thibault <[email protected]> |
| 7548 |
|
| 7549 |
boot_script: Explicit missing symbol name |
| 7550 |
* kern/boot_script.c: Include <kern/printf.h>. |
| 7551 |
(boot_script_exec): Print missing symbol name on symbol lookup error. |
| 7552 |
|
| 7553 |
x86_64: Fix userland max address |
| 7554 |
* i386/include/mach/i386/vm_param.h (VM_MAX_ADDRESS) [__x86_64__]: Set |
| 7555 |
to 0x40000000UL. |
| 7556 |
|
| 7557 |
2020-04-05 Samuel Thibault <[email protected]> |
| 7558 |
|
| 7559 |
x86_64: Fix passing argument |
| 7560 |
* kern/boot_script.c (add_arg): Make val parameter long. |
| 7561 |
|
| 7562 |
xen: Fix vm_page layout for x86_64 |
| 7563 |
* i386/i386/vm_param.h [MACH_XEN && __LP64__] |
| 7564 |
(VM_PAGE_MAX_SEGS): Set to 4. |
| 7565 |
(VM_PAGE_DMA32_LIMIT): Define. |
| 7566 |
(VM_PAGE_DIRECTMAP_LIMIT): Set to 0x400000000000. |
| 7567 |
(VM_PAGE_HIGHMEM_LIMIT): Set to 0x10000000000000. |
| 7568 |
|
| 7569 |
xen: Fix rdtsc call for x86_64 |
| 7570 |
* i386/i386/xen.h (hyp_cpu_clock): Replace "=A" register constraint with |
| 7571 |
separate "=a" and "=d". |
| 7572 |
|
| 7573 |
Xen x86_64: Fix getting page table base |
| 7574 |
* i386/intel/pmap.c (pmap_bootstrap): Reload base from boot_info at each |
| 7575 |
loop. |
| 7576 |
|
| 7577 |
Fix warning |
| 7578 |
* xen/net.c (hyp_net_intr): Cast WINDOW to long. |
| 7579 |
|
| 7580 |
Fix xen build |
| 7581 |
* xen/grant.c: Include <machine/model_dep.h> instead of <model_dep.h>. |
| 7582 |
|
| 7583 |
2020-04-04 Samuel Thibault <[email protected]> |
| 7584 |
|
| 7585 |
pmap: Fix boot with kvm+PAE on some systems |
| 7586 |
It seems some systems refuse the W bit in the pdp. Only enable it for |
| 7587 |
Xen PV tables which do require it. |
| 7588 |
|
| 7589 |
* i386/intel/pmap.c (pmap_bootstrap, pmap_create) [!MACH_PV_PAGETABLES]: |
| 7590 |
Do not set INTEL_PTE_WRITE in pdpbase entries. |
| 7591 |
|
| 7592 |
2020-04-03 Samuel Thibault <[email protected]> |
| 7593 |
|
| 7594 |
pmap.h: Fix PDPMASK in 32bit PAE |
| 7595 |
This was erroneously set to 0x1ff in 0b3504b6 ('pmap.h: Add 64bit |
| 7596 |
variant') |
| 7597 |
|
| 7598 |
* i386/intel/pmap.h (PDPMASK) [PAE && !__x86_64__]: Set to 3. |
| 7599 |
|
| 7600 |
2020-03-31 Samuel Thibault <[email protected]> |
| 7601 |
|
| 7602 |
Fix build with -fno-common |
| 7603 |
which will be the default in gcc-10. |
| 7604 |
|
| 7605 |
* device/io_req.h (io_inband_cache): Add extern qualifier. |
| 7606 |
* device/tty.h (tthiwat, ttlowat): Likewise. |
| 7607 |
* i386/i386/db_machdep.h (ddb_regs): Likewise. |
| 7608 |
* kern/cpu_number.h (master_cpu): Likewise. |
| 7609 |
* kern/time_stamp.h (ts_tick_count): Likewise. |
| 7610 |
* linux/src/drivers/scsi/in2000.h (proc_scsi_in2000): Likewise. |
| 7611 |
* device/ds_routines.c (io_inband_cache): New variable. |
| 7612 |
* i386/i386/db_interface.c (ddb_regs): Likewise. |
| 7613 |
* kern/processor.c (master_cpu): Likewise. |
| 7614 |
* kern/time_stamp.c (ts_tick_count): Likewise. |
| 7615 |
* linux/pcmcia-cs/modules/pci_fixup.c (pci_root): Remove variable. |
| 7616 |
|
| 7617 |
2020-03-31 Samuel Thibault <[email protected]> |
| 7618 |
|
| 7619 |
xen: fix const warning |
| 7620 |
* xen/public/io/ring.h (__CONST_RING_SIZE): Add macro from upstream |
| 7621 |
* xen/net.c (WINDOW): Use __CONST_RING_SIZE instead of __RING_SIZE. |
| 7622 |
|
| 7623 |
2020-03-31 Samuel Thibault <[email protected]> |
| 7624 |
|
| 7625 |
Restore vm_size_t to natural_t |
| 7626 |
Plenty of places such as glibc RPC uses currently assume that vm_size_t is a |
| 7627 |
natural_t (thus int on 32bit), not an unsigned long. |
| 7628 |
|
| 7629 |
* i386/include/mach/i386/vm_types.h (vm_size_t) [!__x86_64__]: Set type |
| 7630 |
to natural_t. |
| 7631 |
* device/dev_page.c (device_pager_data_request): Cast vm_size_t to unsigned |
| 7632 |
long. |
| 7633 |
* i386/i386at/model_dep.c (c_boot_entry): Likewise. |
| 7634 |
|
| 7635 |
2020-03-31 Samuel Thibault <[email protected]> |
| 7636 |
|
| 7637 |
seg: Fix fill_gate offset |
| 7638 |
* i386/i386/seg.h (fill_gate): Make offset an unsigned long. |
| 7639 |
|
| 7640 |
2020-03-29 Samuel Thibault <[email protected]> |
| 7641 |
|
| 7642 |
Fix 64bit TSS/LDT system descriptors |
| 7643 |
* i386/i386/seg.h (real_descriptor64): New structure. |
| 7644 |
(fill_descriptor64): New function. |
| 7645 |
* i386/i386/gdt.h [__x86_64__] (KERNEL_TSS): Set to 0x40 instead of |
| 7646 |
0x20. |
| 7647 |
[__x86_64__] (USER_TSS): Set to 0x58 instead of 0x30. |
| 7648 |
[__x86_64__] (GDTSZ): Set to 12 instead of 11. |
| 7649 |
(_fill_gdt_descriptor): New macro. |
| 7650 |
(_fill_gdt_descriptor64, fill_gdt_descriptor64): New macros. |
| 7651 |
(_fill_gdt_sys_descriptor, fill_gdt_sys_descriptor): New macros. |
| 7652 |
* i386/i386/ktss.c (ktss_init): Use fill_gdt_sys_descriptor instead of |
| 7653 |
fill_gdt_descriptor to set KERNEL_TSS GDT entry. |
| 7654 |
* i386/i386/ldt.c (ldt_init): Likewise for KERNEL_LDT GDT entry. |
| 7655 |
* i386/i386/ldt.h (fill_ldt_descriptor, fill_ldt_gate): Use sel_idx |
| 7656 |
instead of reimplementing it. |
| 7657 |
* i386/i386/mp_desc.c (mp_desc_init): Use _fill_gdt_sys_descriptor |
| 7658 |
instead of reimplementing it. |
| 7659 |
|
| 7660 |
Fix gate definition for 64bit. |
| 7661 |
* i386/i386/seg.h (real_gate): Add offset_ext and reserved fields. |
| 7662 |
(fill_gate): Fill offset_ext and reserved fields. |
| 7663 |
|
| 7664 |
ldt: do not reload kernel LDT if we are already using it |
| 7665 |
* i386/i386/pcb.c (switch_ktss): Do not call set_ldt(KERNEL_LDT) if |
| 7666 |
get_ldt() is already KERNEL_LDT. |
| 7667 |
|
| 7668 |
2020-03-29 Samuel Thibault <[email protected]> |
| 7669 |
|
| 7670 |
Share ncom, lpr, PAE definitions between i386 and x86_64 |
| 7671 |
Otherwise the x86_64 configfrag would overwrite i386's. |
| 7672 |
|
| 7673 |
* i386/configfrag.ac: Remove ncom, nlpr, pae, NCOM, NLPR, PAE |
| 7674 |
definitions. |
| 7675 |
* i386/configfrag.ac: Remove ncom, nlpr, NCOM, NLPR, PAE |
| 7676 |
definitions. Enable PAE. |
| 7677 |
* configfrag-first.ac: New file, defines ncom, nlpr, pae. |
| 7678 |
* configure.ac: Include configfrag-first.ac |
| 7679 |
* configfrag.ac: Define NCOM, NLPR, PAE. |
| 7680 |
|
| 7681 |
2020-03-29 Samuel Thibault <[email protected]> |
| 7682 |
|
| 7683 |
Fix warning |
| 7684 |
* i386/intel/pmap.c (pmap_enter): Fix print format. |
| 7685 |
|
| 7686 |
64bit: fix warnings |
| 7687 |
* device/net_io.h (net_set_filter, ethernet_priority): Add prototypes. |
| 7688 |
* device/subrs.h: Include <device/if_hdr.h>. |
| 7689 |
(if_init_queues): Add prototype. |
| 7690 |
* i386/i386/model_dep.h (machine_relax): Add prototype. |
| 7691 |
* i386/i386/trap.c (i386_astintr): Move mycpu variable definition to |
| 7692 |
where it is used. |
| 7693 |
* i386/i386at/model_dep.c (i386at_init): Likewise for nb_direct, addr, |
| 7694 |
delta. |
| 7695 |
* i386/xen/xen.c (return_to_iret): Change type to char[]. |
| 7696 |
* xen/console.c: Include <i386at/kd.h>. |
| 7697 |
* xen/evt.c (hyp_evt_handler): Cast NEVNT to int. |
| 7698 |
* xen/grant.c: Include <model_dep.h>. |
| 7699 |
(hyp_grant_takeback, hyp_grant_init): Fix print format. |
| 7700 |
* xen/net.c: Include <device/subrs.h>. |
| 7701 |
(paranoia): Remove variable. |
| 7702 |
(hyp_net_init, device_close, device_open): Cast nd - vif_data to int. |
| 7703 |
Fix print format. |
| 7704 |
* xen/store.c (store_put): Cast sizeof to int. |
| 7705 |
* xen/time.c: Include "xen.h". |
| 7706 |
* xen/xen.h (hypclock_machine_intr): Add prototype. |
| 7707 |
|
| 7708 |
2020-03-29 Samuel Thibault <[email protected]> |
| 7709 |
|
| 7710 |
64bit: Fix vm_size_t size |
| 7711 |
It needs to be able to hold > 4G size. |
| 7712 |
|
| 7713 |
* i386/include/mach/i386/vm_types.h (vm_size_t): Set type to unsigned |
| 7714 |
long. |
| 7715 |
* vm/vm_user.c (vm_read, vm_write): Fix type according to RPC. |
| 7716 |
* i386/i386at/model_dep.c (c_boot_entry): Fix format. |
| 7717 |
* device/dev_pager.c (device_pager_data_request): Fix format. |
| 7718 |
|
| 7719 |
2020-03-29 Samuel Thibault <[email protected]> |
| 7720 |
|
| 7721 |
mach_port: Fix 64bit warnings |
| 7722 |
* ipc/mach_port.c (mach_port_destroy, mach_port_deallocate): Cast sizeof |
| 7723 |
to int. |
| 7724 |
|
| 7725 |
64bit: Fix segment definitions |
| 7726 |
* i386/i386/gdt.c: Include <kern/assert.h> |
| 7727 |
(gdt_init) [__x86_64__]: Assert base is 0, pass 0 limit and 64bit size. |
| 7728 |
* i386/i386/ktss.c: Warn that it needs to be fixed. |
| 7729 |
* i386/i386/ldt.c: Warn that it needs to be fixed. |
| 7730 |
* i386/i386/mp_desc.c: Warn that it needs to be fixed. |
| 7731 |
|
| 7732 |
db_interface: Fix 64bit warnings |
| 7733 |
* i386/i386/db_interface.c (i386_last_kdb_sp): Set type to uintptr_t. |
| 7734 |
(kdb_trap): Cast &type and ®s->uesp to uintptr_t. |
| 7735 |
(kdb_kentry): Cast interrupt state with uintptr_t. |
| 7736 |
|
| 7737 |
com: Fix 64bit warnings |
| 7738 |
* i386/i386at/com.c (comopen, comclose, comparam, comstart, comtimer): |
| 7739 |
Cast tp->t_addr to uinptr_t instead of int. |
| 7740 |
|
| 7741 |
64bit: Fix format warnings |
| 7742 |
* i386/i386at/biosmem.c: Include <inttypes.h> |
| 7743 |
(biosmem_map_show, biosmem_load_segment): Use PRIx64. |
| 7744 |
|
| 7745 |
x86_64: drop unused functions |
| 7746 |
* x86_64/locore.S (dr6, dr0, dr1, dr2, dr3): Remove functions. |
| 7747 |
(dr_msk, dr_addr): Remove variables. |
| 7748 |
|
| 7749 |
2020-03-29 Samuel Thibault <[email protected]> |
| 7750 |
|
| 7751 |
x86_64: Fix map address given to linker |
| 7752 |
See VM_MIN_KERNEL_ADDRESS. |
| 7753 |
|
| 7754 |
* x86_64/Makefrag.am (gnumach_LINKFLAGS): Set _START to |
| 7755 |
_START_MAP+0x40000000 instead of +0xC0000000. |
| 7756 |
|
| 7757 |
2020-03-29 Etienne Brateau <[email protected]> |
| 7758 |
|
| 7759 |
Enable x86_64 build for at |
| 7760 |
* x86_64/Makefrag.am: Add instructions to build |
| 7761 |
|
| 7762 |
spl: Fix assembly files |
| 7763 |
* x86_64/spl.S: fix instruction length |
| 7764 |
|
| 7765 |
2020-03-28 Samuel Thibault <[email protected]> |
| 7766 |
|
| 7767 |
Enable at x86_64 build |
| 7768 |
* x86_64/configfrag.ac (ncom, nplr) [!at:x86_64]: Set to 0. |
| 7769 |
(ncom) [at:x86_64]: Set to 4. |
| 7770 |
(nlpr) [at:x86_64]: Set to 1. |
| 7771 |
(ATX86_64): Define to 1. |
| 7772 |
(NCOM): Define. |
| 7773 |
(NLPR): Define. |
| 7774 |
* configure.ac [at:x86_64]: Accept combination. |
| 7775 |
|
| 7776 |
2020-03-28 Samuel Thibault <[email protected]> |
| 7777 |
|
| 7778 |
at-x86_64: Enable fpu/pic/pit macros |
| 7779 |
This must be replaced by 64bit equivalents, but let's enable them for now so |
| 7780 |
it can build. |
| 7781 |
|
| 7782 |
* i386/i386/pic.h [ATX86_64]: Enable macros. |
| 7783 |
* i386/i386/pit.h [ATX86_64]: Likewise. |
| 7784 |
* i386/i386/fpu.c [ATX86_64]: Enable fpintr function. |
| 7785 |
|
| 7786 |
2020-03-28 Samuel Thibault <[email protected]> |
| 7787 |
|
| 7788 |
pmap: fix 64bit non-xen build |
| 7789 |
* i386/intel/pmap.c (pmap_bootstrap) [!MACH_PV_PAGETABLES]: Do not call |
| 7790 |
pmap_set_page_readonly_init. |
| 7791 |
|
| 7792 |
kdasm: Fix 64bit build |
| 7793 |
* x86_64/kdasm.S (count): Fix type to 32bit. |
| 7794 |
(kd_slmscu, kd_slmscd): Fix getting count as 32bit. |
| 7795 |
|
| 7796 |
IDT: fix entries format |
| 7797 |
* i386/i386/idt.c (idt_init_entry): Set entrypoint type to unsigned long. |
| 7798 |
* x86_64/idt_inittab.S (IDT_ENTRY): Fix entry format accordingly. |
| 7799 |
|
| 7800 |
interrupt: Add 64bit variant |
| 7801 |
* x86_64/interrupt.S: New file. |
| 7802 |
|
| 7803 |
kdasm: Add 64bit variant |
| 7804 |
* i386/i386at/kdasm.S (start, count, value, from, to): Use B_ARG* |
| 7805 |
instead of reimplementing them. |
| 7806 |
* x86_64/kdasm.S: New file. |
| 7807 |
|
| 7808 |
Fix low-level macros for 64bit |
| 7809 |
* i386/i386/proc_reg.h (get_eflags, set_eflags): Add 64bit version. |
| 7810 |
(get_dr0, set_dr0, get_dr1, set_dr1, get_dr2, set_dr2, get_dr3, set_dr3, |
| 7811 |
get_dr6, set_dr6, get_dr7, set_dr7): Drop explicit size qualifier. |
| 7812 |
|
| 7813 |
2020-03-28 Etienne Brateau <[email protected]> |
| 7814 |
|
| 7815 |
Fix hardclock build on 64bit |
| 7816 |
* i386/i386/hardclock.c [ATX86_64]: Include <i386/ipl.h>. |
| 7817 |
|
| 7818 |
2020-03-28 Samuel Thibault <[email protected]> |
| 7819 |
|
| 7820 |
build system: Add 64bit variant |
| 7821 |
Only Xen platform for now. |
| 7822 |
|
| 7823 |
* Makefrag.am [HOST_x86_64]: Include x86_64/Makefrag.am. |
| 7824 |
* configure.ac: Include x86_64/configfrag.ac. |
| 7825 |
[default:x86_64] (host_platform): Set platform to xen. |
| 7826 |
* x86_64/Makefrag.am, x86_64/configfrag.ac: New files. |
| 7827 |
|
| 7828 |
2020-03-28 Samuel Thibault <[email protected]> |
| 7829 |
|
| 7830 |
Add 64bit/32bit compatibility symlinks |
| 7831 |
This makes inclusions easier. |
| 7832 |
|
| 7833 |
* x86_64/include/mach/x86_64, x86_64/x86_64: New symlinks. |
| 7834 |
|
| 7835 |
2020-03-28 Samuel Thibault <[email protected]> |
| 7836 |
|
| 7837 |
xen: Add 64bit variant |
| 7838 |
* x86_64/xen_boothdr.S, x86_64/xen_locore.S: New files. |
| 7839 |
|
| 7840 |
spl: Add 64bit variant |
| 7841 |
* x86_64/spl.S: New file. |
| 7842 |
|
| 7843 |
locore: Add 64bit variant |
| 7844 |
* x86_64/locore.S: New file. |
| 7845 |
|
| 7846 |
ldscript: Add 64bit variant |
| 7847 |
* x86_64/ldscript: New file. |
| 7848 |
|
| 7849 |
idt_inittab: Add 64bit variant |
| 7850 |
* x86_64/idt_inittab.S: New file. |
| 7851 |
|
| 7852 |
debug_trace: Add 64bit variant |
| 7853 |
* x86_64/debug_trace.S: New file. |
| 7854 |
|
| 7855 |
cswitch: Add 64bit variant |
| 7856 |
* x86_64/cswitch.S: New file. |
| 7857 |
|
| 7858 |
Fix 64bit link |
| 7859 |
* Makefile.am (clib_routines): Add __rela_iplt_start __rela_iplt_end. |
| 7860 |
|
| 7861 |
pmap.h: Add 64bit variant |
| 7862 |
* i386/intel/pmap.h (L4SHIFT, L4MASK, lin2l4num): New macros |
| 7863 |
(PDPNUM, PDPMASK, set_pmap): Add 64bit variant. Make PAE use the 64bit mask |
| 7864 |
too. |
| 7865 |
(pmap): Add l4base, user_l4base, user_pdpbase fields. |
| 7866 |
* i386/intel/pmap.c (pmap_bootstrap): Clear the whole PDP. Enable write |
| 7867 |
bit in PDP. Set user pagetable to NULL. Initialize l4base. |
| 7868 |
(pmap_clear_bootstrap_pagetable): Add 4th-level support. |
| 7869 |
(pmap_ceate): Clear the whole PDP. Enable write bit in PDP. Initialize |
| 7870 |
l4base, user_pdpbase, user_l4base. |
| 7871 |
(pmap_destroy): Clear l4base, user_pdpbase, user_l4base. |
| 7872 |
* i386/i386at/model_dep.c (i386at_init): Load l4base on 64bits. |
| 7873 |
|
| 7874 |
trap.c: Add 32bit lcall 7 emulation on 64bit |
| 7875 |
* i386/i386/trap.c: Detect lcall 7 instructions. |
| 7876 |
|
| 7877 |
bootstrap.c: Add 32-on-64bit support |
| 7878 |
* kern/bootstrap.c (bootstrap_create): Support loading 32bit binaries on |
| 7879 |
64bit. |
| 7880 |
|
| 7881 |
Fix tab vs spaces |
| 7882 |
|
| 7883 |
* xen/evt.c: Add 64bit variant |
| 7884 |
* xen/evt.c (hyp_intrinit): Fix hyp_set_callbacks for 64bit. |
| 7885 |
|
| 7886 |
syscall_sw.h: Add 64bit variant |
| 7887 |
* kern/syscall_sw.h (mach_trap_t): Fix structure for 64bit. |
| 7888 |
|
| 7889 |
include/mach/xen.h: Add 64bit variant |
| 7890 |
* include/mach/xen.h (PFN_LIST): Set to MACH2PHYS_VIRT_START. |
| 7891 |
|
| 7892 |
multiboot.h: Add 64bit variant |
| 7893 |
* i386/include/mach/i386/multiboot.h (multiboot32_module): New |
| 7894 |
structure. |
| 7895 |
|
| 7896 |
asm.h: Add 64bit variant |
| 7897 |
* i386/include/mach/i386/asm.h (S_ARG0, S_ARG1, S_ARG2, S_ARG3, S_ARG4, |
| 7898 |
S_ARG5, FRAME, EMARF, B_ARG0, B_ARG1, B_ARG2, B_ARG3, INT_FIX): Add |
| 7899 |
64bit variants. |
| 7900 |
|
| 7901 |
xen.h: Add 64bit variant |
| 7902 |
* i386/i386/xen.h (_hypcall_ret, _hypcall_arg1, _hypcall_arg2, |
| 7903 |
_hypcall_arg3, _hypcall_arg4, _hypcall_arg5): New macros. |
| 7904 |
(_hypcall0, _hypcall1, _hypcall2, _hypcall3, _hypcall4, _hypcall5): Fix |
| 7905 |
parameters and return type. |
| 7906 |
(set_callbacks, update_descriptor, set_segment_base, |
| 7907 |
update_va_mapping, set_timer_op): Add 64bit variant. |
| 7908 |
(hyp_set_user_cr3): New macro. |
| 7909 |
(iretq): New macro. |
| 7910 |
|
| 7911 |
vm_param: Add 64bit variant |
| 7912 |
* i386/i386/vm_param.h (VM_MIN_KERNEL_ADDRESS, HYP_VIRT_START, |
| 7913 |
LINEAR_MIN_KERNEL_ADDRESS, LINEAR_MAX_KERNEL_ADDRESS): Add 64bit |
| 7914 |
variants. |
| 7915 |
|
| 7916 |
thread.h: Add 64bit variant |
| 7917 |
* i386/i386/thread.h (i386_saved_state, i386_kernel_state, |
| 7918 |
i386_interrupt_state): Add 64bit registers. |
| 7919 |
|
| 7920 |
setjmp: Add 64bit variant |
| 7921 |
* x86_64/_setjmp.S: New file |
| 7922 |
* i386/i386/setjmp.h (jmp_buf): Add 64bit variant. |
| 7923 |
|
| 7924 |
i386asm.sym: Add 64bit variant |
| 7925 |
* i386/i386/i386asm.sym (KSS_ESI, KSS_EDI): Remove. |
| 7926 |
(KSS_R12, KSS_R13, KSS_R14, KSS_R15, r15): Add. |
| 7927 |
|
| 7928 |
2020-03-28 Samuel Thibault <[email protected]> |
| 7929 |
|
| 7930 |
gdt: 64bit Variant |
| 7931 |
There is no segmentation in 64bit mode. |
| 7932 |
|
| 7933 |
* i386/i386/gdt.c (gdt_init): Do not load segments on 64bit. |
| 7934 |
|
| 7935 |
2020-03-28 Samuel Thibault <[email protected]> |
| 7936 |
|
| 7937 |
db_trace: Add 64bit variant |
| 7938 |
* i386/i386/db_trace.c (i386_kregs): On 64bit, remove edi and esi, and |
| 7939 |
add r12, r13, r14, r15. |
| 7940 |
|
| 7941 |
db_interface: Add 64bit variant |
| 7942 |
* i386/i386/db_interface.c (int_regs): Drop edi/esi fields on 64bit. |
| 7943 |
(kdb_kentry): Fix saving rsi/rdi. |
| 7944 |
|
| 7945 |
cpu_number: Add 64bit variant |
| 7946 |
* i386/i386/cpu_number.h (CX): Add 64bit variant. |
| 7947 |
|
| 7948 |
2020-03-28 Etienne Brateau <[email protected]> |
| 7949 |
|
| 7950 |
Fix inl result size |
| 7951 |
* i386/i386/pio.h (inl): Make result unsigned int instead of unsigned |
| 7952 |
long. |
| 7953 |
|
| 7954 |
2020-03-15 Samuel Thibault <[email protected]> |
| 7955 |
|
| 7956 |
vm_object_copy_call: Make sure vm_object_enter succeeds |
| 7957 |
Suggested by guy fleury iteriteka <[email protected]> |
| 7958 |
|
| 7959 |
* vm/vm_object.c (ipc/mavm_object_copy_call): Make sure vm_object_enter call |
| 7960 |
succeeds. |
| 7961 |
|
| 7962 |
2020-03-09 Samuel Thibault <[email protected]> |
| 7963 |
|
| 7964 |
Set readtodc parameter 64bit |
| 7965 |
In order to fix year 2038 limit. |
| 7966 |
|
| 7967 |
* i386/i386at/rtc.h (readtodc): Make tp parameter uint64_t *. |
| 7968 |
* i386/i386at/rtc.c (readtodc): Likewise. |
| 7969 |
* xen/time.c (readtodc): Likewise. |
| 7970 |
* i386/i386at/model_dep.c (inittodr): Pass uint64_t pointer to readtodc. |
| 7971 |
|
| 7972 |
2020-01-28 Samuel Thibault <[email protected]> |
| 7973 |
|
| 7974 |
Set time_t type to 64bit |
| 7975 |
In order to fix year 2038 limit in RTC driver |
| 7976 |
|
| 7977 |
* include/sys/types.h (time_t): Bump type to 64bit. |
| 7978 |
* Makefile.am (clib_routines): Also allow __moddi3. |
| 7979 |
|
| 7980 |
2020-01-27 Samuel Thibault <[email protected]> |
| 7981 |
|
| 7982 |
doc: Fix mapped-time example |
| 7983 |
One needs to use memory barriers to be sure to be reading values in the |
| 7984 |
proper order. |
| 7985 |
|
| 7986 |
* doc/mach.texi (Host Time): Add __sync_synchronize() in mapped-time |
| 7987 |
example. |
| 7988 |
|
| 7989 |
2020-01-01 Samuel Thibault <[email protected]> |
| 7990 |
|
| 7991 |
Cope with machine_info.memory_size overflow |
| 7992 |
* kern/startup.c (setup_main): When memory size overflows |
| 7993 |
machine_info.memory_size, set to maximum size. |
| 7994 |
|
| 7995 |
2019-12-01 Samuel Thibault <[email protected]> |
| 7996 |
|
| 7997 |
i386: use 64bit precision by default |
| 7998 |
This is the System V ABI default. |
| 7999 |
|
| 8000 |
* i386/i386/fpu.c (fpinit): Use FPC_PC_64 instead of FPC_PC_53. |
| 8001 |
(fp_state_alloc): Likewise. |
| 8002 |
|
| 8003 |
2019-11-12 Samuel Thibault <[email protected]> |
| 8004 |
|
| 8005 |
irq: Add disabling counter |
| 8006 |
* linux/dev/arch/i386/kernel/irq.c (ndisabled_irq): New array. |
| 8007 |
(__disable_irq, __enable_irq): New functions, count with ndisabled_irq |
| 8008 |
before really calling mask_irq/unmask_irq. |
| 8009 |
(linux_pic_mask): New variable. |
| 8010 |
(disable_irq, enable_irq): Manage linux_pic_mask and call |
| 8011 |
__disable_irq/__enable_irq instead of calling mask_irq/unmask_irq. |
| 8012 |
* linux/src/include/asm-i386/irq.h (__disable_irq, __enable_irq): New |
| 8013 |
prototypes. |
| 8014 |
|
| 8015 |
2019-11-11 Samuel Thibault <[email protected]> |
| 8016 |
|
| 8017 |
PIC: Acknowledge interrupts more carefully |
| 8018 |
Specs seems to be saying that we should mask an irq out while |
| 8019 |
acknowledging it with EOI. Also, better acknowledge only the concerned |
| 8020 |
irq. |
| 8021 |
|
| 8022 |
* i386/i386at/interrupt.S (interrupt): Mask irq before notifying EOI. |
| 8023 |
Using specific EOI instead of unspecific EOI. |
| 8024 |
|
| 8025 |
2019-11-11 Samuel Thibault <[email protected]> |
| 8026 |
|
| 8027 |
PIC: fix EOI values |
| 8028 |
* i386/i386/pic.h (SPECIFIC_EOI, ROT_NON_SPEC, SET_ROT_AEOI, |
| 8029 |
ROT_SPEC_EOI, SET_PRIORITY, NO_OPERATION): Shift value left by one bit. |
| 8030 |
|
| 8031 |
2019-11-11 Samuel Thibault <[email protected]> |
| 8032 |
|
| 8033 |
intnull: Only warn once. |
| 8034 |
On real hardware, irq 7 seems to get raised often for some reason. |
| 8035 |
|
| 8036 |
* i386/i386/pic.c (intnull): Only print once the warning about interrupt |
| 8037 |
being unexpectedly raised. |
| 8038 |
|
| 8039 |
2019-11-10 Samuel Thibault <[email protected]> |
| 8040 |
|
| 8041 |
spl: Remove intpri array |
| 8042 |
And simplify prtnull vs intnull vs linux_bad_intr. |
| 8043 |
|
| 8044 |
* i386/i386/ipl.h (intpri): Remove declaration |
| 8045 |
* i386/i386/pic.c (prtnull_count): Remove variable. |
| 8046 |
(prtnull): Remove function. |
| 8047 |
* i386/i386/pic.h (prtnull): Remove declaration. |
| 8048 |
* i386/i386at/autoconf.c (take_dev_irq, take_ctlr_irq): Use ivect instead of |
| 8049 |
intpri to determine irq availability. Do not set intpri. |
| 8050 |
* i386/i386at/pic_isa.c (ivect): Replace prtnull with intnull. |
| 8051 |
(intpri): Remove array. |
| 8052 |
* linux/dev/arch/i386/kernel/irq.c (linux_intr_pri): Remove variable. |
| 8053 |
(linux_bad_intr): Remove function. |
| 8054 |
(setup_x86_irq): Do not check intpri coherency. Do not set intpri. Set |
| 8055 |
default ivect to intnull instead of linux_bad_intr. |
| 8056 |
(probe_irq_on): Check ivect against intnull instead of linux_bad_intr. |
| 8057 |
Do not set intpri. |
| 8058 |
(probe_irq_off): Likewise. |
| 8059 |
(reserve_mach_irqs): Do not check against prtnull. |
| 8060 |
(old_clock_pri): Remove variable. |
| 8061 |
(init_IRQ): Do not set intpri. Do not set ivect to linux_bad_intr. |
| 8062 |
(restore_IRQ): Do not set ivect. |
| 8063 |
* i386/i386/pit.c (clkstart): Do not set intpri. |
| 8064 |
* i386/i386at/kd_mouse.c (kd_mouse_open, kd_mouse_close): Likewise. |
| 8065 |
* linux/dev/drivers/block/genhd.c (device_setup): Do not set linux_intr_pri. |
| 8066 |
* linux/dev/glue/block.c (init_partition, device_open): Likewise. |
| 8067 |
* linux/dev/glue/net.c (device_open): Likewise. |
| 8068 |
* linux/dev/glue/glue.h (linux_intr_pri, linux_bad_intr): Remove |
| 8069 |
declarations. |
| 8070 |
|
| 8071 |
2019-11-10 Samuel Thibault <[email protected]> |
| 8072 |
|
| 8073 |
Make default boot less scary |
| 8074 |
* linux/configfrag.ac (AM53C974, aha1542, eata, eata_pio, ppa, wd7000, |
| 8075 |
3c515, de600, de620): Disable by default drivers for elder hardware, |
| 8076 |
which have scary boot messages. |
| 8077 |
* linux/pcmcia-cs/modules/ds.c (init_pcmcia_ds): Make message about |
| 8078 |
socket not being found less scary. |
| 8079 |
|
| 8080 |
Fix build warning |
| 8081 |
* ddb/db_command.c: Include <ipc/mach_port.h>. |
| 8082 |
|
| 8083 |
Run interrupt handlers at spl7 |
| 8084 |
* i386/i386at/interrupt.S (interrupt): Call spl7 instead of the |
| 8085 |
intpri-provided one. |
| 8086 |
|
| 8087 |
2019-11-10 Damien Zammit <[email protected]> |
| 8088 |
|
| 8089 |
simplify interrupt handling |
| 8090 |
We have removed spl levels, now remove the machinery to manage different |
| 8091 |
PIC masks according to levels. Only keep machinery to disable interrupts |
| 8092 |
whatever the level. |
| 8093 |
|
| 8094 |
* i386/i386/pic.c (pic_mask): Remove array. |
| 8095 |
(picinit): Do not form PIC mask. Set initial PIC mask to 0. |
| 8096 |
(form_pic_mask): Remove function. |
| 8097 |
* i386/i386/pic.h (form_pic_mask, pic_mask): Remove declarations. |
| 8098 |
* i386/i386/spl.S (SETMASK): Remove macro. |
| 8099 |
(XEN_SETMASK): Add macro, containing the Xen version of SETMASK. |
| 8100 |
(spl0, splx_cli, spl) [MACH_XEN]: Call XEN_SETMASK instead of SETMASK. |
| 8101 |
* i386/i386/pit.c (clkstart): Do not call form_pic_mask. |
| 8102 |
* i386/i386at/autoconf.c (take_dev_irq, take_ctlr_irq): Likewise. |
| 8103 |
* i386/i386at/kd_mouse.c (kd_mouse_open, kd_mouse_close): Likewise. |
| 8104 |
* linux/dev/arch/i386/kernel/irq.c (mask_irq, unmask_irq): Directly update |
| 8105 |
curr_pic_mask without using pic_mask array. |
| 8106 |
(init_IRQ, restore_IRQ): do not call form_pic_mask. |
| 8107 |
* linux/dev/include/asm-i386/system.h: Include <i386/ipl.h>. |
| 8108 |
(__save_flags, __restore_flags): Use curr_ipl and splx instead of |
| 8109 |
hardware flags. |
| 8110 |
* linux/dev/init/main.c (linux_init): Do not call cli. |
| 8111 |
* linux/dev/kernel/sched.c (linux_timer_intr): Do not use pic_mask. |
| 8112 |
* linux/src/drivers/block/ide.c (try_to_identify): Disable irq probing. |
| 8113 |
* linux/src/drivers/scsi/NCR53c406a.c (NCR53c406a_detect): Disable irq |
| 8114 |
probing. |
| 8115 |
|
| 8116 |
2019-11-10 Samuel Thibault <[email protected]> |
| 8117 |
|
| 8118 |
ide: Use default IRQ by default |
| 8119 |
To avoid even trying to probe IRQs. Nowadays' hardware use the default |
| 8120 |
IRQ anyway. |
| 8121 |
|
| 8122 |
* linux/src/drivers/block/ide.c (init_hwif_data): Set hwif->irq to |
| 8123 |
default_irqs[index]. |
| 8124 |
|
| 8125 |
2019-11-10 Damien Zammit <[email protected]> |
| 8126 |
|
| 8127 |
spl: Squash levels 1-6 into level 7 |
| 8128 |
* i386/i386/spl.S (SETIPL): Remove macro. |
| 8129 |
(splsoftclock, spl1, spl2, spl3, splnet, splhdw, spl4, splbio, spldcm, |
| 8130 |
spl5, spltty, splimp, splvm, spl6): Move entries to the spl7 entry. |
| 8131 |
|
| 8132 |
2019-11-10 Samuel Thibault <[email protected]> |
| 8133 |
|
| 8134 |
pmap: fix format warnings |
| 8135 |
* i386/intel/pmap.c (pmap_bootstrap, pmap_set_page_readwrite, |
| 8136 |
pmap_set_page_readonly, pmap_set_page_readonly_init, |
| 8137 |
pmap_clear_bootstrap_pagetable, pmap_map_mfn, pmap_destroy, pmap_enter, |
| 8138 |
pmap_collect, phys_attribute_clear): Fix format warnings. |
| 8139 |
|
| 8140 |
2019-11-10 Samuel Thibault <[email protected]> |
| 8141 |
|
| 8142 |
Xen: fix boot |
| 8143 |
Xen seems to want a whole page for the PAE pdp. |
| 8144 |
|
| 8145 |
* i386/intel/pmap.c (pmap_init): Make pdpt cache use page-size |
| 8146 |
allocation. |
| 8147 |
|
| 8148 |
2019-11-01 Samuel Thibault <[email protected]> |
| 8149 |
|
| 8150 |
sched: cause ast on master processor too |
| 8151 |
Nowadays' processors are way fast enough to handle everything fine. |
| 8152 |
|
| 8153 |
* kern/sched_prim.c (thread_setrun): Do not check against target |
| 8154 |
processor being master. |
| 8155 |
|
| 8156 |
2019-10-31 Samuel Thibault <[email protected]> |
| 8157 |
|
| 8158 |
pit: fix build |
| 8159 |
* i386/i386/pit.c: Include <kern/cpu_number.h> |
| 8160 |
|
| 8161 |
pit: avoid initializating several times |
| 8162 |
i386/i386/pit.c (clkstart): Do not initialize PIT if cpu_number() is not 0. |
| 8163 |
|
| 8164 |
2019-10-30 Samuel Thibault <[email protected]> |
| 8165 |
|
| 8166 |
Drop spurious change |
| 8167 |
* version.m4: Remove spurious git tag qualifier. |
| 8168 |
|
| 8169 |
2019-10-27 Almudena Garcia <[email protected]> |
| 8170 |
|
| 8171 |
patch: add last_processor to thread info structures |
| 8172 |
* include/mach/thread_info.h (thread info structures): Add new member |
| 8173 |
"last_processor" in thread_sched_info. |
| 8174 |
* kern/thread.c (thread management): Fill new member "last_processor" in |
| 8175 |
thread_info() function. |
| 8176 |
|
| 8177 |
2019-10-24 Luca Weiss <[email protected]> |
| 8178 |
|
| 8179 |
Fix build with texinfo 6.7 |
| 8180 |
doc/mach.texi: Specify document encoding as ISO-8859-1. |
| 8181 |
|
| 8182 |
2019-09-06 Samuel Thibault <[email protected]> |
| 8183 |
|
| 8184 |
compiler-gcc*.h: Keep on the gcc 5 version for now |
| 8185 |
We can introduce other versions if we ever need to (which is unlikely |
| 8186 |
since we plan to get rid of the Linux drivers). |
| 8187 |
|
| 8188 |
* compiler-gcc.h: Include compiler-gcc5.h for all compiler versions starting |
| 8189 |
from gcc 5. |
| 8190 |
* compiler-gcc6.h, compiler-gcc7.h, compiler-gcc8.h, compiler-gcc9.h: |
| 8191 |
Remove. |
| 8192 |
|
| 8193 |
2019-08-31 guy fleury iteriteka <[email protected]> |
| 8194 |
|
| 8195 |
satisfy 'werror=parantheses'. |
| 8196 |
* vm/vm_map.c(vm_map_msync): explit group of first condition. |
| 8197 |
|
| 8198 |
Fix the pointer comparison of different type. |
| 8199 |
* vm/vm_map.c(vm_map_fork): use VM_MAP_NULL instead of PMAP_NULL when compare |
| 8200 |
with new_map. |
| 8201 |
|
| 8202 |
2019-08-31 Samuel Thibault <[email protected]> |
| 8203 |
|
| 8204 |
Add gcc-9 compatibility |
| 8205 |
* linux/src/include/linux/compiler-gcc9.h: New file. |
| 8206 |
|
| 8207 |
2019-08-30 guy fleury iteriteka <[email protected]> |
| 8208 |
|
| 8209 |
fix return KERN_INVALID_ARGUMENT when the map is NULL. |
| 8210 |
* vm/vm_map.c(vm_map_msync): Add missing return keyword. |
| 8211 |
|
| 8212 |
2019-08-11 Samuel Thibault <[email protected]> |
| 8213 |
|
| 8214 |
Fix format |
| 8215 |
* ipc/mach_port.c (mach_port_mod_refs): Fix passing string size. |
| 8216 |
|
| 8217 |
Fix format |
| 8218 |
* kern/task.c (task_create_kernel): Fix passing string size. |
| 8219 |
|
| 8220 |
Fix allocation test |
| 8221 |
* vm/vm_map.c (vm_map_fork): Check for `new_map` being non-NULL, and not |
| 8222 |
for `new_pmap` a second time. |
| 8223 |
|
| 8224 |
Fix printk format |
| 8225 |
* linux/dev/drivers/block/ahci.c (ahci_identify, ahci_probe_port): Fix |
| 8226 |
format. |
| 8227 |
|
| 8228 |
Fix printf format |
| 8229 |
* ipc/mach_port.c (mach_port_destroy, mach_port_deallocate): Fix format. |
| 8230 |
|
| 8231 |
Fix uninitialized value |
| 8232 |
* kern/gsync.c (temp_mapping): Initialize start address to |
| 8233 |
VM_MIN_KERNEL_ADDRESS. |
| 8234 |
|
| 8235 |
2019-04-28 Samuel Thibault <[email protected]> |
| 8236 |
|
| 8237 |
Avoid calling biosmem with size 0 |
| 8238 |
* i386/i386at/model_dep.c (register_boot_data): Register reserved |
| 8239 |
biosmem areas only when they have a non-zero size. |
| 8240 |
|
| 8241 |
Avoid calling biosmem with size 0 |
| 8242 |
* i386/configfrag.ac (register_boot_data): Process modules only when |
| 8243 |
their count is non-zero. |
| 8244 |
(i386at_init): Likewise. |
| 8245 |
|
| 8246 |
2019-04-27 Samuel Thibault <[email protected]> |
| 8247 |
|
| 8248 |
ahci: Ignore multifunction bit in PCI header type |
| 8249 |
* linux/dev/drivers/block/ahci.c (ahci_probe_dev): Clear bit 7 of |
| 8250 |
hdrtype. |
| 8251 |
|
| 8252 |
2018-12-30 Samuel Thibault <[email protected]> |
| 8253 |
|
| 8254 |
Move -D__ASSEMBLY__ to general AM_CCASFLAGS |
| 8255 |
Since it is used not only by linux bits. |
| 8256 |
|
| 8257 |
* linux/Makefrag.am (liblinux_a_CCASFLAGS): Remove -D__ASSEMBLY__ |
| 8258 |
* Makefile.am (AM_CCASFLAGS): Add -D__ASSEMBLY__ |
| 8259 |
|
| 8260 |
2018-12-05 Samuel Thibault <[email protected]> |
| 8261 |
|
| 8262 |
io_perm: Rename macro to better name |
| 8263 |
* i386/i386/io_perm.c (IS_IN_PROTECTED_RANGE): Rename to |
| 8264 |
CONTAINS_PCI_CFG. |
| 8265 |
|
| 8266 |
2018-12-05 Damien Zammit <[email protected]> |
| 8267 |
|
| 8268 |
Restrict access to PCI cfg io ports to one process |
| 8269 |
* i386/i386/io_perm.c (PCI_CFG1_START, PCI_CFG1_END, PCI_CFG2_START, |
| 8270 |
PCI_CFG2_END, IS_IN_PROTECTED_RANGE): New macros. |
| 8271 |
(taken_pci_cfg): New variable. |
| 8272 |
(io_perm_deallocate): New function. |
| 8273 |
(i386_io_perm_create): Return KERN_PROTECTION_FAILURE if requested port |
| 8274 |
range contains PCI config registers and that is already taken. Set |
| 8275 |
taken_pci_cfg to true when taking them. |
| 8276 |
* i386/i386/io_perm.h (io_perm_deallocate): New declaration. |
| 8277 |
* i386/include/mach/i386/mach_i386.defs (io_perm_t): Add |
| 8278 |
io_perm_deallocate destructor. |
| 8279 |
|
| 8280 |
2018-11-26 Kalle Olavi Niemitalo <[email protected]> |
| 8281 |
|
| 8282 |
Add GPLv3 license text |
| 8283 |
To help people satisfy the license when they convey clones |
| 8284 |
of the gnumach Git repository, in which gitlog-to-changelog |
| 8285 |
and some deleted files are licensed under GPLv3-or-later. |
| 8286 |
|
| 8287 |
A normal build does not use the GPLv3-or-later files. "make dist" |
| 8288 |
runs gitlog-to-changelog but does not copy it to gnumach-*.tar. |
| 8289 |
|
| 8290 |
Bug: https://savannah.gnu.org/bugs/?49024 |
| 8291 |
|
| 8292 |
2018-11-19 Samuel Thibault <[email protected]> |
| 8293 |
|
| 8294 |
Fix interactivity of inactive threads |
| 8295 |
A new thread will mosty probably start working, assume it will take |
| 8296 |
its share of CPU, to avoid having to find it out slowly. Decaying will |
| 8297 |
however fix that quickly if it actually does not work. |
| 8298 |
|
| 8299 |
This fixes stalling issues when a program keeps creating threads. |
| 8300 |
|
| 8301 |
* kern/thread.c (thread_create): Set new_thread's cpu_usage and |
| 8302 |
sched_usage to a fair share of the current load. |
| 8303 |
|
| 8304 |
2018-11-19 Samuel Thibault <[email protected]> |
| 8305 |
|
| 8306 |
Fix task and thread collection frequency |
| 8307 |
sched_tick is incremented only once per second, not once per tick. |
| 8308 |
|
| 8309 |
* kern/task.c (consider_task_collect): Divide task_collect_max_rate by |
| 8310 |
(hz / 1) to get a number of scheduler ticks. |
| 8311 |
* kern/thread.c (consider_thread_collect): Divide thread_collect_max_rate by |
| 8312 |
(hz / 1) to get a number of scheduler ticks. |
| 8313 |
|
| 8314 |
2018-11-19 Samuel Thibault <[email protected]> |
| 8315 |
|
| 8316 |
Drop SIMPLE_CLOCK support |
| 8317 |
This wasn't building and is not useful with nowaday's hardware. |
| 8318 |
|
| 8319 |
* configfrag.ac (SIMPLE_CLOCK): Do not define. |
| 8320 |
* kern/sched.h [SIMPLE_CLOCK] (sched_usec): Remove variable declaration. |
| 8321 |
* kern/sched_prim.c [SIMPLE_CLOCK] (sched_usec): Remove variable. |
| 8322 |
[SIMPLE_CLOCK] (sched_init): Do not initialize sched_usec variable. |
| 8323 |
[SIMPLE_CLOCK] (recompute_priorities): Do not tinker sched_usec |
| 8324 |
variable. |
| 8325 |
* kern/thread.c [SIMPLE_CLOCK] (thread_info): Do not ajust for clock |
| 8326 |
drift. |
| 8327 |
|
| 8328 |
2018-11-19 Samuel Thibault <[email protected]> |
| 8329 |
|
| 8330 |
Make scheduling more reactive |
| 8331 |
Give smaller quantums to processes, to get more frequent context |
| 8332 |
switches. This fixes some reactivity for concurrent processes. |
| 8333 |
|
| 8334 |
* kern/sched.h (MIN_QUANTUM): Define to hz / 33. |
| 8335 |
* kern/sched_prim.c (sched_init): Use MIN_QUANTUM instead of hz / 10. |
| 8336 |
|
| 8337 |
2018-11-06 Guillem Jover <[email protected]> |
| 8338 |
|
| 8339 |
build: Distribute tarball compressed with xz instead of bzip2 |
| 8340 |
* configure.ac (AM_INIT_AUTOMAKE): Change dist-bzip2 to dist-xz. |
| 8341 |
|
| 8342 |
2018-11-04 Samuel Thibault <[email protected]> |
| 8343 |
|
| 8344 |
Fix using all dynamic priorities |
| 8345 |
6a2342010811 ("Increase number of priorities") increased NRQS but didn't |
| 8346 |
increase PRI_SHIFT to extend the use of the additional queues by the |
| 8347 |
scheduler. This does it. While at it, extend to NRQS to 64, the double |
| 8348 |
of the original 32, to keep all values coherent. |
| 8349 |
|
| 8350 |
* i386/i386/sched_param.h (PRI_SHIFT): Set from 18 to 17. |
| 8351 |
* kern/sched.h (PRI_SHIFT): Set from 18 to 17. |
| 8352 |
(NRQS): Set to 64. |
| 8353 |
|
| 8354 |
2018-11-03 Samuel Thibault <[email protected]> |
| 8355 |
|
| 8356 |
Add missing patch file |
| 8357 |
* Makefile.am (EXTRA_DIST): Add Makefile.in.dep.patch. |
| 8358 |
|
| 8359 |
Add vm_object_sync support |
| 8360 |
* include/mach/vm_sync.h: New file. |
| 8361 |
* include/mach/mach_types.h: Include <mach/vm_sync.h> |
| 8362 |
* Makefrag.am (include_mach_HEADERS): Add include/mach/vm_sync.h. |
| 8363 |
* include/mach/mach_types.defs (vm_sync_t): Add type. |
| 8364 |
* include/mach/gnumach.defs (vm_object_sync, vm_msync): Add RPCs. |
| 8365 |
* vm/vm_map.h: Include <mach/vm_sync.h>. |
| 8366 |
(vm_map_msync): New declaration. |
| 8367 |
* vm/vm_map.c (vm_map_msync): New function. |
| 8368 |
* vm/vm_user.c: Include <mach/vm_sync.h> and <kern/mach.server.h>. |
| 8369 |
(vm_object_sync, vm_msync): New functions. |
| 8370 |
|
| 8371 |
Fix typo |
| 8372 |
|
| 8373 |
2018-08-13 Samuel Thibault <[email protected]> |
| 8374 |
|
| 8375 |
Drop spurious changes |
| 8376 |
|
| 8377 |
Fix building out of source |
| 8378 |
* configure.ac: Fix patching Makefile.in in $srcdir. |
| 8379 |
|
| 8380 |
Fix bootstrap hack for automake 1.16 |
| 8381 |
* Makefile.in.dep.patch: New file. |
| 8382 |
* configure.ac: Try to apply Makefile.in.dep.patch if |
| 8383 |
config.status.dep.patch failed to apply. |
| 8384 |
|
| 8385 |
2018-07-28 Samuel Thibault <[email protected]> |
| 8386 |
|
| 8387 |
device: Fix d_mmap type |
| 8388 |
* device/conf.h (dev_ops): Make d_mmap return vm_offset_t instead of |
| 8389 |
int. |
| 8390 |
(nomap): Update accordingly. |
| 8391 |
* device/blkio.c (block_io_mmap): Likewise. |
| 8392 |
* device/blkio.h (block_io_mmap): Likewise. |
| 8393 |
* device/dev_name.c (nomap): Likewise. |
| 8394 |
* i386/i386at/kd.c (kdmmap): Likewise. |
| 8395 |
* i386/i386at/kd.h (kdmmap): Likewise. |
| 8396 |
* i386/i386at/mem.c (memmmap): Likewise. |
| 8397 |
* i386/i386at/mem.h (memmmap): Likewise. |
| 8398 |
* i386/i386at/model_dep.c (timemmap): Likewise. |
| 8399 |
* i386/i386at/model_dep.h (timemmap): Likewise. |
| 8400 |
|
| 8401 |
2018-07-28 Samuel Thibault <[email protected]> |
| 8402 |
|
| 8403 |
Fix dev_ops types |
| 8404 |
* device/conf.h: Include <device/device_types.h>. |
| 8405 |
(dev_ops): Make d_getstat and d_setstat fields use dev_flavor_t, |
| 8406 |
dev_status_t, and mach_msg_type_number_t types. |
| 8407 |
* device/tty.h: (t_getstat, t_setstat): Likewise. |
| 8408 |
|
| 8409 |
* device/conf.h (nulldev_getstat, nulldev_setstat): Fix parameter types |
| 8410 |
accordingly. |
| 8411 |
* device/dev_name.c (nulldev_getstat, nulldev_setstat): Likewise. |
| 8412 |
* device/kmsg.c (kmsggetstat): Likewise. |
| 8413 |
* device/kmsg.h (kmsggetstat): Likewise. |
| 8414 |
* device/net_io.c (net_getstat): Likewise. |
| 8415 |
* device/net_io.h (net_getstat): Likewise. |
| 8416 |
* i386/i386at/com.c (comgetstat, comsetstat): Likewise. |
| 8417 |
* i386/i386at/com.h (comgetstat, comsetstat): Likewise. |
| 8418 |
* i386/i386at/kd.c (kdgetstat, kdsetstat): Likewise. |
| 8419 |
* i386/i386at/kd.h (kdgetstat, kdsetstat): Likewise. |
| 8420 |
* i386/i386at/kd_event.c (kbdgetstat, kbdsetstat): Likewise. |
| 8421 |
* i386/i386at/kd_event.h (kbdgetstat, kbdsetstat): Likewise. |
| 8422 |
* i386/i386at/kd_mouse.c (mousegetstat): Likewise. |
| 8423 |
* i386/i386at/kd_mouse.h (mousegetstat): Likewise. |
| 8424 |
* i386/i386at/lpr.c (lprgetstat, lprsetstat): Likewise. |
| 8425 |
* i386/i386at/lpr.h (lprgetstat, lprsetstat): Likewise. |
| 8426 |
* xen/console.c (hypcngetstat, hypcnsetstat): Likewise. |
| 8427 |
* xen/console.h (hypcngetstat, hypcnsetstat): Likewise. |
| 8428 |
|
| 8429 |
* device/dev_hdr.h: Forward-declare struct dev_ops and dev_ops_t type |
| 8430 |
instead of including <device/conf.h>. |
| 8431 |
* device/dev_pager.c: Include <device/conf.h> |
| 8432 |
* i386/i386/pcb.h: Include <machine/io_perm.h> |
| 8433 |
* i386/i386/thread.h: Do not include <i386/tss.h> |
| 8434 |
|
| 8435 |
2018-07-28 Samuel Thibault <[email protected]> |
| 8436 |
|
| 8437 |
Fix warning |
| 8438 |
* i386/intel/pmap.c (pmap_enter): Fix panic format. |
| 8439 |
|
| 8440 |
Add gcc-8 compatibility |
| 8441 |
* linux/src/include/linux/compiler-gcc8.h: New file. |
| 8442 |
|
| 8443 |
2018-07-03 Samuel Thibault <[email protected]> |
| 8444 |
|
| 8445 |
Add ffs to clib_routines |
| 8446 |
Since pmap.c uses it in SMP mode. |
| 8447 |
|
| 8448 |
* Makefile.am (clib_routines): Add ffs. |
| 8449 |
|
| 8450 |
2018-06-27 Samuel Thibault <[email protected]> |
| 8451 |
|
| 8452 |
Fix interrupt_processor prototype |
| 8453 |
* i386/i386/mp_desc.h [MULTIPROCESSOR] (interrupt_processor): Add |
| 8454 |
prototype. |
| 8455 |
* i386/intel/pmap.c [NCPUS > 1]: Include <i386/mp_desc.h> |
| 8456 |
|
| 8457 |
Add missing include |
| 8458 |
* i386/intel/pmap.c: Include <i386/spl.h>. |
| 8459 |
|
| 8460 |
Fix pmap name |
| 8461 |
* i386/intel/pmap.c (pmap_map_bd): Lock kernel_pmap, not just the |
| 8462 |
inexistent pmap. |
| 8463 |
|
| 8464 |
Add splvm prototype |
| 8465 |
* i386/i386/spl.h (splvm): Add prototype. |
| 8466 |
|
| 8467 |
2018-06-27 Samuel Thibault <[email protected]> |
| 8468 |
|
| 8469 |
Add cause_ast_check prototype |
| 8470 |
As reported by Almudena Garcia <[email protected]> |
| 8471 |
|
| 8472 |
* kern/ast.h [NCPUS > 1] (cause_ast_check): Add prototype. |
| 8473 |
|
| 8474 |
2018-06-27 Samuel Thibault <[email protected]> |
| 8475 |
|
| 8476 |
Define CPU_L1_SIZE even when NCPUS != 1 |
| 8477 |
As reported by Almudena Garcia <[email protected]> |
| 8478 |
|
| 8479 |
* kern/cpu_number.h [NCPUS != 1] (CPU_L1_SIZE): Define macro. |
| 8480 |
|
| 8481 |
2018-06-27 Samuel Thibault <[email protected]> |
| 8482 |
|
| 8483 |
Disable position-independant compilation |
| 8484 |
as now enabled automatically by some distributions... |
| 8485 |
|
| 8486 |
Reported and tested by Almudena Garcia <[email protected]> |
| 8487 |
|
| 8488 |
* Makefile.am (AM_CFLAGS): Add -no-pie -fno-pic. |
| 8489 |
|
| 8490 |
2018-06-17 Samuel Thibault <[email protected]> |
| 8491 |
|
| 8492 |
Add missing prototype |
| 8493 |
* kern/machine.h (action_thread): Add prototype. |
| 8494 |
|
| 8495 |
Re-fix typo |
| 8496 |
* machine/lock.h (_simple_lock_xchg_): Remove spurious parenthesis. |
| 8497 |
|
| 8498 |
Fix typo |
| 8499 |
* machine/lock.h (_simple_lock_xchg_): Add missing parenthesis. |
| 8500 |
|
| 8501 |
2018-06-13 Samuel Thibault <[email protected]> |
| 8502 |
|
| 8503 |
Keep DMA enabled on QEMU disks |
| 8504 |
When the host is very loaded, some requests might time out, but that is |
| 8505 |
not a reason for disabling DMA, so keep it enabled. |
| 8506 |
|
| 8507 |
* linux/src/drivers/block/triton.c (config_drive_for_dma): When disk is |
| 8508 |
QEMU, set using_dma and keep_settings to 1. |
| 8509 |
|
| 8510 |
2018-04-22 Samuel Thibault <[email protected]> |
| 8511 |
|
| 8512 |
vm_map: Fix bugs on huge masks parameters |
| 8513 |
* vm/vm_map.c (vm_map_find_entry_anywhere): Also check that (min + mask) & |
| 8514 |
~mask remains bigger than min. |
| 8515 |
|
| 8516 |
2018-03-03 Samuel Thibault <[email protected]> |
| 8517 |
|
| 8518 |
Avoid old type |
| 8519 |
* include/device/bpf.h: Do not include <sys/types.h> |
| 8520 |
(struct bpf_version): Use unsigned short type instead of u_short. |
| 8521 |
|
| 8522 |
2018-01-28 Samuel Thibault <[email protected]> |
| 8523 |
|
| 8524 |
Add const MIG types |
| 8525 |
* i386/include/mach/i386/mach_i386_types.h (const_descriptor_list_t): |
| 8526 |
New type. |
| 8527 |
* include/mach/port.h (const_mach_port_array_t): New type. |
| 8528 |
|
| 8529 |
Fix warning |
| 8530 |
* i386/i386at/lpr.c (lpropen): Cast io port to void *. |
| 8531 |
|
| 8532 |
Fix warning |
| 8533 |
* vm/vm_map.c (vm_map_copyout): Fix panic format. |
| 8534 |
|
| 8535 |
Fix warning |
| 8536 |
* kern/sched_prim.c (assert_wait): Fix panic format. |
| 8537 |
|
| 8538 |
Fix warning |
| 8539 |
* kern/ast.c (ast_check): Fix panic format. |
| 8540 |
|
| 8541 |
2017-11-12 Samuel Thibault <[email protected]> |
| 8542 |
|
| 8543 |
Fix halt message |
| 8544 |
* i386/i386at/model_dep.c (halt_all_cpus): Change halt message to better |
| 8545 |
explain what happened. |
| 8546 |
|
| 8547 |
2017-11-01 Samuel Thibault <[email protected]> |
| 8548 |
|
| 8549 |
linux block: fix outbound access to non-directmap user data |
| 8550 |
* linux/dev/glue/block.c (rdwr_full): Set BH_Bounce if the physical |
| 8551 |
address of the user data is not in directmap. |
| 8552 |
|
| 8553 |
2017-10-31 Samuel Thibault <[email protected]> |
| 8554 |
|
| 8555 |
linux-block: Fix calling vm_map_copy_discard on uninitialized variable |
| 8556 |
This happens if passed count is 0. |
| 8557 |
|
| 8558 |
Reported by Richard Braun. |
| 8559 |
|
| 8560 |
* linux/dev/glue/block.c (device_write): Set copy variable before |
| 8561 |
vm_map_copy_discard() is called. |
| 8562 |
|
| 8563 |
2017-10-27 Justus Winter <[email protected]> |
| 8564 |
|
| 8565 |
Fix commit 10ebf9565f69760e46a8f271e22c5367d54e10ff. |
| 8566 |
* kern/task.c (task_ledger_acquire): Remove function that I added by |
| 8567 |
accident. |
| 8568 |
(task_ledger_release): Likewise. |
| 8569 |
|
| 8570 |
2017-10-26 Justus Winter <[email protected]> |
| 8571 |
|
| 8572 |
kern: Fix new task notifications. |
| 8573 |
* kern/task.c (task_create_kernel): Handle NULL parent tasks. |
| 8574 |
|
| 8575 |
2017-10-26 Justus Winter <[email protected]> |
| 8576 |
|
| 8577 |
kern: Fix crash. |
| 8578 |
Check receiver in task_create. Fixes a crash when sending that |
| 8579 |
message to a non-task port. |
| 8580 |
|
| 8581 |
* kern/bootstrap.c (boot_script_task_create): Use the new function. |
| 8582 |
* kern/task.c (task_create): Rename to task_create_internal, create a |
| 8583 |
new function in its place that checks the receiver first. |
| 8584 |
* kern/task.h (task_create_internal): New prototype. |
| 8585 |
|
| 8586 |
2017-10-26 Justus Winter <[email protected]> |
| 8587 |
|
| 8588 |
linux: Fix warnings. |
| 8589 |
* linux/dev/glue/net.c (device_write): Remove unused variables. |
| 8590 |
|
| 8591 |
2017-10-23 Justus Winter <[email protected]> |
| 8592 |
|
| 8593 |
Drop the register qualifier. |
| 8594 |
* i386/intel/pmap.c: Drop the register qualifier. |
| 8595 |
* ipc/ipc_kmsg.h: Likewise. |
| 8596 |
* kern/bootstrap.c: Likewise. |
| 8597 |
* kern/profile.c: Likewise. |
| 8598 |
* kern/thread.c: Likewise. |
| 8599 |
* vm/vm_object.c: Likewise. |
| 8600 |
|
| 8601 |
2017-09-30 Justus Winter <[email protected]> |
| 8602 |
|
| 8603 |
linux: Fix interrupt glue. |
| 8604 |
Previously, we used an invalid pointer to mark interrupts as reserved |
| 8605 |
by Mach. This, however, crashes code trying to iterate over the list |
| 8606 |
of interrupt handlers. Use a valid structure instead. |
| 8607 |
|
| 8608 |
* linux/dev/arch/i386/kernel/irq.c (reserved_mach_handler): New |
| 8609 |
function. |
| 8610 |
(reserved_mach): New variable. |
| 8611 |
(reserve_mach_irqs): Use the new variable. |
| 8612 |
|
| 8613 |
2017-09-21 Justus Winter <[email protected]> |
| 8614 |
|
| 8615 |
device: Remove unused file. |
| 8616 |
* device/dev_forward.defs: Remove unused file. |
| 8617 |
|
| 8618 |
vm: Remove old memory manager remnants. |
| 8619 |
* vm/vm_object.c (vm_object_accept_old_init_protocol): Remove. |
| 8620 |
(vm_object_enter): Adapt. |
| 8621 |
|
| 8622 |
2017-08-27 Samuel Thibault <[email protected]> |
| 8623 |
|
| 8624 |
ddb: More gracefully handle address errors |
| 8625 |
* i386/i386/db_interface.h (db_read_bytes): Return boolean_t instead of |
| 8626 |
void. |
| 8627 |
* i386/i386/db_interface.c (db_user_to_kernel_address): Return -1 |
| 8628 |
instead of calling db_error() if address is bogus. |
| 8629 |
(db_read_bytes): Return FALSE instead of calling db_error() if address |
| 8630 |
is bogus. |
| 8631 |
* ddb/db_access.c (db_get_task_value): Return 0 if db_read_bytes failed. |
| 8632 |
* ddb/db_examine.c (db_xcdump): Only print * if db_read_bytes failed. |
| 8633 |
|
| 8634 |
2017-08-14 Justus Winter <[email protected]> |
| 8635 |
|
| 8636 |
i386: Fix pmap_remove on PAE kernels. |
| 8637 |
* i386/intel/pmap.c (pmap_remove): Fix iteration over page directory. |
| 8638 |
(pmap_enter): Explain why it is ok here. |
| 8639 |
|
| 8640 |
vm: Improve error handling. |
| 8641 |
* vm/vm_map.c (vm_map_create): Gracefully handle resource exhaustion. |
| 8642 |
(vm_map_fork): Likewise at the callsite. |
| 8643 |
|
| 8644 |
Fix typo. |
| 8645 |
|
| 8646 |
2017-08-12 Justus Winter <[email protected]> |
| 8647 |
|
| 8648 |
ddb: Add magic variable $mapXX. |
| 8649 |
Maps '$mapXX' to a VM map structure address. @var{xx} is a task |
| 8650 |
identification number printed by a @code{show all tasks} command. |
| 8651 |
|
| 8652 |
* ddb/db_task_thread.c (db_get_map): New function. |
| 8653 |
* ddb/db_task_thread.h (db_get_map): New declaration. |
| 8654 |
* ddb/db_variables.c (db_vars): Add new variable. |
| 8655 |
* doc/mach.texi: Document this. |
| 8656 |
|
| 8657 |
2017-08-12 Justus Winter <[email protected]> |
| 8658 |
|
| 8659 |
vm: Mute paging error message. |
| 8660 |
* vm/vm_fault.c (vm_fault_page): Mute paging error message if the |
| 8661 |
objects pager is NULL. This happens when a pager is destroyed, |
| 8662 |
e.g. at system shutdown time when the root filesystem terminates. |
| 8663 |
|
| 8664 |
2017-08-05 Justus Winter <[email protected]> |
| 8665 |
|
| 8666 |
ddb: debug traps and port references |
| 8667 |
* ddb/db_command.c (db_debug_all_traps_cmd): New declaration and |
| 8668 |
function. |
| 8669 |
(db_debug_port_references_cmd): Likewise. |
| 8670 |
* doc/mach.texi: Describe new commands. |
| 8671 |
* i386/i386/db_interface.h (db_debug_all_traps): New declaration. |
| 8672 |
* i386/i386/trap.c (db_debug_all_traps): New function. |
| 8673 |
* ipc/mach_port.c (db_debug_port_references): New function. |
| 8674 |
* ipc/mach_port.h (db_debug_port_references): New declaration. |
| 8675 |
|
| 8676 |
ddb: Print scheduling information. |
| 8677 |
* ddb/db_print.c (OPTION_SCHED): New macro. |
| 8678 |
(db_print_thread): Display scheduling information if the flag is |
| 8679 |
given. |
| 8680 |
(db_print_task): Adapt. |
| 8681 |
(db_show_all_threads): Parse new modifier. |
| 8682 |
(db_show_one_thread): Likewise. |
| 8683 |
* doc/mach.texi: Document the new flag. |
| 8684 |
|
| 8685 |
doc: Document 'show all tasks'. |
| 8686 |
|
| 8687 |
kern: Fix reporting the minimum quantum used for scheduling. |
| 8688 |
* kern/host.c (host_info): Scale 'min_quantum' by 'tick', then convert |
| 8689 |
to milliseconds. |
| 8690 |
|
| 8691 |
Steal '__divdi3'. |
| 8692 |
* Makefile.am (clib_routines): Steal '__divdi3' from the gcc runtime. |
| 8693 |
|
| 8694 |
i386: Make function static. |
| 8695 |
* i386/intel/pmap.c (pmap_remove_range): Make function static. |
| 8696 |
* i386/intel/pmap.h (pmap_remove_range): Remove declaration. |
| 8697 |
|
| 8698 |
2017-06-10 Samuel Thibault <[email protected]> |
| 8699 |
|
| 8700 |
Fix year computation |
| 8701 |
* i386/i386at/rtc.c (readtodc): Do not spuriously add 70 to the year. |
| 8702 |
|
| 8703 |
Fix Epoch computation |
| 8704 |
* i386/i386at/rtc.c (CENTURY_START): New macro. |
| 8705 |
(readtodc): Use CENTURY_START instead of assuming it is equal to 1970, |
| 8706 |
and set yr to an absolute date before calling yeartoday. |
| 8707 |
|
| 8708 |
2017-05-07 David Michael <[email protected]> |
| 8709 |
|
| 8710 |
Support GCC 7 |
| 8711 |
* Makefile.am (clib_routines): Add __udivmoddi4. |
| 8712 |
* linux/src/include/linux/compiler-gcc7.h: New file. |
| 8713 |
|
| 8714 |
2017-05-07 Samuel Thibault <[email protected]> |
| 8715 |
|
| 8716 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 8717 |
|
| 8718 |
2017-03-18 Justus Winter <[email protected]> |
| 8719 |
|
| 8720 |
kern: Make kernel task available to bootscript. |
| 8721 |
* kern/bootstrap.c (bootstrap_create): Insert the variable |
| 8722 |
'kernel-task' into the bootscript environment. Userspace can use this |
| 8723 |
instead of guessing based on the order of the first tasks. |
| 8724 |
|
| 8725 |
2017-03-04 Agustina Arzille <[email protected]> |
| 8726 |
|
| 8727 |
Rewrite gsync so that it works with remote tasks v2 |
| 8728 |
|
| 8729 |
Implement basic sleeping locks for gnumach |
| 8730 |
* kern/atomic.h: New file. |
| 8731 |
* kern/kmutex.h: New file. |
| 8732 |
* kern/kmutex.c: New file. |
| 8733 |
* Makefrag.am (libkernel_a_SOURCES): Add atomic.h, kmutex.h, kmutex.c. |
| 8734 |
* kern/sched_prim.h (thread_wakeup_prim): Make it return boolean_t. |
| 8735 |
* kern/sched_prim.c (thread_wakeup_prim): Return TRUE if we woke a |
| 8736 |
thread, and FALSE otherwise. |
| 8737 |
|
| 8738 |
2017-01-24 Samuel Thibault <[email protected]> |
| 8739 |
|
| 8740 |
Fix bissextile years computation |
| 8741 |
In practice, fixes 2100, 2200, 2300, 2500, 2600, 2700, etc. |
| 8742 |
|
| 8743 |
* i386/i386at/rtc.c (yeartoday): Make years divisible by 100 but not |
| 8744 |
divisible by 400 non-bisextile. |
| 8745 |
|
| 8746 |
2016-12-27 Richard Braun <[email protected]> |
| 8747 |
|
| 8748 |
VM: really fix pageout of external objects backed by the default pager |
| 8749 |
Commit eb07428ffb0009085fcd01dd1b79d9953af8e0ad does fix pageout of |
| 8750 |
external objects backed by the default pager, but the way it's done |
| 8751 |
has a vicious side effect: because they're considered external, the |
| 8752 |
pageout daemon can keep evicting them even though the external pagers |
| 8753 |
haven't released them, unlike internal pages which must all be |
| 8754 |
released before the pageout daemon can make progress. This can lead |
| 8755 |
to a situation where too many pages become wired, the default pager |
| 8756 |
cannot allocate memory to process new requests, and the pageout |
| 8757 |
daemon cannot recycle any more page, causing a panic. |
| 8758 |
|
| 8759 |
This change makes the pageout daemon use the same strategy for both |
| 8760 |
internal pages and external pages sent to the default pager: use |
| 8761 |
the laundry bit and wait for all laundry pages to be released, |
| 8762 |
thereby completely synchronizing the pageout daemon and the default |
| 8763 |
pager. |
| 8764 |
|
| 8765 |
* vm/vm_page.c (vm_page_can_move): Allow external laundry pages to |
| 8766 |
be moved. |
| 8767 |
(vm_page_seg_evict): Don't alter the `external_laundry' bit, merely |
| 8768 |
disable double paging for external pages sent to the default pager. |
| 8769 |
* vm/vm_pageout.c: Include vm/memory_object.h. |
| 8770 |
(vm_pageout_setup): Don't check whether the `external_laundry' bit |
| 8771 |
is set, but handle external pages sent to the default pager the same |
| 8772 |
as internal pages. |
| 8773 |
|
| 8774 |
2016-12-25 Richard Braun <[email protected]> |
| 8775 |
|
| 8776 |
Increase the size of the kernel map |
| 8777 |
Sometimes, in particular during IO spikes, the slab allocator needs |
| 8778 |
more virtual memory than is currently available. The new size should |
| 8779 |
also be fine for the Xen version. |
| 8780 |
|
| 8781 |
* i386/i386/vm_param.h (VM_KERNEL_MAP_SIZE): Increase value. |
| 8782 |
|
| 8783 |
2016-12-24 Richard Braun <[email protected]> |
| 8784 |
|
| 8785 |
doc: update documentation about wiring |
| 8786 |
* doc/mach.texi: Describe vm_wire_all, and add more information |
| 8787 |
about vm_wire and vm_protect. |
| 8788 |
|
| 8789 |
2016-12-24 Richard Braun <[email protected]> |
| 8790 |
|
| 8791 |
VM: add the vm_wire_all call |
| 8792 |
This call maps the POSIX mlockall and munlockall calls. |
| 8793 |
|
| 8794 |
* Makefrag.am (include_mach_HEADERS): Add include/mach/vm_wire.h. |
| 8795 |
* include/mach/gnumach.defs (vm_wire_t): New type. |
| 8796 |
(vm_wire_all): New routine. |
| 8797 |
* include/mach/mach_types.h: Include mach/vm_wire.h. |
| 8798 |
* vm/vm_map.c: Likewise. |
| 8799 |
(vm_map_enter): Automatically wire new entries if requested. |
| 8800 |
(vm_map_copyout): Likewise. |
| 8801 |
(vm_map_pageable_all): New function. |
| 8802 |
vm/vm_map.h: Include mach/vm_wire.h. |
| 8803 |
(struct vm_map): Update description of member `wiring_required'. |
| 8804 |
(vm_map_pageable_all): New function. |
| 8805 |
* vm/vm_user.c (vm_wire_all): New function. |
| 8806 |
|
| 8807 |
2016-12-24 Richard Braun <[email protected]> |
| 8808 |
|
| 8809 |
VM: rework map entry wiring |
| 8810 |
First, user wiring is removed, simply because it has never been used. |
| 8811 |
|
| 8812 |
Second, make the VM system track wiring requests to better handle |
| 8813 |
protection. This change makes it possible to wire entries with |
| 8814 |
VM_PROT_NONE protection without actually reserving any page for |
| 8815 |
them until protection changes, and even make those pages pageable |
| 8816 |
if protection is downgraded to VM_PROT_NONE. |
| 8817 |
|
| 8818 |
* ddb/db_ext_symtab.c: Update call to vm_map_pageable. |
| 8819 |
* i386/i386/user_ldt.c: Likewise. |
| 8820 |
* ipc/mach_port.c: Likewise. |
| 8821 |
* vm/vm_debug.c (mach_vm_region_info): Update values returned |
| 8822 |
as appropriate. |
| 8823 |
* vm/vm_map.c (vm_map_entry_copy): Update operation as appropriate. |
| 8824 |
(vm_map_setup): Update member names as appropriate. |
| 8825 |
(vm_map_find_entry): Update to account for map member variable changes. |
| 8826 |
(vm_map_enter): Likewise. |
| 8827 |
(vm_map_entry_inc_wired): New function. |
| 8828 |
(vm_map_entry_reset_wired): Likewise. |
| 8829 |
(vm_map_pageable_scan): Likewise. |
| 8830 |
(vm_map_protect): Update wired access, call vm_map_pageable_scan. |
| 8831 |
(vm_map_pageable_common): Rename to ... |
| 8832 |
(vm_map_pageable): ... and rewrite to use vm_map_pageable_scan. |
| 8833 |
(vm_map_entry_delete): Fix unwiring. |
| 8834 |
(vm_map_copy_overwrite): Replace inline code with a call to |
| 8835 |
vm_map_entry_reset_wired. |
| 8836 |
(vm_map_copyin_page_list): Likewise. |
| 8837 |
(vm_map_print): Likewise. Also print map size and wired size. |
| 8838 |
(vm_map_copyout_page_list): Update to account for map member variable |
| 8839 |
changes. |
| 8840 |
* vm/vm_map.h (struct vm_map_entry): Remove `user_wired_count' member, |
| 8841 |
add `wired_access' member. |
| 8842 |
(struct vm_map): Rename `user_wired' member to `size_wired'. |
| 8843 |
(vm_map_pageable_common): Remove function. |
| 8844 |
(vm_map_pageable_user): Remove macro. |
| 8845 |
(vm_map_pageable): Replace macro with function declaration. |
| 8846 |
* vm/vm_user.c (vm_wire): Update call to vm_map_pageable. |
| 8847 |
|
| 8848 |
2016-12-24 Richard Braun <[email protected]> |
| 8849 |
|
| 8850 |
VM: fix pageout of external objects backed by the default pager |
| 8851 |
Double paging on such objects causes deadlocks. |
| 8852 |
|
| 8853 |
* vm/vm_page.c: Include <vm/memory_object.h>. |
| 8854 |
(vm_page_seg_evict): Rename laundry to double_paging to increase |
| 8855 |
clarity. Set the `external_laundry' bit when evicting a page |
| 8856 |
from an external object backed by the default pager. |
| 8857 |
* vm/vm_pageout.c (vm_pageout_setup): Wire page if the |
| 8858 |
`external_laundry' bit is set. |
| 8859 |
|
| 8860 |
2016-12-24 Richard Braun <[email protected]> |
| 8861 |
|
| 8862 |
VM: fix pageability check |
| 8863 |
Unlike laundry pages sent to the default pager, pages marked with the |
| 8864 |
`external_laundry' bit remain in the page queues and must be filtered |
| 8865 |
out by the pageability check. |
| 8866 |
|
| 8867 |
* vm/vm_page.c (vm_page_can_move): Check the `external_laundry' bit. |
| 8868 |
|
| 8869 |
2016-12-24 Richard Braun <[email protected]> |
| 8870 |
|
| 8871 |
VM: fix mapping removal on wired pages |
| 8872 |
Memory wiring is about to be reworked, at which point the VM system |
| 8873 |
will properly track wired mappings. Removing them when changing |
| 8874 |
protection makes sense, and is fine as long as the VM system |
| 8875 |
rewires them when access is restored. |
| 8876 |
|
| 8877 |
* i386/intel/pmap.c (pmap_page_protect): Decrease wiring count instead |
| 8878 |
of causing a panic when removing a wired mapping. |
| 8879 |
|
| 8880 |
2016-12-21 Richard Braun <[email protected]> |
| 8881 |
|
| 8882 |
VM: fix pageout timeout |
| 8883 |
The interval parameter to the thread_set_timeout function is actually |
| 8884 |
in ticks. |
| 8885 |
|
| 8886 |
* vm/vm_pageout.c (vm_pageout): Fix call to thread_set_timeout. |
| 8887 |
|
| 8888 |
2016-12-18 Thomas Schwinge <[email protected]> |
| 8889 |
|
| 8890 |
GNU Mach 1.8 |
| 8891 |
* version.m4 (AC_PACKAGE_VERSION): Set to 1.8. |
| 8892 |
* NEWS: Finalize for 1.8. |
| 8893 |
|
| 8894 |
2016-12-11 Richard Braun <[email protected]> |
| 8895 |
|
| 8896 |
VM: make vm_wire more POSIX-friendly |
| 8897 |
* doc/mach.texi: Update return codes. |
| 8898 |
* vm/vm_map.c (vm_map_pageable_common): Return KERN_NO_SPACE instead |
| 8899 |
of KERN_FAILURE if some of the specified address range does not |
| 8900 |
correspond to mapped pages. Skip unwired entries instead of failing |
| 8901 |
when unwiring. |
| 8902 |
|
| 8903 |
2016-12-09 Justus Winter <[email protected]> |
| 8904 |
|
| 8905 |
Update the NEWS file |
| 8906 |
|
| 8907 |
2016-12-09 Richard Braun <[email protected]> |
| 8908 |
|
| 8909 |
rbtree: minor change |
| 8910 |
* kern/rbtree.h (rbtree_for_each_remove): Remove trailing slash. |
| 8911 |
|
| 8912 |
2032-05-12 Richard Braun <[email protected]> |
| 8913 |
|
| 8914 |
VM: fix pageout throttling to external pagers |
| 8915 |
Since the VM system has been tracking whether pages belong to internal |
| 8916 |
or external objects, pageout throttling to external pagers has simply |
| 8917 |
not been working. The reason is that, on pageout, requests for external |
| 8918 |
pages are correctly tracked, but on page release (which is used to |
| 8919 |
acknowledge the request), external pages are not marked external |
| 8920 |
any more. This is because the external bit tracks whether a page |
| 8921 |
belongs to an external object, and all pages, including external |
| 8922 |
ones, are moved to an internal object during pageout. |
| 8923 |
|
| 8924 |
To solve this issue, a new "external_laundry" bit is added. It has |
| 8925 |
the same purpose as the laundry bit, but for external pagers. |
| 8926 |
|
| 8927 |
* vm/vm_page.c (vm_page_seg_min_page_available): Function unused, remove. |
| 8928 |
(vm_page_seg_evict): Use vm_page_external_laundry_count instead of |
| 8929 |
vm_page_external_pagedout. Add an assertion about double paging. |
| 8930 |
(vm_page_check_usable): Use vm_page_external_laundry_count instead of |
| 8931 |
vm_page_external_pagedout. |
| 8932 |
(vm_page_evict): Likewise. |
| 8933 |
* vm/vm_page.h (struct vm_page): New `external_laundry' member. |
| 8934 |
(vm_page_external_pagedout): Rename to ... |
| 8935 |
(vm_page_external_laundry_count): ... this. |
| 8936 |
* vm/vm_pageout.c: Include kern/printf.h. |
| 8937 |
(DEBUG): New macro. |
| 8938 |
(VM_PAGEOUT_TIMEOUT): Likewise. |
| 8939 |
(vm_pageout_setup): Use vm_page_external_laundry_count instead of |
| 8940 |
vm_page_external_pagedout. Set `external_laundry' where appropriate. |
| 8941 |
(vm_pageout): Use VM_PAGEOUT_TIMEOUT with thread_set_timeout. |
| 8942 |
Add debugging code, commented out by default. |
| 8943 |
* vm/vm_resident.c (vm_page_external_pagedout): Rename to ... |
| 8944 |
(vm_page_external_laundry_count): ... this. |
| 8945 |
(vm_page_init_template): Set `external_laundry' member to FALSE. |
| 8946 |
(vm_page_release): Rename external parameter to external_laundry. |
| 8947 |
Slightly change pageout resuming. |
| 8948 |
(vm_page_free): Rename external variable to external_laundry. |
| 8949 |
|
| 8950 |
2016-11-30 Richard Braun <[email protected]> |
| 8951 |
|
| 8952 |
VM: fix pageout on low memory |
| 8953 |
Instead of determining if memory is low, directly use the |
| 8954 |
vm_page_alloc_paused variable, which is true when memory has reached |
| 8955 |
a minimum threshold until it gets back above the high thresholds. |
| 8956 |
|
| 8957 |
This makes sure double paging is used when external pagers are unable |
| 8958 |
to allocate memory. |
| 8959 |
|
| 8960 |
* vm/vm_page.c (vm_page_seg_evict): Rename low_memory to alloc_paused. |
| 8961 |
(vm_page_evict_once): Remove low_memory and its computation. Blindly |
| 8962 |
pass the new alloc_paused argument instead. |
| 8963 |
(vm_page_evict): Pass the value of vm_page_alloc_paused to |
| 8964 |
vm_page_evict_once. |
| 8965 |
|
| 8966 |
2016-11-30 Richard Braun <[email protected]> |
| 8967 |
|
| 8968 |
VM: fix eviction logic error |
| 8969 |
* vm/vm_page.c (vm_page_evict): Test both vm_page_external_pagedout |
| 8970 |
and vm_page_laundry_count in order to determine there was "no pageout". |
| 8971 |
|
| 8972 |
2016-11-30 Richard Braun <[email protected]> |
| 8973 |
|
| 8974 |
VM: fix pageout stop condition |
| 8975 |
When checking whether to continue paging out or not, the pageout daemon |
| 8976 |
only considers the high free page threshold of a segment. But if e.g. |
| 8977 |
the default pager had to allocate reserved pages during a previous |
| 8978 |
pageout cycle, it could have exhausted a segment (this is currently |
| 8979 |
only seen with the DMA segment). In that case, the high threshold |
| 8980 |
cannot be reached because the segment has currently no pageable page. |
| 8981 |
|
| 8982 |
This change makes the pageout daemon identify this condition and |
| 8983 |
consider the segment as usable in order to make progress. The segment |
| 8984 |
will simply be ignored on the allocation path for unprivileged threads, |
| 8985 |
and if this happens with too many segments, the system will fail at |
| 8986 |
allocation time. |
| 8987 |
|
| 8988 |
* vm/vm_page.c (vm_page_seg_usable): Report usable if the segment has |
| 8989 |
no pageable page. |
| 8990 |
|
| 8991 |
2016-11-10 Brent Baccala <[email protected]> |
| 8992 |
|
| 8993 |
gsync: Avoid NULL pointer dereference |
| 8994 |
* kern/gsync.c (gsync_wait, gsync_wake, gsync_requeue): |
| 8995 |
Return immediately if task argument is TASK_NULL |
| 8996 |
|
| 8997 |
2016-11-06 Justus Winter <[email protected]> |
| 8998 |
|
| 8999 |
Revert "i386: use ACPI to power off the machine" |
| 9000 |
This reverts commit c031b41b783cc99c0bd5aac7d14c1d6e34520397. |
| 9001 |
|
| 9002 |
Adding the ACPI parser from GRUB was a mistake as its license |
| 9003 |
conflicts with the one used by the legacy Linux drivers. Furthermore, |
| 9004 |
adding support for ACPI to the kernel violates the minimality |
| 9005 |
principle. |
| 9006 |
|
| 9007 |
2016-11-04 Justus Winter <[email protected]> |
| 9008 |
|
| 9009 |
vm: Print names of maps in the debugger. |
| 9010 |
* vm/vm_map.c (vm_map_print): Print name of the map. |
| 9011 |
|
| 9012 |
2016-11-01 Justus Winter <[email protected]> |
| 9013 |
|
| 9014 |
include: Fix new task notifications. |
| 9015 |
Instead of copying the send right, move it. This fixes a send-right |
| 9016 |
leak. |
| 9017 |
|
| 9018 |
* include/mach/task_notify.defs (task_move_t): New type. |
| 9019 |
(mach_notify_new_task): Use the new type. |
| 9020 |
|
| 9021 |
2016-11-01 Justus Winter <[email protected]> |
| 9022 |
|
| 9023 |
i386: Use discontiguous page directories when using PAE. |
| 9024 |
Previously, we used contiguous page directories four pages in length |
| 9025 |
when using PAE. To prevent physical memory fragmentation, we need to |
| 9026 |
use virtual memory for objects spanning multiple pages. Virtual |
| 9027 |
kernel memory, however, is a scarce commodity. |
| 9028 |
|
| 9029 |
* i386/intel/pmap.h (lin2pdenum): Never include the page directory pointer table index. |
| 9030 |
(lin2pdenum_cont): New macro which does include said index. |
| 9031 |
(struct pmap): Remove the directory base pointer when using PAE. |
| 9032 |
* i386/intel/pmap.c (pmap_pde): Fix lookup. |
| 9033 |
(pmap_pte): Fix check for uninitialized pmap. |
| 9034 |
(pmap_bootstrap): Do not store the page directory base if PAE. |
| 9035 |
(pmap_init): Reduce size of page directories to one page, use |
| 9036 |
direct-mapped memory. |
| 9037 |
(pmap_create): Allocate four page directories per pmap. |
| 9038 |
(pmap_destroy): Adapt to the discontinuous directories. |
| 9039 |
(pmap_collect): Likewise. |
| 9040 |
* i386/i386/xen.h (hyp_mmu_update_la): Adapt code manipulating the |
| 9041 |
kernels page directory. |
| 9042 |
* i386/i386at/model_dep.c (i386at_init): Likewise. |
| 9043 |
|
| 9044 |
2016-10-31 Samuel Thibault <[email protected]> |
| 9045 |
|
| 9046 |
gsync: fix licence |
| 9047 |
Agustina relicenced her work. |
| 9048 |
|
| 9049 |
* kern/gsync.c: Relicence to GPL 2+. |
| 9050 |
* kern/gsync.h: Relicence to GPL 2+. |
| 9051 |
|
| 9052 |
2016-10-31 Samuel Thibault <[email protected]> |
| 9053 |
|
| 9054 |
gsync: Fix crash when task is not current task |
| 9055 |
* kern/gsync.c (gsync_wait, gsync_wake, gsync_requeue): Return |
| 9056 |
KERN_FAILURE when task != current_task(). |
| 9057 |
|
| 9058 |
2016-10-31 Samuel Thibault <[email protected]> |
| 9059 |
|
| 9060 |
gsync: Fix assertion failure with MACH_LDEBUG |
| 9061 |
vm_map_lock_read calls check_simple_locks(), so we need to lock hbp |
| 9062 |
after taking the vm_map read lock. |
| 9063 |
|
| 9064 |
* kern/gsync.c (gsync_wait): Call vm_map_lock_read before locking |
| 9065 |
&hbp->lock. |
| 9066 |
(gsync_wake): Likewise. |
| 9067 |
|
| 9068 |
2016-10-31 Samuel Thibault <[email protected]> |
| 9069 |
|
| 9070 |
Make multiboot cmdline and modules non-permanent reservations |
| 9071 |
* i386/i386at/model_dep.c (register_boot_data): For multiboot cmdline, |
| 9072 |
module structure, module data and module strings, set |
| 9073 |
biosmem_register_boot_data temporary parameter to TRUE. |
| 9074 |
|
| 9075 |
2016-10-24 Samuel Thibault <[email protected]> |
| 9076 |
|
| 9077 |
Fix taking LDFLAGS into account |
| 9078 |
* Makefile.am (clib-routines.o): Add $(LDFLAGS) to link command. |
| 9079 |
|
| 9080 |
Fix taking LDFLAGS into account |
| 9081 |
* Makefile.am (gnumach_o_LINK, gnumach_LINK): Add $(LDFLAGS). |
| 9082 |
|
| 9083 |
Fix warnings |
| 9084 |
* i386/i386/seg.h (fill_descriptor): Fix format for vm_offset_t. |
| 9085 |
* i386/i386/xen.h (hyp_free_mfn, hyp_free_page): Fix format for unsigned |
| 9086 |
long. |
| 9087 |
|
| 9088 |
2016-10-22 Justus Winter <[email protected]> |
| 9089 |
|
| 9090 |
i386: Allocate page directories using the slab allocator. |
| 9091 |
* i386/intel/pmap.c (pd_cache): New variable. |
| 9092 |
(pdp_cache): Likewise. |
| 9093 |
(pmap_init): Initialize new caches. |
| 9094 |
(pmap_create): Use the caches. |
| 9095 |
(pmap_destroy): Free to the caches. |
| 9096 |
|
| 9097 |
2016-10-21 Justus Winter <[email protected]> |
| 9098 |
|
| 9099 |
Gracefully handle pmap allocation failures. |
| 9100 |
* kern/task.c (task_create): Gracefully handle pmap allocation |
| 9101 |
failures. |
| 9102 |
* vm/vm_map.c (vm_map_fork): Likewise. |
| 9103 |
|
| 9104 |
vm: Print map names in case of failures. |
| 9105 |
* vm/vm_kern.c (kmem_alloc): Print map names in case of failures. |
| 9106 |
(kmem_alloc_wired): Likewise. |
| 9107 |
(kmem_alloc_aligned): Likewise. |
| 9108 |
(kmem_alloc_pageable): Likewise. |
| 9109 |
|
| 9110 |
2016-10-13 Justus Winter <[email protected]> |
| 9111 |
|
| 9112 |
Make task notification ports mutable. |
| 9113 |
* include/mach/task_notify.defs (task_notify_port_t): New type. |
| 9114 |
(mach_notify_new_task): Use the specialized type. |
| 9115 |
|
| 9116 |
2016-10-12 Justus Winter <[email protected]> |
| 9117 |
|
| 9118 |
linux: Remove incompatible local prototype. |
| 9119 |
* linux/dev/glue/kmem.c (vremap): Remove prototype, include the right |
| 9120 |
header instead. |
| 9121 |
|
| 9122 |
2016-10-03 Justus Winter <[email protected]> |
| 9123 |
|
| 9124 |
Remove deprecated external memory management interface. |
| 9125 |
* NEWS: Update. |
| 9126 |
* device/dev_pager.c (device_pager_data_request): Prune unused branch. |
| 9127 |
(device_pager_data_request_done): Remove function. |
| 9128 |
(device_pager_data_write): Likewise. |
| 9129 |
(device_pager_data_write_done): Likewise. |
| 9130 |
(device_pager_copy): Use 'memory_object_ready'. |
| 9131 |
* device/dev_pager.h (device_pager_data_write_done): Remove prototype. |
| 9132 |
* device/device_pager.srv (memory_object_data_write): Remove macro. |
| 9133 |
* doc/mach.texi: Update documentation. |
| 9134 |
* include/mach/mach.defs (memory_object_data_provided): Drop RPC. |
| 9135 |
(memory_object_set_attributes): Likewise. |
| 9136 |
* include/mach/memory_object.defs: Update comments. |
| 9137 |
(memory_object_data_write): Drop RPC. |
| 9138 |
* include/mach/memory_object_default.defs: Update comments. |
| 9139 |
* include/mach_debug/vm_info.h (VOI_STATE_USE_OLD_PAGEOUT): Drop |
| 9140 |
macro. |
| 9141 |
* vm/memory_object.c (memory_object_data_provided): Remove function. |
| 9142 |
(memory_object_data_error): Simplify. |
| 9143 |
(memory_object_set_attributes_common): Make static, remove unused |
| 9144 |
parameters, simplify. |
| 9145 |
(memory_object_change_attributes): Update callsite. |
| 9146 |
(memory_object_set_attributes): Remove function. |
| 9147 |
(memory_object_ready): Update callsite. |
| 9148 |
* vm/vm_debug.c (mach_vm_object_info): Adapt to the changes. |
| 9149 |
* vm/vm_object.c (vm_object_bootstrap): Likewise. |
| 9150 |
* vm/vm_object.h (struct vm_object): Drop flag 'use_old_pageout'. |
| 9151 |
* vm/vm_pageout.c: Update comments. |
| 9152 |
(vm_pageout_page): Simplify. |
| 9153 |
|
| 9154 |
2016-10-02 David Michael <[email protected]> |
| 9155 |
|
| 9156 |
Fix format security |
| 9157 |
* i386/i386at/biosmem.c (boot_panic): Use %s format instead of passing |
| 9158 |
the string directly to `panic'. |
| 9159 |
(biosmem_unregister_boot_data): Use %s format instead of passing |
| 9160 |
`biosmem_panic_inval_boot_data' directly to `panic'. |
| 9161 |
|
| 9162 |
2016-10-01 Justus Winter <[email protected]> |
| 9163 |
|
| 9164 |
kern: Improve panic messages from the scheduler. |
| 9165 |
* kern/sched_prim.c (state_panic): Turn into macro, print symbolic |
| 9166 |
values of thread state. |
| 9167 |
|
| 9168 |
kern: Improve assertions and panics. |
| 9169 |
* kern/assert.h (Assert): Add function argument. |
| 9170 |
(assert): Supply function argument. |
| 9171 |
* kern/debug.c (Assert): Add function argument. Unify message format. |
| 9172 |
(panic): Rename to 'Panic', add location information. |
| 9173 |
* kern/debug.h (panic): Rename, and add a macro version that supplies |
| 9174 |
the location. |
| 9175 |
* linux/dev/include/linux/kernel.h: Use the new panic macro. |
| 9176 |
|
| 9177 |
2016-09-22 Samuel Thibault <[email protected]> |
| 9178 |
|
| 9179 |
biosmem: show memory map at boot |
| 9180 |
* i386/i386at/biosmem.c (biosmem_type_desc, biosmem_map_show): Define |
| 9181 |
even if DEBUG is 0. But show biosmem heap addresses only if DEBUG is 1. |
| 9182 |
|
| 9183 |
2016-09-21 Richard Braun <[email protected]> |
| 9184 |
|
| 9185 |
Enable high memory |
| 9186 |
* i386/i386at/biosmem.c (biosmem_setup): Load the HIGHMEM segment if |
| 9187 |
present. |
| 9188 |
(biosmem_free_usable): Report high memory as usable. |
| 9189 |
* vm/vm_page.c (vm_page_boot_table_size, vm_page_table_size, |
| 9190 |
vm_page_mem_size, vm_page_mem_free): Scan all segments. |
| 9191 |
* vm/vm_resident.c (vm_page_grab): Describe allocation strategy |
| 9192 |
with regard to the HIGHMEM segment. |
| 9193 |
|
| 9194 |
2016-09-21 Richard Braun <[email protected]> |
| 9195 |
|
| 9196 |
Update device drivers for highmem support |
| 9197 |
Unconditionally use bounce buffers for now. |
| 9198 |
|
| 9199 |
* linux/dev/glue/net.c (device_write): Unconditionally use a |
| 9200 |
bounce buffer. |
| 9201 |
* xen/block.c (device_write): Likewise. |
| 9202 |
* xen/net.c: Include <device/ds_routines.h>. |
| 9203 |
(device_write): Unconditionally use a bounce buffer. |
| 9204 |
|
| 9205 |
2016-09-21 Richard Braun <[email protected]> |
| 9206 |
|
| 9207 |
Update Linux block layer glue code |
| 9208 |
The Linux block layer glue code needs to use page nodes with the |
| 9209 |
appropriate interface since their redefinition as struct list. |
| 9210 |
|
| 9211 |
* linux/dev/glue/block.c: Include <kern/list.h>. |
| 9212 |
(struct temp_data): Define member `pages' as a struct list. |
| 9213 |
(alloc_buffer): Update to use list_xxx functions. |
| 9214 |
(free_buffer, INIT_DATA, device_open, device_read): Likewise. |
| 9215 |
|
| 9216 |
2016-09-21 Richard Braun <[email protected]> |
| 9217 |
|
| 9218 |
Rework pageout to handle multiple segments |
| 9219 |
As we're about to use a new HIGHMEM segment, potentially much larger |
| 9220 |
than the existing DMA and DIRECTMAP ones, it's now compulsory to make |
| 9221 |
the pageout daemon aware of those segments. |
| 9222 |
|
| 9223 |
And while we're at it, let's fix some of the defects that have been |
| 9224 |
plaguing pageout forever, such as throttling, and pageout of internal |
| 9225 |
versus external pages (this commit notably introduces a hardcoded |
| 9226 |
policy in which as many external pages are selected before considering |
| 9227 |
internal pages). |
| 9228 |
|
| 9229 |
* kern/slab.c (kmem_pagefree_physmem): Update call to vm_page_release. |
| 9230 |
* vm/vm_page.c: Include <kern/counters.h> and <vm/vm_pageout.h>. |
| 9231 |
(VM_PAGE_SEG_THRESHOLD_MIN_NUM, VM_PAGE_SEG_THRESHOLD_MIN_DENOM, |
| 9232 |
VM_PAGE_SEG_THRESHOLD_MIN, VM_PAGE_SEG_THRESHOLD_LOW_NUM, |
| 9233 |
VM_PAGE_SEG_THRESHOLD_LOW_DENOM, VM_PAGE_SEG_THRESHOLD_LOW, |
| 9234 |
VM_PAGE_SEG_THRESHOLD_HIGH_NUM, VM_PAGE_SEG_THRESHOLD_HIGH_DENOM, |
| 9235 |
VM_PAGE_SEG_THRESHOLD_HIGH, VM_PAGE_SEG_MIN_PAGES, |
| 9236 |
VM_PAGE_HIGH_ACTIVE_PAGE_NUM, VM_PAGE_HIGH_ACTIVE_PAGE_DENOM): New macros. |
| 9237 |
(struct vm_page_queue): New type. |
| 9238 |
(struct vm_page_seg): Add new members `min_free_pages', `low_free_pages', |
| 9239 |
`high_free_pages', `active_pages', `nr_active_pages', `high_active_pages', |
| 9240 |
`inactive_pages', `nr_inactive_pages'. |
| 9241 |
(vm_page_alloc_paused): New variable. |
| 9242 |
(vm_page_pageable, vm_page_can_move, vm_page_remove_mappings): New functions. |
| 9243 |
(vm_page_seg_alloc_from_buddy): Pause allocations and start the pageout |
| 9244 |
daemon as appropriate. |
| 9245 |
(vm_page_queue_init, vm_page_queue_push, vm_page_queue_remove, |
| 9246 |
vm_page_queue_first, vm_page_seg_get, vm_page_seg_index, |
| 9247 |
vm_page_seg_compute_pageout_thresholds): New functions. |
| 9248 |
(vm_page_seg_init): Initialize the new segment members. |
| 9249 |
(vm_page_seg_add_active_page, vm_page_seg_remove_active_page, |
| 9250 |
vm_page_seg_add_inactive_page, vm_page_seg_remove_inactive_page, |
| 9251 |
vm_page_seg_pull_active_page, vm_page_seg_pull_inactive_page, |
| 9252 |
vm_page_seg_pull_cache_page): New functions. |
| 9253 |
(vm_page_seg_min_page_available, vm_page_seg_page_available, |
| 9254 |
vm_page_seg_usable, vm_page_seg_double_lock, vm_page_seg_double_unlock, |
| 9255 |
vm_page_seg_balance_page, vm_page_seg_balance, vm_page_seg_evict, |
| 9256 |
vm_page_seg_compute_high_active_page, vm_page_seg_refill_inactive, |
| 9257 |
vm_page_lookup_seg, vm_page_check): New functions. |
| 9258 |
(vm_page_alloc_pa): Handle allocation failure from VM privileged thread. |
| 9259 |
(vm_page_info_all): Display additional segment properties. |
| 9260 |
(vm_page_wire, vm_page_unwire, vm_page_deactivate, vm_page_activate, |
| 9261 |
vm_page_wait): Move from vm/vm_resident.c and rewrite to use segments. |
| 9262 |
(vm_page_queues_remove, vm_page_check_usable, vm_page_may_balance, |
| 9263 |
vm_page_balance_once, vm_page_balance, vm_page_evict_once): New functions. |
| 9264 |
(VM_PAGE_MAX_LAUNDRY, VM_PAGE_MAX_EVICTIONS): New macros. |
| 9265 |
(vm_page_evict, vm_page_refill_inactive): New functions. |
| 9266 |
* vm/vm_page.h: Include <kern/list.h>. |
| 9267 |
(struct vm_page): Remove member `pageq', reuse the `node' member instead, |
| 9268 |
move the `listq' and `next' members above `vm_page_header'. |
| 9269 |
(VM_PAGE_CHECK): Define as an alias to vm_page_check. |
| 9270 |
(vm_page_check): New function declaration. |
| 9271 |
(vm_page_queue_fictitious, vm_page_queue_active, vm_page_queue_inactive, |
| 9272 |
vm_page_free_target, vm_page_free_min, vm_page_inactive_target, |
| 9273 |
vm_page_free_reserved, vm_page_free_wanted): Remove extern declarations. |
| 9274 |
(vm_page_external_pagedout): New extern declaration. |
| 9275 |
(vm_page_release): Update declaration. |
| 9276 |
(VM_PAGE_QUEUES_REMOVE): Define as an alias to vm_page_queues_remove. |
| 9277 |
(VM_PT_PMAP, VM_PT_KMEM, VM_PT_STACK): Remove macros. |
| 9278 |
(VM_PT_KERNEL): Update value. |
| 9279 |
(vm_page_queues_remove, vm_page_balance, vm_page_evict, |
| 9280 |
vm_page_refill_inactive): New function declarations. |
| 9281 |
* vm/vm_pageout.c (VM_PAGEOUT_BURST_MAX, VM_PAGEOUT_BURST_MIN, |
| 9282 |
VM_PAGEOUT_BURST_WAIT, VM_PAGEOUT_EMPTY_WAIT, VM_PAGEOUT_PAUSE_MAX, |
| 9283 |
VM_PAGE_INACTIVE_TARGET, VM_PAGE_FREE_TARGET, VM_PAGE_FREE_MIN, |
| 9284 |
VM_PAGE_FREE_RESERVED, VM_PAGEOUT_RESERVED_INTERNAL, |
| 9285 |
VM_PAGEOUT_RESERVED_REALLY): Remove macros. |
| 9286 |
(vm_pageout_reserved_internal, vm_pageout_reserved_really, |
| 9287 |
vm_pageout_burst_max, vm_pageout_burst_min, vm_pageout_burst_wait, |
| 9288 |
vm_pageout_empty_wait, vm_pageout_pause_count, vm_pageout_pause_max, |
| 9289 |
vm_pageout_active, vm_pageout_inactive, vm_pageout_inactive_nolock, |
| 9290 |
vm_pageout_inactive_busy, vm_pageout_inactive_absent, |
| 9291 |
vm_pageout_inactive_used, vm_pageout_inactive_clean, |
| 9292 |
vm_pageout_inactive_dirty, vm_pageout_inactive_double, |
| 9293 |
vm_pageout_inactive_cleaned_external): Remove variables. |
| 9294 |
(vm_pageout_requested, vm_pageout_continue): New variables. |
| 9295 |
(vm_pageout_setup): Wait for page allocation to succeed instead of |
| 9296 |
falling back to flush, update double paging protocol with caller, |
| 9297 |
add pageout throttling setup. |
| 9298 |
(vm_pageout_scan): Rewrite to use the new vm_page balancing, |
| 9299 |
eviction and inactive queue refill functions. |
| 9300 |
(vm_pageout_scan_continue, vm_pageout_continue): Remove functions. |
| 9301 |
(vm_pageout): Rewrite. |
| 9302 |
(vm_pageout_start, vm_pageout_resume): New functions. |
| 9303 |
* vm/vm_pageout.h (vm_pageout_continue, vm_pageout_scan_continue): Remove |
| 9304 |
function declarations. |
| 9305 |
(vm_pageout_start, vm_pageout_resume): New function declarations. |
| 9306 |
* vm/vm_resident.c: Include <kern/list.h>. |
| 9307 |
(vm_page_queue_fictitious): Define as a struct list. |
| 9308 |
(vm_page_free_wanted, vm_page_external_count, vm_page_free_avail, |
| 9309 |
vm_page_queue_active, vm_page_queue_inactive, vm_page_free_target, |
| 9310 |
vm_page_free_min, vm_page_inactive_target, vm_page_free_reserved): |
| 9311 |
Remove variables. |
| 9312 |
(vm_page_external_pagedout): New variable. |
| 9313 |
(vm_page_bootstrap): Don't initialize removed variable, update |
| 9314 |
initialization of vm_page_queue_fictitious. |
| 9315 |
(vm_page_replace): Call VM_PAGE_QUEUES_REMOVE where appropriate. |
| 9316 |
(vm_page_remove): Likewise. |
| 9317 |
(vm_page_grab_fictitious): Update to use list_xxx functions. |
| 9318 |
(vm_page_release_fictitious): Likewise. |
| 9319 |
(vm_page_grab): Remove pageout related code. |
| 9320 |
(vm_page_release): Add `laundry' and `external' parameters for |
| 9321 |
pageout throttling. |
| 9322 |
(vm_page_grab_contig): Remove pageout related code. |
| 9323 |
(vm_page_free_contig): Likewise. |
| 9324 |
(vm_page_free): Remove pageout related code, update call to |
| 9325 |
vm_page_release. |
| 9326 |
(vm_page_wait, vm_page_wire, vm_page_unwire, vm_page_deactivate, |
| 9327 |
vm_page_activate): Move to vm/vm_page.c. |
| 9328 |
|
| 9329 |
2016-09-21 Richard Braun <[email protected]> |
| 9330 |
|
| 9331 |
Redefine what an external page is |
| 9332 |
Instead of a "page considered external", which apparently takes into |
| 9333 |
account whether a page is dirty or not, redefine this property to |
| 9334 |
reliably mean "is in an external object". |
| 9335 |
|
| 9336 |
This commit mostly deals with the impact of this change on the page |
| 9337 |
allocation interface. |
| 9338 |
|
| 9339 |
* i386/intel/pmap.c (pmap_page_table_page_alloc): Update call to |
| 9340 |
vm_page_grab. |
| 9341 |
* kern/slab.c (kmem_pagealloc_physmem): Use vm_page_grab instead of |
| 9342 |
vm_page_grab_contig. |
| 9343 |
(kmem_pagefree_physmem): Use vm_page_release instead of |
| 9344 |
vm_page_free_contig. |
| 9345 |
* linux/dev/glue/block.c (alloc_buffer, device_read): Update call |
| 9346 |
to vm_page_grab. |
| 9347 |
* vm/vm_fault.c (vm_fault_page): Update calls to vm_page_grab and |
| 9348 |
vm_page_convert. |
| 9349 |
* vm/vm_map.c (vm_map_copy_steal_pages): Update call to vm_page_grab. |
| 9350 |
* vm/vm_page.h (struct vm_page): Remove `extcounted' member. |
| 9351 |
(vm_page_external_limit, vm_page_external_count): Remove extern |
| 9352 |
declarations. |
| 9353 |
(vm_page_convert, vm_page_grab): Update declarations. |
| 9354 |
(vm_page_release, vm_page_grab_phys_addr): New function declarations. |
| 9355 |
* vm/vm_pageout.c (VM_PAGE_EXTERNAL_LIMIT): Remove macro. |
| 9356 |
(VM_PAGE_EXTERNAL_TARGET): Likewise. |
| 9357 |
(vm_page_external_target): Remove variable. |
| 9358 |
(vm_pageout_scan): Remove specific handling of external pages. |
| 9359 |
(vm_pageout): Don't set vm_page_external_limit and |
| 9360 |
vm_page_external_target. |
| 9361 |
* vm/vm_resident.c (vm_page_external_limit): Remove variable. |
| 9362 |
(vm_page_insert, vm_page_replace, vm_page_remove): Update external |
| 9363 |
page tracking. |
| 9364 |
(vm_page_convert): Remove `external' parameter. |
| 9365 |
(vm_page_grab): Likewise. Remove specific handling of external pages. |
| 9366 |
(vm_page_grab_phys_addr): Update call to vm_page_grab. |
| 9367 |
(vm_page_release): Remove `external' parameter and remove specific |
| 9368 |
handling of external pages. |
| 9369 |
(vm_page_wait): Remove specific handling of external pages. |
| 9370 |
(vm_page_alloc): Update call to vm_page_grab. |
| 9371 |
(vm_page_free): Update call to vm_page_release. |
| 9372 |
* xen/block.c (device_read): Update call to vm_page_grab. |
| 9373 |
* xen/net.c (device_write): Likewise. |
| 9374 |
|
| 9375 |
2016-09-21 Richard Braun <[email protected]> |
| 9376 |
|
| 9377 |
Replace vm_offset_t with phys_addr_t where appropriate |
| 9378 |
* i386/i386/phys.c (pmap_zero_page, pmap_copy_page, copy_to_phys, |
| 9379 |
copy_from_phys, kvtophys): Use the phys_addr_t type for physical |
| 9380 |
addresses. |
| 9381 |
* i386/intel/pmap.c (pmap_map, pmap_map_bd, pmap_destroy, |
| 9382 |
pmap_remove_range, pmap_page_protect, pmap_enter, pmap_extract, |
| 9383 |
pmap_collect, phys_attribute_clear, phys_attribute_test, |
| 9384 |
pmap_clear_modify, pmap_is_modified, pmap_clear_reference, |
| 9385 |
pmap_is_referenced): Likewise. |
| 9386 |
* i386/intel/pmap.h (pt_entry_t): Unconditionally define as a |
| 9387 |
phys_addr_t. |
| 9388 |
(pmap_zero_page, pmap_copy_page, kvtophys): Use the phys_addr_t |
| 9389 |
type for physical addresses. |
| 9390 |
* vm/pmap.h (pmap_enter, pmap_page_protect, pmap_clear_reference, |
| 9391 |
pmap_is_referenced, pmap_clear_modify, pmap_is_modified, |
| 9392 |
pmap_extract, pmap_map_bd): Likewise. |
| 9393 |
* vm/vm_page.h (vm_page_fictitious_addr): Declare as a phys_addr_t. |
| 9394 |
* vm/vm_resident.c (vm_page_fictitious_addr): Likewise. |
| 9395 |
(vm_page_grab_phys_addr): Change return type to phys_addr_t. |
| 9396 |
|
| 9397 |
2016-09-21 Richard Braun <[email protected]> |
| 9398 |
|
| 9399 |
Remove phys_first_addr and phys_last_addr global variables |
| 9400 |
The old assumption that all physical memory is directly mapped in |
| 9401 |
kernel space is about to go away. Those variables are directly linked |
| 9402 |
to that assumption. |
| 9403 |
|
| 9404 |
* i386/i386/model_dep.h (phys_first_addr): Remove extern declaration. |
| 9405 |
(phys_last_addr): Likewise. |
| 9406 |
* i386/i386/phys.c (pmap_zero_page): Use VM_PAGE_DIRECTMAP_LIMIT |
| 9407 |
instead of phys_last_addr. |
| 9408 |
(pmap_copy_page, copy_to_phys, copy_from_phys): Likewise. |
| 9409 |
* i386/i386/trap.c (user_trap): Remove check against phys_last_addr. |
| 9410 |
* i386/i386at/biosmem.c (biosmem_bootstrap_common): Don't set |
| 9411 |
phys_last_addr. |
| 9412 |
* i386/i386at/mem.c (memmmap): Use vm_page_lookup_pa to determine if |
| 9413 |
a physical address references physical memory. |
| 9414 |
* i386/i386at/model_dep.c (phys_first_addr): Remove variable. |
| 9415 |
(phys_last_addr): Likewise. |
| 9416 |
(pmap_free_pages, pmap_valid_page): Remove functions. |
| 9417 |
* i386/intel/pmap.c: Include i386at/biosmem.h. |
| 9418 |
(pa_index): Turn into an alias for vm_page_table_index. |
| 9419 |
(pmap_bootstrap): Replace uses of phys_first_addr and phys_last_addr |
| 9420 |
as appropriate. |
| 9421 |
(pmap_virtual_space): Use vm_page_table_size instead of phys_first_addr |
| 9422 |
and phys_last_addr to obtain the number of physical pages. |
| 9423 |
(pmap_verify_free): Remove function. |
| 9424 |
(valid_page): Turn this macro into an inline function and rewrite |
| 9425 |
using vm_page_lookup_pa. |
| 9426 |
(pmap_page_table_page_alloc): Build the pmap VM object using |
| 9427 |
vm_page_table_size to determine its size. |
| 9428 |
(pmap_remove_range, pmap_page_protect, phys_attribute_clear, |
| 9429 |
phys_attribute_test): Turn page indexes into unsigned long integers. |
| 9430 |
(pmap_enter): Likewise. In addition, use either vm_page_lookup_pa or |
| 9431 |
biosmem_directmap_end to determine if a physical address references |
| 9432 |
physical memory. |
| 9433 |
* i386/xen/xen.c (hyp_p2m_init): Use vm_page_table_size instead of |
| 9434 |
phys_last_addr to obtain the number of physical pages. |
| 9435 |
* kern/startup.c (phys_first_addr): Remove extern declaration. |
| 9436 |
(phys_last_addr): Likewise. |
| 9437 |
* linux/dev/init/main.c (linux_init): Use vm_page_seg_end with the |
| 9438 |
appropriate segment selector instead of phys_last_addr to determine |
| 9439 |
where high memory starts. |
| 9440 |
* vm/pmap.h: Update requirements description. |
| 9441 |
(pmap_free_pages, pmap_valid_page): Remove declarations. |
| 9442 |
* vm/vm_page.c (vm_page_seg_end, vm_page_boot_table_size, |
| 9443 |
vm_page_table_size, vm_page_table_index): New functions. |
| 9444 |
* vm/vm_page.h (vm_page_seg_end, vm_page_table_size, |
| 9445 |
vm_page_table_index): New function declarations. |
| 9446 |
* vm/vm_resident.c (vm_page_bucket_count, vm_page_hash_mask): Define |
| 9447 |
as unsigned long integers. |
| 9448 |
(vm_page_bootstrap): Compute VP table size based on the page table |
| 9449 |
size instead of the value returned by pmap_free_pages. |
| 9450 |
|
| 9451 |
2016-09-20 Richard Braun <[email protected]> |
| 9452 |
|
| 9453 |
VM: remove commented out code |
| 9454 |
The vm_page_direct_va, vm_page_direct_pa and vm_page_direct_ptr |
| 9455 |
functions were imported along with the new vm_page module, but |
| 9456 |
never actually used since the kernel already has phystokv and |
| 9457 |
kvtophys functions. |
| 9458 |
|
| 9459 |
2016-09-16 Richard Braun <[email protected]> |
| 9460 |
|
| 9461 |
VM: improve pageout deadlock workaround |
| 9462 |
Commit 5dd4f67522ad0d49a2cecdb9b109251f546d4dd1 makes VM map entry |
| 9463 |
allocation done with VM privilege, so that a VM map isn't held locked |
| 9464 |
while physical allocations are paused, which may block the default |
| 9465 |
pager during page eviction, causing a system-wide deadlock. |
| 9466 |
|
| 9467 |
First, it turns out that map entries aren't the only buffers allocated, |
| 9468 |
and second, their number can't be easily determined, which makes a |
| 9469 |
preallocation strategy very hard to implement. |
| 9470 |
|
| 9471 |
This change generalizes the strategy of VM privilege increase when a |
| 9472 |
VM map is locked. |
| 9473 |
|
| 9474 |
* device/ds_routines.c (io_done_thread): Use integer values instead |
| 9475 |
of booleans when setting VM privilege. |
| 9476 |
* kern/thread.c (thread_init, thread_wire): Likewise. |
| 9477 |
* vm/vm_pageout.c (vm_pageout): Likewise. |
| 9478 |
* kern/thread.h (struct thread): Turn member `vm_privilege' into an |
| 9479 |
unsigned integer. |
| 9480 |
* vm/vm_map.c (vm_map_lock): New function, where VM privilege is |
| 9481 |
temporarily increased. |
| 9482 |
(vm_map_unlock): New function, where VM privilege is decreased. |
| 9483 |
(_vm_map_entry_create): Remove VM privilege workaround from this |
| 9484 |
function. |
| 9485 |
* vm/vm_map.h (vm_map_lock, vm_map_unlock): Turn into functions. |
| 9486 |
|
| 9487 |
2016-09-11 Samuel Thibault <[email protected]> |
| 9488 |
|
| 9489 |
Fix spurious warning |
| 9490 |
* i386/i386/db_trace.c (db_i386_stack_trace): Do not check for frame |
| 9491 |
validity if it is 0. |
| 9492 |
|
| 9493 |
Fix size of functions interrupt and syscall |
| 9494 |
* i386/i386/locore.S (syscall): Add END(syscall). |
| 9495 |
* i386/i386at/interrupt.S (interrupt): Add END(interrupt). |
| 9496 |
|
| 9497 |
Set function type on symbols created by ENTRY macro |
| 9498 |
* i386/include/mach/i386/asm.h (ENTRY, ENTRY2, ASENTRY, Entry): Use .type |
| 9499 |
@function on created entries. |
| 9500 |
|
| 9501 |
Close parenthesis |
| 9502 |
* i386/i386/db_trace.c (db_i386_stack_trace): When stopping on zero frame, |
| 9503 |
close parameters parenthesis. |
| 9504 |
|
| 9505 |
Fix exploring stack trace up to assembly |
| 9506 |
* i386/i386/db_trace.c (db_i386_stack_trace): Do not stop as soon as frame |
| 9507 |
is 0, lookup PC first, and stop only before accessing the frame content. |
| 9508 |
|
| 9509 |
2016-09-11 Justus Winter <[email protected]> |
| 9510 |
|
| 9511 |
ipc: Fix crash in debug code. |
| 9512 |
* ipc/mach_debug.c (mach_port_kernel_object): Check that the receiver |
| 9513 |
is valid. |
| 9514 |
|
| 9515 |
2016-09-07 Richard Braun <[email protected]> |
| 9516 |
|
| 9517 |
Remove map entry pageability property. |
| 9518 |
Since the replacement of the zone allocator, kernel objects have been |
| 9519 |
wired in memory. Besides, as of 5e9f6f (Stack the slab allocator |
| 9520 |
directly on top of the physical allocator), there is a single cache |
| 9521 |
used to allocate map entries. |
| 9522 |
|
| 9523 |
Those changes make the pageability attribute of VM maps irrelevant. |
| 9524 |
|
| 9525 |
* device/ds_routines.c (mach_device_init): Update call to kmem_submap. |
| 9526 |
* ipc/ipc_init.c (ipc_init): Likewise. |
| 9527 |
* kern/task.c (task_create): Update call to vm_map_create. |
| 9528 |
* vm/vm_kern.c (kmem_submap): Remove `pageable' argument. Update call |
| 9529 |
to vm_map_setup. |
| 9530 |
(kmem_init): Update call to vm_map_setup. |
| 9531 |
* vm/vm_kern.h (kmem_submap): Update declaration. |
| 9532 |
* vm/vm_map.c (vm_map_setup): Remove `pageable' argument. Don't set |
| 9533 |
`entries_pageable' member. |
| 9534 |
(vm_map_create): Likewise. |
| 9535 |
(vm_map_copyout): Don't bother creating copies of page entries with |
| 9536 |
the right pageability. |
| 9537 |
(vm_map_copyin): Don't set `entries_pageable' member. |
| 9538 |
(vm_map_fork): Update call to vm_map_create. |
| 9539 |
* vm/vm_map.h (struct vm_map_header): Remove `entries_pageable' member. |
| 9540 |
(vm_map_setup, vm_map_create): Remove `pageable' argument. |
| 9541 |
|
| 9542 |
2016-09-06 Richard Braun <[email protected]> |
| 9543 |
|
| 9544 |
Fix registration of strings from in boot data |
| 9545 |
* i386/i386at/model_dep.c (register_boot_data): Use phystokv on strings |
| 9546 |
when computing their length. |
| 9547 |
|
| 9548 |
2016-09-06 Richard Braun <[email protected]> |
| 9549 |
|
| 9550 |
Make early physical page allocation truely reliable |
| 9551 |
Import upstream biosmem changes and adjust for local modifications. |
| 9552 |
|
| 9553 |
Specifically, this change makes the biosmem module reliably track all |
| 9554 |
boot data by storing their addresses in a sorted array. This allows |
| 9555 |
both the early page allocator and the biosmem_free_usable function |
| 9556 |
to accurately find any range of free pages. |
| 9557 |
|
| 9558 |
* i386/i386at/biosmem.c: Remove inclusion of <i386at/elf.h>. |
| 9559 |
(_start, _end): Remove variable declarations. |
| 9560 |
(BIOSMEM_MAX_BOOT_DATA): New macro. |
| 9561 |
(struct biosmem_boot_data): New type. |
| 9562 |
(biosmem_boot_data_array, biosmem_nr_boot_data): New variables. |
| 9563 |
(biosmem_heap_start, biosmem_heap_bottom, biosmem_heap_top, |
| 9564 |
biosmem_heap_end): Change type to phys_addr_t. |
| 9565 |
(biosmem_panic_inval_boot_data): New variable. |
| 9566 |
(biosmem_panic_too_many_boot_data): Likewise. |
| 9567 |
(biosmem_panic_toobig_msg): Variable renamed ... |
| 9568 |
(biosmem_panic_too_big_msg): ... to this. |
| 9569 |
(biosmem_register_boot_data): New function. |
| 9570 |
(biosmem_unregister_boot_data): Likewise. |
| 9571 |
(biosmem_map_adjust): Update reference to panic message. |
| 9572 |
(biosmem_map_find_avail): Add detailed description. |
| 9573 |
(biosmem_save_cmdline_sizes): Remove function. |
| 9574 |
(biosmem_find_heap_clip): Likewise. |
| 9575 |
(biosmem_find_heap): Likewise. |
| 9576 |
(biosmem_find_avail_clip, biosmem_find_avail): New functions. |
| 9577 |
(biosmem_setup_allocator): Receive const multiboot info, replace |
| 9578 |
calls to biosmem_find_heap with calls to biosmem_find_avail and |
| 9579 |
update accordingly. Register the heap as boot data. |
| 9580 |
(biosmem_xen_bootstrap): Register the Xen boot info and the heap as |
| 9581 |
boot data. |
| 9582 |
(biosmem_bootstrap): Receive const multiboot information. Remove call |
| 9583 |
to biosmem_save_cmdline_sizes. |
| 9584 |
(biosmem_bootalloc): Remove assertion on the VM system state. |
| 9585 |
(biosmem_type_desc, biosmem_map_show): Build only if DEBUG is true. |
| 9586 |
(biosmem_unregister_temporary_boot_data): New function. |
| 9587 |
(biosmem_free_usable_range): Change address range format. |
| 9588 |
(biosmem_free_usable_entry): Rewrite to use biosmem_find_avail |
| 9589 |
without abusing it. |
| 9590 |
(biosmem_free_usable): Call biosmem_unregister_temporary_boot_data, |
| 9591 |
update call to biosmem_free_usable_entry. |
| 9592 |
* i386/i386at/biosmem.h (biosmem_register_boot_data): New function. |
| 9593 |
(biosmem_bootalloc): Update description. |
| 9594 |
(biosmem_bootstrap): Update description and declaration. |
| 9595 |
(biosmem_free_usable): Likewise. |
| 9596 |
* i386/i386at/model_dep.c: Include <i386at/elf.h>. |
| 9597 |
(machine_init): Update call to biosmem_free_usable. |
| 9598 |
(register_boot_data): New function. |
| 9599 |
(i386at_init): Call register_boot_data where appropriate. |
| 9600 |
|
| 9601 |
2016-09-03 Richard Braun <[email protected]> |
| 9602 |
|
| 9603 |
Fix early physical page allocation |
| 9604 |
Import upstream biosmem and vm_page changes, and adjust for local |
| 9605 |
modifications. |
| 9606 |
|
| 9607 |
Specifically, the biosmem module was mistakenly loading physical |
| 9608 |
segments that did not clip with the heap as completely available. |
| 9609 |
This change makes it load them as completely unavailable during |
| 9610 |
startup, and once the VM system is ready, additional pages are |
| 9611 |
loaded. |
| 9612 |
|
| 9613 |
* i386/i386at/biosmem.c (DEBUG): New macro. |
| 9614 |
(struct biosmem_segment): Remove members `avail_start' and `avail_end'. |
| 9615 |
(biosmem_heap_cur): Remove variable. |
| 9616 |
(biosmem_heap_bottom, biosmem_heap_top, biosmem_heap_topdown): New variables. |
| 9617 |
(biosmem_find_boot_data_update, biosmem_find_boot_data): Remove functions. |
| 9618 |
(biosmem_find_heap_clip, biosmem_find_heap): New functions. |
| 9619 |
(biosmem_setup_allocator): Rewritten to use the new biosmem_find_heap |
| 9620 |
function. |
| 9621 |
(biosmem_bootalloc): Support both bottom-up and top-down allocations. |
| 9622 |
(biosmem_directmap_size): Renamed to ... |
| 9623 |
(biosmem_directmap_end): ... this function. |
| 9624 |
(biosmem_load_segment): Fix segment loading. |
| 9625 |
(biosmem_setup): Restrict usable memory to the directmap segment. |
| 9626 |
(biosmem_free_usable_range): Add checks on input parameters. |
| 9627 |
(biosmem_free_usable_update_start, biosmem_free_usable_start, |
| 9628 |
biosmem_free_usable_reserved, biosmem_free_usable_end): Remove functions. |
| 9629 |
(biosmem_free_usable_entry): Rewritten to use the new biosmem_find_heap |
| 9630 |
function. |
| 9631 |
(biosmem_free_usable): Restrict usable memory to the directmap segment. |
| 9632 |
* i386/i386at/biosmem.h (biosmem_bootalloc): Update description. |
| 9633 |
(biosmem_directmap_size): Renamed to ... |
| 9634 |
(biosmem_directmap_end): ... this function. |
| 9635 |
(biosmem_free_usable): Update declaration. |
| 9636 |
* i386/i386at/model_dep.c (machine_init): Call biosmem_free_usable. |
| 9637 |
* vm/vm_page.c (DEBUG): New macro. |
| 9638 |
(struct vm_page_seg): New member `heap_present'. |
| 9639 |
(vm_page_load): Remove heap related parameters. |
| 9640 |
(vm_page_load_heap): New function. |
| 9641 |
* vm/vm_page.h (vm_page_load): Remove heap related parameters. Update |
| 9642 |
description. |
| 9643 |
(vm_page_load_heap): New function. |
| 9644 |
|
| 9645 |
2016-09-01 Richard Braun <[email protected]> |
| 9646 |
|
| 9647 |
pmap: fix map window creation on xen |
| 9648 |
* i386/intel/pmap.c (pmap_get_mapwindow, pmap_put_mapwindow): Use |
| 9649 |
the appropriate xen hypercall if building for paravirtualized page |
| 9650 |
table management. |
| 9651 |
|
| 9652 |
2016-08-31 Samuel Thibault <[email protected]> |
| 9653 |
|
| 9654 |
Avoid using non-ascii source encoding |
| 9655 |
* xen/console.c (hypcnintr): Replace latin1 £ character with the 0xA3 |
| 9656 |
number. |
| 9657 |
|
| 9658 |
2016-08-29 Richard Braun <[email protected]> |
| 9659 |
|
| 9660 |
vm: fix boot on xen |
| 9661 |
* vm/vm_map.c (_vm_map_entry_create: Make sure there is a thread |
| 9662 |
before accessing VM privilege. |
| 9663 |
|
| 9664 |
2016-08-26 Samuel Thibault <[email protected]> |
| 9665 |
|
| 9666 |
Revert "Fix documentation for vm_map" |
| 9667 |
This reverts commit 57694037a02dda29bd678dc3b8531bd437682ba7. |
| 9668 |
|
| 9669 |
We rather prefer the kernel just use whatever slot it sees fit. Userland has |
| 9670 |
already been fixed into not using the behavior anyway. |
| 9671 |
|
| 9672 |
2016-08-25 Samuel Thibault <[email protected]> |
| 9673 |
|
| 9674 |
Add missing memory barriers in simple lock debugging |
| 9675 |
* kern/lock.c (_simple_lock, _simple_lock_try, simple_unlock): Add compiler |
| 9676 |
memory barrier to separate simple_locks_taken update from information |
| 9677 |
filling. |
| 9678 |
|
| 9679 |
Use invlpg for single-page pagetable changes |
| 9680 |
* i386/intel/pmap.c (INVALIDATE_TLB): When e-s is constant, equal to |
| 9681 |
PAGE_SIZE, use just one invlpg instruction to flush the TLB. |
| 9682 |
|
| 9683 |
Drop unused macro |
| 9684 |
* i386/intel/pmap.c (MAX_TBIS_SIZE): Drop unused macro. |
| 9685 |
|
| 9686 |
2016-08-16 Richard Braun <[email protected]> |
| 9687 |
|
| 9688 |
Replace libc string functions with internal implementations |
| 9689 |
* Makefile.am (clib_routines): Remove memcmp, memcpy, memmove, |
| 9690 |
strchr, strstr and strsep. |
| 9691 |
* kern/strings.c (memset): Comment out. |
| 9692 |
(strchr, strsep, strstr): New functions. |
| 9693 |
|
| 9694 |
i386: import string functions from X15 and relicense to GPLv2+ |
| 9695 |
* i386/Makefrag.am (libkernel_a_SOURCES): Add i386/i386/strings.c. |
| 9696 |
* i386/i386/strings.c: New file. |
| 9697 |
|
| 9698 |
2016-08-12 Richard Braun <[email protected]> |
| 9699 |
|
| 9700 |
i386: request the boot loader to page-align modules |
| 9701 |
* i386/i386at/boothdr.S (MULTIBOOT_FLAGS): Set LSB bit. |
| 9702 |
|
| 9703 |
2016-08-07 Richard Braun <[email protected]> |
| 9704 |
|
| 9705 |
VM: fix pageout-related deadlock |
| 9706 |
* vm/vm_map.c (_vm_map_entry_create): Temporarily set the current thread |
| 9707 |
as VM privileged. |
| 9708 |
|
| 9709 |
2016-08-06 Richard Braun <[email protected]> |
| 9710 |
|
| 9711 |
Augment VM maps with task names |
| 9712 |
This change improves the clarity of "no more room for ..." VM map |
| 9713 |
allocation errors. |
| 9714 |
|
| 9715 |
* kern/task.c (task_init): Call vm_map_set_name for the kernel map. |
| 9716 |
(task_create): Call vm_map_set_name where appropriate. |
| 9717 |
* vm/vm_map.c (vm_map_setup): Set map name to NULL. |
| 9718 |
(vm_map_find_entry_anywhere): Update error message to include map name. |
| 9719 |
* vm/vm_map.h (struct vm_map): New `name' member. |
| 9720 |
(vm_map_set_name): New inline function. |
| 9721 |
|
| 9722 |
2016-06-29 Richard Braun <[email protected]> |
| 9723 |
|
| 9724 |
Fix page fault in critical section in the slab allocator |
| 9725 |
* kern/slab.c (host_slab_info): Use wired kernel memory to build the |
| 9726 |
cache info. |
| 9727 |
|
| 9728 |
Fix locking error in the slab allocator |
| 9729 |
* kern/slab.c (kmem_slab_create): Set `slab->cache` member. |
| 9730 |
(kmem_cache_reap): Return dead slabs instead of destroying in place. |
| 9731 |
(slab_collect): Destroy slabs outside of critical section. |
| 9732 |
* kern/slab.h (struct kmem_slab): New `cache` member. |
| 9733 |
|
| 9734 |
2016-06-27 Richard Braun <[email protected]> |
| 9735 |
|
| 9736 |
Fix locking error |
| 9737 |
* i386/i386/io_perm.c (no_senders): Remove bogus call to ip_lock. |
| 9738 |
|
| 9739 |
2016-06-17 Richard Braun <[email protected]> |
| 9740 |
|
| 9741 |
Change page cache statistics |
| 9742 |
Instead of reporting statistics about unreferenced objects (the object |
| 9743 |
cache), report statistics about external objects (the page cache). |
| 9744 |
|
| 9745 |
* vm/vm_object.c (vm_object_cached_count): Remove variable. |
| 9746 |
(vm_object_cache_add): Remove object cache stats updates. |
| 9747 |
(vm_object_cache_remove): Likewise. |
| 9748 |
(vm_object_terminate): Update page cache stats. |
| 9749 |
* vm/vm_object.h (vm_object_cached_count): Remove variable. |
| 9750 |
(vm_object_cached_pages): Likewise. |
| 9751 |
(vm_object_cached_pages_lock_data): Likewise. |
| 9752 |
(vm_object_cached_pages_update): Remove macro. |
| 9753 |
(vm_object_external_count): New extern variable. |
| 9754 |
(vm_object_external_pages): Likewise. |
| 9755 |
* vm/vm_resident.c (vm_object_external_count): New variable. |
| 9756 |
(vm_object_external_pages): Likewise. |
| 9757 |
(vm_page_insert): Remove object cache stats updates and |
| 9758 |
update page cache stats. |
| 9759 |
(vm_page_replace): Likewise. |
| 9760 |
(vm_page_remove): Likewise. |
| 9761 |
* vm/vm_user.c (vm_cache_statistics): Report page cache stats instead |
| 9762 |
of object cache stats. |
| 9763 |
|
| 9764 |
2016-06-10 Samuel Thibault <[email protected]> |
| 9765 |
|
| 9766 |
Allow setting x86 debug flags for the current thread |
| 9767 |
* kern/thread.c (thread_get_state): Allow call for the current thread, |
| 9768 |
without suspending it. |
| 9769 |
(thread_set_status): Likewise. |
| 9770 |
|
| 9771 |
Use int3 on x86_64 build too |
| 9772 |
* kern/debug.c (SoftDebugger) [__x86_64__]: Use int3 instruction to trigger |
| 9773 |
debugger. |
| 9774 |
|
| 9775 |
2016-06-09 Richard Braun <[email protected]> |
| 9776 |
|
| 9777 |
Fix overflow checking on VM map copyin |
| 9778 |
* vm/vm_map (vm_map_copyin, vm_map_copyin_page_list): Check overflow |
| 9779 |
before page alignment of source data. |
| 9780 |
|
| 9781 |
2016-06-07 Richard Braun <[email protected]> |
| 9782 |
|
| 9783 |
Fix deadlock |
| 9784 |
* vm/vm_map.c (vm_map_copyout_page_list): Fix call to |
| 9785 |
vm_map_find_entry_anywhere to avoid relocking VM map. |
| 9786 |
|
| 9787 |
2016-06-02 Richard Braun <[email protected]> |
| 9788 |
|
| 9789 |
Fix some license headers. |
| 9790 |
As the original author of the files imported, I explicitely dual |
| 9791 |
license them to something compatible with GPLv2. |
| 9792 |
|
| 9793 |
kern/macros.h: Switch license from GPLv3 to BSD 2-clause. |
| 9794 |
kern/rdxtree_i.h: Likewise. |
| 9795 |
|
| 9796 |
2016-05-26 Samuel Thibault <[email protected]> |
| 9797 |
|
| 9798 |
Fix buffer size passed to scsi_do_cmd |
| 9799 |
* linux/src/drivers/scsi/eata_dma_proc.c (eata_proc_info): Increase cmd size |
| 9800 |
to 12. |
| 9801 |
* linux/src/drivers/scsi/sd.c (do_sd_request, sd_init_done): Likewise. |
| 9802 |
* linux/src/drivers/scsi/sr.c (do_sr_request, sr_init_done): Likewise. |
| 9803 |
* linux/src/drivers/scsi/sr_ioctl.c (sr_ioctl): Likewise with sr_cmd. |
| 9804 |
|
| 9805 |
Cope with getc returning -1 |
| 9806 |
* i386/i386at/lpr.c (lprstart): Use int instead of char to store result of |
| 9807 |
getc, so as to return in case of getting -1. |
| 9808 |
|
| 9809 |
Fix potential divisal by zero |
| 9810 |
* kern/debug.c (panic, log): Pass 16 as default radix to _doprnt. |
| 9811 |
|
| 9812 |
2016-05-23 Samuel Thibault <[email protected]> |
| 9813 |
|
| 9814 |
Fix getting ELF symbol bind and type |
| 9815 |
ddb/db_elf.c (elf_db_search_symbol): Use ELF32_ST_BIND and ELF32_ST_TYPE to |
| 9816 |
access symbol bind and type. |
| 9817 |
|
| 9818 |
2016-05-20 Richard Braun <[email protected]> |
| 9819 |
|
| 9820 |
vm_map: back allocations with a red-black tree |
| 9821 |
This change augments VM maps with a gap tree, sorted by gap size, to |
| 9822 |
use for non-fixed allocations. |
| 9823 |
|
| 9824 |
* vm/vm_map.c: Include kern/list.h. |
| 9825 |
(vm_map_entry_gap_cmp_lookup, vm_map_entry_gap_cmp_insert, |
| 9826 |
vm_map_gap_valid, vm_map_gap_compute, vm_map_gap_insert_single, |
| 9827 |
vm_map_gap_remove_single, vm_map_gap_update, vm_map_gap_insert, |
| 9828 |
vm_map_gap_remove, vm_map_find_entry_anywhere): New functions. |
| 9829 |
(vm_map_setup): Initialize gap tree. |
| 9830 |
(_vm_map_entry_link): Call vm_map_gap_insert. |
| 9831 |
(_vm_map_entry_unlink): Call vm_map_gap_remove. |
| 9832 |
(vm_map_find_entry, vm_map_enter, vm_map_copyout, |
| 9833 |
vm_map_copyout_page_list, vm_map_copyin): Replace look up loop with |
| 9834 |
a call to vm_map_find_entry_anywhere. Call vm_map_gap_update and |
| 9835 |
initialize gap tree where relevant. |
| 9836 |
(vm_map_copy_insert): Turn macro into an inline function and rewrite. |
| 9837 |
(vm_map_simplify): Reorder call to vm_map_entry_unlink so that previous |
| 9838 |
entry is suitable for use with gap management functions. |
| 9839 |
* vm/vm_map.h: Include kern/list.h. |
| 9840 |
(struct vm_map_entry): New members `gap_node`, `gap_list`, |
| 9841 |
`gap_size` and `in_gap_tree`. |
| 9842 |
(struct vm_map_header): New member `gap_tree`. |
| 9843 |
|
| 9844 |
2016-05-20 Justus Winter <[email protected]> |
| 9845 |
|
| 9846 |
xen: fix prototype |
| 9847 |
Amends a7f248bf. |
| 9848 |
|
| 9849 |
* xen/console.h (hypcnclose): Fix type of parameter. |
| 9850 |
|
| 9851 |
2016-05-18 Thomas Schwinge <[email protected]> |
| 9852 |
|
| 9853 |
GNU Mach 1.7 |
| 9854 |
* version.m4 (AC_PACKAGE_VERSION): Set to 1.7. |
| 9855 |
* NEWS: Finalize for 1.7. |
| 9856 |
|
| 9857 |
2016-05-18 Samuel Thibault <[email protected]> |
| 9858 |
|
| 9859 |
Fix gcc-6 warnings |
| 9860 |
* ddb/db_elf.c (elf_db_sym_init): Turn `i' into unsigned. |
| 9861 |
* device/ds_routines.c (ds_device_open, device_writev_trap): Likewise. |
| 9862 |
* i386/i386/user_ldt.c (i386_set_ldt): Likewise for `i', `min_selector', and |
| 9863 |
`first_desc'. |
| 9864 |
(i386_get_ldt): Likewise for `ldt_count'. |
| 9865 |
(user_ldt_free): Likewise for `i'. |
| 9866 |
* i386/i386/xen.h (hyp_set_ldt): Turn `count' into unsigned long. |
| 9867 |
* i386/intel/pmap.c (pmap_bootstrap): Turn `i', `j' and 'n' into unsigned. |
| 9868 |
(pmap_clear_bootstrap_pagetable): Likewise for `i' and `j'. |
| 9869 |
* ipc/ipc_kmsg.c (ipc_msg_print): Turn `i' and `numwords' into unsigned. |
| 9870 |
* kern/boot_script.c (boot_script_parse_line): Likewise for `i'. |
| 9871 |
* kern/bootstrap.c (bootstrap_create): Likewise for `n' and `i'. |
| 9872 |
* kern/host.c (host_processors): Likewise for `i'. |
| 9873 |
* kern/ipc_tt.c (mach_ports_register): Likewise. |
| 9874 |
* kern/mach_clock.c (tickadj, bigadj): turn into unsigned. |
| 9875 |
* kern/processor.c (processor_set_things): Turn `i' into unsigned. |
| 9876 |
* kern/task.c (task_threads): Likewise. |
| 9877 |
* kern/thread.c (consider_thread_collect, stack_init): Likewise. |
| 9878 |
* kern/strings.c (memset): Turn `i' into size_t. |
| 9879 |
* vm/memory_object.c (memory_object_lock_request): Turn `i' into unsigned. |
| 9880 |
* xen/block.c (hyp_block_init): Use %u format for evt. |
| 9881 |
(device_open): Drop unused err variable. |
| 9882 |
(device_write): Turn `copy_npages', `i', `nbpages', and `j' into unsigned. |
| 9883 |
* xen/console.c (hypcnread, hypcnwrite, hypcnclose): Turn dev to dev_t. |
| 9884 |
(hypcnclose): Return void. |
| 9885 |
* xen/console.h (hypcnread, hypcnwrite, hypcnclose): Fix prototypes |
| 9886 |
accordingly. |
| 9887 |
* xen/evt.c (form_int_mask): Turn `i' into int. |
| 9888 |
* xen/net.c (hyp_net_init): Use %u format for evt. |
| 9889 |
(device_open): Remove unused `err' variable. |
| 9890 |
|
| 9891 |
2016-05-17 Samuel Thibault <[email protected]> |
| 9892 |
|
| 9893 |
Revert "Fix getting ELF symbol bind and type" |
| 9894 |
This reverts commit a8a52cafb5621b475737ffdc81f63703d5b37904. |
| 9895 |
|
| 9896 |
It seems to be breaking backtracing in ddb... |
| 9897 |
|
| 9898 |
2016-05-16 Richard Braun <[email protected]> |
| 9899 |
|
| 9900 |
Fix pageout deadlock |
| 9901 |
The pageout daemon uses small, internal, temporary objects to transport |
| 9902 |
the data out to memory managers, which are expected to release the data |
| 9903 |
once written out to backing store. Releasing this data is done with a |
| 9904 |
vm_deallocate call. The problem with this is that vm_map is allowed to |
| 9905 |
merge these objects, in which case vm_deallocate will only remove a |
| 9906 |
reference instead of releasing the underlying pages, causing the pageout |
| 9907 |
daemon to deadlock. |
| 9908 |
|
| 9909 |
This change makes the pageout daemon mark these objects so that they |
| 9910 |
don't get merged. |
| 9911 |
|
| 9912 |
* vm/vm_object.c (vm_object_bootstrap): Update template. |
| 9913 |
(vm_object_coalesce): Don't coalesce if an object is used for pageout. |
| 9914 |
* vm/vm_object.h (struct vm_object): New `used_for_pageout` member. |
| 9915 |
* vm/vm_pageout.c (vm_pageout_page): Mark new objects for pageout. |
| 9916 |
|
| 9917 |
2016-05-15 Richard Braun <[email protected]> |
| 9918 |
|
| 9919 |
Fix warning |
| 9920 |
ddb/db_output.c (db_printf): Return 0. |
| 9921 |
ddb/db_printf.h (db_printf): Change declaration to return an int. |
| 9922 |
|
| 9923 |
2016-04-21 Samuel Thibault <[email protected]> |
| 9924 |
|
| 9925 |
Fix xen boot |
| 9926 |
* i386/i386/pcb.c (pcb_init): Make sure there is a thread before calling |
| 9927 |
current_task(). |
| 9928 |
|
| 9929 |
2016-04-20 Justus Winter <[email protected]> |
| 9930 |
|
| 9931 |
Fix type of program counter argument |
| 9932 |
* i386/i386/hardclock.c (hardclock): Use '0' instead of 'NULL'. |
| 9933 |
* vm/vm_fault (vm_fault_cleanup): Likewise. |
| 9934 |
|
| 9935 |
xen: fix build |
| 9936 |
* i386/xen/xen.c (hypclock_machine_intr): Fix 'clock_interrupt' call. |
| 9937 |
* xen/time.c (clkstart): Likewise. |
| 9938 |
|
| 9939 |
2016-04-20 Samuel Thibault <[email protected]> |
| 9940 |
|
| 9941 |
Add kernel profiling through sampling |
| 9942 |
* NEWS: Advertise feature. |
| 9943 |
* configfrac.ac (--enable-kernsample): Add option. |
| 9944 |
* kern/pc_sample.h (take_pc_sample): Add usermode and pc parameter. |
| 9945 |
(take_pc_sample_macro): Take usermode and pc parameters, pass as such to |
| 9946 |
take_pc_sample. |
| 9947 |
* kern/pc_sample.c (take_pc_sample): Use pc parameter when usermode is 1. |
| 9948 |
* kern/mach_clock.c (clock_interrupt): Add pc parameter. Pass usermode and |
| 9949 |
pc to take_pc_sample_macro call. |
| 9950 |
* i386/i386/hardclock.c (hardclock): Pass regs->eip to clock_interrupt call |
| 9951 |
on normal interrupts, NULL on interrupt interrupt. |
| 9952 |
* vm/vm_fault.c (vm_fault_cleanup): Set usermode to 1 and pc to NULL in |
| 9953 |
take_pc_sample_macro call. |
| 9954 |
|
| 9955 |
2016-04-17 Samuel Thibault <[email protected]> |
| 9956 |
|
| 9957 |
Add memory barrier to spl* |
| 9958 |
* i386/i386/spl.S (mb): Define macro |
| 9959 |
(SETIPL, spl0, spl7): Call mb. |
| 9960 |
|
| 9961 |
Avoid using C99 for variable declaration for now |
| 9962 |
* kern/gsync.c (gsync_setup): Declare `i' variable out of for loop. |
| 9963 |
|
| 9964 |
2016-04-15 Samuel Thibault <[email protected]> |
| 9965 |
|
| 9966 |
update NEWS file |
| 9967 |
|
| 9968 |
2016-04-15 Agustina Arzille <[email protected]> |
| 9969 |
|
| 9970 |
Lightweight synchronization mechanism |
| 9971 |
* Makefrag.am (libkernel_a_SOURCES): Add kern/gsync.c and kern/gsync.h. |
| 9972 |
* include/mach/gnumach.defs (gsync_wait, gsync_wake, gsync_requeue): New |
| 9973 |
routines. |
| 9974 |
* include/mach/kern_return.h (KERN_TIMEDOUT, KERN_INTERRUPTED): New error |
| 9975 |
codes. |
| 9976 |
* kern/gsync.c: New file. |
| 9977 |
* kern/gsync.h: New file. |
| 9978 |
* kern/startup.c: Include <kern/gsync.h> |
| 9979 |
(setup_main): Call gsync_setup. |
| 9980 |
|
| 9981 |
2016-04-15 Justus Winter <[email protected]> |
| 9982 |
|
| 9983 |
Update NEWS file |
| 9984 |
|
| 9985 |
Add --disable-assert flag to disable assertions |
| 9986 |
* configfrag.ac: Use 'AC_HEADER_ASSERT'. |
| 9987 |
|
| 9988 |
i386: Fix error handling |
| 9989 |
* i386/i386at/model_dep.c (i386at_init): Fix error handling. |
| 9990 |
|
| 9991 |
2016-04-05 Flavio Cruz <[email protected]> |
| 9992 |
|
| 9993 |
Fix bootstraping issues with stdint.h. |
| 9994 |
* include/mach/std_types.h: Do not include stdint.h. |
| 9995 |
* kern/rdxtree.h: Replace sys/types.h with stdint.h. |
| 9996 |
|
| 9997 |
2016-04-04 Samuel Thibault <[email protected]> |
| 9998 |
|
| 9999 |
Follow-up stdint use |
| 10000 |
7bbfa39f59dcbc55b21d31abb9e2febef6a51ebb ('Use uint32_t instead of |
| 10001 |
unsigned32_t.') missed some Xen code |
| 10002 |
|
| 10003 |
* xen/net.c (recompute_checksum): Use stdint.h types. |
| 10004 |
* xen/time.c (hyp_get_stime): Likewise. |
| 10005 |
|
| 10006 |
2016-04-04 Flavio Cruz <[email protected]> |
| 10007 |
|
| 10008 |
Use uint32_t instead of unsigned32_t. |
| 10009 |
Implement stdint.h and use it in gnumach. |
| 10010 |
|
| 10011 |
Remove old type definitions such as signed* and unsigned*. |
| 10012 |
|
| 10013 |
* Makefile.am: Add -ffreestanding. |
| 10014 |
* i386/i386/xen.h: Use uint64_t. |
| 10015 |
* i386/include/mach/i386/machine_types.defs: Use uint32_t and int32_t. |
| 10016 |
* i386/include/mach/i386/vm_types.h: Remove definitions of int*, uint*, |
| 10017 |
unsigned* and signed* types. |
| 10018 |
* i386/xen/xen.c: Use uint64_t. |
| 10019 |
* include/device/device_types.defs: Use uint32_t. |
| 10020 |
* include/mach/std_types.defs: Use POSIX types. |
| 10021 |
* include/mach/std_types.h: Include stdint.h. |
| 10022 |
* include/stdint.h: New file with POSIX types. |
| 10023 |
* include/sys/types.h: Include stdint.h. |
| 10024 |
* ipc/ipc_kmsg.c: Use uint64_t. |
| 10025 |
* kern/exception.c: Use uint32_t. |
| 10026 |
* linux/dev/include/linux/types.h: Remove POSIX types. |
| 10027 |
* xen/block.c: Use uint64_t. |
| 10028 |
* xen/net.c: Do not use removed unsigned*_t types. |
| 10029 |
* xen/ring.h: Use uint32_t instead. |
| 10030 |
* xen/store.c: Use uint32_t. |
| 10031 |
* xen/store.h: Use uint32_t. |
| 10032 |
* xen/time.c: Use POSIX types only. |
| 10033 |
* xen/time.h: Use uint64_t. |
| 10034 |
|
| 10035 |
2016-03-19 Samuel Thibault <[email protected]> |
| 10036 |
|
| 10037 |
Make kernel mapping start address configurable |
| 10038 |
and move it to 16MiB by default to free 24bit DMA area |
| 10039 |
|
| 10040 |
* i386/configfrag.ac (--with-_START_MAP): Add option, default to 0x1000000. |
| 10041 |
* i386/Makefrag.am (_START_MAP): Set to $(_START_MAP). |
| 10042 |
(_START): Set to _START_MAP+0xC0000000. |
| 10043 |
|
| 10044 |
2016-03-19 Samuel Thibault <[email protected]> |
| 10045 |
|
| 10046 |
Fix getting ELF symbol bind and type |
| 10047 |
ddb/db_elf.c (elf_db_search_symbol): Use ELF32_ST_BIND and ELF32_ST_TYPE to |
| 10048 |
access symbol bind and type. |
| 10049 |
|
| 10050 |
2016-03-13 Richard Braun <[email protected]> |
| 10051 |
|
| 10052 |
Avoid panics on physical memory exhaustion |
| 10053 |
* vm/vm_resident (vm_page_grab_contig): Return NULL instead of calling |
| 10054 |
panic on memory exhaustion. |
| 10055 |
|
| 10056 |
2016-03-11 Samuel Thibault <[email protected]> |
| 10057 |
|
| 10058 |
Ship missing files |
| 10059 |
Makefrag.am (libkernel_a_SOURCES): Add kern/log2.h. |
| 10060 |
(EXTRA_DIST): Add kern/exc.defs. |
| 10061 |
i386/Makefrag.am (libkernel_a_SOURCES): Add i386/i386at/elf.h. |
| 10062 |
|
| 10063 |
2016-03-11 Richard Braun <[email protected]> |
| 10064 |
|
| 10065 |
Merge remote-tracking branch 'remotes/origin/rbraun/vm_cache_policy' |
| 10066 |
Finally ;-). |
| 10067 |
|
| 10068 |
2016-03-09 Richard Braun <[email protected]> |
| 10069 |
|
| 10070 |
Fix stack allocation on Xen |
| 10071 |
Stack allocation on Xen can fail because of fragmentation. This change |
| 10072 |
makes stack allocation use the slab allocator. |
| 10073 |
|
| 10074 |
* kern/thread.c (thread_stack_cache): New global variable. |
| 10075 |
(stack_alloc): Use kmem_cache_alloc instead of vm_page_grab_contig. |
| 10076 |
(stack_collect): Use kmem_cache_free instead of vm_page_free_contig. |
| 10077 |
(kmem_cache_init): Initialize thread_stack_cache. |
| 10078 |
|
| 10079 |
2016-03-09 Richard Braun <[email protected]> |
| 10080 |
|
| 10081 |
Relax slab allocation alignment constraint |
| 10082 |
* kern/slab.c (kmem_pagealloc_virtual): Pass alignment to function, |
| 10083 |
call kmem_alloc_aligned when greater than a page. |
| 10084 |
(kmem_pagealloc): Pass alignment to function. |
| 10085 |
(kmem_slab_create): Update call to kmem_pagealloc. |
| 10086 |
(kalloc): Likewise. |
| 10087 |
(kmem_cache_compute_properties): Fix handling of color with large slab |
| 10088 |
sizes. |
| 10089 |
(kmem_cache_init): Allow alignment greater than the page size. |
| 10090 |
|
| 10091 |
2016-03-06 Samuel Thibault <[email protected]> |
| 10092 |
|
| 10093 |
Inherit fpu control word from parent to child |
| 10094 |
* i386/i386/thread.h (struct pcb): Add init_control field. |
| 10095 |
* i386/i386/fpu.h (fpinherit): New prototype. |
| 10096 |
* i386/i386/fpu.c (fpinit): Add thread parameter. When init_control field is |
| 10097 |
set, use that value instead of a hardcoded one. |
| 10098 |
(fpinherit): New function. |
| 10099 |
(fp_load): Pass thread parameter to fpinit(). |
| 10100 |
* kern/thread.c (thread_create): Pass parent task to pcb_init(). |
| 10101 |
* i386/i386/pcb.c (pcb_init): Add parent_task parameter, call fpinherit when |
| 10102 |
it is equal to current_task(). |
| 10103 |
|
| 10104 |
2016-02-28 Justus Winter <[email protected]> |
| 10105 |
|
| 10106 |
ipc: add missing kernel object type |
| 10107 |
* ipc/ipc_object.c (ikot_print_array): Add entry for IKOT_PAGER_PROXY. |
| 10108 |
|
| 10109 |
doc: clarify memory object initialization |
| 10110 |
* doc/mach.texi: Mention another way how a memory manager can signal |
| 10111 |
that an object is ready. |
| 10112 |
|
| 10113 |
i386: add parts of cpu.h from x15 |
| 10114 |
* i386/Makefrag.am (libkernel_a_SOURCES): Add new file. |
| 10115 |
* i386/i386/cpu.h: New file. |
| 10116 |
|
| 10117 |
2016-02-26 Justus Winter <[email protected]> |
| 10118 |
|
| 10119 |
include: avoid generating unused client stubs |
| 10120 |
* include/mach/mach.defs: Avoid generating unused client stubs, some |
| 10121 |
of which use an unreasonable amount of stack space and showed up in |
| 10122 |
compiler warnings. |
| 10123 |
|
| 10124 |
2016-02-26 Samuel Thibault <[email protected]> |
| 10125 |
|
| 10126 |
Document thread_sleep about events woken from interrupt handlers |
| 10127 |
* kern/sched_prim.c (thread_sleep): Document case of events woken from |
| 10128 |
interrupt handlers. |
| 10129 |
|
| 10130 |
Document why code is not racy |
| 10131 |
* i386/i386at/kd_mouse.c (kd_mouse_read): Document why the |
| 10132 |
assert_wait/thread_block pair is not racy. |
| 10133 |
|
| 10134 |
2016-02-23 Justus Winter <[email protected]> |
| 10135 |
|
| 10136 |
Include the exception protocol in 'gnumach.msgids' |
| 10137 |
* Makefrag.am: Include the exception protocol in 'gnumach.msgids'. |
| 10138 |
* kern/exc.defs: New file. |
| 10139 |
|
| 10140 |
2016-02-22 Richard Braun <[email protected]> |
| 10141 |
|
| 10142 |
Remove kmem cache flags from the debugging interface |
| 10143 |
* include/mach_debug/slab_info.h (CACHE_FLAGS_NO_CPU_POOL, |
| 10144 |
CACHE_FLAGS_SLAB_EXTERNAL, CACHE_FLAGS_NO_RECLAIM, |
| 10145 |
CACHE_FLAGS_VERIFY, CACHE_FLAGS_DIRECT): Remove macros. |
| 10146 |
* kern/slab.c (host_slab_info): Pass raw cache flags to caller. |
| 10147 |
|
| 10148 |
2016-02-22 Richard Braun <[email protected]> |
| 10149 |
|
| 10150 |
Fix slab allocator option handling |
| 10151 |
The slab allocator has grown to use multiple ways to allocate slabs |
| 10152 |
as well as track them, which got a little messy. One consequence is |
| 10153 |
the breaking of the KMEM_CF_VERIFY option. In order to make the code |
| 10154 |
less confusing, this change expresses all options as explicit cache |
| 10155 |
flags and clearly defines their relationships. |
| 10156 |
|
| 10157 |
The special kmem_slab and vm_map_entry caches are initialized |
| 10158 |
accordingly. |
| 10159 |
|
| 10160 |
* kern/slab.c (KMEM_CF_DIRECTMAP): Rename to ... |
| 10161 |
(KMEM_CF_PHYSMEM): ... this new macro. |
| 10162 |
(KMEM_CF_DIRECT): Restore macro. |
| 10163 |
(KMEM_CF_USE_TREE, KMEM_CF_USE_PAGE): New macros. |
| 10164 |
(KMEM_CF_VERIFY): Update value. |
| 10165 |
(kmem_pagealloc_directmap): Rename to... |
| 10166 |
(kmem_pagealloc_physmem): ... this new function. |
| 10167 |
(kmem_pagefree_directmap): Rename to ... |
| 10168 |
(kmem_pagefree_physmem): ... this new function. |
| 10169 |
(kmem_pagealloc, kmem_pagefree): Update macro names. |
| 10170 |
(kmem_slab_use_tree): Remove function. |
| 10171 |
(kmem_slab_create, kmem_slab_destroy): Update according to the new |
| 10172 |
cache flags. |
| 10173 |
(kmem_cache_compute_sizes): Rename to ... |
| 10174 |
(kmem_cache_compute_properties): ... this new function, and update |
| 10175 |
to properly set cache flags. |
| 10176 |
(kmem_cache_init): Update call to kmem_cache_compute_properties. |
| 10177 |
(kmem_cache_alloc_from_slab): Check KMEM_CF_USE_TREE instead of |
| 10178 |
calling the defunct kmem_slab_use_tree function. |
| 10179 |
(kmem_cache_free_to_slab): Update according to the new cache flags. |
| 10180 |
kmem_cache_free_verify): Add assertion. |
| 10181 |
(slab_init): Update initialization of kmem_slab_cache. |
| 10182 |
* kern/slab.h (KMEM_CACHE_DIRECTMAP): Rename to ... |
| 10183 |
(KMEM_CACHE_PHYSMEM): ... this new macro. |
| 10184 |
* vm/vm_map.c (vm_map_init): Update initialization of vm_map_entry_cache. |
| 10185 |
|
| 10186 |
2016-02-22 Richard Braun <[email protected]> |
| 10187 |
|
| 10188 |
Optimize slab lookup on the free path |
| 10189 |
Caches that use external slab data but allocate slabs from the direct |
| 10190 |
physical mapping can look up slab data in constant time by associating |
| 10191 |
the slab data directly with the underlying page. |
| 10192 |
|
| 10193 |
* kern/slab.c (kmem_slab_use_tree): Take KMEM_CF_DIRECTMAP into account. |
| 10194 |
(kmem_slab_create): Set page private data if relevant. |
| 10195 |
(kmem_slab_destroy): Clear page private data if relevant. |
| 10196 |
(kmem_cache_free_to_slab): Use page private data if relevant. |
| 10197 |
* vm/vm_page.c (vm_page_init_pa): Set `priv' member to NULL. |
| 10198 |
* vm/vm_page.h (vm_page_set_priv, vm_page_get_priv): New functions. |
| 10199 |
|
| 10200 |
2016-02-22 Richard Braun <[email protected]> |
| 10201 |
|
| 10202 |
Fix unused variable warnings |
| 10203 |
* kern/slab.c (slab_init): Remove unused variables. |
| 10204 |
|
| 10205 |
2016-02-20 Richard Braun <[email protected]> |
| 10206 |
|
| 10207 |
Avoid slab allocation failures caused by memory fragmentation |
| 10208 |
Since the slab allocator has been changed to sit directly on top of the |
| 10209 |
physical allocator, failures caused by fragmentation have been observed, |
| 10210 |
as one could expect. This change makes the slab allocator revert to |
| 10211 |
kernel virtual memory when allocating larger-than-page slabs. This |
| 10212 |
solution is motivated in part to avoid the complexity of other solutions |
| 10213 |
such as page mobility, and also because a microkernel cannot be extended |
| 10214 |
to new arbitrary uncontrolled usage patterns such as a monolithic kernel |
| 10215 |
with loadable modules. As such, large objects are rare, and their use |
| 10216 |
infrequent, which is compatible with the use of kernel virtual memory. |
| 10217 |
|
| 10218 |
* kern/slab.c: Update module description. |
| 10219 |
(KMEM_CF_SLAB_EXTERNAL, KMEM_CF_VERIFY): Update values. |
| 10220 |
(KMEM_CF_DIRECT): Remove macro. |
| 10221 |
(KMEM_CF_DIRECTMAP): New macro. |
| 10222 |
(kmem_pagealloc_directmap, kmem_pagefree_directmap, |
| 10223 |
kmem_pagealloc_virtual, kmem_pagefree_virtual): New functions. |
| 10224 |
(kmem_pagealloc, kmem_pagefree, kmem_slab_create, kmem_slab_destroy, |
| 10225 |
kalloc, kfree): Update to use the new pagealloc functions. |
| 10226 |
(kmem_cache_compute_sizes): Update the algorithm used to determine slab |
| 10227 |
size and other cache properties. |
| 10228 |
(kmem_slab_use_tree, kmem_cache_free_to_slab, host_slab_info): Update to |
| 10229 |
correctly use the cache flags. |
| 10230 |
(slab_init): Add KMEM_CACHE_DIRECTMAP to the kmem_slab_cache init flags. |
| 10231 |
* kern/slab.h (KMEM_CACHE_VERIFY): Change value. |
| 10232 |
(KMEM_CACHE_DIRECTMAP): New macro. |
| 10233 |
* vm/vm_map.c (vm_map_init): Add KMEM_CACHE_DIRECTMAP to the |
| 10234 |
vm_map_entry_cache init flags. |
| 10235 |
|
| 10236 |
2016-02-16 Richard Braun <[email protected]> |
| 10237 |
|
| 10238 |
Avoid panics on physical memory exhaustion |
| 10239 |
* vm/vm_resident (vm_page_grab): Return NULL instead of calling panic |
| 10240 |
on memory exhaustion. |
| 10241 |
|
| 10242 |
2016-02-14 Samuel Thibault <[email protected]> |
| 10243 |
|
| 10244 |
Reduce VM_KERNEL_MAP_SIZE |
| 10245 |
Now that KMEM_MAP_SIZE (128MiB) has been removed. |
| 10246 |
|
| 10247 |
* i386/i386/vm_param.h (VM_KERNEL_MAP_SIZE): Decrease by 128MiB. |
| 10248 |
|
| 10249 |
2016-02-07 Justus Winter <[email protected]> |
| 10250 |
|
| 10251 |
vm: initialize external maps |
| 10252 |
* vm/vm_external.c (vm_external_create): Initialize allocated maps. |
| 10253 |
|
| 10254 |
2016-02-07 Richard Braun <[email protected]> |
| 10255 |
|
| 10256 |
Fix page cache accounting |
| 10257 |
* vm/vm_object.c (vm_object_bootstrap): Set template object `cached' |
| 10258 |
member to FALSE. |
| 10259 |
(vm_object_cache_add, vm_object_cache_remove): New functions. |
| 10260 |
(vm_object_collect, vm_object_deallocate, vm_object_lookup, |
| 10261 |
vm_object_lookup_name, vm_object_destroy): Use new cache management functions. |
| 10262 |
(vm_object_terminate, vm_object_collapse): Make sure object isn't cached. |
| 10263 |
* vm/vm_object.h (struct vm_object): New `cached' member. |
| 10264 |
|
| 10265 |
2016-02-07 Justus Winter <[email protected]> |
| 10266 |
|
| 10267 |
vm: allocate a large map for all objects larger than SMALL_SIZE |
| 10268 |
* vm/vm_external.c (vm_external_create): Allocate a large map for all |
| 10269 |
objects larger than SMALL_SIZE. 'vm_external_state_{g,s}et' can deal |
| 10270 |
with offsets larger than 'LARGE_SIZE', so currently objects larger |
| 10271 |
than 'LARGE_SIZE' are missing out on the optimization. |
| 10272 |
|
| 10273 |
vm: remove unused field from struct vm_external |
| 10274 |
* vm/vm_external.h (struct vm_external): Remove unused field |
| 10275 |
'existence_count'. |
| 10276 |
|
| 10277 |
2016-02-07 Richard Braun <[email protected]> |
| 10278 |
|
| 10279 |
Remove kmem map |
| 10280 |
Now that the slab allocator doesn't use kernel virtual memory any more, |
| 10281 |
this map has become irrelevant. |
| 10282 |
|
| 10283 |
* kern/slab.c (KMEM_MAP_SIZE): Remove macro. |
| 10284 |
(kmem_map_store, kmem_map): Remove variables. |
| 10285 |
(slab_init): Remove call kmem_submap. |
| 10286 |
* kern/slab.h (kmem_map): Remove extern declaration. |
| 10287 |
|
| 10288 |
2016-02-06 Richard Braun <[email protected]> |
| 10289 |
|
| 10290 |
Change computation of slab size |
| 10291 |
Allocating directly out of the physical memory allocator makes the slab |
| 10292 |
allocator vulnerable to failures due to fragmentation. This change makes |
| 10293 |
the slab allocator use the lowest possible size for its slabs to reduce |
| 10294 |
the chance of contiguous allocation failures. |
| 10295 |
|
| 10296 |
* kern/slab.c (KMEM_MIN_BUFS_PER_SLAB, KMEM_SLAB_SIZE_THRESHOLD): Remove |
| 10297 |
macros. |
| 10298 |
(kmem_cache_compute_sizes): Update the algorithm used to determine slab |
| 10299 |
size and other cache properties. |
| 10300 |
|
| 10301 |
2016-02-02 Richard Braun <[email protected]> |
| 10302 |
|
| 10303 |
Fix various memory managment errors |
| 10304 |
A few errors were introduced in the latest changes. |
| 10305 |
|
| 10306 |
o Add VM_PAGE_WAIT calls around physical allocation attempts in case of |
| 10307 |
memory exhaustion. |
| 10308 |
o Fix stack release. |
| 10309 |
o Fix memory exhaustion report. |
| 10310 |
o Fix free page accounting. |
| 10311 |
|
| 10312 |
* kern/slab.c (kmem_pagealloc, kmem_pagefree): New functions |
| 10313 |
(kmem_slab_create, kmem_slab_destroy, kalloc, kfree): Use kmem_pagealloc |
| 10314 |
and kmem_pagefree instead of the raw page allocation functions. |
| 10315 |
(kmem_cache_compute_sizes): Don't store slab order. |
| 10316 |
* kern/slab.h (struct kmem_cache): Remove `slab_order' member. |
| 10317 |
* kern/thread.c (stack_alloc): Call VM_PAGE_WAIT in case of memory |
| 10318 |
exhaustion. |
| 10319 |
(stack_collect): Call vm_page_free_contig instead of kmem_free to |
| 10320 |
release pages. |
| 10321 |
* vm/vm_page.c (vm_page_seg_alloc): Fix memory exhaustion report. |
| 10322 |
(vm_page_setup): Don't update vm_page_free_count. |
| 10323 |
(vm_page_free_pa): Check page parameter. |
| 10324 |
(vm_page_mem_free): New function. |
| 10325 |
* vm/vm_page.h (vm_page_free_count): Remove extern declaration. |
| 10326 |
(vm_page_mem_free): New prototype. |
| 10327 |
* vm/vm_pageout.c: Update comments not to refer to vm_page_free_count. |
| 10328 |
(vm_pageout_scan, vm_pageout_continue, vm_pageout): Use vm_page_mem_free |
| 10329 |
instead of vm_page_free_count, update types accordingly. |
| 10330 |
* vm/vm_resident.c (vm_page_free_count, vm_page_free_count_minimum): |
| 10331 |
Remove variables. |
| 10332 |
(vm_page_free_avail): New variable. |
| 10333 |
(vm_page_bootstrap, vm_page_grab, vm_page_release, vm_page_grab_contig, |
| 10334 |
vm_page_free_contig, vm_page_wait): Use vm_page_mem_free instead of vm_page_free_count, |
| 10335 |
update types accordingly, don't set vm_page_free_count_minimum. |
| 10336 |
* vm/vm_user.c (vm_statistics): Likewise. |
| 10337 |
|
| 10338 |
2016-02-02 Richard Braun <[email protected]> |
| 10339 |
|
| 10340 |
Fix unused variable warnings |
| 10341 |
* i386/i386at/biosmem.c (biosmem_bootstrap): Remove unused variables. |
| 10342 |
|
| 10343 |
2016-02-02 Richard Braun <[email protected]> |
| 10344 |
|
| 10345 |
Stack the slab allocator directly on top of the physical allocator |
| 10346 |
In order to increase the amount of memory available for kernel objects, |
| 10347 |
without reducing the amount of memory available for user processes, |
| 10348 |
a new allocation strategy is introduced in this change. |
| 10349 |
|
| 10350 |
Instead of allocating kernel objects out of kernel virtual memory, |
| 10351 |
the slab allocator directly uses the direct mapping of physical |
| 10352 |
memory as its backend. This largely increases the kernel heap, and |
| 10353 |
removes the need for address translation updates. |
| 10354 |
|
| 10355 |
In order to allow this strategy, an assumption made by the interrupt |
| 10356 |
code had to be removed. In addition, kernel stacks are now also |
| 10357 |
allocated directly from the physical allocator. |
| 10358 |
|
| 10359 |
* i386/i386/db_trace.c: Include i386at/model_dep.h |
| 10360 |
(db_i386_reg_value): Update stack check. |
| 10361 |
* i386/i386/locore.S (trap_from_kernel, all_intrs, |
| 10362 |
int_from_intstack): Update interrupt handling. |
| 10363 |
* i386/i386at/model_dep.c: Include kern/macros.h. |
| 10364 |
(int_stack, int_stack_base): New variables. |
| 10365 |
(int_stack_high): Remove variable. |
| 10366 |
(i386at_init): Update interrupt stack initialization. |
| 10367 |
* i386/i386at/model_dep.h: Include i386/vm_param.h. |
| 10368 |
(int_stack_top, int_stack_base): New extern declarations. |
| 10369 |
(ON_INT_STACK): New macro. |
| 10370 |
* kern/slab.c: Include vm/vm_page.h |
| 10371 |
(KMEM_CF_NO_CPU_POOL, KMEM_CF_NO_RECLAIM): Remove macros. |
| 10372 |
(kmem_pagealloc, kmem_pagefree, kalloc_pagealloc, kalloc_pagefree): Remove |
| 10373 |
functions. |
| 10374 |
(kmem_slab_create): Allocate slab pages directly from the physical allocator. |
| 10375 |
(kmem_slab_destroy): Release slab pages directly to the physical allocator. |
| 10376 |
(kmem_cache_compute_sizes): Update the slab size computation algorithm to |
| 10377 |
return a power-of-two suitable for the physical allocator. |
| 10378 |
(kmem_cache_init): Remove custom allocation function pointers. |
| 10379 |
(kmem_cache_reap): Remove check on KMEM_CF_NO_RECLAIM. |
| 10380 |
(slab_init, kalloc_init): Update calls to kmem_cache_init. |
| 10381 |
(kalloc, kfree): Directly fall back on the physical allocator for big |
| 10382 |
allocation sizes. |
| 10383 |
(host_slab_info): Remove checks on defunct flags. |
| 10384 |
* kern/slab.h (kmem_slab_alloc_fn_t, kmem_slab_free_fn_t): Remove types. |
| 10385 |
(struct kmem_cache): Add `slab_order' member, remove `slab_alloc_fn' and |
| 10386 |
`slab_free_fn' members. |
| 10387 |
(KMEM_CACHE_NOCPUPOOL, KMEM_CACHE_NORECLAIM): Remove macros. |
| 10388 |
(kmem_cache_init): Update prototype, remove custom allocation functions. |
| 10389 |
* kern/thread.c (stack_alloc): Allocate stacks from the physical allocator. |
| 10390 |
* vm/vm_map.c (vm_map_kentry_cache, kentry_data, kentry_data_size): Remove |
| 10391 |
variables. |
| 10392 |
(kentry_pagealloc): Remove function. |
| 10393 |
(vm_map_init): Update calls to kmem_cache_init, remove initialization of |
| 10394 |
vm_map_kentry_cache. |
| 10395 |
(vm_map_create, _vm_map_entry_dispose, vm_map_copyout): Unconditionnally |
| 10396 |
use vm_map_entry_cache. |
| 10397 |
* vm/vm_map.h (kentry_data, kentry_data_size, kentry_count): Remove extern |
| 10398 |
declarations. |
| 10399 |
* vm/vm_page.h (VM_PT_STACK): New page type. |
| 10400 |
* device/dev_lookup.c (dev_lookup_init): Update calls to kmem_cache_init. |
| 10401 |
* device/dev_pager.c (dev_pager_hash_init, device_pager_init): Likewise. |
| 10402 |
* device/ds_routines.c (mach_device_init, mach_device_trap_init): Likewise. |
| 10403 |
* device/net_io.c (net_io_init): Likewise. |
| 10404 |
* i386/i386/fpu.c (fpu_module_init): Likewise. |
| 10405 |
* i386/i386/machine_task.c (machine_task_module_init): Likewise. |
| 10406 |
* i386/i386/pcb.c (pcb_module_init): Likewise. |
| 10407 |
* i386/intel/pmap.c (pmap_init): Likewise. |
| 10408 |
* ipc/ipc_init.c (ipc_bootstrap): Likewise. |
| 10409 |
* ipc/ipc_marequest.c (ipc_marequest_init): Likewise. |
| 10410 |
* kern/act.c (global_act_init): Likewise. |
| 10411 |
* kern/processor.c (pset_sys_init): Likewise. |
| 10412 |
* kern/rdxtree.c (rdxtree_cache_init): Likewise. |
| 10413 |
* kern/task.c (task_init): Likewise. |
| 10414 |
* vm/memory_object_proxy.c (memory_object_proxy_init): Likewise. |
| 10415 |
* vm/vm_external.c (vm_external_module_initialize): Likewise. |
| 10416 |
* vm/vm_fault.c (vm_fault_init): Likewise. |
| 10417 |
* vm/vm_object.c (vm_object_bootstrap): Likewise. |
| 10418 |
* vm/vm_resident.c (vm_page_module_init): Likewise. |
| 10419 |
(vm_page_bootstrap): Remove initialization of kentry_data. |
| 10420 |
|
| 10421 |
2016-01-30 Richard Braun <[email protected]> |
| 10422 |
|
| 10423 |
Fix early page allocation on Xen |
| 10424 |
The Xen target was completely ignored when porting the biosmem and |
| 10425 |
vm_page physical memory allocators. Let's fix this. |
| 10426 |
|
| 10427 |
* i386/Makefrag.am (libkernel_a_SOURCES): Add i386/i386at/biosmem.{c,h}. |
| 10428 |
* i386/i386/vm_page.h (VM_PAGE_MAX_SEGS, VM_PAGE_DIRECTMAP_LIMIT, |
| 10429 |
VM_PAGE_HIGHMEM_LIMIT): Define for Xen. |
| 10430 |
* i386/i386at/biosmem.c: Include mach/xen.h. |
| 10431 |
(biosmem_panic_setup_msg): Comment out for Xen since it's unused. |
| 10432 |
(biosmem_map_build, biosmem_map_build_simple, |
| 10433 |
biosmem_save_cmdline_sizes, biosmem_find_boot_data_update, |
| 10434 |
biosmem_find_boot_data, biosmem_setup_allocator): Likewise. |
| 10435 |
(biosmem_bootstrap_common): New function. |
| 10436 |
(biosmem_xen_bootstrap): Likewise, for Xen. |
| 10437 |
(biosmem_bootalloc): Perform bottom-up allocations for Xen. |
| 10438 |
* i386/i386at/biosmem.h (biosmem_xen_bootstrap): New prototype, for Xen. |
| 10439 |
* i386/i386at/model_dep.c (i386at_init): Call biosmem_xen_bootstrap instead |
| 10440 |
of biosmem_bootstrap on Xen. |
| 10441 |
* i386/include/mach/i386/vm_types.h (phys_addr_t): Define as an unsigned |
| 10442 |
64-bits integer when PAE is enabled. |
| 10443 |
|
| 10444 |
2016-01-29 Samuel Thibault <[email protected]> |
| 10445 |
|
| 10446 |
Disable probing legacy IDE when AHCI driver works |
| 10447 |
* linux/src/drivers/block/ide.c (default_io_base): Do not qualify const. |
| 10448 |
(ide_disable_base): New function. |
| 10449 |
* linux/dev/include/linux/blk.h (ide_disable_base): New declaration. |
| 10450 |
* linux/dev/drivers/block/ahci.c (ahci_probe_dev): Call ide_disable_base |
| 10451 |
with each I/O BAR of the AHCI PCI card. |
| 10452 |
|
| 10453 |
Use PCI macros |
| 10454 |
* linux/dev/drivers/block/ahci.c (ahci_probe_dev): Use |
| 10455 |
PCI_BASE_ADDRESS_SPACE_IO and PCI_BASE_ADDRESS_MEM_MASK macros instead of |
| 10456 |
hardcoded values. |
| 10457 |
|
| 10458 |
ahci: print PCI bus/dev/fun in hexadecimal |
| 10459 |
* linux/dev/drivers/block/ahci.c: Print PCI bus/dev/fun number in |
| 10460 |
hexadecimal |
| 10461 |
|
| 10462 |
2016-01-29 Samuel Thibault <[email protected]> |
| 10463 |
|
| 10464 |
Fallback on direct PCI access when no BIOS32 is available |
| 10465 |
Some hardware start shippping with no BIOS32 at all, and we'll have to |
| 10466 |
implement ACPI to get the address of the mmconfig table. In the meanwhile, |
| 10467 |
we can hope that the direct probe works (it does on HP820 for instance). |
| 10468 |
|
| 10469 |
* linux/src/arch/i386/kernel/bios32.c (pcibios_init): Also try |
| 10470 |
check_direct_pci() when bios32 probing failed. |
| 10471 |
|
| 10472 |
2016-01-23 Richard Braun <[email protected]> |
| 10473 |
|
| 10474 |
Merge branch 'rbraun/vm_page' |
| 10475 |
|
| 10476 |
2016-01-23 Richard Braun <[email protected]> |
| 10477 |
|
| 10478 |
Use vm_page as the physical memory allocator |
| 10479 |
This change replaces the historical page allocator with a buddy allocator |
| 10480 |
implemented in vm/vm_page.c. This allocator allows easy contiguous allocations |
| 10481 |
and also manages memory inside segments. In a future change, these segments |
| 10482 |
will be used to service requests with special constraints, such as "usable |
| 10483 |
for 16-bits DMA" or "must be part of the direct physical mapping". |
| 10484 |
|
| 10485 |
* Makefrag.am (libkernel_a_SOURCES): Add vm/vm_page.c. |
| 10486 |
* i386/Makefrag.am (libkernel_a_SOURCES): Add i386/i386at/biosmem.{c,h}. |
| 10487 |
* i386/i386/vm_param.h: Include kern/macros.h. |
| 10488 |
(VM_PAGE_DMA_LIMIT, VM_PAGE_MAX_SEGS, VM_PAGE_DMA32_LIMIT, |
| 10489 |
VM_PAGE_DIRECTMAP_LIMIT, VM_PAGE_HIGHMEM_LIMIT, VM_PAGE_SEG_DMA, |
| 10490 |
VM_PAGE_SEG_DMA32, VM_PAGE_SEG_DIRECTMAP, VM_PAGE_SEG_HIGHMEM): New macros. |
| 10491 |
* i386/i386at/model_dep.c: Include i386at/biosmem.h. |
| 10492 |
(avail_next, avail_remaining): Remove variables. |
| 10493 |
(mem_size_init): Remove function. |
| 10494 |
(i386at_init): Initialize and use the biosmem module for early physical |
| 10495 |
memory management. |
| 10496 |
(pmap_free_pages): Return phys_last_addr instead of avail_remaining. |
| 10497 |
(init_alloc_aligned): Turn into a wrapper for biosmem_bootalloc. |
| 10498 |
(pmap_grab_page): Directly call init_alloc_aligned instead of pmap_next_page. |
| 10499 |
* i386/include/mach/i386/vm_types.h (phys_addr_t): New type. |
| 10500 |
* kern/bootstrap.c (free_bootstrap_pages): New function. |
| 10501 |
(bootstrap_create): Call free_bootstrap_pages instead of vm_page_create. |
| 10502 |
* kern/cpu_number.h (CPU_L1_SIZE): New macro. |
| 10503 |
* kern/slab.h: Include kern/cpu_number.h. |
| 10504 |
(CPU_L1_SIZE): Remove macro, moved to kern/cpu_number.h. |
| 10505 |
* kern/startup.c (setup_main): Change the value of machine_info.memory_size. |
| 10506 |
* linux/dev/glue/glue.h (alloc_contig_mem, free_contig_mem): Update prototypes. |
| 10507 |
* linux/dev/glue/kmem.c (linux_kmem_init): Don't use defunct page queue. |
| 10508 |
* linux/dev/init/main.c (linux_init): Don't free unused memory. |
| 10509 |
(alloc_contig_mem, free_contig_mem): Turn into wrappers for the vm_page |
| 10510 |
allocator. |
| 10511 |
* linux/pcmcia-cs/glue/ds.c (PAGE_SHIFT): Don't undefine. |
| 10512 |
* vm/pmap.h (pmap_startup, pmap_next_page): Remove prototypes. |
| 10513 |
* vm/vm_fault.c (vm_fault_page): Update calls to vm_page_convert. |
| 10514 |
* vm/vm_init.c (vm_mem_init): Call vm_page_info_all. |
| 10515 |
* vm/vm_object.c (vm_object_page_map): Update call to vm_page_init. |
| 10516 |
* vm/vm_page.h (vm_page_queue_free): Remove variable declaration. |
| 10517 |
(vm_page_create, vm_page_release_fictitious, vm_page_release): Remove |
| 10518 |
declarations. |
| 10519 |
(vm_page_convert, vm_page_init): Update prototypes. |
| 10520 |
(vm_page_grab_contig, vm_page_free_contig): New prototypes. |
| 10521 |
* vm/vm_resident.c (vm_page_template, vm_page_queue_free, |
| 10522 |
vm_page_big_pagenum): Remove variables. |
| 10523 |
(vm_page_bootstrap): Update and call vm_page_setup. |
| 10524 |
(pmap_steal_memory): Update and call vm_page_bootalloc. |
| 10525 |
(pmap_startup, vm_page_create, vm_page_grab_contiguous_pages): Remove functions. |
| 10526 |
(vm_page_init_template, vm_page_grab_contig, |
| 10527 |
vm_page_free_contig): New functions. |
| 10528 |
(vm_page_init): Update and call vm_page_init_template. |
| 10529 |
(vm_page_release_fictitious): Make static. |
| 10530 |
(vm_page_more_fictitious): Update call to vm_page_init. |
| 10531 |
(vm_page_convert): Rewrite to comply with vm_page. |
| 10532 |
(vm_page_grab): Update and call vm_page_alloc_pa. |
| 10533 |
(vm_page_release): Update and call vm_page_free_pa. |
| 10534 |
|
| 10535 |
2016-01-23 Richard Braun <[email protected]> |
| 10536 |
|
| 10537 |
Import the vm_page module from X15 and relicense to GPLv2+ |
| 10538 |
* vm/vm_page.c: New File. |
| 10539 |
* vm/vm_page.h: Merge vm_page.h from X15. |
| 10540 |
(struct vm_page): New members: node, type, seg_index, order, |
| 10541 |
vm_page_header. Turn phys_addr into a phys_addr_t. |
| 10542 |
|
| 10543 |
Import the biosmem module from X15 and relicense to GPLv2+ |
| 10544 |
* i386/i386at/biosmem.c: New file. |
| 10545 |
* i386/i386at/biosmem.h: Likewise. |
| 10546 |
|
| 10547 |
Import the multiboot module from X15 and relicense to GPLv2+ |
| 10548 |
* i386/include/mach/i386/multiboot.h: Merge multiboot.h from X15. |
| 10549 |
|
| 10550 |
Import the elf module from X15 and relicense to GPLv2+ |
| 10551 |
* i386/i386at/elf.h: New file. |
| 10552 |
|
| 10553 |
Import the log2 module from X15 and relicense to GPLv2+ |
| 10554 |
* kern/log2.h: New file. |
| 10555 |
|
| 10556 |
2016-01-14 Samuel Thibault <[email protected]> |
| 10557 |
|
| 10558 |
Fix build with gcc-6 |
| 10559 |
* linux/src/include/linux/compiler-gcc6.h: New file. |
| 10560 |
|
| 10561 |
2016-01-13 Samuel Thibault <[email protected]> |
| 10562 |
|
| 10563 |
Increase kernel map size |
| 10564 |
To avoid running out of memory due to the increased consumption by radix |
| 10565 |
trees which replaced arrays. |
| 10566 |
|
| 10567 |
* kern/slab.c (KMEM_MAP_SIZE): Bump from 96MiB to 128MiB. |
| 10568 |
* i386/i386/vm_param.h (VM_KERNEL_MAP_SIZE): Add 32MiB accordingly. |
| 10569 |
|
| 10570 |
2016-01-02 Richard Braun <[email protected]> |
| 10571 |
|
| 10572 |
Completely disable strict aliasing |
| 10573 |
* Makefile.am (AM_CFLAGS): Add -fno-strict-aliasing. |
| 10574 |
|
| 10575 |
Fix object page list type |
| 10576 |
* vm/vm_object.h (struct vm_object): Use queue_head_t instead of |
| 10577 |
queue_chain_t as the page list type. |
| 10578 |
|
| 10579 |
2016-01-02 Flavio Cruz <[email protected]> |
| 10580 |
|
| 10581 |
replace extern with static in some linux code |
| 10582 |
* linux/dev/include/linux/fs.h: Replace extern with static. |
| 10583 |
* linux/dev/include/linux/locks.h: Likewise. |
| 10584 |
* linux/dev/include/linux/mm.h: Likewise. |
| 10585 |
* linux/src/drivers/net/e2100.c: Likewise |
| 10586 |
* linux/src/include/asm-i386/termios.h: Likewise. |
| 10587 |
* linux/src/include/linux/interrupt.h: Likewise. |
| 10588 |
* linux/src/include/net/route.h: Likewise. |
| 10589 |
* linux/src/include/net/sock.h: Likewise. |
| 10590 |
|
| 10591 |
fix t_addr assignment in lpropen |
| 10592 |
* i386/i386at/lpr.c (lpropen): Fix assignment to t_addr. |
| 10593 |
|
| 10594 |
2016-01-01 Flavio Cruz <[email protected]> |
| 10595 |
|
| 10596 |
remove unnused disk code and headers |
| 10597 |
* i386/Makefrag.am: Remove disk.h. |
| 10598 |
* i386/i386at/disk.h: Remove unnused definitions. |
| 10599 |
* i386/include/mach/i386/disk.h: Remove. |
| 10600 |
* linux/dev/glue/block.c (device_get_status): Remove V_GETPARMS case. |
| 10601 |
|
| 10602 |
fix some compiler warnings in gnumach |
| 10603 |
* linux/dev/glue/block.c (out): Cast to device_t. |
| 10604 |
* linux/dev/init/main.c (alloc_contig_mem): Initialize addr and cast return value to void *. |
| 10605 |
* i386/i386/phys.c (pmap_copy_page): Initialize src_map. |
| 10606 |
* i386/intel/pmap.c: Include i386at/model_dep.h. |
| 10607 |
* kern/mach_clock.c (mapable_time_init): Cast to void *. |
| 10608 |
|
| 10609 |
2016-01-01 Richard Braun <[email protected]> |
| 10610 |
|
| 10611 |
Slightly improve map debugging readability |
| 10612 |
* vm/vm_object.c (vm_object_print): Break line so all debugging output fits |
| 10613 |
in a page. |
| 10614 |
|
| 10615 |
2015-12-29 Richard Braun <[email protected]> |
| 10616 |
|
| 10617 |
Improve map debugging readability |
| 10618 |
* vm/vm_map.c (vm_map_print): Reduce indentation, break lines earlier. |
| 10619 |
(vm_map_copy_print): Likewise. |
| 10620 |
* vm/vm_object.c (vm_object_print): Likewise. |
| 10621 |
|
| 10622 |
Improve VM map debugging |
| 10623 |
* vm/vm_map.c (vm_map_print): Update arguments to conform to ddb |
| 10624 |
protocol. |
| 10625 |
* vm/vm_print.h (vm_map_print): Likewise for prototype. |
| 10626 |
|
| 10627 |
Fix vm_map_copyout |
| 10628 |
* vm/vm_map.c (vm_map_copyout): Reinitialize copy map red-black tree. |
| 10629 |
|
| 10630 |
2015-12-11 Samuel Thibault <[email protected]> |
| 10631 |
|
| 10632 |
Fix boot under kvm in linux 4.3 |
| 10633 |
* i386/i386/locore.S (discover_x86_cpu_type): Disable Cyrix CPU discovery. |
| 10634 |
|
| 10635 |
2015-11-29 Samuel Thibault <[email protected]> |
| 10636 |
|
| 10637 |
Nicer out of memory condition reporting |
| 10638 |
* vm/vm_object.c (_vm_object_allocate): Return 0 immediately when |
| 10639 |
kmem_cache_alloc returned 0. |
| 10640 |
(vm_object_allocate): Panic when _vm_object_allocate returns 0. |
| 10641 |
|
| 10642 |
2015-11-27 Samuel Thibault <[email protected]> |
| 10643 |
|
| 10644 |
Fix wired accounting |
| 10645 |
* vm/vm_map.c (vm_map_pageable_common): Put back wired_count decrementation |
| 10646 |
into user_wired_count test. |
| 10647 |
|
| 10648 |
Fix ahci unit MAX_PORTS check |
| 10649 |
* linux/dev/drivers/block/ahci.c (ahci_do_request): Fix checking unit |
| 10650 |
against MAX_PORTS. |
| 10651 |
|
| 10652 |
Fix bound |
| 10653 |
* i386/i386at/lpr.c (lprprobe): Fix checking unit against NLPR. |
| 10654 |
|
| 10655 |
Fix missing format in printk |
| 10656 |
* linux/dev/drivers/block/ahci.c (ahci_probe_dev): Add missing format. |
| 10657 |
|
| 10658 |
2015-10-31 Thomas Schwinge <[email protected]> |
| 10659 |
|
| 10660 |
GNU Mach 1.6 |
| 10661 |
* version.m4 (AC_PACKAGE_VERSION): Set to 1.6. |
| 10662 |
* NEWS: Finalize for 1.6. |
| 10663 |
|
| 10664 |
2015-10-31 Thomas Schwinge <[email protected]> |
| 10665 |
|
| 10666 |
Rework *.msgids handling when neither client nor server stubs are required |
| 10667 |
Originally added in commit 255c47e669819f153c722c98a230f6fe4e6ece08, but "make |
| 10668 |
distcheck" didn't like that: |
| 10669 |
|
| 10670 |
[...] |
| 10671 |
ERROR: files left in build directory after distclean: |
| 10672 |
./ipc/notify.msgids |
| 10673 |
Makefile:7489: recipe for target 'distcleancheck' failed |
| 10674 |
make[1]: *** [distcleancheck] Error 1 |
| 10675 |
make[1]: Leaving directory '[...]/gnumach/release.build/gnumach-1.5/_build/sub' |
| 10676 |
Makefile:7416: recipe for target 'distcheck' failed |
| 10677 |
make: *** [distcheck] Error 1 |
| 10678 |
|
| 10679 |
Instead of special-casing that, generalize the Makefile rules. |
| 10680 |
|
| 10681 |
* Makefrag.am (nodist_lib_dep_tr_for_defs_a_SOURCES): Add |
| 10682 |
ipc/notify.none.defs.c. |
| 10683 |
(nodist_libkernel_a_SOURCES): Add ipc/notify.none.msgids. |
| 10684 |
(gnumach.msgids): Remove ipc/notify.msgids prerequisite. |
| 10685 |
* Makerules.mig.am (%.msgids): Remove rule, and instead... |
| 10686 |
(%.none.defs.c, %.none.msgids): ... add these rules. |
| 10687 |
|
| 10688 |
2015-10-05 Justus Winter <[email protected]> |
| 10689 |
|
| 10690 |
Update NEWS file |
| 10691 |
|
| 10692 |
2015-10-05 Samuel Thibault <[email protected]> |
| 10693 |
|
| 10694 |
Fix time going back in Xen case |
| 10695 |
when backward time correction happens to get bigger than the tick duration. |
| 10696 |
|
| 10697 |
* kern/mach_clock.c (clock_interrupt): When `tickdelta' is bigger than `usec', |
| 10698 |
truncate it to `usec-1'. |
| 10699 |
|
| 10700 |
2015-10-05 Joshua Branson <[email protected]> |
| 10701 |
|
| 10702 |
Add generated mach documentation files to gitignore |
| 10703 |
* .gitignore: Add doc/mach.aux doc/mach.cp doc/mach.cps doc/mach.fn |
| 10704 |
doc/mach.fns doc/mach.ky doc/mach.log doc/mach.pdf doc/mach.pg doc/mach.toc |
| 10705 |
doc/mach.tp doc/mach.vr. |
| 10706 |
|
| 10707 |
2015-09-29 Justus Winter <[email protected]> |
| 10708 |
|
| 10709 |
kern/slab: print total used and reclaimable memory |
| 10710 |
* kern/slab.c (_slab_info): Print total used and reclaimable memory. |
| 10711 |
|
| 10712 |
kern/slab: include flags in the slab information |
| 10713 |
* kern/slab.c (_slab_info): Include flags in the slab information. |
| 10714 |
|
| 10715 |
ddb: fix line formatting |
| 10716 |
* ddb/db_output.c (db_putchar): Fix off-by-one, allowing one more |
| 10717 |
character to be printed before the newline is inserted. |
| 10718 |
|
| 10719 |
ddb: add new command `show slabinfo' |
| 10720 |
* ddb/db_command.c (db_show_cmds): Add `slabinfo'. |
| 10721 |
* kern/slab.c (slab_info): Generalize so that it can be used with |
| 10722 |
different printf-like functions, and turn it into a static function. |
| 10723 |
(slab_info): New wrapper retaining the old behaviour. |
| 10724 |
(db_show_slab_info): New wrapper that uses `db_printf' instead. |
| 10725 |
* kern/slab.h (db_show_slab_info): New declaration. |
| 10726 |
|
| 10727 |
2015-09-27 Justus Winter <[email protected]> |
| 10728 |
|
| 10729 |
i386: trace syscalls of a single task |
| 10730 |
* i386/i386/debug_i386.c (syscall_trace_task): New variable. |
| 10731 |
(syscall_trace_print): If set, trace only syscalls from this task. |
| 10732 |
|
| 10733 |
i386: improve syscall tracing |
| 10734 |
* kern/syscall_sw.h (mach_trap_t): Turn unused field into `mach_trap_name'. |
| 10735 |
(MACH_TRAP, MACH_TRAP_STACK): Record name. |
| 10736 |
* i386/i386/debug_i386.c (syscall_trace_print): Use the name and |
| 10737 |
format the arguments to look like c. |
| 10738 |
|
| 10739 |
Fix build with -DDEBUG |
| 10740 |
* device/cirbuf.c: Add missing include. |
| 10741 |
* i386/i386/debug.h (dump_ss): Hide declaration from assembler. |
| 10742 |
* i386/i386/debug_i386.c: Fix include. |
| 10743 |
* kern/sched_prim.h: Add missing include, fix declaration. |
| 10744 |
|
| 10745 |
kern/bootstrap: drop into the debugger |
| 10746 |
* kern/bootstrap.c (boot_script_prompt_task_resume): Drop into the |
| 10747 |
debugger instead of merely waiting for return using `safe_gets', which |
| 10748 |
disables interrupts, making it impossible to break into the debugger |
| 10749 |
using the magic keys. |
| 10750 |
|
| 10751 |
2015-09-19 Flávio Cruz <[email protected]> |
| 10752 |
|
| 10753 |
Add macros to convert between time_value_t and timespec |
| 10754 |
* include/mach/time_value.h (TIME_VALUE_TO_TIMESPEC, |
| 10755 |
TIMESPEC_TO_TIME_VALUE): New macros |
| 10756 |
|
| 10757 |
2015-09-07 Justus Winter <[email protected]> |
| 10758 |
|
| 10759 |
kern: use proper memory fences when handling the mapped time |
| 10760 |
* include/mach/time_value.h (struct mapped_time_value): Adjust comment. |
| 10761 |
* kern/mach_clock.c (mtime): Likewise. Also make it volatile. |
| 10762 |
(update_mapped_time): Use full hardware barriers. |
| 10763 |
(read_mapped_time): New macro with proper fences. |
| 10764 |
(record_time_stamp, host_get_time): Use the new macro. |
| 10765 |
|
| 10766 |
2015-09-07 Justus Winter <[email protected]> |
| 10767 |
|
| 10768 |
kern: fix loop reading the time value |
| 10769 |
Previously, recent versions of gcc would hoist the loads out of the |
| 10770 |
loop reading the time value. |
| 10771 |
|
| 10772 |
* kern/macros.h (access_once): New macro. |
| 10773 |
* kern/mach_clock.c (host_get_time): Use the new macro to prevent the |
| 10774 |
loads from being hoisted out of the loop. |
| 10775 |
|
| 10776 |
2015-09-07 Rik van Riel <[email protected]> |
| 10777 |
|
| 10778 |
commit fce798016c4bd2be89b86b0d343ab54505409412 |
| 10779 |
[PATCH] advansys.c buffer overflow |
| 10780 |
|
| 10781 |
The Stanford checker found an error in advansys.c, the driver |
| 10782 |
is accessing field 6 in an array[6]. Since this is the only |
| 10783 |
place where this field is accessed it should be safe to simply |
| 10784 |
remove this line. |
| 10785 |
|
| 10786 |
2015-08-31 Samuel Thibault <[email protected]> |
| 10787 |
|
| 10788 |
Reserve 64k at beginning of memory, not just 4k |
| 10789 |
Linux does this to be extra careful with some BIOSes which apparently |
| 10790 |
spuriously write between 4k and 64k. |
| 10791 |
|
| 10792 |
* i386/i386at/model_dep.c (RESERVED_BIOS): New macro. |
| 10793 |
(avail_next, mem_size_init, init_alloc_aligned): Use RESERVED_BIOS instead |
| 10794 |
of hardcoded 0x1000. |
| 10795 |
|
| 10796 |
2015-08-30 James Clarke <[email protected]> |
| 10797 |
|
| 10798 |
Fix printk not handling ANSI escape codes |
| 10799 |
* i386/i386at/kd.c (kdstart): Moved escape sequence handling to new |
| 10800 |
kd_putc_esc function. |
| 10801 |
(kd_putc_esc): New function with logic from kdstart. |
| 10802 |
(kdcnputc): Call kd_putc_esc rather than kd_putc to allow for ANSI |
| 10803 |
escape codes. |
| 10804 |
* i386/i386at/kd.h (kd_putc_esc): New function. |
| 10805 |
|
| 10806 |
2015-08-28 Flávio Cruz <[email protected]> |
| 10807 |
|
| 10808 |
Make sure the reply port's reference is released when the thread needs to be halted. |
| 10809 |
* kern/thread.h (thread_halt_self): Add continuation_t parameter. |
| 10810 |
* kern/thread.c (thread_halt_self): Pass continuation_t parameter to |
| 10811 |
thread_block instead of thread_exception_return. |
| 10812 |
* kern/ast.c (ast_taken): Pass thread_exception_return to thread_halt_self. |
| 10813 |
* kern/profile.c (profile_thread): Likewise. |
| 10814 |
* kern/exception.c (exception_no_server): Likewise. |
| 10815 |
(thread_release_and_exception_return): New function. |
| 10816 |
(exception_raise_continue_slow): Pass thread_release_and_exception_return to |
| 10817 |
thread_halt_self. |
| 10818 |
|
| 10819 |
2015-08-28 Flávio Cruz <[email protected]> |
| 10820 |
|
| 10821 |
Add a thread_no_continuation definition |
| 10822 |
to replace the use of the NULL pointer. |
| 10823 |
|
| 10824 |
* kern/sched_prim.h (thread_no_continuation): New macro. |
| 10825 |
* kern/machine.c (processor_assign, processor_doaction): Use |
| 10826 |
thread_no_continuation instead of 0. |
| 10827 |
* kern/profile.c (send_last_sample_buf): Likewise |
| 10828 |
* kern/sched_prim.c (thread_sleep, thread_invoke, thread_dispatch): |
| 10829 |
Likewise. |
| 10830 |
* kern/task.c (task_terminate, task_assign): Likewise. |
| 10831 |
* kern/thread.c (thread_suspend): Likewise. |
| 10832 |
* kern/thread.h (struct thread): Change type of swap_func field to |
| 10833 |
continuation_t. |
| 10834 |
|
| 10835 |
2015-08-20 Justus Winter <[email protected]> |
| 10836 |
|
| 10837 |
kern/bootstrap: tune locking |
| 10838 |
* kern/bootstrap.c (boot_script_exec_cmd): Avoid holding the lock |
| 10839 |
across the call to `thread_create'. |
| 10840 |
|
| 10841 |
i386: enable assertions |
| 10842 |
* i386/intel/pmap.c (pmap_page_protect): Enable assertions. |
| 10843 |
(phys_attribute_clear, phys_attribute_test): Likewise. |
| 10844 |
|
| 10845 |
kern: really zero-out unused simple lock info entries |
| 10846 |
* kern/lock.c (simple_unlock): Really zero-out unused simple lock info |
| 10847 |
entries. |
| 10848 |
|
| 10849 |
2015-08-18 Justus Winter <[email protected]> |
| 10850 |
|
| 10851 |
i386: fix panic message |
| 10852 |
* i386/intel/pmap.c (pmap_page_protect): Fix function name in panic |
| 10853 |
message. |
| 10854 |
|
| 10855 |
vm: collapse unreachable branch into assertion |
| 10856 |
* vm/vm_object.c (vm_object_collapse): Collapse unreachable branch |
| 10857 |
into assertion. |
| 10858 |
|
| 10859 |
2015-08-17 Justus Winter <[email protected]> |
| 10860 |
|
| 10861 |
kern: keep track of the writer when debugging locks |
| 10862 |
* configfrag.ac (MACH_LDEBUG): Adjust comment, we use it to sanity |
| 10863 |
check all locks now. |
| 10864 |
* kern/lock.c (lock_write): Keep track of the writer thread. |
| 10865 |
(lock_done): Clear writer. |
| 10866 |
(lock_read_to_write): Keep track of the writer thread. |
| 10867 |
(lock_write_to_read): Assert that the current thread holds the lock. |
| 10868 |
Clear writer. |
| 10869 |
(lock_try_write): Keep track of the writer thread. |
| 10870 |
(lock_try_read_to_write): Likewise. |
| 10871 |
(lock_set_recursive): Assert that the current thread holds the lock. |
| 10872 |
* kern/lock.h (struct lock): New field `writer'. |
| 10873 |
(have_read_lock, have_write_lock, have_lock): New macros that can be |
| 10874 |
used to assert that the current thread holds the given lock. If |
| 10875 |
MACH_LDEBUG is not set, they evaluate to true. |
| 10876 |
|
| 10877 |
2015-08-17 Justus Winter <[email protected]> |
| 10878 |
|
| 10879 |
kern: improve simple lock debugging |
| 10880 |
Do not bother saving the return address when acquire a simple lock. |
| 10881 |
Save the location as provided by the compiler as string instead. Also |
| 10882 |
save the lock parameter. |
| 10883 |
|
| 10884 |
* kern/lock.c (struct simple_locks_info): Drop `ra', add `expr', `loc'. |
| 10885 |
(simple_lock): Rename to `_simple_lock', add expression and location |
| 10886 |
parameters and save them. |
| 10887 |
(simple_lock_try): Likewise. |
| 10888 |
(simple_unlock): Zero-out the now unused slot in the list of taken locks. |
| 10889 |
(db_show_all_slocks): Use the new information. |
| 10890 |
* kern/lock.h (simple_lock, simple_lock_try): Provide macro versions |
| 10891 |
passing the location and expression as string. |
| 10892 |
|
| 10893 |
2015-08-17 Justus Winter <[email protected]> |
| 10894 |
|
| 10895 |
kern: disable the simple lock checks while debugging |
| 10896 |
* kern/lock.c (do_check_simple_locks): New variable. |
| 10897 |
(check_simple_locks): Make check conditional. |
| 10898 |
(check_simple_locks_{en,dis}able): New functions. |
| 10899 |
* kern/lock.h (check_simple_locks_{en,dis}able): New declarations. |
| 10900 |
* ddb/db_trap.c (db_task_trap): Disable simple lock checks. |
| 10901 |
|
| 10902 |
2015-08-15 Justus Winter <[email protected]> |
| 10903 |
|
| 10904 |
vm: fix compiler warning |
| 10905 |
* vm/vm_user.c (vm_wire): Drop unused but set variable `host'. |
| 10906 |
|
| 10907 |
vm: enable extra assertions |
| 10908 |
* vm/vm_fault.c (vm_fault_page): Enable extra assertions. |
| 10909 |
|
| 10910 |
Avoid re-defining macros |
| 10911 |
* kern/macros.h: Avoid re-defining macros. |
| 10912 |
* linux/src/include/linux/compiler-gcc.h: Likewise. |
| 10913 |
* linux/src/include/linux/compiler.h: Likewise. |
| 10914 |
|
| 10915 |
2015-07-25 Justus Winter <[email protected]> |
| 10916 |
|
| 10917 |
kern: add boot-time clock, use it for time stamps |
| 10918 |
The kernel keeps track of task and thread creation times by saving a |
| 10919 |
time stamp. Previously, the real-time clock was used for this. When |
| 10920 |
the real-time clock is changed, however, the reference frame for the |
| 10921 |
time stamps is lost. This surfaced in Hurd systems reporting |
| 10922 |
spuriously long uptimes. |
| 10923 |
|
| 10924 |
Fix this by creating a boot-time clock and use it as reference frame |
| 10925 |
for the time stamps. |
| 10926 |
|
| 10927 |
* kern/mach_clock.c (clock_boottime_offset): Create clock by keeping |
| 10928 |
track of the offset from the real-time. |
| 10929 |
(clock_boottime_update): New function. |
| 10930 |
(record_time_stamp): Use the boot-time clock for time stamps. |
| 10931 |
(read_time_stamp): New function to convert it back to real-time. |
| 10932 |
(host_set_time): Call `clock_boottime_update'. |
| 10933 |
* kern/mach_clock.h (record_time_stamp): Amend comment. |
| 10934 |
(read_time_stamp): New declaration. |
| 10935 |
* kern/task.c (task_info): Use `read_time_stamp'. |
| 10936 |
* kern/thread.c (thread_info): Likewise. |
| 10937 |
|
| 10938 |
2015-07-25 Justus Winter <[email protected]> |
| 10939 |
|
| 10940 |
include: provide time-value substraction |
| 10941 |
* include/mach/time_value.h (time_value_assert): New macro to assert |
| 10942 |
that the given value is well-formed. |
| 10943 |
(time_value_add_usec): Use the new macro. |
| 10944 |
(time_value_sub_usec): New macro. |
| 10945 |
(time_value_add): Use `time_value_add_usec'. |
| 10946 |
(time_value_sub_usec): New macro. |
| 10947 |
|
| 10948 |
kern/lock: make sure the macros are only used on simple locks |
| 10949 |
* kern/lock.h (struct slock, simple_lock_data_empty): Add field |
| 10950 |
`is_a_simple_lock'. |
| 10951 |
(simple_lock_assert): New macro that tests for `is_a_simple_lock'. |
| 10952 |
Use this macro to assert that the arguments to various other macros |
| 10953 |
are indeed simple locks. |
| 10954 |
|
| 10955 |
Disable the kernel tracing system XPR |
| 10956 |
* configfrag.ac (XPR_DEBUG): Disable tracing system. |
| 10957 |
|
| 10958 |
ipc/space: inline reference counting |
| 10959 |
* ipc/ipc_space.h (is_{reference,release}): Use the macro variant. |
| 10960 |
|
| 10961 |
Make sure the field offsets are updated |
| 10962 |
* Makerules.am: Make sure the field offsets are updated. |
| 10963 |
|
| 10964 |
2015-07-20 Justus Winter <[email protected]> |
| 10965 |
|
| 10966 |
kern/bootstrap: deallocate thread |
| 10967 |
Previously, killing the thread would fail because of the extra |
| 10968 |
reference, making task_terminate loop forever. |
| 10969 |
|
| 10970 |
* kern/bootstrap.c (boot_script_exec_command): Deallocate thread. |
| 10971 |
|
| 10972 |
2015-07-19 Justus Winter <[email protected]> |
| 10973 |
|
| 10974 |
kern/bootstrap: deallocate task |
| 10975 |
* kern/bootstrap.c (boot_script_free_task): Deallocate task. |
| 10976 |
|
| 10977 |
2015-07-18 Justus Winter <[email protected]> |
| 10978 |
|
| 10979 |
linux/net: fix build with -O0 |
| 10980 |
* linux/src/drivers/net/pci-scan.c: Avoid #erroring out. |
| 10981 |
|
| 10982 |
2015-07-18 Justus Winter <[email protected]> |
| 10983 |
|
| 10984 |
kern/printf: do not serialize printf and co |
| 10985 |
A lot of code assumes that printf is re-entrant, e.g. the pagination |
| 10986 |
code in the debugger, or any use of assert inside the console driver. |
| 10987 |
|
| 10988 |
* kern/printf.c: Drop the lock serializing calls to `_doprnt'. |
| 10989 |
(printf_init): Remove function. |
| 10990 |
* kern/printf.h (printf_init): Remove declaration. |
| 10991 |
* kern/startup.c (setup_main): Remove call to `printf_init'. |
| 10992 |
|
| 10993 |
2015-07-18 Justus Winter <[email protected]> |
| 10994 |
|
| 10995 |
kern/lock: use compiler built-in functions to get return address |
| 10996 |
* kern/lock.c (struct simple_locks_info): Fix type of `ra'. |
| 10997 |
(simple_lock, simple_lock_try): Use compiler built-in functions to get |
| 10998 |
return address. |
| 10999 |
|
| 11000 |
kern/bootstrap: fix locking |
| 11001 |
* kern/bootstrap.c (boot_script_exec_cmd): Add missing unlock. |
| 11002 |
(user_bootstrap): Likewise. |
| 11003 |
|
| 11004 |
kern/slab: fix locking |
| 11005 |
* kern/slab.c (host_slab_info): Fix locking. |
| 11006 |
|
| 11007 |
2015-07-15 Justus Winter <[email protected]> |
| 11008 |
|
| 11009 |
ipc: use a general lock to protect IPC spaces |
| 11010 |
This fixes a corruption in the radix trees representing the IPC spaces |
| 11011 |
when memory was tight. |
| 11012 |
|
| 11013 |
* ipc/ipc_space.h: Use a general lock to protect IPC spaces. |
| 11014 |
|
| 11015 |
2015-07-15 Justus Winter <[email protected]> |
| 11016 |
|
| 11017 |
ipc: fix the locking of the IPC entry allocation functions |
| 11018 |
* ipc/ipc_entry.c (ipc_entry_alloc): Assume the space is write-locked. |
| 11019 |
(ipc_entry_alloc_name): Likewise. |
| 11020 |
* ipc/ipc_object.c: Fix the locking around all call sites to the two |
| 11021 |
functions where the space was not locked before. |
| 11022 |
|
| 11023 |
i386: fix typo |
| 11024 |
* i386/intel/pmap.c: Fix typo. |
| 11025 |
|
| 11026 |
2015-07-12 Justus Winter <[email protected]> |
| 11027 |
|
| 11028 |
ipc: avoid kmem_alloc |
| 11029 |
* ipc/ipc_table.c (ipc_table_alloc): Unconditionally use `kalloc'. |
| 11030 |
(ipc_table_free): Unconditionally use `kfree'. |
| 11031 |
|
| 11032 |
2015-07-12 Justus Winter <[email protected]> |
| 11033 |
|
| 11034 |
vm: really fix traversing the list of inactive pages |
| 11035 |
Previously, the pageout code traversed the list of pages in an object |
| 11036 |
instead of the list of inactive pages. |
| 11037 |
|
| 11038 |
* vm/vm_pageout.c (vm_pageout_scan): Fix traversing the list of |
| 11039 |
inactive pages. |
| 11040 |
|
| 11041 |
2015-07-11 Justus Winter <[email protected]> |
| 11042 |
|
| 11043 |
kern: make sure the queue macros are only used on queues |
| 11044 |
This turns mistakes as the one corrected in e59f05e9 into compile-time |
| 11045 |
errors. |
| 11046 |
|
| 11047 |
* kern/queue.h: Add a new macro, queue_assert, and use it to assert |
| 11048 |
that all arguments given to the queue macros have the correct type. |
| 11049 |
* device/net_io.c (ENQUEUE_DEAD): Adapt to the fact that |
| 11050 |
`queue_next(q)' is no longer an lvalue. |
| 11051 |
|
| 11052 |
2015-07-11 Justus Winter <[email protected]> |
| 11053 |
|
| 11054 |
vm: fix traversing the list of inactive pages |
| 11055 |
Previously, the pageout code traversed the hash table chain instead of |
| 11056 |
the list of inactive pages. The code merely compiled by accident, |
| 11057 |
because the `struct page' also has a field called `next' for the hash |
| 11058 |
table chain. |
| 11059 |
|
| 11060 |
* vm/vm_pageout.c (vm_pageout_scan): Fix traversing the list of |
| 11061 |
inactive pages. |
| 11062 |
|
| 11063 |
2015-07-10 Justus Winter <[email protected]> |
| 11064 |
|
| 11065 |
vm: drop debugging remnants |
| 11066 |
* vm/vm_object.c (vm_object_terminate): Drop debugging remnants. |
| 11067 |
|
| 11068 |
kern: make printf handle long long integers |
| 11069 |
* Makefile.am (clib_routines): Steal `__umoddi3'. |
| 11070 |
* kern/printf.c (MAXBUF): Increase size. |
| 11071 |
(printnum, _doprnt): Handle long long integers. |
| 11072 |
* kern/printf.h (printnum): Adjust declaration. |
| 11073 |
|
| 11074 |
2015-07-09 Justus Winter <[email protected]> |
| 11075 |
|
| 11076 |
vm: fix panic message |
| 11077 |
* vm/vm_kern.c (kmem_init): Fix panic message. |
| 11078 |
|
| 11079 |
i386: fix line wrapping in the immediate console |
| 11080 |
* i386/i386at/immc.c (immc_cnputc): Fix line wrapping. |
| 11081 |
|
| 11082 |
kern: remove superfluous file |
| 11083 |
* kern/server_loop.ch: Remove superfluous file. |
| 11084 |
|
| 11085 |
kern: improve error handling |
| 11086 |
* kern/bootstrap.c (boot_script_exec_cmd): Improve error handling. |
| 11087 |
|
| 11088 |
2015-07-09 Samuel Thibault <[email protected]> |
| 11089 |
|
| 11090 |
Allow non-privileged tasks to wire 64KiB task memory |
| 11091 |
* doc/mach.texi (vm_wire): Document that the host port does not have to be |
| 11092 |
privileged. |
| 11093 |
* include/mach/mach_hosts.defs (vm_wire): Use mach_port_t instead of |
| 11094 |
host_priv_t. |
| 11095 |
* vm/vm_map.h (vm_map): Add user_wired field. |
| 11096 |
* vm/vm_map.c (vm_map_setup): Initialize user_wired field to 0. |
| 11097 |
(vm_map_pageable_common, vm_map_entry_delete, vm_map_copy_overwrite, |
| 11098 |
vm_map_copyout_page_list, vm_map_copyin_page_list): When switching |
| 11099 |
user_wired_count field of entry between 0 and non-0, accumulate the |
| 11100 |
corresponding size into the user_wired field of map. |
| 11101 |
* vm/vm_user.c (vm_wire): Turn host parameter into port parameter, and |
| 11102 |
inline a version of convert_port_to_host_priv which records whether the host |
| 11103 |
port is privileged or not. When it is not privileged, check whether |
| 11104 |
the additional amount to user_wired will overcome 64KiB. |
| 11105 |
|
| 11106 |
2015-07-07 Samuel Thibault <[email protected]> |
| 11107 |
|
| 11108 |
Fix build with -O0 |
| 11109 |
* linux/src/include/linux/string.h (strcpy, strncpy, strcat, strncat, |
| 11110 |
strchr, strrchr, strlen, strnlen, strcmp, strncmp, memmove, |
| 11111 |
memscan): Comment out extern declarations. |
| 11112 |
* linux/dev/include/asm-i386/string.h (strcpy, strncpy, strcat, strncat, |
| 11113 |
strcmp, strncmp, strchr, strrchr, strlen, __memcpy, __constant_memcpy, |
| 11114 |
memmove, memchr, __memset_generic, __constant_c_memset, strnlen, |
| 11115 |
__constant_c_and_count_memset, memscan): Turn extern inline into static |
| 11116 |
inline. |
| 11117 |
* linux/dev/include/linux/fs.h (mark_buffer_uptodate): Likewise. |
| 11118 |
* linux/src/include/asm-i386/bitops.h (set_bit, clear_bit, change_bit, |
| 11119 |
test_and_set_bit, test_and_clear_bit, test_and_change_bit, test_bit, |
| 11120 |
find_first_zero_bit, find_next_zero_bit, ffz, ffs): Likewise. |
| 11121 |
* linux/src/include/asm-i386/io.h (virt_to_phys, phys_to_virt, __out##s, |
| 11122 |
__in##s, ins##s, outs##s): Likewise. |
| 11123 |
* linux/src/include/asm-i386/semaphore.h (down, down_interruptible, up): |
| 11124 |
Likewise. |
| 11125 |
* linux/src/include/asm-i386/segment.h [!__OPTIMIZE]: Emit an ud2 instruction |
| 11126 |
instead of an undefined reference. |
| 11127 |
|
| 11128 |
2015-07-05 Samuel Thibault <[email protected]> |
| 11129 |
|
| 11130 |
Add missing distributed file |
| 11131 |
* Makefrag.am (EXTRA_DIST): Add ipc/notify.defs. |
| 11132 |
|
| 11133 |
2015-06-30 Justus Winter <[email protected]> |
| 11134 |
|
| 11135 |
Fix re-configuring out-of-tree builds |
| 11136 |
Previously, running `../configure ...' to reconfigure an out-of-tree |
| 11137 |
build would link `machine' to `i386/i386' instead of `../i386/i386' |
| 11138 |
(i.e. point to the build directory instead to the source) if |
| 11139 |
`i386/i386' also exists in the build directory because of a previous |
| 11140 |
build. |
| 11141 |
|
| 11142 |
* configfrag.ac: Prefix machine link target with `$srcdir'. |
| 11143 |
|
| 11144 |
2015-06-30 Samuel Thibault <[email protected]> |
| 11145 |
|
| 11146 |
Fix restoring interrupts on timeout |
| 11147 |
* linux/dev/drivers/block/ahci.c (ahci_identify): Restore flags before |
| 11148 |
returning on timeout. |
| 11149 |
|
| 11150 |
2015-06-29 Samuel Thibault <[email protected]> |
| 11151 |
|
| 11152 |
Print about powered-down AHCI ports |
| 11153 |
* linux/dev/drivers/block/ahci.c (ahci_probe_dev): Print messages when |
| 11154 |
device is present but powered down. |
| 11155 |
|
| 11156 |
2015-06-28 Justus Winter <[email protected]> |
| 11157 |
|
| 11158 |
ddb: automatically display stack traces |
| 11159 |
* ddb/db_trap.c (db_task_trap): Automatically display stack traces if |
| 11160 |
an unexpected trap occurs. |
| 11161 |
|
| 11162 |
2015-06-28 Justus Winter <[email protected]> |
| 11163 |
|
| 11164 |
i386: improve the immediate console |
| 11165 |
Improve the immediate console to the point that it can be enabled and |
| 11166 |
display e.g. assertion failures from very early on (i.e. from |
| 11167 |
`c_boot_entry'). |
| 11168 |
|
| 11169 |
* device/cons.h (romgetc, romputc): New declarations. |
| 11170 |
* i386/configfrag.ac: Add configuration variable. |
| 11171 |
* i386/i386at/conf.c (dev_name_list): Add entry. |
| 11172 |
* i386/i386at/cons_conf.c (constab): Add entry. |
| 11173 |
* i386/i386at/immc.c: Add missing includes. |
| 11174 |
(immc_cnprobe, immc_cninit, immc_cngetc, immc_romputc): New functions. |
| 11175 |
(immc_cnputc): Fix signature, use virtual addresses. |
| 11176 |
* i386/i386at/immc.h: New file. |
| 11177 |
* i386/i386at/kd.c: Use `#if ENABLE_IMMEDIATE_CONSOLE'. |
| 11178 |
* i386/i386at/kd.h (kd_setpos): Add missing declaration. |
| 11179 |
* i386/i386at/model_dep.c (c_boot_entry): Install immediate console as |
| 11180 |
early boot console. |
| 11181 |
|
| 11182 |
2015-06-26 Justus Winter <[email protected]> |
| 11183 |
|
| 11184 |
i386: add comment |
| 11185 |
* i386/i386at/model_dep.c (rebootflag): Explain flag. |
| 11186 |
|
| 11187 |
2015-06-20 Justus Winter <[email protected]> |
| 11188 |
|
| 11189 |
kern: fix error handling |
| 11190 |
This avoids calling `thread_deallocate' with an uninitialized value, |
| 11191 |
as found by the Clang Static Analyzer. |
| 11192 |
|
| 11193 |
* kern/thread.c (kernel_thread): Fix error handling. |
| 11194 |
|
| 11195 |
2015-06-09 Justus Winter <[email protected]> |
| 11196 |
|
| 11197 |
kern: add function attributes to the printf-functions |
| 11198 |
* kern/printf.h (sprintf, snprintf, vsnprintf, printf): Add the |
| 11199 |
`printf' function attribute that allows the compiler to check the |
| 11200 |
format strings and arguments. |
| 11201 |
|
| 11202 |
2015-06-05 Flávio Cruz <[email protected]> |
| 11203 |
|
| 11204 |
Fix typo |
| 11205 |
* vm/vm_kern.c (kmem_alloc_aligned): Fix typo. |
| 11206 |
|
| 11207 |
Use custom port macros. |
| 11208 |
* ipc/ipc_port.c (ipc_port_alloc_special): Use ip_alloc and ip_lock_init |
| 11209 |
macros instead of manually inlining them. |
| 11210 |
|
| 11211 |
2015-05-31 Justus Winter <[email protected]> |
| 11212 |
|
| 11213 |
ipc: fix typo |
| 11214 |
* ipc/notify.defs: Fix typo. |
| 11215 |
|
| 11216 |
Include the notify protocol in `gnumach.msgids' |
| 11217 |
* Makefrag.am (gnumach.msgids): Add `notify.msgids' as prerequisite. |
| 11218 |
* Makerules.mig.am: Add rule to generate the list of message ids when |
| 11219 |
neither the client nor the server stubs are required. |
| 11220 |
* ipc/notify.defs: New file. |
| 11221 |
|
| 11222 |
2015-05-29 Justus Winter <[email protected]> |
| 11223 |
|
| 11224 |
kern: fix argument handling |
| 11225 |
Previously, the processor argument was not checked. If called with a |
| 11226 |
non-processor argument (like a task), `processor' is set to NULL, |
| 11227 |
triggering a page fault. Likewise for the other functions. |
| 11228 |
|
| 11229 |
* kern/processor.c (processor_get_assignment): Fix argument handling. |
| 11230 |
* kern/task.c (task_get_assignment): Likewise. |
| 11231 |
* kern/thread.c (thread_get_assignment): Likewise. |
| 11232 |
|
| 11233 |
2015-05-23 Justus Winter <[email protected]> |
| 11234 |
|
| 11235 |
Restrict `-fno-strict-aliasing' to the Linux drivers |
| 11236 |
* Makefile.am: Move `-fno-strict-aliasing'... |
| 11237 |
* linux/Makefrag.am: ... here. |
| 11238 |
|
| 11239 |
i386: avoid breaking the strict-aliasing rules |
| 11240 |
* i386/i386/pcb.c (switch_ktss): Cleanly convert the value. |
| 11241 |
|
| 11242 |
kern: avoid breaking the strict-aliasing rules |
| 11243 |
* kern/exception.c (exception_parse_reply): Use `BAD_TYPECHECK'. |
| 11244 |
|
| 11245 |
vm: drop unused `kmem_realloc' |
| 11246 |
* vm/vm_kern.c (kmem_realloc): Remove function. |
| 11247 |
(kmem_alloc_wired): Adopt comment. |
| 11248 |
* vm/vm_kern.h (kmem_realloc): Remove declaration. |
| 11249 |
|
| 11250 |
2015-05-23 Samuel Thibault <[email protected]> |
| 11251 |
|
| 11252 |
Add stdint integer types in Linux glue |
| 11253 |
* linux/dev/include/linux/types.h (int8_t, uint8_t, int16_t, uint16_t, |
| 11254 |
int32_t, uint32_t, int64_t, uint64_t): New types. |
| 11255 |
|
| 11256 |
2015-05-22 Justus Winter <[email protected]> |
| 11257 |
|
| 11258 |
ipc: drop remnants of the IPC tables |
| 11259 |
* ipc/ipc_table.c (ipc_table_entries): Remove. |
| 11260 |
(ipc_table_entries_size): Likewise. |
| 11261 |
(ipc_table_init): Remove initialization of `ipc_table_entries'. |
| 11262 |
(ipc_table_realloc): Remove function. |
| 11263 |
* ipc/ipc_table.h: Adjust comments. |
| 11264 |
(ipc_table_entries): Remove declaration. |
| 11265 |
(ipc_table_realloc): Likewise. |
| 11266 |
(it_entries_{alloc,reallocable,realloc,free}): Remove macros. |
| 11267 |
|
| 11268 |
ipc: drop size parameter from `ipc_space_create' |
| 11269 |
* ipc/ipc_space.c (ipc_space_create): Drop size parameter. |
| 11270 |
* ipc/ipc_space.h (ipc_space_create): Adopt declaration, fix comment. |
| 11271 |
* kern/ipc_tt.c (ipc_task_init): Adopt accordingly. |
| 11272 |
|
| 11273 |
2015-05-20 Justus Winter <[email protected]> |
| 11274 |
|
| 11275 |
ipc: inline key ipc entry lookup functions |
| 11276 |
Declare functions looking up IPC entries that were previously inlined |
| 11277 |
manually with `static inline' so that they will be inlined into the |
| 11278 |
fast paths by the compiler. |
| 11279 |
|
| 11280 |
* ipc/ipc_entry.c (ipc_entry_lookup, ipc_entry_get, |
| 11281 |
ipc_entry_dealloc): Move functions... |
| 11282 |
* ipc/ipc_space.h: ... here, and declare them as `static inline'. |
| 11283 |
* ipc/ipc_entry.h: Drop associated declarations. |
| 11284 |
|
| 11285 |
2015-05-20 Justus Winter <[email protected]> |
| 11286 |
|
| 11287 |
ipc: replace the IPC table with a radix tree |
| 11288 |
Currently, the port names are mapped to an IPC object (e.g. a port) |
| 11289 |
using a table. This, however, requires large chunks of continuous |
| 11290 |
memory, and leads to scalability problems as virtual kernel memory is |
| 11291 |
a scarce resource. To avoid excessive overhead, non-contiguous port |
| 11292 |
names are spilled into a splay tree. |
| 11293 |
|
| 11294 |
Replace the IPC table with a radix tree. As the radix tree is able to |
| 11295 |
store non-contiguous names with reasonable overhead, we can drop the |
| 11296 |
splay tree as well. |
| 11297 |
|
| 11298 |
* ipc/ipc_entry.c (ipc_entry_tree_collision): Remove function. |
| 11299 |
(ipc_entry_cache): New variable. |
| 11300 |
(ipc_entry_lookup): Replace with a radix tree lookup. |
| 11301 |
(ipc_entry_get): The free list handling is changed a little. Adopt |
| 11302 |
accordingly. |
| 11303 |
(ipc_entry_free_name): New function. |
| 11304 |
(ipc_entry_alloc): Adopt accordingly. |
| 11305 |
(ipc_entry_alloc_name): Likewise. |
| 11306 |
(ipc_entry_dealloc): Likewise. |
| 11307 |
(ipc_entry_grow_table): Remove function. |
| 11308 |
* ipc/ipc_entry.h (struct ipc_entry): Update comment, add field for |
| 11309 |
name and free list, remove unused fields. |
| 11310 |
(ipc_entry_cache, ie_alloc, ie_free): New declarations. |
| 11311 |
(struct ipc_tree_entry): Remove. Also remove any related declarations. |
| 11312 |
(ipc_entry_grow_table): Remove declaration. |
| 11313 |
* ipc/ipc_init.c (ipc_bootstrap): Adopt initialization. |
| 11314 |
* ipc/ipc_kmsg.c (ipc_kmsg_copyout_header): Use `ipc_entry_alloc' |
| 11315 |
instead of re-coding it. Adopt free list handling. |
| 11316 |
(ipc_kmsg_copyout_object): Adopt free list handling, store the name. |
| 11317 |
* ipc/ipc_object.c (ipc_object_copyout): Likewise. |
| 11318 |
(ipc_object_copyout_multiname): Likewise. |
| 11319 |
* ipc/ipc_space.c (ipc_space_create): Initialize radix tree and free list. |
| 11320 |
Drop table and splay tree initialization. |
| 11321 |
(ipc_space_destroy): Free ipc entries and radix tree, remove table and |
| 11322 |
splay tree cleanup. |
| 11323 |
* ipc/ipc_space.h (struct ipc_space): Add radix tree, free list, and size. |
| 11324 |
Remove all fields related to the table and splay tree. |
| 11325 |
* ddb/db_print.c (db_port_iterate): Adopt iteration. |
| 11326 |
(db_lookup_port): Adopt lookup. |
| 11327 |
* include/mach_debug/ipc_info.h: Remove unused parts of the debug interface. |
| 11328 |
* include/mach_debug/mach_debug.defs: Likewise. |
| 11329 |
* include/mach_debug/mach_debug_types.defs: Likewise. |
| 11330 |
* ipc/mach_debug.c: Likewise. |
| 11331 |
* ipc/ipc_right.c (ipc_right_reverse): Adopt lookup, store name. |
| 11332 |
(ipc_right_check): Adopt removal. |
| 11333 |
(ipc_right_destroy): Likewise. |
| 11334 |
(ipc_right_dealloc): Likewise. |
| 11335 |
(ipc_right_delta): Likewise. |
| 11336 |
(ipc_right_copyin): Adopt insertion, adopt removal. |
| 11337 |
(ipc_right_copyin_two): Adopt removal. |
| 11338 |
(ipc_right_copyout): Adopt insertion, adopt removal. |
| 11339 |
(ipc_right_rename): Likewise, also update comment. |
| 11340 |
* ipc/mach_port.c (mach_port_names): Adopt iteration. |
| 11341 |
(mach_port_get_set_status): Likewise. |
| 11342 |
* ipc/port.h: Update comment. |
| 11343 |
* ipc/ipc_hash.c: Delete file. |
| 11344 |
* ipc/ipc_hash.h: Likewise. |
| 11345 |
* ipc/ipc_splay.c: Likewise. |
| 11346 |
* ipc/ipc_splay.h: Likewise. |
| 11347 |
* Makefrag.am (libkernel_a_SOURCES): Remove these files. |
| 11348 |
|
| 11349 |
2015-05-20 Justus Winter <[email protected]> |
| 11350 |
|
| 11351 |
ipc: replace reverse hash table with a radix tree |
| 11352 |
Currently, there is a hash table mapping (space, object) tuples to |
| 11353 |
`ipc_entry' objects. This hash table is intertwined with the IPC |
| 11354 |
tables. There is one hash table per IPC space, but it is only for the |
| 11355 |
entries in the IPC table. This hash table is called `local' in the |
| 11356 |
source. All IPC entries being spilled into the splay tree are instead |
| 11357 |
mapped by a global hash table. |
| 11358 |
|
| 11359 |
Replace the local (i.e. per IPC space) reverse hash table with a radix |
| 11360 |
tree. |
| 11361 |
|
| 11362 |
* ipc/ipc_entry.c (ipc_entry_grow_table): Adjust accordingly. |
| 11363 |
* ipc/ipc_entry.h (struct ipc_entry): Adjust comment. |
| 11364 |
* ipc/ipc_hash.c: Adjust comment explaining the local lookup table. |
| 11365 |
(IPC_LOCAL_HASH_INVARIANT): New macro. |
| 11366 |
(ipc_hash_local_lookup): Use the new `ipc_reverse_lookup' function. |
| 11367 |
(ipc_hash_local_insert): Use the new `ipc_reverse_insert' function. |
| 11368 |
(ipc_hash_local_delete): Use the new `ipc_reverse_remove' function. |
| 11369 |
* ipc/ipc_space.c (ipc_space_create): Initialize radix tree. |
| 11370 |
(ipc_space_destroy): Free radix tree. |
| 11371 |
* ipc/ipc_space.h (struct ipc_space): Add radix tree. |
| 11372 |
(ipc_reverse_insert): New function. |
| 11373 |
(ipc_reverse_remove): Likewise. |
| 11374 |
(ipc_reverse_remove_all): Likewise. |
| 11375 |
(ipc_reverse_lookup): Likewise. |
| 11376 |
* ipc/ipc_right.c (ipc_right_clean): Update comment. |
| 11377 |
|
| 11378 |
2015-05-20 Justus Winter <[email protected]> |
| 11379 |
|
| 11380 |
ipc: undo manual inlining of `ipc_entry_X' functions |
| 11381 |
Today we can rely on the compiler to inline functions. Undoing this |
| 11382 |
manual optimization is a first step to replace the IPC tables. |
| 11383 |
|
| 11384 |
* ipc/mach_msg.c (mach_msg_trap): Undo the manual inlining of |
| 11385 |
`ipc_entry_lookup', `ipc_entry_dealloc', and `ipc_entry_get'. |
| 11386 |
* ipc/ipc_kmsg.c (ipc_kmsg_copyin_header, ipc_kmsg_copyout_header): Likewise. |
| 11387 |
* kern/exception.c (exception_raise): Likewise. |
| 11388 |
* kern/ipc_mig.c (fast_send_right_lookup): Likewise. |
| 11389 |
|
| 11390 |
2015-05-20 Justus Winter <[email protected]> |
| 11391 |
|
| 11392 |
kern: add radix tree library |
| 11393 |
Import a radix tree library from Richard Braun's librbraun. |
| 11394 |
|
| 11395 |
* Makefile.am (clib_routines): Steal `__ffsdi2'. |
| 11396 |
* Makefrag.am (libkernel_a_SOURCES): Add new files. |
| 11397 |
* kern/rdxtree.c: New file. |
| 11398 |
* kern/rdxtree.h: Likewise. |
| 11399 |
* kern/rdxtree_i.h: Likewise. |
| 11400 |
* kern/startup.c (setup_main): Initialize radix tree library. |
| 11401 |
|
| 11402 |
2015-05-20 Justus Winter <[email protected]> |
| 11403 |
|
| 11404 |
kern: gracefully handle resource shortage |
| 11405 |
* kern/thread.c (stack_alloc): Report resource shortage. |
| 11406 |
* kern/sched_prim.h (stack_alloc): Adjust declaration accordingly. |
| 11407 |
* kern/thread_swap.c (thread_doswapin): Report resource shortage. |
| 11408 |
(swapin_thread_continue): If the swap-in fails, put the thread back on |
| 11409 |
the queue and go back to sleep. |
| 11410 |
* kern/thread_swap.h (thread_doswapin): Adjust declaration accordingly. |
| 11411 |
|
| 11412 |
vm: gracefully handle resource shortage |
| 11413 |
* vm/vm_object.c (vm_object_copy_call): Gracefully handle resource |
| 11414 |
shortage by doing the allocation earlier and aborting the function if |
| 11415 |
unsuccessful. |
| 11416 |
|
| 11417 |
kern: gracefully handle resource shortage |
| 11418 |
* kern/task.c (task_create): Gracefully handle resource shortage. |
| 11419 |
|
| 11420 |
2015-05-19 Justus Winter <[email protected]> |
| 11421 |
|
| 11422 |
kern: import `macros.h' from x15 |
| 11423 |
Import the macro definitions from the x15 kernel project, and replace |
| 11424 |
all similar definitions littered all over the place with it. |
| 11425 |
|
| 11426 |
Importing this file will make importing code from the x15 kernel |
| 11427 |
easier. We are already using the red-black tree implementation and |
| 11428 |
the slab allocator from it, and we will import even more code in the |
| 11429 |
near future. |
| 11430 |
|
| 11431 |
* kern/list.h: Do not define `structof', include `macros.h' instead. |
| 11432 |
* kern/rbtree.h: Likewise. |
| 11433 |
* kern/slab.c: Do not define `ARRAY_SIZE', include `macros.h' instead. |
| 11434 |
* i386/grub/misc.h: Likewise. |
| 11435 |
* i386/i386/xen.h: Do not define `barrier', include `macros.h' instead. |
| 11436 |
* kern/macro_help.h: Delete file. Replaced by `macros.h'. |
| 11437 |
* kern/macros.h: New file. |
| 11438 |
* Makefrag.am (libkernel_a_SOURCES): Add new file, remove old file. |
| 11439 |
* device/dev_master.h: Adopt accordingly. |
| 11440 |
* device/io_req.h: Likewise. |
| 11441 |
* device/net_io.h: Likewise. |
| 11442 |
* i386/intel/read_fault.c: Likewise. |
| 11443 |
* ipc/ipc_kmsg.h: Likewise. |
| 11444 |
* ipc/ipc_mqueue.h: Likewise. |
| 11445 |
* ipc/ipc_object.h: Likewise. |
| 11446 |
* ipc/ipc_port.h: Likewise. |
| 11447 |
* ipc/ipc_space.h: Likewise. |
| 11448 |
* ipc/ipc_splay.c: Likewise. |
| 11449 |
* ipc/ipc_splay.h: Likewise. |
| 11450 |
* kern/assert.h: Likewise. |
| 11451 |
* kern/ast.h: Likewise. |
| 11452 |
* kern/pc_sample.h: Likewise. |
| 11453 |
* kern/refcount.h: Likewise. |
| 11454 |
* kern/sched.h: Likewise. |
| 11455 |
* kern/sched_prim.c: Likewise. |
| 11456 |
* kern/timer.c: Likewise. |
| 11457 |
* kern/timer.h: Likewise. |
| 11458 |
* vm/vm_fault.c: Likewise. |
| 11459 |
* vm/vm_map.h: Likewise. |
| 11460 |
* vm/vm_object.h: Likewise. |
| 11461 |
* vm/vm_page.h: Likewise. |
| 11462 |
|
| 11463 |
2015-05-17 Justus Winter <[email protected]> |
| 11464 |
|
| 11465 |
i386: avoid compiler warning |
| 11466 |
* i386/i386/phys.c (pmap_zero_page, pmap_copy_page, copy_to_phys, |
| 11467 |
copy_from_phys): Avoid compiler warning about `map' being used |
| 11468 |
uninitialized. |
| 11469 |
|
| 11470 |
2015-05-14 Justus Winter <[email protected]> |
| 11471 |
|
| 11472 |
i386: use macro to compute address of saved registers |
| 11473 |
* i386/i386/pcb.c (stack_attach): Use `USER_REGS'. |
| 11474 |
(stack_handoff): Likewise. |
| 11475 |
|
| 11476 |
2015-05-02 Samuel Thibault <[email protected]> |
| 11477 |
|
| 11478 |
Fix semaphore failure path special calling convention |
| 11479 |
* linux/src/include/asm-i386/semaphore.h (down): Pass semaphore address to |
| 11480 |
down_failed through ecx. |
| 11481 |
(down_interruptible): Likewise to down_failed_interruptible. |
| 11482 |
(up): Likewise to up_wakeup. |
| 11483 |
|
| 11484 |
2015-05-02 Justus Winter <[email protected]> |
| 11485 |
|
| 11486 |
kern: fix comment |
| 11487 |
* kern/rbtree.h: Fix comment. |
| 11488 |
|
| 11489 |
2015-05-02 Samuel Thibault <[email protected]> |
| 11490 |
|
| 11491 |
Fix warning |
| 11492 |
* i386/i386at/rtc.c (rtcget, rtcput): Make functions take an rtc_st |
| 11493 |
structure which it casts to char * itself. |
| 11494 |
|
| 11495 |
Fix warnings |
| 11496 |
* device/ds_routines.c (device_open, ds_open_done, device_close, |
| 11497 |
device_write, device_write_inband, ds_write_done, device_read, |
| 11498 |
device_read_inband, ds_read_done, device_set_status, mach_device_get_status, |
| 11499 |
device_set_filter, device_map, ds_no_senders): Convert from K&R declaration, |
| 11500 |
fix type of `device' into void*. |
| 11501 |
|
| 11502 |
Fix block_io_mmap prototype |
| 11503 |
* device/blkio.c (block_io_mmap): Fix prototype of dummy function. |
| 11504 |
* device/blkio.h (block_io_mmap): Likewise. |
| 11505 |
|
| 11506 |
2015-05-01 Samuel Thibault <[email protected]> |
| 11507 |
|
| 11508 |
Use gnu89 inline style |
| 11509 |
* Makefile.am (AM_CFLAGS): Add -fgnu89-inline option. |
| 11510 |
|
| 11511 |
2015-05-01 Samuel Thibault <[email protected]> |
| 11512 |
|
| 11513 |
Replace clobbers with earlyclobbers |
| 11514 |
Newer gccs consider the former "impossible" |
| 11515 |
|
| 11516 |
* linux/src/include/asm-i386/bitops.h (find_first_zero_bit): Replace |
| 11517 |
clobbers with earlyclobbers. |
| 11518 |
* linux/src/include/asm-i386/semaphore.h (down, down_interruptible, up): |
| 11519 |
Likewise. |
| 11520 |
|
| 11521 |
2015-04-30 Samuel Thibault <[email protected]> |
| 11522 |
|
| 11523 |
Fix build with gcc-5 |
| 11524 |
* linux/src/include/linux/compiler-gcc5.h: New file. |
| 11525 |
|
| 11526 |
2015-04-24 Justus Winter <[email protected]> |
| 11527 |
|
| 11528 |
kern: avoid hardcoding the lowest priority |
| 11529 |
The number of priorities has been changed from 32 to 50 in |
| 11530 |
6a234201081156e6d5742e7eeabb68418b518fad. |
| 11531 |
|
| 11532 |
* kern/syscall_subr.c (thread_depress_priority): Avoid hardcoding the |
| 11533 |
lowest priority. |
| 11534 |
|
| 11535 |
2015-04-23 Justus Winter <[email protected]> |
| 11536 |
|
| 11537 |
kern: disable stack allocation counters by default |
| 11538 |
Disable the stack allocation counters by default. Casual checking |
| 11539 |
revealed that the hits-to-miss ratio is excellent. |
| 11540 |
|
| 11541 |
* kern/thread.c (stack_alloc_{hits,misses,max}): Move variables... |
| 11542 |
* kern/counters.c: ... here, and add the usual counter prefix. |
| 11543 |
* kern/counters.h: New declarations. |
| 11544 |
|
| 11545 |
2015-04-23 Samuel Thibault <[email protected]> |
| 11546 |
|
| 11547 |
Avoid accessing ip_protected_payload without the lock. |
| 11548 |
* ipc/ipc_kmsg.c (ipc_kmsg_copyout_header): Avoid accessing |
| 11549 |
dest->ip_protected_payload without the lock. |
| 11550 |
* ipc/mach_msg.c (ipc/mach_msg.c): Avoid accessing |
| 11551 |
dest_port->ip_protected_payload without the lock. |
| 11552 |
|
| 11553 |
Prepend 0x to hexadecimal offset |
| 11554 |
* i386/i386/db_trace.c (db_i386_stack_trace): Prepend 0x to hexadecimal offset. |
| 11555 |
|
| 11556 |
2015-04-10 Thomas Schwinge <[email protected]> |
| 11557 |
|
| 11558 |
GNU Mach 1.5. |
| 11559 |
* version.m4 (AC_PACKAGE_VERSION): Set to 1.5. |
| 11560 |
* NEWS: Finalize for 1.5. |
| 11561 |
|
| 11562 |
2015-03-19 Samuel Thibault <[email protected]> |
| 11563 |
|
| 11564 |
Give the Debian package name for the non-multilib libc.a |
| 11565 |
* Makefile.am (clib-routines.o): Mention the Debian libc6-dev:i386 package. |
| 11566 |
|
| 11567 |
2015-03-08 Samuel Thibault <[email protected]> |
| 11568 |
|
| 11569 |
Remove spl debugging in Xen case |
| 11570 |
xen cli/sti doesn't use IF |
| 11571 |
|
| 11572 |
* i386/i386/spl.S [MACH_XEN]: Disable IF check. |
| 11573 |
|
| 11574 |
2015-03-05 Samuel Thibault <[email protected]> |
| 11575 |
|
| 11576 |
Show odd number of ports |
| 11577 |
* linux/dev/drivers/block/ahci.c (ahci_probe_dev): Show odd number of ports. |
| 11578 |
|
| 11579 |
2015-02-26 Samuel Thibault <[email protected]> |
| 11580 |
|
| 11581 |
Use printf_once instead of recoding it |
| 11582 |
* i386/i386at/kd_event.c: Call printf_once instead of recoding it. |
| 11583 |
* i386/i386at/kd_mouse.c: Likewise. |
| 11584 |
|
| 11585 |
Limit printing "queue full" messages |
| 11586 |
* i386/i386at/kd_event.c (kbd_enqueue): Print "queue full" warning only |
| 11587 |
once. |
| 11588 |
* i386/i386at/kd_mouse.c (mouse_enqueue): Likewise. |
| 11589 |
|
| 11590 |
2015-02-25 Justus Winter <[email protected]> |
| 11591 |
|
| 11592 |
kern: inherit the name of the parent task |
| 11593 |
* kern/task.c (task_create): Inherit the name of the parent task. |
| 11594 |
|
| 11595 |
2015-02-20 Justus Winter <[email protected]> |
| 11596 |
|
| 11597 |
i386: specialize `copyinmsg' and `copyoutmsg' |
| 11598 |
Previously, `copyinmsg' was the same function as `copyin'. The former |
| 11599 |
is for messages, and the size of messages is a multiple of four. |
| 11600 |
Likewise for `copyoutmsg'. |
| 11601 |
|
| 11602 |
Provide a specialized version of both functions. This shaves off a |
| 11603 |
couple of instructions and improves our IPC performance. |
| 11604 |
|
| 11605 |
* i386/i386/locore.S (copyinmsg): New function. |
| 11606 |
(copyoutmsg): New function. |
| 11607 |
|
| 11608 |
2015-02-20 Justus Winter <[email protected]> |
| 11609 |
|
| 11610 |
i386: drop needless instruction from `copyout' |
| 11611 |
* i386/i386/locore.S (copyout): Do not needlessly copy length to %eax |
| 11612 |
first. |
| 11613 |
|
| 11614 |
2015-02-20 Justus Winter <[email protected]> |
| 11615 |
|
| 11616 |
kern: improve assert |
| 11617 |
Use the ternary operator to implement `assert' like it is done in the |
| 11618 |
glibc. The glibcs changelog does not mention the rationale behind |
| 11619 |
this change, but doing the same seems to improve our IPC performance. |
| 11620 |
|
| 11621 |
* kern/assert.h (assert): Define macro using the ternary operator. |
| 11622 |
|
| 11623 |
2015-02-20 Justus Winter <[email protected]> |
| 11624 |
|
| 11625 |
linux: fix compiler warning |
| 11626 |
If the loop above completes at least one iteration, `i' will be larger |
| 11627 |
than zero. |
| 11628 |
|
| 11629 |
* linux/dev/glue/block.c (rdwr_full): Add assertion to appease the |
| 11630 |
compiler. |
| 11631 |
|
| 11632 |
2015-02-20 Justus Winter <[email protected]> |
| 11633 |
|
| 11634 |
kern: reduce the size of `struct thread' |
| 11635 |
Reduce the size of `struct thread' by twelve bytes making it fit into |
| 11636 |
exactly five cache lines (on 32-bit platforms). |
| 11637 |
|
| 11638 |
* kern/thread.h (struct thread): Group the state and all flags in a |
| 11639 |
bitfield. |
| 11640 |
(TH_EV_WAKE_ACTIVE, TH_EV_STATE): Provide macros that generate keys |
| 11641 |
for synchronization primitives like `thread_wakeup'. |
| 11642 |
* kern/thread.c (thread_halt, thread_dowait, thread_suspend): Use the |
| 11643 |
new keys instead of addresses of fields for the synchronisation. |
| 11644 |
* kern/ipc_sched.c (thread_handoff): Likewise. |
| 11645 |
* kern/sched_prim.c (thread_invoke, thread_dispatch): Likewise. |
| 11646 |
|
| 11647 |
2015-02-18 Justus Winter <[email protected]> |
| 11648 |
|
| 11649 |
kern: avoid #if 0ing out thread_collect_scan |
| 11650 |
Currently, `thread_collect_scan' does nothing because `pcb_collect' is |
| 11651 |
a nop. Its body is exempt from compilation by means of the |
| 11652 |
preprocessor. |
| 11653 |
|
| 11654 |
This is unfortunate as it increases the risk of bitrot, and we still |
| 11655 |
need to pay the price of rate-limiting thread_collect_scan. |
| 11656 |
|
| 11657 |
* kern/thread.c (thread_collect_scan): Drop #if 0 around the body. |
| 11658 |
* vm/vm_pageout.c (vm_pageout_scan): Do not call |
| 11659 |
`consider_thread_collect' and document why. |
| 11660 |
|
| 11661 |
2015-02-18 Justus Winter <[email protected]> |
| 11662 |
|
| 11663 |
vm: fix typo |
| 11664 |
* vm/vm_resident.c: Fix typo. |
| 11665 |
|
| 11666 |
2015-01-22 Justus Winter <[email protected]> |
| 11667 |
|
| 11668 |
ipc: warn about more port management bugs |
| 11669 |
* ipc/mach_port.c (mach_port_destroy): Simplify expression. Reword warning. |
| 11670 |
(mach_port_deallocate): Likewise. |
| 11671 |
(mach_port_mod_refs): Also warn about errors when using this function. |
| 11672 |
|
| 11673 |
2015-01-02 Stefan Weil <[email protected]> |
| 11674 |
|
| 11675 |
vm: Fix typo in comment (found by codespell) |
| 11676 |
|
| 11677 |
kern: Fix typos in comments (found by codespell) |
| 11678 |
|
| 11679 |
ipc: Fix typo in comment (found by codespell) |
| 11680 |
|
| 11681 |
include: Fix typos in comments (found by codespell) |
| 11682 |
|
| 11683 |
i386: Fix typos in comments (found by codespell) |
| 11684 |
|
| 11685 |
device: Fix typos in comments (found by codespell) |
| 11686 |
|
| 11687 |
Makefile.am: Fix typos and grammar in comment |
| 11688 |
|
| 11689 |
ddb: Fix typos in comments (found by codespell) |
| 11690 |
|
| 11691 |
2015-01-02 Samuel Thibault <[email protected]> |
| 11692 |
|
| 11693 |
Handle kernel traps happening before starting userland |
| 11694 |
* i386/i386/trap.c (kernel_trap): When current_thread is null, assume that |
| 11695 |
we are in kernel land. |
| 11696 |
|
| 11697 |
2014-12-16 Justus Winter <[email protected]> |
| 11698 |
|
| 11699 |
kern: gracefully handle bogus sample pc sequence number |
| 11700 |
If a sequence number larger than the sample control sequence number is |
| 11701 |
supplied, `nsamples' becomes negative. Handle this gracefully. |
| 11702 |
|
| 11703 |
* kern/pc_sample.c (get_sampled_pcs): Handle bogus sequence number. |
| 11704 |
|
| 11705 |
2014-12-16 Justus Winter <[email protected]> |
| 11706 |
|
| 11707 |
ipc: guard test code with `MACH_IPC_TEST' |
| 11708 |
* ipc/ipc_kmsg.h (ikm_mark_bogus): New macro. |
| 11709 |
(ipc_kmsg_rmqueue_first_macro): Use `ikm_mark_bogus'. |
| 11710 |
* ipc/ipc_kmsg.c (ipc_kmsg_rmqueue): Likewise. |
| 11711 |
|
| 11712 |
2014-12-16 Justus Winter <[email protected]> |
| 11713 |
|
| 11714 |
ipc: tune size of cached kernel message buffers |
| 11715 |
The previous limit was 256 bytes. That seems a little crummy by |
| 11716 |
todays standards, and we are frequently sending bigger packets |
| 11717 |
(e.g. every RPC containing a string_t on Hurd). |
| 11718 |
|
| 11719 |
Use the page size for IKM_SAVED_KMSG_SIZE to make sure the page is |
| 11720 |
pinned to a single processor. |
| 11721 |
|
| 11722 |
* ipc/ipc_kmsg.h (IKM_SAVED_KMSG_SIZE): Define to `PAGE_SIZE'. |
| 11723 |
|
| 11724 |
2014-12-15 Samuel Thibault <[email protected]> |
| 11725 |
|
| 11726 |
Make spl7 just clear IF instead of setting the PIC mask |
| 11727 |
* i386/i386/spl.S (spl7): Just set curr_ipl and cli. |
| 11728 |
(splx) [MACH_KDB || MACH_TTD]: When curr_ipl is 7, make sure that IF is cleared. |
| 11729 |
(splx): When staying at ipl7, do not enable interrupts. |
| 11730 |
(spl) [MACH_KDB || MACH_TTD]: When curr_ipl is 7, make sure that IF is cleared. |
| 11731 |
(spl): When new ipl is 7, branch to spl7. |
| 11732 |
* i386/i386/locore.S (TIME_TRAP_UENTRY, TIME_TRAP_SENTRY): Save flags, and |
| 11733 |
restore them instead of blindly using sti. |
| 11734 |
|
| 11735 |
2014-12-11 Samuel Thibault <[email protected]> |
| 11736 |
|
| 11737 |
Ship missing file |
| 11738 |
* Makefrag.am (EXTRA_DIST): Add kern/task_notify.cli. |
| 11739 |
|
| 11740 |
2014-12-09 Justus Winter <[email protected]> |
| 11741 |
|
| 11742 |
include: add X_IMPORTS to ipc definitions |
| 11743 |
This makes it possible to inject imports. |
| 11744 |
|
| 11745 |
* include/mach/gnumach.defs: Make it possible to inject imports. |
| 11746 |
* include/mach/mach.defs: Likewise. |
| 11747 |
* include/mach/mach_host.defs: Likewise. |
| 11748 |
|
| 11749 |
2014-12-09 Justus Winter <[email protected]> |
| 11750 |
|
| 11751 |
kern: provide notifications about new tasks |
| 11752 |
These notifications are sent to the port registered via |
| 11753 |
`register_new_task_notification' and provide a robust parental |
| 11754 |
relation between tasks to a userspace server. |
| 11755 |
|
| 11756 |
* Makefrag.am: Add task_notify.defs. |
| 11757 |
* include/mach/gnumach.defs: Add register_new_task_notification. |
| 11758 |
* include/mach/task_notify.defs: New file. |
| 11759 |
* kern/task.c (new_task_notification): New variable. |
| 11760 |
(task_create): Send new task notifications. |
| 11761 |
(register_new_task_notification): Add server function. |
| 11762 |
* kern/task_notify.cli: New file. |
| 11763 |
|
| 11764 |
2014-12-09 Justus Winter <[email protected]> |
| 11765 |
|
| 11766 |
Retire procedure `old_mach_port_get_receive_status' |
| 11767 |
Retire the compatibility RPC `old_mach_port_get_receive_status' that |
| 11768 |
works like `mach_port_get_receive_status' but returns an |
| 11769 |
`old_mach_port_status' object that lacks the `mps_seqno' field. |
| 11770 |
|
| 11771 |
Do not remove the type yet, so we do not break anyones build. The RPC |
| 11772 |
stubs currently distributed with the glibc require it. |
| 11773 |
|
| 11774 |
* include/mach/mach_port.defs (old_mach_port_get_receive_status): Drop RPC. |
| 11775 |
* include/mach/mach_types.defs (old_mach_port_status_t): Drop type. |
| 11776 |
* include/mach/port.h (old_mach_port_status_t): Add note to remove |
| 11777 |
this for the 1.6 release. |
| 11778 |
* ipc/mach_port.c (old_mach_port_get_receive_status): Drop function. |
| 11779 |
|
| 11780 |
2014-12-07 Samuel Thibault <[email protected]> |
| 11781 |
|
| 11782 |
Fix pthread_create warning on translator termination |
| 11783 |
This was due to task_terminate not actually properly suspending threads |
| 11784 |
before disable the task port, which was thus preventing pthread_create |
| 11785 |
from being able to create a stack. Thanks Gabriele Giacone for finding |
| 11786 |
out a reproducer of this. |
| 11787 |
|
| 11788 |
* kern/task.h (task_hold_locked): New declaration. |
| 11789 |
* kern/task.c (task_hold): Move the locked part of the code into... |
| 11790 |
(task_hold_locked): ... new function. |
| 11791 |
(task_terminate): Call task_hold_locked just before deactivating the |
| 11792 |
task. Call ipc_task_disable after waiting for threads to actually |
| 11793 |
suspend with task_dowait. |
| 11794 |
|
| 11795 |
2014-12-01 Justus Winter <[email protected]> |
| 11796 |
|
| 11797 |
kern: disable all counters by default |
| 11798 |
Make all five non-conditional counters conditional ones. Casual |
| 11799 |
checking revealed that the hits-to-miss ratio is excellent. |
| 11800 |
|
| 11801 |
* kern/counters.c: Make all counters conditional. |
| 11802 |
* kern/counters.h: Likewise. |
| 11803 |
* kern/ipc_sched.c: Likewise. |
| 11804 |
* kern/sched_prim.c: Likewise. |
| 11805 |
|
| 11806 |
2014-11-28 Justus Winter <[email protected]> |
| 11807 |
|
| 11808 |
include: make `mach_port_t' payload-aware |
| 11809 |
Honor a new macro `MACH_PAYLOAD_TO_PORT' to inject a translation |
| 11810 |
function mapping payloads to port names in the definition of |
| 11811 |
`mach_port_t'. |
| 11812 |
|
| 11813 |
* include/mach/std_types.defs (mach_port_t): Honor |
| 11814 |
`MACH_PAYLOAD_TO_PORT'. |
| 11815 |
* include/device/device.defs (reply_port_t): Likewise. |
| 11816 |
* include/device/device_reply.defs (reply_port_t): Likewise. |
| 11817 |
* include/device/device_request.defs (reply_port_t): Likewise. |
| 11818 |
|
| 11819 |
2014-11-23 Samuel Thibault <[email protected]> |
| 11820 |
|
| 11821 |
Fix programming PIT counter |
| 11822 |
* linux/dev/arch/i386/kernel/irq.c (init_IRQ): Properly mask 8 bits of |
| 11823 |
PIT counter. |
| 11824 |
|
| 11825 |
2014-11-21 David Michael <[email protected]> |
| 11826 |
|
| 11827 |
Correct GCC's -Wformat-security issues |
| 11828 |
* linux/pcmcia-cs/clients/axnet_cs.c (axdev_init): Add a format string |
| 11829 |
literal where printk only has a single variable argument. |
| 11830 |
* linux/src/drivers/net/3c507.c (el16_probe1): Likewise. |
| 11831 |
* linux/src/drivers/net/3c509.c (el3_probe): Likewise. |
| 11832 |
* linux/src/drivers/net/3c515.c (init_module): Likewise. |
| 11833 |
(tc515_probe): Likewise. |
| 11834 |
* linux/src/drivers/net/ac3200.c (ac_probe1): Likewise. |
| 11835 |
* linux/src/drivers/net/apricot.c (apricot_probe): Likewise. |
| 11836 |
* linux/src/drivers/net/at1700.c (at1700_probe1): Likewise. |
| 11837 |
* linux/src/drivers/net/de4x5.c (de4x5_hw_init): Likewise. |
| 11838 |
* linux/src/drivers/net/de600.c (de600_probe): Likewise. |
| 11839 |
* linux/src/drivers/net/de620.c (de620_probe): Likewise. |
| 11840 |
* linux/src/drivers/net/depca.c (depca_hw_init): Likewise. |
| 11841 |
* linux/src/drivers/net/e2100.c (e21_probe1): Likewise. |
| 11842 |
* linux/src/drivers/net/eepro.c (eepro_probe1): Likewise. |
| 11843 |
* linux/src/drivers/net/eepro100.c (speedo_found1): Likewise. |
| 11844 |
* linux/src/drivers/net/eexpress.c (eexp_hw_probe): Likewise. |
| 11845 |
* linux/src/drivers/net/ewrk3.c (ewrk3_hw_init): Likewise. |
| 11846 |
* linux/src/drivers/net/fmv18x.c (fmv18x_probe1): Likewise. |
| 11847 |
* linux/src/drivers/net/hp-plus.c (hpp_probe1): Likewise. |
| 11848 |
* linux/src/drivers/net/hp.c (hp_probe1): Likewise. |
| 11849 |
* linux/src/drivers/net/lance.c (lance_probe1): Likewise. |
| 11850 |
* linux/src/drivers/net/ne.c (ne_probe1): Likewise. |
| 11851 |
* linux/src/drivers/net/pcnet32.c (pcnet32_probe1): Likewise. |
| 11852 |
* linux/src/drivers/net/seeq8005.c (seeq8005_probe1): Likewise. |
| 11853 |
* linux/src/drivers/net/smc-ultra.c (ultra_probe1): Likewise. |
| 11854 |
* linux/src/drivers/net/smc-ultra32.c (ultra32_probe1): Likewise. |
| 11855 |
* linux/src/drivers/net/wd.c (wd_probe1): Likewise. |
| 11856 |
|
| 11857 |
2014-11-16 Samuel Thibault <[email protected]> |
| 11858 |
|
| 11859 |
Only set debug registers when they are used |
| 11860 |
* i386/i386/db_interface.c (zero_dr): New variable |
| 11861 |
(db_load_context): Do not set debug registers to zero when they are already |
| 11862 |
zero. |
| 11863 |
(db_dr): When kernel debug registers get zero, record that the debug |
| 11864 |
registers have been zeroed. |
| 11865 |
|
| 11866 |
2014-11-13 Samuel Thibault <[email protected]> |
| 11867 |
|
| 11868 |
Add nodma options |
| 11869 |
Some very slow qemu instances would eventually trigger DMA timeouts, |
| 11870 |
let's give a way to disable DMA there, it does not actually slow down |
| 11871 |
operations anyway. |
| 11872 |
|
| 11873 |
* linux/src/drivers/block/ide.h (ide_drive_s): Add nodma field. |
| 11874 |
* linux/src/drivers/block/ide.c (do_identify): Do not call |
| 11875 |
dmaproc(ide_dma_check) when nodma is 1. |
| 11876 |
(ide_setup): Add nodma option. |
| 11877 |
|
| 11878 |
2014-11-12 Samuel Thibault <[email protected]> |
| 11879 |
|
| 11880 |
Pass ide and hd kernel options to ide driver |
| 11881 |
* linux/dev/drivers/block/genhd.c: Include <linux/hdreg.h> and |
| 11882 |
<alloca.h> |
| 11883 |
(device_setup): Look for ide and hd options, and call ide_setup with |
| 11884 |
them. |
| 11885 |
* linux/src/drivers/block/ide.c (ide_setup) [MACH]: Parse hd[0-7] instead |
| 11886 |
of hd[a-h]. |
| 11887 |
|
| 11888 |
2014-11-10 Samuel Thibault <[email protected]> |
| 11889 |
|
| 11890 |
Fix documentation for vm_map |
| 11891 |
doc/mach.texi (vm_map): Document that vm_map uses the address as a |
| 11892 |
starting hint even when anywhere is TRUE. |
| 11893 |
|
| 11894 |
Revert "Make vm_map really ignore `address' when `anywhere' is true" |
| 11895 |
This reverts commit 5ae510e35c54009626999a88f0f1cb34d6dfc94f. |
| 11896 |
|
| 11897 |
2014-11-03 Justus Winter <[email protected]> |
| 11898 |
|
| 11899 |
include: add a payload-aware intran mutator for device_t |
| 11900 |
* include/device/device_types.defs (device_t): Add a payload-aware |
| 11901 |
intran mutator. |
| 11902 |
|
| 11903 |
include: add a payload-aware intran mutator for notify_port_t |
| 11904 |
* include/mach/notify.defs (notify_port_t): Add a payload-aware intran |
| 11905 |
mutator. |
| 11906 |
|
| 11907 |
include: add a payload-aware intran mutator for memory_object_t |
| 11908 |
* include/mach/mach_types.defs (memory_object_t): Add a payload-aware |
| 11909 |
intran mutator. |
| 11910 |
* include/mach/memory_object.defs: Likewise in the inlined type |
| 11911 |
declarations. |
| 11912 |
|
| 11913 |
2014-11-03 Samuel Thibault <[email protected]> |
| 11914 |
|
| 11915 |
Fix link refusal |
| 11916 |
* Makefile.am (clib-routines.o): Refuse to link only when multiarch is |
| 11917 |
detected. |
| 11918 |
|
| 11919 |
2014-11-03 Samuel Thibault <[email protected]> |
| 11920 |
|
| 11921 |
Refuse to link against a libc with multiarch support |
| 11922 |
We don't have support for this yet. |
| 11923 |
|
| 11924 |
* Makefile.am (clib-routines.o): Check for the presence of |
| 11925 |
__init_cpu_features, and in such case refuse to continue. |
| 11926 |
|
| 11927 |
2014-11-02 Samuel Thibault <[email protected]> |
| 11928 |
|
| 11929 |
Fix build when gcc avoids inlining |
| 11930 |
* ipc/ipc_port.h (ipc_port_flag_protected_payload, |
| 11931 |
ipc_port_flag_protected_payload_set, |
| 11932 |
ipc_port_flag_protected_payload_clear): Use static inline qualifier instead |
| 11933 |
of extern inline. |
| 11934 |
|
| 11935 |
2014-10-22 Samuel Thibault <[email protected]> |
| 11936 |
|
| 11937 |
Revert "Make sure mig is available" |
| 11938 |
This reverts commit b28e05e203e0739fa5db59c5af378b29eea7a232. |
| 11939 |
|
| 11940 |
2014-10-10 Justus Winter <[email protected]> |
| 11941 |
|
| 11942 |
doc: restore section `Inherited Ports' |
| 11943 |
Previously, the section `Inherited Ports' was commented out. This was |
| 11944 |
done, as the functionality was unused by the Hurd. The functions |
| 11945 |
`mach_ports_register' and `mach_ports_lookup' were never removed, and |
| 11946 |
are exposed to user space. |
| 11947 |
|
| 11948 |
This patch brings the documentation back and adds a remark at the top, |
| 11949 |
that the section documents the original intentions for this interface. |
| 11950 |
|
| 11951 |
I chose bringing back the documentation over removing the |
| 11952 |
functionality because I like to make use of it as a method for service |
| 11953 |
discovery that is deliberately orthogonal to the way the service |
| 11954 |
lookup is usually done in the Hurd. This can be used to implement |
| 11955 |
robust low-level debugging facilities. |
| 11956 |
|
| 11957 |
* doc/mach.texi: Restore section `Inherited Ports'. |
| 11958 |
|
| 11959 |
2014-10-01 Justus Winter <[email protected]> |
| 11960 |
|
| 11961 |
Add protected payloads to NEWS |
| 11962 |
|
| 11963 |
ipc: provide the protected payload in ipc_kmsg_copyout_header |
| 11964 |
* ipc/ipc_kmsg.c (ipc_kmsg_copyout_header): If a protected payload is |
| 11965 |
set for the destination port, provide it in msgh_protected_payload. |
| 11966 |
* ipc/mach_msg.c (mach_msg_trap): Likewise in the fast paths. |
| 11967 |
* doc/mach.texi (Message Receive): Document message semantics with |
| 11968 |
protected payloads. |
| 11969 |
|
| 11970 |
include: define MACH_MSG_TYPE_PROTECTED_PAYLOAD |
| 11971 |
* include/mach/message.h: Define MACH_MSG_TYPE_PROTECTED_PAYLOAD. |
| 11972 |
(MACH_MSG_TYPE_LAST): Adjust accordingly. |
| 11973 |
* doc/mach.texi (Message Format): Document |
| 11974 |
MACH_MSG_TYPE_PROTECTED_PAYLOAD. |
| 11975 |
|
| 11976 |
include: add msgh_protected_payload to mach_msg_header_t |
| 11977 |
* include/mach/message.h (mach_msg_header_t): Add |
| 11978 |
msgh_protected_payload as a union with msgh_local_port. |
| 11979 |
* doc/mach.texi (Message Format): Document msgh_protected_payload. |
| 11980 |
|
| 11981 |
ipc: implement mach_port_{set,clear}_protected_payload |
| 11982 |
* include/mach/mach_port.defs: Add mach_port_{set,clear}_protected_payload. |
| 11983 |
* ipc/mach_port.c: Implement mach_port_{set,clear}_protected_payload. |
| 11984 |
* doc/mach.texi (Receive Rights): Document |
| 11985 |
mach_port_{set,clear}_protected_payload. |
| 11986 |
|
| 11987 |
2014-10-01 Justus Winter <[email protected]> |
| 11988 |
|
| 11989 |
ipc: add protected payload |
| 11990 |
Add a field ip_protected_payload and a flag ip_has_protected_payload |
| 11991 |
to struct ipc_port. |
| 11992 |
|
| 11993 |
Clear the protected payload when a receive port is moved from one ipc |
| 11994 |
space to another. This is done to retain the old behavior of |
| 11995 |
mach_msg, so that a port name is sent in the msgh_local_port field. |
| 11996 |
If the new owner of that receive right wishes to use the protected |
| 11997 |
payload mechanism, it has to be explicitly set again. |
| 11998 |
|
| 11999 |
* ipc/ipc_port.h (struct ipc_port): Add field ip_protected_payload. |
| 12000 |
(ipc_port_set_protected_payload): Add function declaration. |
| 12001 |
(ipc_port_clear_protected_payload): Likewise. |
| 12002 |
(ipc_port_flag_protected_payload): Add accessor for the protected |
| 12003 |
payload flag. |
| 12004 |
(ipc_port_flag_protected_payload_set): Likewise. |
| 12005 |
(ipc_port_flag_protected_payload_clear): Likewise. |
| 12006 |
* ipc/ipc_port.c (ipc_port_init): Initialize protected payload. |
| 12007 |
(ipc_port_print): Print protected_payload. |
| 12008 |
(ipc_port_set_protected_payload): New function. |
| 12009 |
(ipc_port_clear_protected_payload): Likewise. |
| 12010 |
(ipc_port_destroy): Clear the payload when moving a receive port. |
| 12011 |
* ipc/ipc_right.c (ipc_right_copyin): Likewise. |
| 12012 |
(ipc_right_copyout): Likewise. |
| 12013 |
* ipc/ipc_object.c (ipc_object_copyin_from_kernel): Likewise. |
| 12014 |
* ipc/ipc_object.h (IO_BITS_PROTECTED_PAYLOAD): New bitmask. |
| 12015 |
(IO_BITS_OTYPE): Adjust accordingly. |
| 12016 |
|
| 12017 |
2014-09-30 Justus Winter <[email protected]> |
| 12018 |
|
| 12019 |
ipc: use fast modulo operation in local hash table |
| 12020 |
* ipc/ipc_table.h: Document that table sizes must be powers of two. |
| 12021 |
* ipc/ipc_hash.c (IH_LOCAL_HASH): Use fast modulo operation. |
| 12022 |
|
| 12023 |
kern: silence compiler warning about uninitialized variable |
| 12024 |
* kern/slab.c (kmem_cache_compute_sizes): Initialize optimal_size and |
| 12025 |
assert that a size is selected. |
| 12026 |
|
| 12027 |
kern: fix type of recompute_priorities |
| 12028 |
* kern/sched_prim.c (recompute_priorities): Fix type. |
| 12029 |
* kern/sched_prim.h (recompute_priorities): Likewise. |
| 12030 |
|
| 12031 |
2014-09-26 Justus Winter <[email protected]> |
| 12032 |
|
| 12033 |
kern: create send rights as they are inserted at bootstrap time |
| 12034 |
Previously, it was impossible to hand e.g. the master device port to |
| 12035 |
more than one bootstrap task. Fix this by creating the send right as |
| 12036 |
it is inserted into the target task. |
| 12037 |
|
| 12038 |
* kern/bootstrap.c (bootstrap_create): Do not create the send rights |
| 12039 |
here... |
| 12040 |
(boot_script_insert_right): ... but here. |
| 12041 |
|
| 12042 |
2014-09-25 Justus Winter <[email protected]> |
| 12043 |
|
| 12044 |
Update NEWS file |
| 12045 |
|
| 12046 |
2014-09-17 Justus Winter <[email protected]> |
| 12047 |
|
| 12048 |
ddb: add support for ELF symbol tables |
| 12049 |
* ddb/db_elf.c: New file. |
| 12050 |
* ddb/db_elf.h: Likewise. |
| 12051 |
* Makefrag.am (libkernel_a_SOURCES): Add db_elf.{c,h}. |
| 12052 |
* ddb/db_sym.c (dummy_db_sym_init): New stub db_sym_init function. |
| 12053 |
(db_sym_switch): Add ELF functions. |
| 12054 |
* ddb/db_sym.h (SYMTAB_ELF): New macro. |
| 12055 |
(elf_db_sym_init): New declaration. |
| 12056 |
* i386/i386at/model_dep.c (c_boot_entry): Get ELF section header |
| 12057 |
information from the multiboot structure, and call elf_db_sym_init. |
| 12058 |
|
| 12059 |
ddb: add `show all tasks' command |
| 12060 |
* ddb/db_command.c (db_show_all_cmds): Add `tasks'. |
| 12061 |
* ddb/db_print.c (db_show_all_tasks): New function. |
| 12062 |
* ddb/db_print.h (db_show_all_tasks): New prototype. |
| 12063 |
|
| 12064 |
2014-09-17 Samuel Thibault <[email protected]> |
| 12065 |
|
| 12066 |
Report DR6 to userland |
| 12067 |
* i386/i386/trap.c (user_trap): On T_DEBUG, record the content of dr6 in |
| 12068 |
PCB, and clear it. |
| 12069 |
|
| 12070 |
2014-09-06 Samuel Thibault <[email protected]> |
| 12071 |
|
| 12072 |
Make vm_map really ignore `address' when `anywhere' is true |
| 12073 |
As vm_allocate does. |
| 12074 |
|
| 12075 |
* vm/vm_user.c (vm_map): When `anywhere' is true, set `address' to the |
| 12076 |
minimum address of the `target_map'. |
| 12077 |
|
| 12078 |
2014-09-01 Pietro Braione <[email protected]> |
| 12079 |
|
| 12080 |
Fix printf warning |
| 12081 |
linux/src/drivers/net/sundance.c (start_tx): Fix format string according |
| 12082 |
to parameter. |
| 12083 |
|
| 12084 |
2014-08-30 Samuel Thibault <[email protected]> |
| 12085 |
|
| 12086 |
Tune pageout parameters |
| 12087 |
This targets having always at least 8% free memory instead of just 1%. |
| 12088 |
This has shown improving buildd stability a lot. Also increase the |
| 12089 |
reserved amount to nowadays standards. |
| 12090 |
|
| 12091 |
* vm/vm_pageout.c (VM_PAGE_FREE_TARGET): Increase to 10%. |
| 12092 |
(VM_PAGE_FREE_MIN): Increase to 8%. |
| 12093 |
(VM_PAGE_FREE_RESERVED): Increase to 500 pages. |
| 12094 |
(VM_PAGEOUT_RESERVED_INTERNAL): Increase to 150 pages. |
| 12095 |
(VM_PAGEOUT_RESERVED_REALLY): Increase to 100 pages. |
| 12096 |
|
| 12097 |
2014-08-30 Samuel Thibault <[email protected]> |
| 12098 |
|
| 12099 |
Increate the pageout thread priority |
| 12100 |
* vm/vm_pageout.c (vm_pageout): Set the priority to 0. |
| 12101 |
|
| 12102 |
2014-08-30 Samuel Thibault <[email protected]> |
| 12103 |
|
| 12104 |
Bump NR_GRANT_PAGES |
| 12105 |
This has shown needed on buildds with several disks and network |
| 12106 |
interfaces. |
| 12107 |
|
| 12108 |
* xen/grant.c (NR_GRANT_PAGES): Increase from 4 to 8. |
| 12109 |
|
| 12110 |
2014-08-22 Samuel Thibault <[email protected]> |
| 12111 |
|
| 12112 |
Fix computation |
| 12113 |
* i386/i386at/com.c (comintr): Fix computation of '@'. |
| 12114 |
|
| 12115 |
2014-08-22 Neal H. Walfield <[email protected]> |
| 12116 |
|
| 12117 |
Even less magic-looking control value |
| 12118 |
* i386/i386at/com.c (comintr): Use 'A'-1 instead of '@'. |
| 12119 |
|
| 12120 |
2014-08-22 Justus Winter <[email protected]> |
| 12121 |
|
| 12122 |
Support invoking the debugger over the serial console |
| 12123 |
* i386/i386at/com.c (comintr): Invoke the debugger if ctrl-alt-d is |
| 12124 |
pressed. |
| 12125 |
* i386/i386at/com.h (kdb_kintr): Add declaration. |
| 12126 |
|
| 12127 |
2014-07-25 Samuel Thibault <[email protected]> |
| 12128 |
|
| 12129 |
Drop debugging prints |
| 12130 |
* i386/i386at/acpi.c (grub_machine_acpi_get_rsdpv2): Drop debugging |
| 12131 |
prints. |
| 12132 |
|
| 12133 |
2014-07-06 Samuel Thibault <[email protected]> |
| 12134 |
|
| 12135 |
Do not unmap page 0 when not needed |
| 12136 |
Since we need it to access some BIOS information, e.g. at ACPI shutdown. When |
| 12137 |
the kernel VM is not starting at 0, there is already nothing mapped there in |
| 12138 |
user tasks, anyway. |
| 12139 |
|
| 12140 |
* i386/i386at/model_dep.c (machine_init) [VM_MIN_KERNEL_ADDRESS != 0]: |
| 12141 |
Do not call pmap_unmap_page_zero. |
| 12142 |
* i386/intel/pmap.c (pmap_unmap_page_zero): Warn that unmapping page |
| 12143 |
zero may break some BIOS functions. |
| 12144 |
|
| 12145 |
2014-07-06 Samuel Thibault <[email protected]> |
| 12146 |
|
| 12147 |
Document that io_map_cached leaks memory |
| 12148 |
|
| 12149 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 12150 |
|
| 12151 |
2014-07-06 Justus Winter <[email protected]> |
| 12152 |
|
| 12153 |
i386: use ACPI to power off the machine |
| 12154 |
This is a mostly verbatim copy of acpihalt.c from GRUB2 with a little |
| 12155 |
bit of glue code. |
| 12156 |
|
| 12157 |
* i386/Makefrag.am (libkernel_a_SOURCES): Add the new files. |
| 12158 |
* i386/grub/acpi.h: Verbatim copy from GRUB2. |
| 12159 |
* i386/grub/compiler.h: Likewise. |
| 12160 |
* i386/grub/cpu/io.h: Likewise. |
| 12161 |
* i386/grub/cpu/time.h: Likewise. |
| 12162 |
* i386/grub/cpu/types.h: Likewise. |
| 12163 |
* i386/grub/err.h: Likewise. |
| 12164 |
* i386/grub/misc.h: Likewise. |
| 12165 |
* i386/grub/mm.h: Likewise. |
| 12166 |
* i386/grub/symbol.h: Likewise. |
| 12167 |
* i386/grub/time.h: Likewise. |
| 12168 |
* i386/grub/types.h: Likewise. |
| 12169 |
* i386/i386at/acpi.c: Likewise. |
| 12170 |
* i386/i386at/acpihalt.c: Likewise. |
| 12171 |
(grub_acpi_halt): Map physical addresses. |
| 12172 |
* i386/i386at/acpihalt.h: New file. |
| 12173 |
* i386/grub/glue.h: Some glue macros. |
| 12174 |
* i386/grub/i18n.h: Stub out i18n. |
| 12175 |
* i386/i386at/grub_glue.c: Some glue code. |
| 12176 |
* i386/i386at/model_dep.c (halt_all_cpus): Use grub_acpi_halt. |
| 12177 |
|
| 12178 |
2014-07-06 Justus Winter <[email protected]> |
| 12179 |
|
| 12180 |
i386: add io_map_cached |
| 12181 |
io_map_cached is like io_map, but reuses the old mapping if it is |
| 12182 |
applicable. |
| 12183 |
|
| 12184 |
* i386/i386/io_map.c: Add io_map_cached. |
| 12185 |
|
| 12186 |
2014-06-11 Justus Winter <[email protected]> |
| 12187 |
|
| 12188 |
doc: explain the floating point flag in kdb output |
| 12189 |
* doc/mach.texi (Kernel Debugger Commands): Explain the floating point |
| 12190 |
flag. |
| 12191 |
|
| 12192 |
2014-06-11 Justus Winter <[email protected]> |
| 12193 |
|
| 12194 |
i386: remap some keys |
| 12195 |
As a convenience for the nice people using our debugger, remap some |
| 12196 |
keys to the readline-like shortcuts supported by dde. |
| 12197 |
|
| 12198 |
* i386/i386at/kd.c (kdcnmaygetc): Remap some keys. |
| 12199 |
|
| 12200 |
2014-06-11 Justus Winter <[email protected]> |
| 12201 |
|
| 12202 |
i386: reformat the key map |
| 12203 |
* i386/i386at/kd.c (key_map): Remove superfluous newlines so that |
| 12204 |
every entry fits into one line. This way line numbers can be used as |
| 12205 |
an index into the map. |
| 12206 |
|
| 12207 |
ddb: use db_thread_stat to format the flags |
| 12208 |
* ddb/db_print.c (db_print_thread): Use db_thread_stat to format the |
| 12209 |
flags. |
| 12210 |
|
| 12211 |
ddb: print task names if available |
| 12212 |
* ddb/db_print.c (db_print_task): Print task name if available. |
| 12213 |
* i386/i386/db_interface.c (db_task_name): Likewise. |
| 12214 |
* i386/i386/db_machdep.h (DB_GNUMACH_TASK_NAME): Remove unused definition. |
| 12215 |
|
| 12216 |
kern: set the name of the kernel task to 'gnumach' |
| 12217 |
* kern/taks.c (task_init): Set the name of the kernel task to 'gnumach'. |
| 12218 |
|
| 12219 |
2014-06-11 Justus Winter <[email protected]> |
| 12220 |
|
| 12221 |
device: fix net_rcv_msg-messages |
| 12222 |
Previously, all net_rcv_msg-messages sent by net_deliver were |
| 12223 |
malformed. It never was a problem in practice, since the messages are |
| 12224 |
not complex and thus the kernel does not try to parse the message. |
| 12225 |
|
| 12226 |
struct net_rcv_msg contains an additional field of type boolean_t. |
| 12227 |
This field has no associated type descriptor, so it must not be |
| 12228 |
included in the message. |
| 12229 |
|
| 12230 |
* device/net_io.c (net_deliver): Account for the extra field in the |
| 12231 |
msgh_size calculation. |
| 12232 |
|
| 12233 |
2014-05-27 Samuel Thibault <[email protected]> |
| 12234 |
|
| 12235 |
Add missing memory clobber |
| 12236 |
* i386/i386/xen.h (mb, rmb, wmb): Add memory clobber. |
| 12237 |
|
| 12238 |
2014-05-25 Justus Winter <[email protected]> |
| 12239 |
|
| 12240 |
Rewrite old-style #endif FOO directives |
| 12241 |
* i386/include/mach/i386/cthreads.h: Rewrite old-style #endif FOO |
| 12242 |
directives. |
| 12243 |
* include/device/tape_status.h: Likewise. |
| 12244 |
* include/mach/alert.h: Likewise. |
| 12245 |
* include/mach/boot.h: Likewise. |
| 12246 |
* include/mach/default_pager_types.defs: Likewise. |
| 12247 |
* include/mach/default_pager_types.h: Likewise. |
| 12248 |
* include/mach/multiboot.h: Likewise. |
| 12249 |
* include/mach/notify.defs: Likewise. |
| 12250 |
* include/mach_debug/pc_info.h: Likewise. |
| 12251 |
* kern/act.h: Likewise. |
| 12252 |
* kern/refcount.h: Likewise. |
| 12253 |
* kern/shuttle.h: Likewise. |
| 12254 |
|
| 12255 |
2014-05-25 Justus Winter <[email protected]> |
| 12256 |
|
| 12257 |
include: fix the embedded type definitions in memory_object.defs |
| 12258 |
In order to use MIG translation functions to lookup memory objects, |
| 12259 |
preprocessor macros have been introduced into the definition of |
| 12260 |
memory_object_t in 50cc5152. |
| 12261 |
|
| 12262 |
The procedure definitions contain inlined type definitions in order to |
| 12263 |
change the type of the argument in question (i.e. to make it |
| 12264 |
polymorphic). The inline definitions however lack the destructor |
| 12265 |
function, leading to reference leaks when a reference is acquired in |
| 12266 |
the intran function. |
| 12267 |
|
| 12268 |
* include/mach/memory_object.defs: Add the destructor functions to the |
| 12269 |
inlined type definitions. |
| 12270 |
|
| 12271 |
2014-05-03 Justus Winter <[email protected]> |
| 12272 |
|
| 12273 |
ddb: add "halt" command |
| 12274 |
* ddb/db_command.c (db_command_table): Add "halt" command. |
| 12275 |
* i386/i386/db_interface.h (db_halt_cpu): New declaration. |
| 12276 |
* i386/i386at/model_dep.c (db_halt_cpu): New function. |
| 12277 |
|
| 12278 |
2014-04-30 Justus Winter <[email protected]> |
| 12279 |
|
| 12280 |
vm: make struct vm_map fit into a cache line |
| 12281 |
Currently, the size of struct vm_map is 68 bytes. By using a bit |
| 12282 |
field for the boolean flags, it can be made fit into a cache line. |
| 12283 |
|
| 12284 |
* vm/vm_map.h (struct vm_map): Use a bit field for the boolean flags |
| 12285 |
wait_for_space and wiring_required. |
| 12286 |
|
| 12287 |
2014-04-30 Justus Winter <[email protected]> |
| 12288 |
|
| 12289 |
i386: fix MACHINE_SERVER_HEADER |
| 12290 |
Commit b6dab094 introduced a way to include the MIG-generated server |
| 12291 |
files for the machine specific interface in ipc_kobject.c. |
| 12292 |
|
| 12293 |
This broke out-of-tree builds. Here, 'machine' is a symlink to |
| 12294 |
'../i386/i386', it points into the source tree. The MIG-generated |
| 12295 |
files however are put in the build tree in i386/i386. |
| 12296 |
|
| 12297 |
* i386/i386/machine_routines.h (MACHINE_SERVER_HEADER): Fix path. |
| 12298 |
|
| 12299 |
2014-04-30 Justus Winter <[email protected]> |
| 12300 |
|
| 12301 |
kern: include the MIG-generated server headers for MACHINE_SERVER |
| 12302 |
GNU MIG recently gained support for emitting x_server_routine |
| 12303 |
declarations in the generated server header file. Using this |
| 12304 |
declaration, the x_server_routine functions can be inlined into the |
| 12305 |
ipc_kobject_server function. |
| 12306 |
|
| 12307 |
* kern/ipc_kobject.c: Include the MIG-generated server headers for the |
| 12308 |
machine-dependent interfaces. |
| 12309 |
(ipc_kobject_server): Drop the simple declaration of |
| 12310 |
MACHINE_SERVER_ROUTINE. |
| 12311 |
* i386/i386/machine_routines.h (MACHINE_SERVER_HEADER): New |
| 12312 |
definition. |
| 12313 |
|
| 12314 |
2014-04-30 Justus Winter <[email protected]> |
| 12315 |
|
| 12316 |
include: do not guard the host_slab_info RPC with MACH_VM_DEBUG |
| 12317 |
Previously, the definition of the host_slab_info RPC was guarded with |
| 12318 |
MACH_VM_DEBUG, even though it is not at all concerned with the VM |
| 12319 |
subsystem. Furthermore, there was no "skip" directive for |
| 12320 |
host_slab_info. |
| 12321 |
|
| 12322 |
The function host_slab_info is guarded with MACH_DEBUG. The server |
| 12323 |
for the RPCs in mach_debug.defs is only used if MACH_DEBUG is |
| 12324 |
defined. There is no need to guard host_slab_info. |
| 12325 |
|
| 12326 |
* include/mach_debug/mach_debug.defs (host_slab_info): Unconditionally |
| 12327 |
include the RPC. |
| 12328 |
|
| 12329 |
2014-04-30 Justus Winter <[email protected]> |
| 12330 |
|
| 12331 |
Install the mach_debug header files |
| 12332 |
The task_set_name RPC introduced in 877a319c changed |
| 12333 |
include/mach/gnumach.defs to include mach_debug/mach_debug_types.defs. |
| 12334 |
Previously though, the debug headers were not installed. |
| 12335 |
|
| 12336 |
* Makefrag.am: Install the mach_debug header files. |
| 12337 |
|
| 12338 |
2014-04-30 Justus Winter <[email protected]> |
| 12339 |
|
| 12340 |
doc: fix the number of priorities |
| 12341 |
The number of priorities has been changed from 32 to 50 in |
| 12342 |
6a234201081156e6d5742e7eeabb68418b518fad. |
| 12343 |
|
| 12344 |
* doc/mach.texi: Update accordingly. |
| 12345 |
|
| 12346 |
2014-04-25 Samuel Thibault <[email protected]> |
| 12347 |
|
| 12348 |
Make sure mig is available |
| 12349 |
* configure.ac (MIG): Error out if MiG was not found. |
| 12350 |
|
| 12351 |
2014-04-13 Justus Winter <[email protected]> |
| 12352 |
|
| 12353 |
kern: set the name of tasks created during the bootstrap |
| 12354 |
* kern/bootstrap.c (boot_script_task_create): Set the name of newly |
| 12355 |
created tasks. |
| 12356 |
|
| 12357 |
2014-04-10 Justus Winter <[email protected]> |
| 12358 |
|
| 12359 |
include: fix the definition of device_open |
| 12360 |
Previously, every userspace server implementing the device protocol |
| 12361 |
filtered the device definitions to replace the device_t type with |
| 12362 |
mach_port_send_t to make the device argument of device_open |
| 12363 |
polymorphic. Rather than doing that, which makes it impossible to use |
| 12364 |
translation functions, fix the definition of device_open. |
| 12365 |
|
| 12366 |
* include/device/device.defs (device_open): Redefine the device |
| 12367 |
argument to make it polymorphic unless a outran function is specified. |
| 12368 |
|
| 12369 |
2014-04-08 Justus Winter <[email protected]> |
| 12370 |
|
| 12371 |
include: make the device_t types translation functions mutable |
| 12372 |
Make the intran, outtran and destructor functions mutable using |
| 12373 |
preprocessor macros. Make it possible to inject imports using the |
| 12374 |
DEVICE_IMPORTS macro. This way, userspace servers can provide their |
| 12375 |
own translation functions. |
| 12376 |
|
| 12377 |
* include/device/device_types.defs: Honor DEVICE_IMPORTS. |
| 12378 |
(device_t): Make the translation mutable using preprocessor macros. |
| 12379 |
|
| 12380 |
2014-04-05 Justus Winter <[email protected]> |
| 12381 |
|
| 12382 |
include: make the notify_port_t types translation functions mutable |
| 12383 |
Make the intran, outtran and destructor functions mutable using |
| 12384 |
preprocessor macros. Make it possible to inject imports using the |
| 12385 |
NOTIFY_IMPORTS macro. This way, userspace servers can provide their |
| 12386 |
own translation functions. |
| 12387 |
|
| 12388 |
* include/mach/notify.defs: Honor NOTIFY_IMPORTS. |
| 12389 |
(notify_port_t): Make the translation mutable using preprocessor macros. |
| 12390 |
|
| 12391 |
2014-04-04 Marin Ramesa <[email protected]> |
| 12392 |
|
| 12393 |
Convert from K&R to ANSI |
| 12394 |
Convert from K&R style function definitions to ANSI style |
| 12395 |
function definitions. |
| 12396 |
|
| 12397 |
* ddb/db_access.c: Convert function prototypes from K&R to ANSI. |
| 12398 |
* ddb/db_aout.c: Likewise. |
| 12399 |
* ddb/db_break.c: Likewise. |
| 12400 |
* ddb/db_command.c: Likewise. |
| 12401 |
* ddb/db_cond.c: Likewise. |
| 12402 |
* ddb/db_examine.c: Likewise. |
| 12403 |
* ddb/db_expr.c: Likewise. |
| 12404 |
* ddb/db_ext_symtab.c: Likewise. |
| 12405 |
* ddb/db_input.c: Likewise. |
| 12406 |
* ddb/db_lex.c: Likewise. |
| 12407 |
* ddb/db_macro.c: Likewise. |
| 12408 |
* ddb/db_mp.c: Likewise. |
| 12409 |
* ddb/db_output.c: Likewise. |
| 12410 |
* ddb/db_print.c: Likewise. |
| 12411 |
* ddb/db_run.c: Likewise. |
| 12412 |
* ddb/db_sym.c: Likewise. |
| 12413 |
* ddb/db_task_thread.c: Likewise. |
| 12414 |
* ddb/db_trap.c: Likewise. |
| 12415 |
* ddb/db_variables.c: Likewise. |
| 12416 |
* ddb/db_watch.c: Likewise. |
| 12417 |
* device/blkio.c: Likewise. |
| 12418 |
* device/chario.c: Likewise. |
| 12419 |
* device/dev_lookup.c: Likewise. |
| 12420 |
* device/dev_name.c: Likewise. |
| 12421 |
* device/dev_pager.c: Likewise. |
| 12422 |
* device/ds_routines.c: Likewise. |
| 12423 |
* device/net_io.c: Likewise. |
| 12424 |
* device/subrs.c: Likewise. |
| 12425 |
* i386/i386/db_interface.c: Likewise. |
| 12426 |
* i386/i386/fpu.c: Likewise. |
| 12427 |
* i386/i386/io_map.c: Likewise. |
| 12428 |
* i386/i386/loose_ends.c: Likewise. |
| 12429 |
* i386/i386/mp_desc.c: Likewise. |
| 12430 |
* i386/i386/pcb.c: Likewise. |
| 12431 |
* i386/i386/phys.c: Likewise. |
| 12432 |
* i386/i386/trap.c: Likewise. |
| 12433 |
* i386/i386/user_ldt.c: Likewise. |
| 12434 |
* i386/i386at/com.c: Likewise. |
| 12435 |
* i386/i386at/kd.c: Likewise. |
| 12436 |
* i386/i386at/kd_event.c: Likewise. |
| 12437 |
* i386/i386at/kd_mouse.c: Likewise. |
| 12438 |
* i386/i386at/kd_queue.c: Likewise. |
| 12439 |
* i386/i386at/lpr.c: Likewise. |
| 12440 |
* i386/i386at/model_dep.c: Likewise. |
| 12441 |
* i386/i386at/rtc.c: Likewise. |
| 12442 |
* i386/intel/pmap.c: Likewise. |
| 12443 |
* i386/intel/read_fault.c: Likewise. |
| 12444 |
* ipc/ipc_entry.c: Likewise. |
| 12445 |
* ipc/ipc_hash.c: Likewise. |
| 12446 |
* ipc/ipc_kmsg.c: Likewise. |
| 12447 |
* ipc/ipc_marequest.c: Likewise. |
| 12448 |
* ipc/ipc_mqueue.c: Likewise. |
| 12449 |
* ipc/ipc_notify.c: Likewise. |
| 12450 |
* ipc/ipc_port.c: Likewise. |
| 12451 |
* ipc/ipc_right.c: Likewise. |
| 12452 |
* ipc/mach_debug.c: Likewise. |
| 12453 |
* ipc/mach_msg.c: Likewise. |
| 12454 |
* ipc/mach_port.c: Likewise. |
| 12455 |
* ipc/mach_rpc.c: Likewise. |
| 12456 |
* kern/act.c: Likewise. |
| 12457 |
* kern/exception.c: Likewise. |
| 12458 |
* kern/ipc_mig.c: Likewise. |
| 12459 |
* kern/ipc_tt.c: Likewise. |
| 12460 |
* kern/lock_mon.c: Likewise. |
| 12461 |
* kern/mach_clock.c: Likewise. |
| 12462 |
* kern/machine.c: Likewise. |
| 12463 |
* kern/printf.c: Likewise. |
| 12464 |
* kern/priority.c: Likewise. |
| 12465 |
* kern/startup.c: Likewise. |
| 12466 |
* kern/syscall_emulation.c: Likewise. |
| 12467 |
* kern/syscall_subr.c: Likewise. |
| 12468 |
* kern/thread_swap.c: Likewise. |
| 12469 |
* kern/time_stamp.c: Likewise. |
| 12470 |
* kern/timer.c: Likewise. |
| 12471 |
* kern/xpr.c: Likewise. |
| 12472 |
* vm/memory_object.c: Likewise. |
| 12473 |
* vm/vm_debug.c: Likewise. |
| 12474 |
* vm/vm_external.c: Likewise. |
| 12475 |
* vm/vm_fault.c: Likewise. |
| 12476 |
* vm/vm_kern.c: Likewise. |
| 12477 |
* vm/vm_map.c: Likewise. |
| 12478 |
* vm/vm_pageout.c: Likewise. |
| 12479 |
* vm/vm_user.c: Likewise. |
| 12480 |
|
| 12481 |
2014-04-04 Samuel Thibault <[email protected]> |
| 12482 |
|
| 12483 |
Fix prototype |
| 12484 |
* linux/dev/glue/block.c (device_set_status): Fix prototype. |
| 12485 |
|
| 12486 |
2014-04-04 Marin Ramesa <[email protected]> |
| 12487 |
|
| 12488 |
Use explicit prototypes for struct dev_ops fields |
| 12489 |
* device/conf.h: Include <sys/types.h>, <mach/port.h>, <mach/vm_prot.h>. |
| 12490 |
Predefine struct io_req, io_req_t and io_return_t. |
| 12491 |
(dev_ops): Add explicit prototypes for d_open, d_close, d_read, d_write, |
| 12492 |
d_getstat, d_setstat, d_mmap, d_port_death. |
| 12493 |
(nulldev_open, nulldev_close, nulldev_read, nulldev_write, |
| 12494 |
nulldev_getstat, nulldev_setstat, nulldev_portdeath): Add prototypes. |
| 12495 |
(nomap): Fix prototype. |
| 12496 |
* device/dev_name.c (nulldev_open, nulldev_close, nulldev_read, |
| 12497 |
nulldev_write, nulldev_getstat, nulldev_setstat, nulldev_portdeath): New |
| 12498 |
functions. |
| 12499 |
(nomap): Fix prototype. |
| 12500 |
* device/ds_routines.c (dev_close): Pass 0 as flag parameter. |
| 12501 |
* device/kmsg.c (kmsgclose): Drop return value. |
| 12502 |
* device/kmsg.h (kmsgclose): Fix prototype. |
| 12503 |
* i386/i386at/com.c (comopen): Fix prototype. |
| 12504 |
(comclose): Fix prototype, drop return value. |
| 12505 |
(comread, comwrite): Fix prototype. |
| 12506 |
* i386/i386at/com.h (comopen, comclose, comread, comwrite): Fix |
| 12507 |
prototype. |
| 12508 |
* i386/i386at/conf.c (dev_ops): Use nulldev_open, nulldev_close, |
| 12509 |
nulldev_read, nulldev_write, nulldev_getstat, nulldev_setstat, |
| 12510 |
nulldev_portdeath where appropriate. |
| 12511 |
* i386/i386at/kd.c (kdclose, kdread, kdwrite, kdmmap): Fix prototype. |
| 12512 |
* i386/i386at/kd.h (kdclose, kdread, kdwrite, kdmmap): Likewise. |
| 12513 |
* i386/i386at/kd_event.c (kbdopen): Likewise. |
| 12514 |
* i386/i386at/kd_event.h (kbdopen): Likewise. |
| 12515 |
* i386/i386at/kd_mouse.c (mouseopen): Likewise. |
| 12516 |
* i386/i386at/kd_mouse.h (mouseopen): Likewise. |
| 12517 |
* i386/i386at/lpr.c (lpropen, lprclose, lprread, lprwrite): Likewise. |
| 12518 |
* i386/i386at/lpr.h (lpropen, lprclose, lprread, lprwrite): Likewise. |
| 12519 |
* i386/i386at/mem.c (memmmap): Likewise. |
| 12520 |
* i386/i386at/mem.h (memmmap): Likewise. |
| 12521 |
* i386/i386at/model_dep.c (timemmap): Likewise. |
| 12522 |
* i386/i386at/model_dep.h (timemmap): Likewise. |
| 12523 |
* kern/mach_clock.c (timeopen, timeclose): Likewise. |
| 12524 |
* kern/mach_clock.h: Include <sys/types.h>, predefine struct io_req and |
| 12525 |
io_req_t. |
| 12526 |
(timeopen, timeclose): Fix prototype. |
| 12527 |
|
| 12528 |
2014-03-28 Samuel Thibault <[email protected]> |
| 12529 |
|
| 12530 |
Assume EGA/VGA card |
| 12531 |
CGA and MONO cards are more than hard to find nowadays, and some buggy BIOSes |
| 12532 |
claim running them nowadays... |
| 12533 |
|
| 12534 |
* i386/i386at/kd.c (kd_xga_init): Do not handle CGA and MONO cases any |
| 12535 |
more, which thus default to EGA/VGA. |
| 12536 |
|
| 12537 |
2014-03-28 Samuel Thibault <[email protected]> |
| 12538 |
|
| 12539 |
Really default to EGA/VGA on unknown CMOS values |
| 12540 |
* i386/i386at/kd.c (kd_xga_init): Use CM_EGA_VGA behavior as default |
| 12541 |
case for unknown values of CMOS data. |
| 12542 |
|
| 12543 |
2014-03-26 Justus Winter <[email protected]> |
| 12544 |
|
| 12545 |
kern: fix formatting of multiboot modules |
| 12546 |
Previously, bootstrap_create would print the multiboot modules with |
| 12547 |
padding applied to the end of the line. As multiboot modules as used |
| 12548 |
by the Hurd span more than one line. This makes the list of modules |
| 12549 |
hard to read and it looks unclean, more like an accident. |
| 12550 |
Furthermore, it is not clear what the intend of this was, as the |
| 12551 |
padding is applied at the end of the line, with no further information |
| 12552 |
printed thereafter. |
| 12553 |
|
| 12554 |
* kern/bootstrap.c (bootstrap_create): Remove variable maxlen and len, |
| 12555 |
update printfs. |
| 12556 |
|
| 12557 |
2014-03-25 Justus Winter <[email protected]> |
| 12558 |
|
| 12559 |
include: make the memory_object_t types translation functions mutable |
| 12560 |
Make the intran, outtran and destructor functions mutable using |
| 12561 |
preprocessor macros. Make it possible to inject imports using the |
| 12562 |
MEMORY_OBJECT_IMPORTS macro. This way, userspace servers can provide |
| 12563 |
their own translation functions. |
| 12564 |
|
| 12565 |
* include/mach/mach_types.defs (memory_object_t): Make the translation |
| 12566 |
mutable using preprocessor macros. |
| 12567 |
* include/mach/memory_object.defs: Likewise for the inlined type declarations. |
| 12568 |
Honor MEMORY_OBJECT_IMPORTS. |
| 12569 |
* include/mach/memory_object_default.defs: Likewise. |
| 12570 |
|
| 12571 |
2014-03-22 Samuel Thibault <[email protected]> |
| 12572 |
|
| 12573 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 12574 |
|
| 12575 |
2014-03-22 Samuel Thibault <[email protected]> |
| 12576 |
|
| 12577 |
Fix overflow |
| 12578 |
We were filling much more than the mapwindows array, thus overwriting in |
| 12579 |
at least debugger variables. |
| 12580 |
|
| 12581 |
* i386/intel/pmap.c (pmap_bootstrap): Make sure to limit mapwindows |
| 12582 |
initialization within PMAP_NMAPWINDOWS. |
| 12583 |
|
| 12584 |
2014-03-20 Justus Winter <[email protected]> |
| 12585 |
|
| 12586 |
xen: fix error handling |
| 12587 |
Previously, the error KERN_RESOURCE_SHORTAGE was not properly |
| 12588 |
propagated. |
| 12589 |
|
| 12590 |
Found using the Clang Static Analyzer. |
| 12591 |
|
| 12592 |
* xen/block.c (device_open): Fix error handling, remove unused label. |
| 12593 |
* xen/net.c (device_open): Likewise. |
| 12594 |
|
| 12595 |
2014-03-20 Samuel Thibault <[email protected]> |
| 12596 |
|
| 12597 |
Only complain once per boot about Xen console smash |
| 12598 |
* xen/console.c (hypputc): Make `complain' variable static. |
| 12599 |
|
| 12600 |
2014-03-17 Samuel Thibault <[email protected]> |
| 12601 |
|
| 12602 |
Increase possible number of AHCI devices to 8 |
| 12603 |
by reducing possible number of partitions to 32. |
| 12604 |
|
| 12605 |
* linux/dev/drivers/block/ahci.c (MAX_PORTS): Set to 8. |
| 12606 |
(PARTN_BITS): Set to 5. |
| 12607 |
|
| 12608 |
2014-03-03 Samuel Thibault <[email protected]> |
| 12609 |
|
| 12610 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 12611 |
|
| 12612 |
2014-03-03 Samuel Thibault <[email protected]> |
| 12613 |
|
| 12614 |
Keep two virtual pages as mapping windows to access physical memory |
| 12615 |
PCI devices expose their memory etc. way beyond last_phys_addr. Userland |
| 12616 |
drivers opening /dev/mem need to open those too, even if phystokv() will |
| 12617 |
not work for them. |
| 12618 |
|
| 12619 |
* i386/intel/pmap.h (pmap_mapwindow_t): New type. |
| 12620 |
(pmap_get_mapwindow, pmap_put_mapwindow): New prototypes. |
| 12621 |
(PMAP_NMAPWINDOWS): New macro. |
| 12622 |
* i386/intel/pmap.c (mapwindows): New array. |
| 12623 |
(pmap_get_mapwindow, pmap_put_mapwindow): New functions. |
| 12624 |
(pmap_bootstrap, pmap_virtual_space): Reserve virtual pages for the mapping |
| 12625 |
windows. |
| 12626 |
* i386/i386/phys.c: Include <i386/model_dep.h> |
| 12627 |
(INTEL_PTE_W, INTEL_PTE_R): New macros |
| 12628 |
(pmap_zero_page, pmap_copy_page, copy_to_phys, copy_from_phys): Use |
| 12629 |
`pmap_get_mapwindow' to temporarily map physical pages beyond last_phys_addr. |
| 12630 |
|
| 12631 |
2014-02-26 Justus Winter <[email protected]> |
| 12632 |
|
| 12633 |
kern: fix mig_strncpy |
| 12634 |
Previously, the function mig_strncpy would always zero-terminate the |
| 12635 |
destination string. Make mig_strncpy behave like mig_strncpy and |
| 12636 |
strncpy in the glibc. Also fix the implementation of mig_strncpy to |
| 12637 |
return the length of the written string to align the implementation |
| 12638 |
with the declaration in include/mach/mig_support.h. |
| 12639 |
|
| 12640 |
* kern/ipc_mig.c (mig_strncpy): Do not zero-terminate the destination |
| 12641 |
string. Return length of destination string. |
| 12642 |
|
| 12643 |
2014-02-23 Samuel Thibault <[email protected]> |
| 12644 |
|
| 12645 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 12646 |
|
| 12647 |
AHCI driver cleanups |
| 12648 |
* linux/dev/drivers/block/ahci.c (struct port): Add id and is_cd fields. |
| 12649 |
(ahci_end_request): Only print error if quiet flag of the request is not |
| 12650 |
set. |
| 12651 |
(ahci_do_port_request): Upgrade sector parameter to 64 bit. Include |
| 12652 |
those bits in the LBA48 request. |
| 12653 |
(ahci_do_request): Upgrade sector count to 64bit. Only print errors if |
| 12654 |
quiet flag of the request is not set. |
| 12655 |
(ahci_probe_port): Move identify code... |
| 12656 |
(ahci_identify): ... to new function. Handle WIN_PIDENTIFY case to |
| 12657 |
recognize ATAPI devices. |
| 12658 |
(ahci_probe_port): Also try WIN_PIDENTIFY command. |
| 12659 |
(ahci_geninit): Avoid checking partition table on empty devices. |
| 12660 |
|
| 12661 |
2014-02-19 Justus Winter <[email protected]> |
| 12662 |
|
| 12663 |
include: skip routines related to migrating threads |
| 12664 |
* include/mach/mach_port.defs: Skip the routines mach_port_set_rpcinfo |
| 12665 |
and mach_port_create_act if MIGRATING_THREADS is not defined. |
| 12666 |
|
| 12667 |
2014-02-12 Samuel Thibault <[email protected]> |
| 12668 |
|
| 12669 |
Reduce kmem_map to make room for kentry_data_size |
| 12670 |
* kern/slab.c (KMEM_MAP_SIZE): Decrease from 128MiB to 96MiB. |
| 12671 |
|
| 12672 |
2014-02-10 Samuel Thibault <[email protected]> |
| 12673 |
|
| 12674 |
Make open return ENXIO on missing CD-ROM |
| 12675 |
* linux/src/drivers/block/ide-cd.c (ide_cdrom_open): Return -ENXIO when |
| 12676 |
CD sense failed. |
| 12677 |
|
| 12678 |
Add quiet flag to CD I/O |
| 12679 |
* linux/src/drivers/block/ide-cd.c (cdrom_queue_packet_command): Add `quiet' |
| 12680 |
parameter, copied into the request. |
| 12681 |
(cdrom_decode_status): Do not print I/O error when `quiet' field of |
| 12682 |
request is non-zero. |
| 12683 |
(cdrom_end_request): Do not print sense results when `quiet' field of |
| 12684 |
request is non-zero. |
| 12685 |
(cdrom_check_status, cdrom_read_capacity, cdrom_read_tocentry): Pass 1 to |
| 12686 |
`cdrom_queue_packet_command''s `quiet' parameter. |
| 12687 |
(cdrom_lockdoor, cdrom_eject, cdrom_pause, cdrom_startstop, |
| 12688 |
cdrom_read_subchannel, cdrom_mode_sense, cdrom_mode_select, |
| 12689 |
cdrom_play_lba_range_1, cdrom_read_block, cdrom_load_unload, |
| 12690 |
ide_cdrom_ioctl): Pass 0 to `cdrom_queue_packet_command''s `quiet' parameter. |
| 12691 |
|
| 12692 |
Add missing initialization |
| 12693 |
* linux/src/drivers/block/ide.c (ide_init_drive_cmd): Initialize `quiet' |
| 12694 |
field of request to 0; |
| 12695 |
|
| 12696 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 12697 |
|
| 12698 |
2014-02-10 Samuel Thibault <[email protected]> |
| 12699 |
|
| 12700 |
Add quiet flag to block I/O |
| 12701 |
This avoids grub & such making Mach print flurries of floppy errors. |
| 12702 |
|
| 12703 |
* linux/dev/include/linux/blkdev.h (request): Add `quiet' field. |
| 12704 |
* linux/dev/include/linux/blk.h (end_request): Print I/O error only if |
| 12705 |
the `quiet' field of the request is 0. |
| 12706 |
* linux/dev/include/linux/fs.h (ll_rw_block): Add `quiet' parameter. |
| 12707 |
* linux/dev/glue/block.c (ll_rw_block): Add `quiet' parameter, copied into |
| 12708 |
the request. |
| 12709 |
(bread, rdwr_partial, rdwr_full): Pass 0 to `ll_rw_block''s `quiet' parameter. |
| 12710 |
* linux/dev/drivers/block/floppy.c (floppy_revalidate): Pass 1 to |
| 12711 |
`ll_rw_block''s `quiet' parameter. |
| 12712 |
|
| 12713 |
2014-02-06 Richard Braun <[email protected]> |
| 12714 |
|
| 12715 |
vm: trigger garbage collection on kernel memory pressure |
| 12716 |
In addition to physical pages, the slab allocator also consumes kernel |
| 12717 |
virtual memory, so reclaim pages on failure to allocate from a kernel map. |
| 12718 |
This method isn't foolproof but helps alleviate fragmentation. |
| 12719 |
|
| 12720 |
* vm/vm_kern.c (kmem_alloc): Call slab_collect and retry allocation |
| 12721 |
once on failure. |
| 12722 |
(kmem_realloc): Likewise. |
| 12723 |
(kmem_alloc_wired): Likewise. |
| 12724 |
(kmem_alloc_wired): Likewise. |
| 12725 |
(kmem_alloc_aligned): Likewise. |
| 12726 |
|
| 12727 |
2014-02-05 Samuel Thibault <[email protected]> |
| 12728 |
|
| 12729 |
Remove duplicate typedef |
| 12730 |
* device/net_io.c (net_rcv_port_t, net_hash_entry_t, net_hash_header_t): |
| 12731 |
Remove duplicate typedefs. |
| 12732 |
|
| 12733 |
2014-02-05 Justus Winter <[email protected]> |
| 12734 |
|
| 12735 |
doc: document task_set_name |
| 12736 |
* doc/mach.texi (Task Information): Document the new task_set_name |
| 12737 |
procedure. |
| 12738 |
|
| 12739 |
2014-02-05 Justus Winter <[email protected]> |
| 12740 |
|
| 12741 |
include: add task_set_name |
| 12742 |
task_set_name sets the name of a task. This is a debugging aid. The |
| 12743 |
name will be used in error messages printed by the kernel. |
| 12744 |
|
| 12745 |
* include/mach/gnumach.defs (task_set_name): New procedure. |
| 12746 |
|
| 12747 |
2014-02-05 Justus Winter <[email protected]> |
| 12748 |
|
| 12749 |
kern: implement task_set_name |
| 12750 |
task_set_name sets the name of a task. This is a debugging aid. The |
| 12751 |
name will be used in error messages printed by the kernel. |
| 12752 |
|
| 12753 |
* kern/task.c (task_set_name): New function. |
| 12754 |
* kern/task.h (task_set_name): New declaration. |
| 12755 |
|
| 12756 |
2014-02-04 Samuel Thibault <[email protected]> |
| 12757 |
|
| 12758 |
Fix comstart when the queue is empty |
| 12759 |
Found by Coverity |
| 12760 |
|
| 12761 |
* i386/i386at/com.c (comstart): Make `nch' an int. When `getc' returns |
| 12762 |
-1, just return. |
| 12763 |
|
| 12764 |
2014-02-04 Samuel Thibault <[email protected]> |
| 12765 |
|
| 12766 |
Fix potential NULL dereference |
| 12767 |
Found by Coverity |
| 12768 |
|
| 12769 |
* i386/i386/user_ldt.c (i386_get_ldt): Fetch `pcb' field of `thread' |
| 12770 |
only after looking for `thread' being NULL. |
| 12771 |
|
| 12772 |
2014-02-04 Samuel Thibault <[email protected]> |
| 12773 |
|
| 12774 |
Fix potential NULL dereference |
| 12775 |
* vm/vm_kern.c (projected_buffer_deallocate): Look for `map' being NULL |
| 12776 |
or kernel_map before locking it. |
| 12777 |
|
| 12778 |
2014-02-04 Samuel Thibault <[email protected]> |
| 12779 |
|
| 12780 |
Fix potential NULL dereference |
| 12781 |
Found by Coverity |
| 12782 |
|
| 12783 |
* i386/i386/db_trace.c (db_find_kthread): Handle case when task is NULL. |
| 12784 |
|
| 12785 |
2014-02-04 Samuel Thibault <[email protected]> |
| 12786 |
|
| 12787 |
Fix potential NULL dereference |
| 12788 |
Found by Coverity. |
| 12789 |
|
| 12790 |
* i386/i386at/com.c (comopen): On com_reprobe() returning success, check |
| 12791 |
for `isai' again. |
| 12792 |
|
| 12793 |
2014-02-04 Justus Winter <[email protected]> |
| 12794 |
|
| 12795 |
xen: fix buffer size |
| 12796 |
Previously, only strlen(device_name) bytes were allocated, missing one |
| 12797 |
byte for the terminating zero. |
| 12798 |
|
| 12799 |
* xen/block.c (hyp_block_init): Fix buffer size. |
| 12800 |
|
| 12801 |
2014-02-04 Justus Winter <[email protected]> |
| 12802 |
|
| 12803 |
ddb: safely copy symbol names into the symtab structure |
| 12804 |
Use strncpy instead of strcpy to copy the name of a symbol into the |
| 12805 |
symtab structure. Make sure that the string is properly terminated. |
| 12806 |
|
| 12807 |
Found using Coverity. |
| 12808 |
|
| 12809 |
* ddb/db_sym.c (db_add_symbol_table): Use strncpy instead of strcpy, |
| 12810 |
ensure string termination. |
| 12811 |
|
| 12812 |
2014-02-04 Justus Winter <[email protected]> |
| 12813 |
|
| 12814 |
kern: make kmem_error panic |
| 12815 |
The slab allocator relies on the fact that kmem_cache_error does not |
| 12816 |
return. Previously, kmem_error was using printf. Use panic instead. |
| 12817 |
|
| 12818 |
Found using the Clang Static Analyzer. |
| 12819 |
|
| 12820 |
* kern/slab.c (kmem_error): Use panic instead of printf. |
| 12821 |
|
| 12822 |
2014-02-04 Justus Winter <[email protected]> |
| 12823 |
|
| 12824 |
kern: use kmem_warn instead of kmem_error in kmem_cache_error |
| 12825 |
* kern/slab.c (kmem_cache_error): Use kmem_warn instead of kmem_error |
| 12826 |
to print the cache name and its address. |
| 12827 |
|
| 12828 |
2014-02-04 Samuel Thibault <[email protected]> |
| 12829 |
|
| 12830 |
Fix FPU state copy size |
| 12831 |
* i386/i386/fpu.c (fpu_set_state, fpu_get_state): Fix size of |
| 12832 |
`user_fp_regs' access. |
| 12833 |
|
| 12834 |
Make empty while loops more prominent |
| 12835 |
* i386/i386at/kd.c (kdintr, kd_senddata, kd_sendcmd, kd_getgata, |
| 12836 |
kd_cmdreg_read, kd_cmdreg_write, kd_mouse_drain): Move semi colon of |
| 12837 |
empty while loops on a single line to make it more visible. |
| 12838 |
|
| 12839 |
2014-02-04 Samuel Thibault <[email protected]> |
| 12840 |
|
| 12841 |
Fix FPU state access |
| 12842 |
Found by coverity. |
| 12843 |
|
| 12844 |
* i386/i386/fpu.c (fpu_set_state, fpu_get_state): Fix out of bound |
| 12845 |
`user_fp_regs' access. |
| 12846 |
|
| 12847 |
2014-02-04 Samuel Thibault <[email protected]> |
| 12848 |
|
| 12849 |
Fix typo |
| 12850 |
* i386/i386at/kd_mouse.c (mouseopen): Fix typo. |
| 12851 |
|
| 12852 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 12853 |
|
| 12854 |
2014-02-04 Samuel Thibault <[email protected]> |
| 12855 |
|
| 12856 |
Add missing break |
| 12857 |
Found by Coverity |
| 12858 |
|
| 12859 |
* i386/i386at/kd_mouse.c (mouseopen): Add missing break. |
| 12860 |
|
| 12861 |
2014-02-01 Justus Winter <[email protected]> |
| 12862 |
|
| 12863 |
include: add a fixed-size string type for debugging purposes |
| 12864 |
* include/mach/debug.defs: New file. |
| 12865 |
* include/mach/debug.h: Likewise. |
| 12866 |
|
| 12867 |
ipc: use the name of the task for error messages |
| 12868 |
* ipc/mach_port.c (mach_port_destroy): Use the name of the task for |
| 12869 |
error messages. |
| 12870 |
(mach_port_deallocate): Likewise. |
| 12871 |
|
| 12872 |
kern: add a name field to struct task |
| 12873 |
* kern/task.c (task_create): Initialize name with the address of the task. |
| 12874 |
* kern/task.h (TASK_NAME_SIZE): New definition. |
| 12875 |
(struct task): Add field name. |
| 12876 |
|
| 12877 |
kern: add snprintf |
| 12878 |
* kern/printf.c (snprintf): New function. |
| 12879 |
* kern/printf.h (snprintf): New declaration. |
| 12880 |
|
| 12881 |
2014-01-16 Justus Winter <[email protected]> |
| 12882 |
|
| 12883 |
kern: include the mig-generated server headers in ipc_kobject.c |
| 12884 |
GNU MIG recently gained support for emitting x_server_routine |
| 12885 |
declarations in the generated server header file. Using this |
| 12886 |
declaration, the x_server_routine functions can be inlined into the |
| 12887 |
ipc_kobject_server function. |
| 12888 |
|
| 12889 |
* kern/ipc_kobject.c: Include the mig-generated server headers. |
| 12890 |
|
| 12891 |
2014-01-16 Justus Winter <[email protected]> |
| 12892 |
|
| 12893 |
vm: remove the declaration of memory_object_create_proxy |
| 12894 |
It is not clear to me why the declaration was put there in the first |
| 12895 |
place. It is not used anywhere, and it conflicts with the declaration |
| 12896 |
generated by mig. |
| 12897 |
|
| 12898 |
* vm/memory_object_proxy.h (memory_object_create_proxy): Remove declaration. |
| 12899 |
|
| 12900 |
2014-01-09 Justus Winter <[email protected]> |
| 12901 |
|
| 12902 |
kern: align kmem_cache objects using __cacheline_aligned |
| 12903 |
* kern/slab.h (struct kmem_cache): Align kmem_cache objects using |
| 12904 |
__cacheline_aligned. |
| 12905 |
|
| 12906 |
include: add new file for cache-related definitions |
| 12907 |
* include/cache.h (__cacheline_aligned): This macro can be used to |
| 12908 |
align statically allocated objects so that they start at a cache line. |
| 12909 |
|
| 12910 |
2014-01-06 Justus Winter <[email protected]> |
| 12911 |
|
| 12912 |
kern: optimize the layout of struct kmem_cache |
| 12913 |
* kern/slab.h (struct kmem_cache): Reorder the fields so that all hot |
| 12914 |
fields are within the first cache line. |
| 12915 |
|
| 12916 |
2014-01-05 Justus Winter <[email protected]> |
| 12917 |
|
| 12918 |
kern: explain the significance of the chosen length |
| 12919 |
* kern/slab.h (KMEM_CACHE_NAME_SIZE): Explain the significance of the |
| 12920 |
chosen length. |
| 12921 |
|
| 12922 |
2014-01-05 Justus Winter <[email protected]> |
| 12923 |
|
| 12924 |
linux: fix bit tests |
| 12925 |
The pattern is !x&y. An expression of this form is almost always |
| 12926 |
meaningless, because it combines a boolean operator with a bit |
| 12927 |
operator. In particular, if the rightmost bit of y is 0, the result |
| 12928 |
will always be 0. |
| 12929 |
|
| 12930 |
Fixed using coccinelle. |
| 12931 |
|
| 12932 |
// !x&y combines boolean negation with bitwise and |
| 12933 |
// |
| 12934 |
// Confidence: High |
| 12935 |
// Copyright: (C) Gilles Muller, Julia Lawall, EMN, DIKU. GPLv2. |
| 12936 |
// URL: http://www.emn.fr/x-info/coccinelle/rules/notand.html |
| 12937 |
// Options: |
| 12938 |
|
| 12939 |
@@ expression E1,E2; @@ |
| 12940 |
( |
| 12941 |
!E1 & !E2 |
| 12942 |
| |
| 12943 |
- !E1 & E2 |
| 12944 |
+ !(E1 & E2) |
| 12945 |
) |
| 12946 |
|
| 12947 |
* linux/src/drivers/scsi/FlashPoint.c: Fix bit tests. |
| 12948 |
|
| 12949 |
2014-01-05 Justus Winter <[email protected]> |
| 12950 |
|
| 12951 |
linux: fix bit tests |
| 12952 |
The pattern is !x&y. An expression of this form is almost always |
| 12953 |
meaningless, because it combines a boolean operator with a bit |
| 12954 |
operator. In particular, if the rightmost bit of y is 0, the result |
| 12955 |
will always be 0. |
| 12956 |
|
| 12957 |
Fixed using coccinelle. |
| 12958 |
|
| 12959 |
// !x&y combines boolean negation with bitwise and |
| 12960 |
// |
| 12961 |
// Confidence: High |
| 12962 |
// Copyright: (C) Gilles Muller, Julia Lawall, EMN, DIKU. GPLv2. |
| 12963 |
// URL: http://www.emn.fr/x-info/coccinelle/rules/notand.html |
| 12964 |
// Options: |
| 12965 |
|
| 12966 |
@@ expression E; constant C; @@ |
| 12967 |
( |
| 12968 |
!E & !C |
| 12969 |
| |
| 12970 |
- !E & C |
| 12971 |
+ !(E & C) |
| 12972 |
) |
| 12973 |
|
| 12974 |
* linux/src/drivers/net/tlan.c: Fix bit tests. |
| 12975 |
* linux/src/drivers/scsi/AM53C974.c: Likewise. |
| 12976 |
* linux/src/drivers/scsi/FlashPoint.c: Likewise. |
| 12977 |
* linux/src/drivers/scsi/NCR5380.c: Likewise. |
| 12978 |
* linux/src/drivers/scsi/t128.c: Likewise. |
| 12979 |
|
| 12980 |
2014-01-03 Justus Winter <[email protected]> |
| 12981 |
|
| 12982 |
kern: make struct kmem_cache fit into two cache lines |
| 12983 |
Previously, the size of struct kmem_cache was 136 bytes, just eight |
| 12984 |
bytes larger than 128 bytes, which is typically two cache lines on |
| 12985 |
today's CPUs. |
| 12986 |
|
| 12987 |
By reducing the size of the name field which holds a human-readable |
| 12988 |
description by eight bytes to 24 bytes, the struct kmem_cache can be |
| 12989 |
made fit into two cache lines. This change should not affect the |
| 12990 |
usefulness of this field. For reference, the length of the largest |
| 12991 |
hard-coded name is 17. |
| 12992 |
|
| 12993 |
* kern/slab.h (KMEM_CACHE_NAME_SIZE): Define to 24. |
| 12994 |
|
| 12995 |
2014-01-03 Justus Winter <[email protected]> |
| 12996 |
|
| 12997 |
kern: reduce the size of struct task |
| 12998 |
* kern/task.h (struct task): Reduce the size of struct task by |
| 12999 |
2 * sizeof boolean_t by using a bit field for the boolean flags. |
| 13000 |
|
| 13001 |
2014-01-03 Justus Winter <[email protected]> |
| 13002 |
|
| 13003 |
vm: reduce the size of struct vm_page |
| 13004 |
Previously, the bit field left 31 bits unused. By reducing the size |
| 13005 |
of wire_count by one bit, the size of the whole struct is reduced by |
| 13006 |
four bytes. |
| 13007 |
|
| 13008 |
* vm/vm_page.h (struct vm_page): Reduce the size of wire_count to 15 |
| 13009 |
bits. |
| 13010 |
|
| 13011 |
2014-01-03 Justus Winter <[email protected]> |
| 13012 |
|
| 13013 |
vm: merge the two bit fields in struct vm_page |
| 13014 |
* vm/vm_page.h (struct vm_page): Merge the two bit fields. |
| 13015 |
|
| 13016 |
2014-01-03 Justus Winter <[email protected]> |
| 13017 |
|
| 13018 |
vm: remove NS32000-specific padding from struct vm_page |
| 13019 |
Apparently, the NS32000 was a 32-bit CPU from the 1990ies. The string |
| 13020 |
"ns32000" appears nowhere else in the source. |
| 13021 |
|
| 13022 |
* vm/vm_page.h (struct vm_page): Remove NS32000-specific padding. |
| 13023 |
|
| 13024 |
2014-01-02 Samuel Thibault <[email protected]> |
| 13025 |
|
| 13026 |
Make sure cursor is initialized |
| 13027 |
* i386/i386at/kd.c (kd_xga_init): Add start, stop variables, read them |
| 13028 |
from CRT registers, make sure the cursor is enabled and is not reduced |
| 13029 |
to 0, and write them back to CRT registers. |
| 13030 |
* i386/i386at/kd.h (C_START, C_STOP): New macros. |
| 13031 |
|
| 13032 |
2014-01-01 Marin Ramesa <[email protected]> |
| 13033 |
|
| 13034 |
i386/include/mach/i386/mach_i386_types.h: add comments after else and endif |
| 13035 |
* i386/include/mach/i386/mach_i386_types.h (MACH_KERNEL): Add comments after else and endif. |
| 13036 |
|
| 13037 |
Add comment after endif |
| 13038 |
* i386/i386/io_perm.h (_I386_IO_PERM_H_): Add comment after endif. |
| 13039 |
|
| 13040 |
2013-12-20 Samuel Thibault <[email protected]> |
| 13041 |
|
| 13042 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 13043 |
|
| 13044 |
2013-12-20 Marin Ramesa <[email protected]> |
| 13045 |
|
| 13046 |
Mark pure functions with attribute pure |
| 13047 |
|
| 13048 |
kern/strings.c (strlen): mark with attribute pure |
| 13049 |
* kern/strings.c (strlen): Mark with attribute pure. |
| 13050 |
|
| 13051 |
ddb/db_watch.c (db_watchpoint_cmd): remove forward declaration |
| 13052 |
* ddb/db_watch.c (db_watchpoint_cmd) (db_option): Remove forward declaration. |
| 13053 |
|
| 13054 |
2013-12-20 Marin Ramesa <[email protected]> |
| 13055 |
|
| 13056 |
Declare void argument lists (part 2) |
| 13057 |
Declare void argument lists that were not declared in the first |
| 13058 |
part of this patch and |
| 13059 |
|
| 13060 |
* kern/sched_prim.h (recompute_priorities): Fix prototype. |
| 13061 |
* kern/startup.c (setup_main) (recompute_priorities): Fix call. |
| 13062 |
|
| 13063 |
2013-12-18 Justus Winter <[email protected]> |
| 13064 |
|
| 13065 |
i386: add missing includes |
| 13066 |
* i386/i386at/kd_event.h: Add missing includes. |
| 13067 |
|
| 13068 |
2013-12-17 Marin Ramesa <[email protected]> |
| 13069 |
|
| 13070 |
kern: avoid the casts in enqueue_head() and enqueue_tail() |
| 13071 |
* kern/eventcount.c (simpler_thread_setrun) (enqueue_head) (th): Avoid the cast. |
| 13072 |
* kern/thread.c (thread_halt_self) (enqueue_tail) (thread): Likewise. |
| 13073 |
* kern/thread_swap.c (thread_swapin) (enqueue_tail) (thread): Likewise. |
| 13074 |
|
| 13075 |
Mark functions that don't return with attribute noreturn |
| 13076 |
|
| 13077 |
vm: qualify pointers whose dereferenced values are constant with const |
| 13078 |
|
| 13079 |
util: qualify pointers whose dereferenced values are constant with const |
| 13080 |
|
| 13081 |
kern: qualify pointers whose dereferenced values are constant with const |
| 13082 |
|
| 13083 |
ipc: qualify pointers whose dereferenced values are constant with const |
| 13084 |
|
| 13085 |
i386: qualify pointers whose dereferenced values are constant with const |
| 13086 |
|
| 13087 |
device: qualify pointers whose dereferenced values are constant with const |
| 13088 |
|
| 13089 |
Cleanup of the copyin() and copyout() calls |
| 13090 |
* device/ds_routines.c (device_write_trap) (copyin) (data): Cast to (void *). Argument is an address. |
| 13091 |
(device_write_trap) (copyin) (io_data): Don't cast. |
| 13092 |
(device_writev_trap) (copyin) (iovec, stack_iovec): Likewise. |
| 13093 |
(device_writev_trap) (copyin) (data, p): Cast to (void *). Arguments are addresses. |
| 13094 |
* kern/bootstrap.c (build_args_and_stack) (copyout) (arg_count, string_pos, zero): Don't cast. |
| 13095 |
* kern/ipc_mig.c (syscall_vm_map) (copyin, copyout) (addr, address): Likewise. |
| 13096 |
(syscall_vm_allocate) (copyin, copyout) (addr, address): Likewise. |
| 13097 |
(syscall_task_create) (copyout) (name, child_task): Likewise. |
| 13098 |
(syscall_mach_port_allocate) (copyout) (name, namep): Likewise. |
| 13099 |
* kern/time_stamp.c (copyout) (temp, tsp): Likewise. |
| 13100 |
|
| 13101 |
2013-12-17 Marin Ramesa <[email protected]> |
| 13102 |
|
| 13103 |
kern/sched_prim.h: remove unnecessary __GNUC__ #ifdef |
| 13104 |
Attribute noreturn is used irrespective of __GNUC__. Remove |
| 13105 |
unnecessary #ifdef. |
| 13106 |
|
| 13107 |
* kern/sched_prim.h [__GNUC__]: Remove #ifdef. |
| 13108 |
|
| 13109 |
2013-12-17 Justus Winter <[email protected]> |
| 13110 |
|
| 13111 |
xen: add missing includes |
| 13112 |
* xen/console.h: Add missing includes. |
| 13113 |
|
| 13114 |
2013-12-16 Marin Ramesa <[email protected]> |
| 13115 |
|
| 13116 |
kern: quiet GCC warnings about set but unused variables |
| 13117 |
* kern/lock.h (simple_lock_data_empty): Define. |
| 13118 |
(decl_simple_lock_data, simple_unlock): Likewise. |
| 13119 |
* kern/sched_prim.c (lock): Declare. |
| 13120 |
[MACH_SLOCKS]: Remove #ifs. |
| 13121 |
* kern/task.c (task_lock, task_unlock): Remove address operator. |
| 13122 |
|
| 13123 |
Quiet GCC warning about uninitialized variable |
| 13124 |
* ddb/db_command.h (db_error): Mark with attribute noreturn. |
| 13125 |
* i386/i386/setjmp.h (_longjmp): Likewise. |
| 13126 |
|
| 13127 |
2013-12-15 Marin Ramesa <[email protected]> |
| 13128 |
|
| 13129 |
i386/i386/db_trace.c: use (long *) instead of an (int *) |
| 13130 |
* i386/i386/db_trace.c (db_lookup_i386_kreg) (kregp): Use (long *) instead of an (int *). |
| 13131 |
|
| 13132 |
device/dev_pager.c (device_pager_data_request_done): cast to size_t instead to unsigned |
| 13133 |
* device/dev_pager.c (device_pager_data_request_done) (memset) (io_residual): Cast to size_t instead to unsigned. |
| 13134 |
|
| 13135 |
2013-12-15 Marin Ramesa <[email protected]> |
| 13136 |
|
| 13137 |
device/dev_pager.c: remove unnecessary casts |
| 13138 |
Variable pager is already of ipc_port_t type. |
| 13139 |
|
| 13140 |
* device/dev_pager.c: Remove unnecessary casts. |
| 13141 |
|
| 13142 |
2013-12-15 Marin Ramesa <[email protected]> |
| 13143 |
|
| 13144 |
kern/sched_prim.c: avoid casts |
| 13145 |
Avoid the casts by passing the address of the links thread |
| 13146 |
structure member to enqueue_tail(). |
| 13147 |
|
| 13148 |
* kern/sched_prim.c: Avoid casts. |
| 13149 |
|
| 13150 |
2013-12-15 Marin Ramesa <[email protected]> |
| 13151 |
|
| 13152 |
ddb: qualify pointers whose dereferenced values are constant with const |
| 13153 |
|
| 13154 |
2013-12-15 Samuel Thibault <[email protected]> |
| 13155 |
|
| 13156 |
Fix gcc signedness warning |
| 13157 |
Thanks Marin Ramesa and Richard Braun for investigating. |
| 13158 |
|
| 13159 |
* i386/i386at/kd.c (kdintr): Make `char_idx' and `max' unsigned. |
| 13160 |
(kdstate2idx): Make function take and return unsigned ints for the state. |
| 13161 |
* i386/i386at/kd.h (kdstate2idx): Likewise. |
| 13162 |
|
| 13163 |
2013-12-15 Marin Ramesa <[email protected]> |
| 13164 |
|
| 13165 |
Type definition |
| 13166 |
* i386/i386/ast_check.c (init_ast_check, cause_ast_check): Define return type. |
| 13167 |
* i386/i386/pic.c (intnull, prtnull): Define argument types. |
| 13168 |
* i386/i386at/com.c (compr_addr): Likewise. |
| 13169 |
(compr): Likewise. |
| 13170 |
(compr_addr): Fix printf format. |
| 13171 |
* i386/i386at/kd.c (kd_cmdreg_write, kd_kbd_magic): Define argument types. |
| 13172 |
* i386/i386at/kd_mouse.c (init_mouse_hw): Likewise. |
| 13173 |
* ipc/mach_port.c (sact_count): Define return type. |
| 13174 |
* ipc/mach_rpc.c (mach_port_rpc_sig): Define argument types. |
| 13175 |
* kern/act.c (dump_act): Define return type. |
| 13176 |
* kern/lock_mon.c (simple_lock, simple_lock_try, simple_unlock, lip, lock_info_sort, lock_info_clear, print_lock_info): Define return type. |
| 13177 |
(time_lock): Define return type and argument type. |
| 13178 |
* kern/timer.c (time_trap_uexit): Define argument type. |
| 13179 |
|
| 13180 |
2013-12-15 Marin Ramesa <[email protected]> |
| 13181 |
|
| 13182 |
ddb/db_expr.c (db_mult_expr): initialize lhs |
| 13183 |
Initialize lhs to zero to avoid uninitialized usage in db_unary(). |
| 13184 |
|
| 13185 |
* ddb/db_expr.c (db_mult_expr) (lhs): Initialize to zero. |
| 13186 |
|
| 13187 |
2013-12-15 Marin Ramesa <[email protected]> |
| 13188 |
|
| 13189 |
ddb/db_break.c (db_delete_cmd): remove unnecessary initialization |
| 13190 |
Now that we have returns there are no more warnings from GCC about |
| 13191 |
uninitialized variable. Remove unnecessary initialization of variable |
| 13192 |
bkpt. |
| 13193 |
|
| 13194 |
* ddb/db_break.c (db_delete_cmd) (bkpt): Remove unnecessary initialization. |
| 13195 |
|
| 13196 |
2013-12-15 Marin Ramesa <[email protected]> |
| 13197 |
|
| 13198 |
ddb/db_break.c (db_find_breakpoint_here): remove unnecessary casts |
| 13199 |
Variable addr and member address are already of db_addr_t type which |
| 13200 |
is type defined as vm_offset_t. |
| 13201 |
|
| 13202 |
* ddb/db_break.c (db_find_breakpoint_here) (DB_PHYS_EQ) (addr, address): Remove unecessary casts. |
| 13203 |
|
| 13204 |
2013-12-15 Marin Ramesa <[email protected]> |
| 13205 |
|
| 13206 |
vm/vm_resident.c (vm_page_print): remove unnecessary casts |
| 13207 |
Members offset and phys_addr are of vm_offset_t types. |
| 13208 |
|
| 13209 |
* vm/vm_resident.c (vm_page_print) (offset, phys_addr): Remove unnecessary casts. |
| 13210 |
|
| 13211 |
2013-12-15 Marin Ramesa <[email protected]> |
| 13212 |
|
| 13213 |
vm/vm_kern.c (kmem_submap): remove unnecessary cast |
| 13214 |
The return value from vm_map_min() is already of vm_offset_t type. |
| 13215 |
|
| 13216 |
* vm/vm_kern.c (kmem_submap) (addr): Remove unnecessary cast. |
| 13217 |
|
| 13218 |
2013-12-15 Marin Ramesa <[email protected]> |
| 13219 |
|
| 13220 |
i386/i386/ldt.c: remove forward declaration |
| 13221 |
* i386/i386/ldt.c (syscall): Remove forward declaration. |
| 13222 |
Include locore.h. |
| 13223 |
* i386/i386/locore.h (syscall): Add prototype. |
| 13224 |
|
| 13225 |
2013-12-15 Marin Ramesa <[email protected]> |
| 13226 |
|
| 13227 |
kern/mach_clock.c: update comment |
| 13228 |
This is mach_clock.c, not clock_prim.c. |
| 13229 |
|
| 13230 |
* kern/mach_clock.c: Update comment. |
| 13231 |
|
| 13232 |
2013-12-15 Marin Ramesa <[email protected]> |
| 13233 |
|
| 13234 |
Declare void argument lists |
| 13235 |
|
| 13236 |
2013-12-11 Marin Ramesa <[email protected]> |
| 13237 |
|
| 13238 |
i386/i386at/kd_mouse.c (kd_mouse_open): remove forward declaration |
| 13239 |
* i386/i386at/kd_mouse.c (kd_mouse_open) (kdintr): Remove forward declaration. |
| 13240 |
|
| 13241 |
i386/i386at/kd.c (kdinit): remove forward declaration |
| 13242 |
* i386/i386at/kd.c (kdinit) (kd_xga_init): Remove forward declaration. |
| 13243 |
* i386/i386at/kd.h (kd_xga_init): Add prototype. |
| 13244 |
|
| 13245 |
2013-12-11 Marin Ramesa <[email protected]> |
| 13246 |
|
| 13247 |
i386/i386at/kd.c (kdmmap): remove unnecessary cast |
| 13248 |
Variable off is already an unsigned int. |
| 13249 |
|
| 13250 |
* i386/i386at/kd.c (kdmmap) (off): Remove unnecessary cast. |
| 13251 |
|
| 13252 |
2013-12-11 Marin Ramesa <[email protected]> |
| 13253 |
|
| 13254 |
i386/i386at/kd.c: remove forward declarations |
| 13255 |
* i386/i386at/kd.c (kd_getdata, state2leds, kdstart, kdstop): Remove forward declarations. |
| 13256 |
* i386/i386at/kd.h (kd_getdata, state2leds, kdstart, kdstop): Add prototypes. |
| 13257 |
Include device/tty.h. |
| 13258 |
|
| 13259 |
2013-12-11 Marin Ramesa <[email protected]> |
| 13260 |
|
| 13261 |
i386/i386/db_trace.c (db_i386_stack_trace): remove unnecessary cast |
| 13262 |
Argument to INKERNEL() is already cast to vm_offset_t in the macro itself. |
| 13263 |
|
| 13264 |
* i386/i386/db_trace.c (db_i386_stack_trace) (INKERNEL) (callpc): Don't cast to unsigned long. |
| 13265 |
(db_i386_stack_trace) (INKERNEL) (frame): Likewise. |
| 13266 |
|
| 13267 |
2013-12-11 Marin Ramesa <[email protected]> |
| 13268 |
|
| 13269 |
i386/i386/db_trace.c: remove forward declaration |
| 13270 |
* i386/Makefrag.am: List i386/i386/db_trace.h. |
| 13271 |
* i386/i386/db_trace.c: Include machine/db_trace.h. |
| 13272 |
(db_i386_stack_trace): Remove forward declaration. |
| 13273 |
* i386/i386/db_trace.h: New file. |
| 13274 |
Add copyright. |
| 13275 |
[_I386_DB_TRACE_H_]: Add ifndef. |
| 13276 |
(i386_frame): Declare forward. |
| 13277 |
(db_i386_stack_trace): Add prototype. |
| 13278 |
|
| 13279 |
2013-12-11 Marin Ramesa <[email protected]> |
| 13280 |
|
| 13281 |
ipc/mach_debug.c (mach_port_kernel_object): remove unnecessary cast |
| 13282 |
Member ip_kobject is of type vm_offset_t. |
| 13283 |
|
| 13284 |
* ipc/mach_debug.c (mach_port_kernel_object) (ip_kobject): Remove unnecessary cast. |
| 13285 |
|
| 13286 |
2013-12-11 Marin Ramesa <[email protected]> |
| 13287 |
|
| 13288 |
ipc/mach_debug.c (mach_port_kernel_object): remove unnecessary cast |
| 13289 |
Return value from ip_kotype is an unsigned int. |
| 13290 |
|
| 13291 |
* ipc/mach_debug.c (mach_port_kernel_object) (ip_kotype): Remove unnecessary cast. |
| 13292 |
|
| 13293 |
2013-12-11 Marin Ramesa <[email protected]> |
| 13294 |
|
| 13295 |
Cleanup of the memcpy(), memmove(), memcmp() and memset() calls |
| 13296 |
Addresses were cast to (void *). Pointers uncasted. |
| 13297 |
|
| 13298 |
* device/ds_routines.c (ds_read_done) (memset) (start_sent): Cast to (void *) instead to (char *). Argument is an address. |
| 13299 |
(ds_read_done) (memset) (end_data): Likewise. |
| 13300 |
* i386/i386/pcb.c (thread_getstatus) (memcpy) (pm): Don't cast. Argument is a pointer. |
| 13301 |
(thread_getstatus) (memcpy) (iopb): Likewise. |
| 13302 |
* i386/i386at/immc.c (immc_cnputc) (memmove): Cast first argument to (void *). Argument is an address. |
| 13303 |
(immc_cnputc) (memmove): Cast second argument to (void *). Argument is an address. |
| 13304 |
(immc_cnputc) (memset): Cast first argument to (void *). Argument is an address. |
| 13305 |
* i386/i386at/model_dep.c (i386at_init) (memcpy) (phystokv): Cast to (void *) instead to (char *). Argument is an address. |
| 13306 |
* i386/intel/pmap.c (pmap_init) (memset) (addr): Likewise. |
| 13307 |
* ipc/mach_debug.c (mach_port_space_info) (memset) (table_addr + size_used): Likewise. |
| 13308 |
(mach_port_space_info) (memset) (tree_addr + size_used): Likewise. |
| 13309 |
* kern/host.c (host_processor_sets) (memcpy) (newaddr): Likewise. |
| 13310 |
(host_processor_sets) (memcpy) (addr): Likewise. |
| 13311 |
* kern/xpr.c (xprbootstrap) (memset) (addr): Likewise. |
| 13312 |
* vm/vm_debug.c (mach_vm_object_pages) (memset) (addr + size_used): Likewise. |
| 13313 |
|
| 13314 |
2013-12-10 Marin Ramesa <[email protected]> |
| 13315 |
|
| 13316 |
device/subrs.c: use io_req_t instead of struct buf |
| 13317 |
Struct buf is not defined. Use io_req_t instead of it. |
| 13318 |
|
| 13319 |
* device/subrs.c (harderr) (bp): Change name to ior and use io_req_t as type instead of (struct buf *). |
| 13320 |
(harderr) (minor): Use io_unit instead of b_dev. |
| 13321 |
(harderr): Use io_recnum instead of b_blkno. |
| 13322 |
(gateblk): Use io_req_t as return value instead of (struct buf *). |
| 13323 |
(brelse) (bp): Change name to ior and use io_req_t as type instead of (struct buf *). |
| 13324 |
(brelse) (ior): Remove variable. |
| 13325 |
|
| 13326 |
2013-12-10 Marin Ramesa <[email protected]> |
| 13327 |
|
| 13328 |
device/net_io.c: remove forward declarations |
| 13329 |
* device/net_io.c (bpf_hash, net_do_filter, bpf_do_filter, hash_ent_remove, net_free_dead_infp, net_free_dead_entp, bpf_validate, bpf_eq, net_add_q_info, bpf_match): Remove forward declarations. |
| 13330 |
* device/net_io.h (net_rcv_port, net_hash_entry, net_hash_header): Declare forward. |
| 13331 |
(bpf_hash, net_do_filter, bpf_do_filter, hash_ent_remove, net_free_dead_infp, net_free_dead_entp, bpf_validate, bpf_eq, net_add_q_info, bpf_match): Add prototypes. |
| 13332 |
|
| 13333 |
device/dev_pager.c: remove forward declarations |
| 13334 |
* device/dev_pager.c (device_pager_data_request_done, device_pager_data_write_done): Remove forward declarations. |
| 13335 |
* device/dev_pager.h (device_pager_data_request_done, device_pager_data_write_done): Add prototypes. |
| 13336 |
|
| 13337 |
device/dev_pager.c: remove forward declaration |
| 13338 |
* Makefrag.am: Include device/blkio.h. |
| 13339 |
* device/blkio.h: New file. |
| 13340 |
Add copyright. |
| 13341 |
[_DEVICE_BLKIO_H_]: Add ifndef. |
| 13342 |
(block_io_mmap): Add prototype. |
| 13343 |
* device/dev_pager.c: Include device/blkio.h. |
| 13344 |
(block_io_mmap): Remove forward declaration. |
| 13345 |
|
| 13346 |
2013-12-10 Marin Ramesa <[email protected]> |
| 13347 |
|
| 13348 |
device/dev_pager.c (device_pager_data_request_done): remove unnecessary cast |
| 13349 |
The argument to trunc_page() is already cast to vm_offset_t in the |
| 13350 |
macro itself. |
| 13351 |
|
| 13352 |
* device/dev_pager.c (device_pager_data_request_done) (trunc_page) (io_data): Don't cast to vm_offset_t. |
| 13353 |
|
| 13354 |
2013-12-10 Marin Ramesa <[email protected]> |
| 13355 |
|
| 13356 |
device/dev_pager.c (device_pager_data_request): cast to (void *) instead to (char *) |
| 13357 |
* device/dev_pager.c (device_pager_data_request) (vm_object_page_map) (ds): Cast to (void *) instead to (char *). |
| 13358 |
|
| 13359 |
device/dev_pager.c (device_pager_data_request): remove forward declaration |
| 13360 |
* Makefrag.am: Include device/dev_pager.h. |
| 13361 |
* device/dev_pager.c: Likewise. |
| 13362 |
(device_map_page): Remove forward declaration. |
| 13363 |
* device/dev_pager.h: New file. |
| 13364 |
Add copyright. |
| 13365 |
[_DEVICE_DEV_PAGER_H_]: Add ifndef. |
| 13366 |
(device_map_page): Add prototype. |
| 13367 |
|
| 13368 |
device/cons.c: fix argument list |
| 13369 |
* device/cons.c (romgetc, romputc): Fix argument list. |
| 13370 |
|
| 13371 |
2013-12-10 Marin Ramesa <[email protected]> |
| 13372 |
|
| 13373 |
device/cirbuf.c (cb_free): use vm_size_t instead of an int |
| 13374 |
This is more in line with the call to kfree() in cb_free(). |
| 13375 |
|
| 13376 |
* device/cirbuf.c (cb_free) (size): Use vm_size_t instead of an int. |
| 13377 |
|
| 13378 |
2013-12-10 Marin Ramesa <[email protected]> |
| 13379 |
|
| 13380 |
device/cirbuf.c (cb_alloc): use vm_size_t instead of an int |
| 13381 |
This is more in line with the call to kalloc() in cb_alloc(). |
| 13382 |
|
| 13383 |
* device/chario.c (tty_inq_size, tty_outq_size): Use unsigned int instead if an int. |
| 13384 |
* device/cirbuf.c (cb_alloc) (buf_size): Use vm_size_t instead of an int. |
| 13385 |
* device/cirbuf.h (cb_alloc) (buf_size): Likewise. |
| 13386 |
|
| 13387 |
2013-12-10 Marin Ramesa <[email protected]> |
| 13388 |
|
| 13389 |
device/chario.c: trivial stylistic fix for consistency |
| 13390 |
* device/chario.c: Trivial stylistic fix for consistency. |
| 13391 |
|
| 13392 |
2013-12-10 Marin Ramesa <[email protected]> |
| 13393 |
|
| 13394 |
i386/i386/db_interface.c: use vm_offset_t instead of an unsigned int |
| 13395 |
This is more in line with how the function db_user_to_kernel_address() is |
| 13396 |
called. In this way there is one cast less and several GCC warnings are |
| 13397 |
silenced. |
| 13398 |
|
| 13399 |
* i386/i386/db_interface.c (db_set_hw_watchpoint) (kern_addr): Use vm_offset_t instead of an unsigned int. |
| 13400 |
(db_user_to_kernel_address) (kaddr): Likewise. |
| 13401 |
(db_user_to_kernel_address) (ptetokv): Don't cast return value. |
| 13402 |
(db_read_bytes) (kern_addr): Use vm_offset_t instead of an unsigned int. |
| 13403 |
(db_write_bytes_user_space) (kern_addr): Likewise. |
| 13404 |
(db_task_name) (vaddr, kaddr): Likewise. |
| 13405 |
* i386/i386/db_interface.h (db_user_to_kernel_address) (kaddr): Likewise. |
| 13406 |
|
| 13407 |
2013-12-10 Marin Ramesa <[email protected]> |
| 13408 |
|
| 13409 |
i386/i386at/kd_event.c (kbdsetstat): fix difference in signedness |
| 13410 |
* i386/i386at/kd_event.c (X_kdb_enter_init, X_kdb_exit_init): Cast first arguments to (unsigned int *). |
| 13411 |
|
| 13412 |
2013-12-10 Marin Ramesa <[email protected]> |
| 13413 |
|
| 13414 |
i386: move prototypes to fix implicit declaration of function |
| 13415 |
This fixes the implicit declarations in kern/machine.c and kern/debug.c. |
| 13416 |
|
| 13417 |
* i386/i386/model_dep.h (halt_cpu, halt_all_cpus): Add prototypes. |
| 13418 |
* i386/i386at/model_dep.h (halt_cpu, halt_all_cpus): Remove prototypes. |
| 13419 |
|
| 13420 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13421 |
|
| 13422 |
ddb/db_trap.c (db_task_trap): remove forward declarations |
| 13423 |
* ddb/db_break.h (db_check_breakpoint_valid): Add prototype. |
| 13424 |
* ddb/db_trap.c (db_init_default_thread, db_check_breakpoint_valid): Remove forward declarations. |
| 13425 |
|
| 13426 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13427 |
|
| 13428 |
Use db_addr_t instead of db_expr_t |
| 13429 |
In this way everything falls into place and there is one cast less. |
| 13430 |
|
| 13431 |
Function db_task_printsym() is already always called with the cast to |
| 13432 |
db_addr_t in the first argument. |
| 13433 |
|
| 13434 |
* ddb/db_aout.c (aout_db_line_at_pc): Use db_addr_t instead of db_expr_t. |
| 13435 |
(aout_db_search_by_addr): Don't cast to vm_offset_t. Argument is already |
| 13436 |
db_addr_t. |
| 13437 |
* ddb/db_aout.h (aout_db_line_at_pc): Use db_addr_t instead of db_expr_t. |
| 13438 |
* ddb/db_sym.c (db_task_printsym): Likewise. |
| 13439 |
(db_line_at_pc): Likewise. |
| 13440 |
* ddb/db_sym.h (db_task_printsym): Likewise. |
| 13441 |
(db_line_at_pc): Likewise. |
| 13442 |
* i386/i386/db_trace.c (db_task_printsym): Cast to db_addr_t instead of db_expr_t. |
| 13443 |
Member swap_func is a pointer to void. |
| 13444 |
|
| 13445 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13446 |
|
| 13447 |
ddb/db_print.c: use unsigned long instead of an unsigned int |
| 13448 |
Variable db_maxoff is in other files declared as unsigned long. |
| 13449 |
|
| 13450 |
* ddb/db_print.c (db_maxoff): Use unsigned long instead of an unsigned int. |
| 13451 |
|
| 13452 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13453 |
|
| 13454 |
ddb/db_mp.c: definition of db_console() only if CONSOLE_ON_MASTER |
| 13455 |
Function db_console() is called only if CONSOLE_ON_MASTER. |
| 13456 |
|
| 13457 |
If it stays this way, db_console() will not compile. I don't know |
| 13458 |
if it should be removed. Maybe someone will rewrite it. |
| 13459 |
|
| 13460 |
* ddb/db_mp.c (db_console): Definition only if CONSOLE_ON_MASTER. |
| 13461 |
* ddb/db_mp.h [CONSOLE_ON_MASTER] (db_console): Add prototype. |
| 13462 |
|
| 13463 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13464 |
|
| 13465 |
ddb/db_mp.c: use boolean instead of an int |
| 13466 |
* ddb/db_mp.c (db_enter_debug): Use boolean instead of an int. |
| 13467 |
|
| 13468 |
ddb/db_examine.c: trivial stylistic fix for consistency |
| 13469 |
* ddb/db_examine.c: Trivial stylistic fix for consistency. |
| 13470 |
|
| 13471 |
ddb/db_examine.c (db_examine_cmd): remove forward declaration |
| 13472 |
* ddb/db_examine.c (db_option): Remove forward declaration. |
| 13473 |
|
| 13474 |
ddb/db_command.c (db_command): remove forward declaration |
| 13475 |
* ddb/db_command.c (db_fncall): Remove forward declaration. |
| 13476 |
|
| 13477 |
ddb/db_command.c: use boolean values |
| 13478 |
* ddb/db_command.c (db_cmd_loop_done): Use boolean values. |
| 13479 |
|
| 13480 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13481 |
|
| 13482 |
i386/i386at/kd.c: use io_req instead of uio |
| 13483 |
Struct uio is nowhere defined and in device/buf.h the string uio is defined |
| 13484 |
as io_req. Remove all declarations of uio structure and use io_req_t instead |
| 13485 |
of it. |
| 13486 |
|
| 13487 |
* device/buf.h (uio, io_req): Remove definition. |
| 13488 |
* i386/i386at/kd.c: Remove comment. |
| 13489 |
(kdread): Use io_req_t. |
| 13490 |
(kdwrite): Likewise. |
| 13491 |
* i386/i386at/kd.h (kdread, kdwrite): Use io_req_t as argument type. |
| 13492 |
|
| 13493 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13494 |
|
| 13495 |
ddb/db_break.c (db_find_thread_breakpoint_here): remove unnecessary cast |
| 13496 |
Variable addr is already of type db_addr_t. |
| 13497 |
|
| 13498 |
* ddb/db_break.c (db_find_thread_breakpoint_here) (addr): Don't cast to db_addr_t. |
| 13499 |
|
| 13500 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13501 |
|
| 13502 |
ddb/db_break.c (db_add_thread_breakpoint): fix argument list |
| 13503 |
* ddb/db_break.c (db_add_thread_breakpoint): Fix argument list. |
| 13504 |
|
| 13505 |
ddb/db_aout.c (aout_db_lookup): remove forward declaration |
| 13506 |
* ddb/db_aout.c (db_sym_parse_and_lookup): Remove forward declaration. |
| 13507 |
* ddb/db_sym.h (db_sym_parse_and_lookup): Add prototype. |
| 13508 |
|
| 13509 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13510 |
|
| 13511 |
ddb/db_aout.c (aout_db_qualified_search): use DB_SYM_NULL as return value |
| 13512 |
Function aout_db_qualified_search() returns db_sym_t. Use DB_SYM_NULL as |
| 13513 |
return value instead of zero. |
| 13514 |
|
| 13515 |
* ddb/db_aout.c (aout_db_qualified_search): Use DB_SYM_NULL as return value. |
| 13516 |
|
| 13517 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13518 |
|
| 13519 |
i386/i386/db_interface.c: remove forward declaration |
| 13520 |
* i386/i386/db_interface.c (db_write_bytes_user_space): Remove forward declaration. |
| 13521 |
* i386/i386/db_interface.h (db_write_bytes_user_space): Add prototype. |
| 13522 |
|
| 13523 |
i386/i386at/lpr.c: fix initalization from incompatible pointer type |
| 13524 |
* i386/i386at/lpr.c (lprprobe): Modify argument types. |
| 13525 |
* i386/i386at/lpr.h (lprprobe): Likewise. |
| 13526 |
|
| 13527 |
i386/i386at/com.c: fix assignment from incompatible pointer type |
| 13528 |
* device/tty.h (tty): Modify so that correct argument list and return type is listed. |
| 13529 |
|
| 13530 |
i386/i386at/com.c: fix initialization from incompatible pointer type |
| 13531 |
* i386/i386at/com.c (comprobe): Modify argument types. |
| 13532 |
(comprobe): Cast from (struct bus_ctrl *) to (struct bus_device *). |
| 13533 |
comprobe_general() uses only a small subset of members, so it's all |
| 13534 |
the same which struct it is. |
| 13535 |
* i386/i386at/com.h (comprobe): Modify argument types. |
| 13536 |
|
| 13537 |
kern/startup.c: use boolean values |
| 13538 |
* kern/startup.c (reboot_on_panic): Use boolean values. |
| 13539 |
|
| 13540 |
vm/vm_map.c: use boolean instead of an int |
| 13541 |
* vm/vm_map.c (vm_map_pmap_enter_print, vm_map_pmap_enter_enable): Use boolean instead of an int. |
| 13542 |
|
| 13543 |
vm/vm_object.c: remove unused variable |
| 13544 |
* vm/vm_object.c (vm_object_terminate_remove_all): Remove unused variable. |
| 13545 |
|
| 13546 |
vm/vm_pageout.c: remove forward declarations |
| 13547 |
* vm/vm_pageout.c (vm_pageout_continue, vm_pageout_scan_continue): Remove forward declarations. |
| 13548 |
* vm/vm_pageout.h (vm_pageout_continue, vm_pageout_scan_continue): Add prototypes. |
| 13549 |
|
| 13550 |
i386/i386at/pic_isa.c: remove forward declaration |
| 13551 |
* i386/Makefrag.am: Include i386/i386/hardclock.h. |
| 13552 |
* i386/i386/hardclock.h: New file. |
| 13553 |
Add copyright. |
| 13554 |
[_I386_HARDCLOCK_H_]: Add ifndef. |
| 13555 |
(hardclock): Add prototype. |
| 13556 |
* i386/i386at/pic_isa.c (hardclock): Remove forward declaration. |
| 13557 |
Include i386/hardclock.h. |
| 13558 |
|
| 13559 |
i386/i386at/model_dep.c: fix argument list |
| 13560 |
* i386/i386at/model_dep.c (timemmap): Fix argument list. |
| 13561 |
|
| 13562 |
i386/i386at/lpr.c: fix argument list |
| 13563 |
* i386/i386at/lpr.c (lprprobe): Fix argument list. |
| 13564 |
|
| 13565 |
ddb/db_output.c: remove forward declaration |
| 13566 |
* ddb/db_input.h (db_check_interrupt): Add prototype. |
| 13567 |
* ddb/db_output.c: Include ddb/db_input.h. |
| 13568 |
(db_check_interrupt): Remove forward declaration. |
| 13569 |
|
| 13570 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13571 |
|
| 13572 |
kern/act.h: remove unnecessary include |
| 13573 |
File kern/act.h includes itself. Remove this include. |
| 13574 |
|
| 13575 |
* kern/act.h: Don't include kern/act.h. |
| 13576 |
|
| 13577 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13578 |
|
| 13579 |
Cleanup of the prototypes |
| 13580 |
* device/cirbuf.h (nqdb): Remove prototype without definition. |
| 13581 |
* device/conf.h (dev_set_indirect): Likewise. |
| 13582 |
* kern/boot_script.h (boot_script_read_file): Likewise. |
| 13583 |
* kern/eventcount.h (evc_notify_abort): Remove duplicate prototype. |
| 13584 |
* kern/thread.h (thread_set_own_priority): Likewise. |
| 13585 |
* kern/thread_swap.h (thread_swapout): Remove prototype without definition. |
| 13586 |
* kern/timer.h (softclock): Remove duplicate prototype. |
| 13587 |
* vm/pmap.h (pmap_resident_count, pmap_access, pmap_phys_address, pmap_phys_to_frame): Remove prototypes without function definition. |
| 13588 |
* vm/vm_page.h (vm_set_page_size): Likewise. |
| 13589 |
|
| 13590 |
vm/vm_page.h: remove unused variables |
| 13591 |
* vm/vm_page.h (first_phys_addr, last_phys_addr): Remove unused variables. |
| 13592 |
|
| 13593 |
kern/syscall_sw.c: use boolean instead of an int |
| 13594 |
* kern/syscall_sw.c (kern_invalid_debug): Use boolean instead of an int. |
| 13595 |
|
| 13596 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13597 |
|
| 13598 |
kern/refcount.h: remove unnecessary include |
| 13599 |
File kern/refcount.h includes itself. Remove this include. |
| 13600 |
|
| 13601 |
* kern/refcount.h: Don't include kern/refcount.h. |
| 13602 |
|
| 13603 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13604 |
|
| 13605 |
kern/rbtree.h: remove unnecessary include |
| 13606 |
File kern/rbtree.h includes itself. Remove this include. |
| 13607 |
|
| 13608 |
* kern/rbtree.h: Don't include kern/rbtree.h. |
| 13609 |
|
| 13610 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13611 |
|
| 13612 |
kern/priority.c: update comment |
| 13613 |
This is priority.c. Not clock_prim.c. |
| 13614 |
|
| 13615 |
* kern/priority.c: Update comment. |
| 13616 |
|
| 13617 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13618 |
|
| 13619 |
kern/pc_sample.c: remove unused variables |
| 13620 |
* kern/pc_sample.c (pc_sampling_enabled, pc_sampling_lock): Remove unused variables. |
| 13621 |
|
| 13622 |
kern/lock_mon.c: remove dead assignments |
| 13623 |
* kern/lock_mon.c (scurval, ssum, sli): Remove variables. |
| 13624 |
(scurval, ssum, sli): Remove dead assignments. |
| 13625 |
|
| 13626 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13627 |
|
| 13628 |
kern/lock_mon.c: use spl_t instead of an int |
| 13629 |
Variable curr_ipl is in other files declared as spl_t. |
| 13630 |
|
| 13631 |
* kern/lock_mon.c (curr_ipl): Use spl_t instead of an int. |
| 13632 |
|
| 13633 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13634 |
|
| 13635 |
kern/act.h: remove prototype without definition |
| 13636 |
* kern/act.h (act_create_kernel): Remove prototype without definition. |
| 13637 |
|
| 13638 |
2013-12-08 Samuel Thibault <[email protected]> |
| 13639 |
|
| 13640 |
Add comment |
| 13641 |
|
| 13642 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13643 |
|
| 13644 |
ipc/port.h: update comment |
| 13645 |
This is ipc/port.h. Not ipc/ipc_port.h. |
| 13646 |
|
| 13647 |
* ipc/port.h: Update comment. |
| 13648 |
|
| 13649 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13650 |
|
| 13651 |
ipc/mach_port.c: use boolean instead of an int |
| 13652 |
* ipc/mach_port.c (mach_port_deallocate_debug): Use boolean instead of an int. |
| 13653 |
|
| 13654 |
ipc/ipc_init.c: qualify constant with const |
| 13655 |
* ipc/ipc_init.c (ipc_kernel_map_size): Qualify constant with const. |
| 13656 |
|
| 13657 |
i386/intel/pmap.c: remove unused variable |
| 13658 |
* i386/intel/pmap.c (end): Remove unused variable. |
| 13659 |
|
| 13660 |
i386/intel/pmap.c: use boolean instead of an int |
| 13661 |
* i386/intel/pmap.c (pmap_debug): Use boolean instead of an int. |
| 13662 |
|
| 13663 |
time: remove unused variable |
| 13664 |
* i386/i386at/rtc.c (tz): Remove unused variable. |
| 13665 |
* xen/time.c (tz): Remove unused variable. |
| 13666 |
|
| 13667 |
i386/i386at/rtc.c: use boolean instead of an int |
| 13668 |
* i386/i386at/rtc.c (first_rtcopen_ever): Use boolean instead of an int. |
| 13669 |
|
| 13670 |
i386/i386at/kd.c: use boolean instead of an unsigned int |
| 13671 |
* i386/i386at/kd.c (kd_bellstate): Use boolean instead of an unsigned int. |
| 13672 |
|
| 13673 |
i386/i386at/kd.c: use boolean instead of an int |
| 13674 |
* i386/i386at/kd.c (mouse_in_use): Use boolean instead of an int. |
| 13675 |
Remove duplicate declaration. |
| 13676 |
|
| 13677 |
i386/i386at/model_dep.c, kd.c: use boolean instead of an int |
| 13678 |
* i386/i386at/kd.c (rebootflag): Use boolean instead of an int. |
| 13679 |
Remove duplicate variable declaration. |
| 13680 |
* i386/i386at/model_dep.c (rebootflag): Use boolean instead of an int. |
| 13681 |
|
| 13682 |
i386/i386at/immc.c, kd.c: use boolean instead of an int |
| 13683 |
* i386/i386at/immc.c (immediate_console_enable): Use boolean instead of an int. |
| 13684 |
* i386/i386at/kd.c (immediate_console_enable): Likewise. |
| 13685 |
|
| 13686 |
i386/i386/user_ldt.c: remove unused variable |
| 13687 |
* i386/i386/user_ldt.c (acc_type): Remove unused variable. |
| 13688 |
|
| 13689 |
i386/i386/trap.c: remove unused variables |
| 13690 |
* i386/i386/trap.c (v86_assist_on, v86_unsafe_ok, v86_do_sti_cli, v86_do_sti_immediate, cli_count, sti_count): Remove unused variables. |
| 13691 |
|
| 13692 |
i386/i386/trap.c: remove unused variable |
| 13693 |
* i386/i386/trap.c (brb): Remove unused variable. |
| 13694 |
|
| 13695 |
i386/i386/pit.c: remove unused variables |
| 13696 |
* i386/i386/pit.c (pitctr1_port, pitctr2_port): Remove unused variables. |
| 13697 |
|
| 13698 |
i386/i386/pic.c: remove unused variables |
| 13699 |
* i386/i386/pic.c (nintr, npics): Remove unused variables. |
| 13700 |
|
| 13701 |
i386/i386/mp_desc.c: remove unused variable |
| 13702 |
* i386/i386/mp_desc.c (avail_start): Remove unused variable. |
| 13703 |
|
| 13704 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13705 |
|
| 13706 |
i386/i386/ipl.h: remove ifdef and add ifndef |
| 13707 |
This code is used even if KERNEL is not defined. Remove the ifdef. |
| 13708 |
|
| 13709 |
* i386/i386/ipl.h [_I386_IPL_H_]: Add ifndef. |
| 13710 |
|
| 13711 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13712 |
|
| 13713 |
i386/i386/db_interface.c: use boolean instead of an int |
| 13714 |
* i386/i386/db_interface.c (kernel_dr): Use boolean instead of an int. |
| 13715 |
|
| 13716 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13717 |
|
| 13718 |
device/tty.h, chario.h: move prototype |
| 13719 |
Now that we have device/chario.h move the chario_init() prototype |
| 13720 |
from device/tty.h to device/chario.h. |
| 13721 |
|
| 13722 |
* device/chario.h (chario_init): Add prototype. |
| 13723 |
* device/device_init.c: Include device/chario.h. |
| 13724 |
* device/tty.h (chario_init): Remove prototype. |
| 13725 |
|
| 13726 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13727 |
|
| 13728 |
device/kmsg.c: use boolean instead of an int |
| 13729 |
* device/kmsg.c (kmsg_init_done): Use boolean instead of an int. |
| 13730 |
|
| 13731 |
device/kmsg.c: use boolean instead of an int |
| 13732 |
* device/kmsg.c (kmsg_in_use): Use boolean instead of an int. |
| 13733 |
|
| 13734 |
device/if_ether.h: remove unused variable |
| 13735 |
* device/if_ether.h (etherbroadcastaddr): Remove unused variable. |
| 13736 |
* device/subrs.c (etherbroadcastaddr): Remove initialization. |
| 13737 |
|
| 13738 |
device/dev_lookup.c: remove unused lock |
| 13739 |
* device/dev_lookup.c (dev_port_lock): Remove unused lock. |
| 13740 |
|
| 13741 |
device/cirbuf.c: use boolean instead of an int |
| 13742 |
* device/cirbuf.c (cb_check_enable): Use boolean instead of an int. |
| 13743 |
|
| 13744 |
device/chario.c: use boolean instead of an int |
| 13745 |
* device/chario.c (pdma_default): Use boolean instead of an int. |
| 13746 |
|
| 13747 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13748 |
|
| 13749 |
ddb/db_output.c: remove duplicate function |
| 13750 |
Function kdbprintf() and db_printf() are the same function. Remove |
| 13751 |
kdbprintf() and define kdbprintf to db_printf. |
| 13752 |
|
| 13753 |
* ddb/db_output.c (kdbprintf): Remove function. |
| 13754 |
* ddb/db_output.h: Define kdbprintf to db_printf. |
| 13755 |
(kdbprintf): Remove prototype. |
| 13756 |
|
| 13757 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13758 |
|
| 13759 |
ddb/db_output.c: remove call to nonexistent db_printf_enter() |
| 13760 |
* ddb/db_output.c [db_printf_enter] (db_printf_enter): Remove call to nonexistent function. |
| 13761 |
|
| 13762 |
ddb/db_command.h: remove duplicate variable declaration |
| 13763 |
* ddb/db_command.h (db_recover): Remove duplicate variable declaration. |
| 13764 |
|
| 13765 |
ddb/db_command.c: remove forward declaration |
| 13766 |
* ddb/db_command.c (db_skip_to_eol): Remove forward declaration. |
| 13767 |
|
| 13768 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13769 |
|
| 13770 |
i386/i386/setjmp.h: remove ifdef |
| 13771 |
Function _longjmp() is used even if __GNUC__ is not defined. Avoid |
| 13772 |
implicit declaration in that case by removing the ifdef. |
| 13773 |
|
| 13774 |
* i386/i386/setjmp.h [__GNUC__] (_longjmp): Remove ifdef. |
| 13775 |
|
| 13776 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13777 |
|
| 13778 |
kern/machine.c: remove __volatile__ |
| 13779 |
Shutdown can be optimised. Remove __volatile__. |
| 13780 |
|
| 13781 |
* kern/machine.c [__GNUC__] (processor_doshutdown): Remove volatile function qualifier. |
| 13782 |
|
| 13783 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13784 |
|
| 13785 |
ipc/ipc_port.c: trivial stylistic fix for consistency |
| 13786 |
* ipc/ipc_port.c (indent): Trivial stylistic fix for consistency. |
| 13787 |
|
| 13788 |
2013-12-08 Samuel Thibault <[email protected]> |
| 13789 |
|
| 13790 |
Make unsigned character constants unsigned |
| 13791 |
Thanks Marin Ramesa for the report. |
| 13792 |
|
| 13793 |
* i386/i386at/kd.h (K_DONE, NC, K_SCAN): Make constants unsigned. |
| 13794 |
|
| 13795 |
2013-12-08 Samuel Thibault <[email protected]> |
| 13796 |
|
| 13797 |
Always make Assert trigger debugger |
| 13798 |
* kern/debug.c (Assert): Always call Debugger, even if db_breakpoints_insert |
| 13799 |
is not set. |
| 13800 |
|
| 13801 |
2013-12-08 Samuel Thibault <[email protected]> |
| 13802 |
|
| 13803 |
Fix implicit declaration of function |
| 13804 |
Thanks Marin Ramesa for the report. |
| 13805 |
|
| 13806 |
* device/ds_routines.h (device_deallocate): Move declaration to... |
| 13807 |
* include/device/device_types.h (device_deallocate): ... here. |
| 13808 |
|
| 13809 |
2013-12-08 Marin Ramesa <[email protected]> |
| 13810 |
|
| 13811 |
device/device_types_kernel.h: remove redeclaration of dev_port_lookup() |
| 13812 |
* device/device_types_kernel.h (dev_port_lookup): Remove prototype. |
| 13813 |
|
| 13814 |
Add ifndefs |
| 13815 |
* i386/i386at/cram.h [_CRAM_H_]: Add ifndef. |
| 13816 |
* i386/i386at/disk.h [_DISK_H_]: Likewise. |
| 13817 |
* i386/i386at/i8250.h [_I8250_H_]: Likewise. |
| 13818 |
* i386/include/mach/i386/asm.h [_MACH_I386_ASM_H_]: Likewise. |
| 13819 |
* i386/include/mach/i386/disk.h [_MACH_I386_DISK_H_]: Likewise. |
| 13820 |
|
| 13821 |
Add comments after endifs |
| 13822 |
* device/cons.c [MACH_KMSG]: Likewise. |
| 13823 |
[CONSBUFSIZE > 0]: Likewise. |
| 13824 |
* i386/i386/trap.c [MACH_KDB]: Likewise. |
| 13825 |
[MACH_PV_PAGETABLES]: Likewise. |
| 13826 |
* i386/i386at/kd.c [ENABLE_IMMEDIATE_CONSOLE]: Likewise. |
| 13827 |
* ipc/ipc_kmsg_queue.h [_IPC_KMSG_QUEUE_H_]: Likewise. |
| 13828 |
* kern/act.c [ACTWATCH]: Likewise. |
| 13829 |
* kern/refcount.h [MACHINE_REFCOUNT]: Likewise. |
| 13830 |
* kern/task.c [FAST_TAS]: Likewise. |
| 13831 |
|
| 13832 |
2013-12-04 Samuel Thibault <[email protected]> |
| 13833 |
|
| 13834 |
Add missing include |
| 13835 |
* ddb/db_variables.h: Include <machine/db_machdep.h>. |
| 13836 |
|
| 13837 |
2013-12-04 Marin Ramesa <[email protected]> |
| 13838 |
|
| 13839 |
i386/i386at/com.h: include chips/busses.h for struct bus_device |
| 13840 |
* i386/i386at/com.h: Include chips/busses.h. |
| 13841 |
|
| 13842 |
ddb/db_variables.c: fix near initialization |
| 13843 |
* ddb/db_task_thread.c (db_set_default_thread): New parameter. |
| 13844 |
* ddb/db_task_thread.h (db_set_default_thread): Likewise. |
| 13845 |
|
| 13846 |
kern/mach_clock.c: remove forward declaration |
| 13847 |
* Makefrag.am: Include kern/priority.h. |
| 13848 |
* kern/mach_clock.c (thread_quantum_update): Remove forward declaration. |
| 13849 |
Include kern/priority.h. |
| 13850 |
* kern/priority.h: New file. |
| 13851 |
Add copyright. |
| 13852 |
[_KERN_PRIORITY_H_]: Add ifndef. |
| 13853 |
(thread_quantum_update): Add prototype. |
| 13854 |
|
| 13855 |
ipc/mach_port.c: remove forward declaration |
| 13856 |
* ipc/mach_port.c (mach_port_get_receive_status): Remove forward declaration. |
| 13857 |
* ipc/mach_port.h (mach_port_get_receive_status): Add prototype. |
| 13858 |
|
| 13859 |
ipc/ipc_entry.c: remove forward declaration |
| 13860 |
* ipc/ipc_entry.c (db_ipc_object_by_name): Remove forward declaration. |
| 13861 |
* ipc/ipc_entry.h (db_ipc_object_by_name): Add prototype. |
| 13862 |
|
| 13863 |
i386/i386at/model_dep.c: remove forward declaration |
| 13864 |
* i386/i386at/model_dep.c (init_alloc_aligned): Remove forward declaration. |
| 13865 |
* i386/i386at/model_dep.h (init_alloc_aligned): Add prototype. |
| 13866 |
|
| 13867 |
kern/time_stamp.c: remove multimax code |
| 13868 |
* kern/time_stamp.c [multimax]: Remove code. |
| 13869 |
|
| 13870 |
2013-12-04 Samuel Thibault <[email protected]> |
| 13871 |
|
| 13872 |
Remove unnecessary file |
| 13873 |
* i386/Makefrag.am: Don't include i386/include/mach/i386/rpc.h. |
| 13874 |
* i386/include/mach/i386/rpc.h: Remove file. |
| 13875 |
|
| 13876 |
2013-12-04 Marin Ramesa <[email protected]> |
| 13877 |
|
| 13878 |
vm/vm_user.c: remove forward declaration |
| 13879 |
* vm/vm_user.c (vm_map_machine_attribute): Remove forward declaration. |
| 13880 |
|
| 13881 |
2013-12-04 Marin Ramesa <[email protected]> |
| 13882 |
|
| 13883 |
vm/vm_resident.c: correct comment |
| 13884 |
This is vm_resident.c, not vm_page.c. |
| 13885 |
|
| 13886 |
* vm/vm_resident.c: Correct comment. |
| 13887 |
|
| 13888 |
2013-12-04 Marin Ramesa <[email protected]> |
| 13889 |
|
| 13890 |
vm/vm_map.c: remove forward declarations |
| 13891 |
* vm/vm_map.c (_vm_map_clip_start, _vm_map_copy_clip_start, _vm_map_clip_end, _vm_map_copy_clip_end): Remove forward declarations. |
| 13892 |
* vm/vm_map.h (_vm_map_clip_end): Correct prototype. |
| 13893 |
|
| 13894 |
vm/vm_kern.c: remove forward declarations |
| 13895 |
* vm/vm_kern.c (kmem_alloc_pages, kmem_remap_pages): Remove forward declarations. |
| 13896 |
* vm/vm_kern.h (kmem_alloc_pages, kmem_remap_pages): Add prototypes. |
| 13897 |
|
| 13898 |
vm/vm_fault.c: remove forward declaration |
| 13899 |
* vm/vm_fault.c (vm_fault_wire_fast): Remove forward declaration. |
| 13900 |
* vm/vm_fault.h (vm_fault_wire_fast): Add prototype. |
| 13901 |
|
| 13902 |
2013-12-04 Marin Ramesa <[email protected]> |
| 13903 |
|
| 13904 |
ipc/ipc_kmsg.h: update comment |
| 13905 |
Struct ipc_kmsg_queue is not defined in kern/thread.h. |
| 13906 |
|
| 13907 |
* ipc/ipc_kmsg.h: Update comment. |
| 13908 |
|
| 13909 |
2013-12-04 Marin Ramesa <[email protected]> |
| 13910 |
|
| 13911 |
kern: remove forward declaration |
| 13912 |
* kern/xpr.c (db_printf): Remove forward declaration. |
| 13913 |
[MACH_KDB] Include ddb/db_output.h. |
| 13914 |
|
| 13915 |
kern/thread.c: remove forward declaration |
| 13916 |
* i386/i386/pcb.h (pcb_module_init): Add prototype. |
| 13917 |
* kern/thread.c (pcb_module_init): Remove forward declaration. |
| 13918 |
|
| 13919 |
kern/task.c: remove forward declarations |
| 13920 |
* ipc/ipc_mqueue.h: Include ipc/ipc_kmsg_queue.h. |
| 13921 |
* kern/ipc_kobject.h: Move includes into ifndef. |
| 13922 |
* kern/syscall_emulation.h: Include kern/task.h. |
| 13923 |
(eml_init, eml_task_reference, eml_task_deallocate): Add prototypes. |
| 13924 |
* kern/task.c: Include kern/syscall_emulation.h. |
| 13925 |
(eml_init, eml_task_reference, eml_task_deallocate): Remove forward declarations |
| 13926 |
|
| 13927 |
kern/syscall_sw.c: remove forward declarations |
| 13928 |
* kern/eventcount.h (evc_wait_clear): Add prototype. |
| 13929 |
* kern/ipc_mig.h: Include device/device_types.h. |
| 13930 |
(syscall_vm_map, syscall_vm_allocate, syscall_vm_deallocate, syscall_task_create, syscall_task_terminate, syscall_task_suspend, syscall_task_set_special_port, syscall_mach_port_allocate, syscall_mach_port_deallocate, syscall_mach_port_insert_right, syscall_mach_port_allocate_name, syscall_thread_depress_abort, syscall_device_write_request, syscall_device_writev_request): Add prototypes. |
| 13931 |
* kern/syscall_sw.c (syscall_vm_map, syscall_vm_allocate, syscall_vm_deallocate, syscall_task_create, syscall_task_terminate, syscall_task_suspend, syscall_task_set_special_port, syscall_mach_port_allocate, syscall_mach_port_deallocate, syscall_mach_port_insert_right, syscall_mach_port_allocate_name, syscall_thread_depress_abort, evc_wait, evc_wait_clear, syscall_device_write_request, syscall_device_writev_request): Remove forward declarations. |
| 13932 |
Include kern/ipc_mig.h. |
| 13933 |
Include kern/eventcount.h. |
| 13934 |
|
| 13935 |
kern/syscall_subr.c: remove forward declaration |
| 13936 |
* kern/syscall_subr.c (thread_depress_priority): Remove forward declaration. |
| 13937 |
* kern/syscall_subr.h (thread_depress_priority): Add prototype. |
| 13938 |
|
| 13939 |
kern/startup.c: remove forward declarations |
| 13940 |
* Makefrag.am: Include kern/bootstrap.h. |
| 13941 |
Include vm/vm_init.h. |
| 13942 |
Include device/device_init.h. |
| 13943 |
* device/device_init.h: New file. |
| 13944 |
Add copyright. |
| 13945 |
[_DEVICE_DEVICE_INIT_H_]: Add ifndef. |
| 13946 |
(device_service_create): Add prototype. |
| 13947 |
* i386/i386/mp_desc.h (start_other_cpus): Add prototype. |
| 13948 |
* kern/bootstrap.h: New file. |
| 13949 |
Add copyright. |
| 13950 |
[_KERN_BOOTSTRAP_H_]: Add ifndef. |
| 13951 |
(bootstrap_create): Add prototype. |
| 13952 |
* kern/sched_prim.h (idle_thread, sched_thread): Add prototypes. |
| 13953 |
* kern/startup.c: Include kern/bootstrap.h. |
| 13954 |
Include kern/startup.h. |
| 13955 |
Include vm/vm_init.h. |
| 13956 |
Include vm/vm_pageout.h. |
| 13957 |
Include device/device_init.h. |
| 13958 |
(vm_mem_init, vm_mem_bootstrap, init_timeout, machine_init, idle_thread, vm_pageout, reaper_thread, swapin_thread, sched_thread, bootstrap_create, device_service_create, cpu_launch_first_thread, start_kernel_threads, start_other_cpus, action_thread): Remove forward declarations. |
| 13959 |
[NCPUS > 1] Include machine/mp_desc.h and kern/machine.h. |
| 13960 |
* kern/startup.h: Include kern/thread.h. |
| 13961 |
(cpu_launch_first_thread, start_kernel_threads): Add prototypes. |
| 13962 |
* vm/vm_init.h: New file. |
| 13963 |
Add copyright. |
| 13964 |
[_VM_VM_INIT_H_]: Add ifndef. |
| 13965 |
(vm_mem_init, vm_mem_bootstrap): Add prototypes. |
| 13966 |
* vm/vm_pageout.h (vm_pageout): Add prototype. |
| 13967 |
|
| 13968 |
kern/sched_prim.c: remove forward declarations |
| 13969 |
* kern/sched_prim.c (set_pri, do_thread_scan, choose_pset_thread, checkrq, thread_check): Remove forward declarations. |
| 13970 |
* kern/sched_prim.h (set_pri, do_thread_scan, choose_pset_thread, checkrq, thread_check): Add prototypes. |
| 13971 |
|
| 13972 |
kern/processor.c: remove forward declarations |
| 13973 |
* kern/processor.c (quantum_set, pset_init, processor_init): Remove forward declarations. |
| 13974 |
* kern/processor.h (quantum_set, pset_init, processor_init): Add prototypes. |
| 13975 |
|
| 13976 |
kern/ipc_mig.c: remove forward declarations |
| 13977 |
* device/ds_routines.h (ds_device_write_trap, ds_device_writev_trap): Add prototypes. |
| 13978 |
* kern/ipc_mig.c (ds_device_write_trap, ds_device_writev_trap): Remove forward declarations. |
| 13979 |
|
| 13980 |
kern/debug.c: remove forward declaration |
| 13981 |
* kern/debug.c (cnputc): Remove forward declaration. |
| 13982 |
Include device/cons.h. |
| 13983 |
|
| 13984 |
kern/bootstrap.c: remove forward declarations |
| 13985 |
* i386/i386/pcb.h: Include mach/thread_status.h. |
| 13986 |
Include machine/thread.h. |
| 13987 |
* kern/bootstrap.c: Include machine/pcb.h. |
| 13988 |
(user_stack_low, set_user_regs): Remove forward declarations. |
| 13989 |
|
| 13990 |
ipc/mach_msg.c: remove forward declarations |
| 13991 |
* ipc/mach_msg.c: Include kern/exception.h. |
| 13992 |
(exception_raise_continue, exception_raise_continue_fast): Remove forward declarations. |
| 13993 |
* kern/exception.h: Include ipc/ipc_types.h. |
| 13994 |
Include ipc/ipc_kmsg.h. |
| 13995 |
|
| 13996 |
ipc/ipc_table.c: remove forward declaration |
| 13997 |
* ipc/ipc_table.c (ipc_table_fill): Remove forward declaration. |
| 13998 |
* ipc/ipc_table.h (ipc_table_fill): Add prototype. |
| 13999 |
|
| 14000 |
ipc/ipc_kmsg.c: remove forward declarations |
| 14001 |
* ipc/ipc_kmsg.c (copyinmap, copyoutmap, ipc_msg_print): Remove forward declarations. |
| 14002 |
* ipc/ipc_kmsg.h (ipc_msg_print): Add prototype. |
| 14003 |
|
| 14004 |
i386/intel/pmap.c: remove forward declarations |
| 14005 |
* i386/intel/pmap.c (pmap_remove_range, signal_cpus): Remove forward declarations. |
| 14006 |
* i386/intel/pmap.h (pmap_remove_range, signal_cpus): Add prototypes. |
| 14007 |
|
| 14008 |
2013-12-04 Samuel Thibault <[email protected]> |
| 14009 |
|
| 14010 |
Drop duplicate declaration |
| 14011 |
* i386/i386/model_dep.h (halt_cpu, halt_all_cpus): Remove duplicate |
| 14012 |
declaration. |
| 14013 |
* i386/i386at/model_dep.h (halt_cpu, halt_all_cpus): Add comments. |
| 14014 |
|
| 14015 |
2013-12-04 Marin Ramesa <[email protected]> |
| 14016 |
|
| 14017 |
i386/i386at: remove forward declarations |
| 14018 |
* Makefrag.am: Include kern/startup.h. |
| 14019 |
* i386/i386at/model_dep.c: Include kern/startup.h. |
| 14020 |
Include i386at/model_dep.h. |
| 14021 |
(setup_main, halt_all_cpus, halt_cpu, inittodr): Remove forward declarations. |
| 14022 |
* i386/i386at/model_dep.h (halt_all_cpus, halt_cpu, inittodr): Add prototypes. |
| 14023 |
* kern/startup.h: New file. |
| 14024 |
Add copyright. |
| 14025 |
[_KERN_STARTUP_H_]: Add ifndef. |
| 14026 |
(setup_main): Add prototype. |
| 14027 |
|
| 14028 |
i386/i386at/kd_mouse.c: remove forward declarations |
| 14029 |
* i386/i386at/kd_mouse.c (mouseintr, mouse_enqueue, mouse_read_done): Remove forward declarations. |
| 14030 |
(mouseintr): Define argument type. |
| 14031 |
* i386/i386at/kd_mouse.h (mouseintr, mouse_enqueue, mouse_read_done): Add prototypes. |
| 14032 |
|
| 14033 |
i386/i386at/kd_event.c: remove forward declarations |
| 14034 |
* i386/i386at/kd_event.c (kbd_enqueue, X_kdb_enter_init, X_kdb_exit_init, kbd_read_done): Remove forward declarations. |
| 14035 |
* i386/i386at/kd_event.h (kbd_enqueue, X_kdb_enter_init, X_kdb_exit_init, kbd_read_done): Add prototypes. |
| 14036 |
|
| 14037 |
i386/i386at/kd.c: remove forward declarations |
| 14038 |
* i386/i386at/kd.c (kd_enqsc, kdcheckmagic, do_modifier, bmpch2bit, bmppaintcsr, bit2fbptr): Remove forward declarations. |
| 14039 |
* i386/i386at/kd.h: Include device/buf.h. |
| 14040 |
Include i386at/kdsoft.h. |
| 14041 |
(kdcheckmagic, do_modifier, bmpch2bit, bmppaintcsr, bit2fbptr): Add prototypes. |
| 14042 |
* i386/i386at/kd_event.h (kd_enqsc): Add prototype. |
| 14043 |
|
| 14044 |
i386/i386at/conf.c: remove forward declarations |
| 14045 |
* i386/Makefrag.am: Include i386/i386at/model_dep.h and i386/i386at/mem.h. |
| 14046 |
* i386/i386at/com.h (comgetstat, comsetstat): Declare as extern. |
| 14047 |
(comopen, comclose, comread, comwrite, comportdeath): Add prototypes. |
| 14048 |
* i386/i386at/conf.c: Include kern/mach_clock.h and i386at/model_dep.h. |
| 14049 |
(timeopen, timeclose, timemmap): Remove forward declarations. |
| 14050 |
(kdopen, kdclose, kdread, kdwrite, kdgetstat, kdsetstat, kdportdeath, kdmmap): Likewise. |
| 14051 |
(comopen, comclose, comread, comwrite, comportdeath, comgetstat, comsetstat): Likewise. |
| 14052 |
(lpropen, lprclose, lprread, lprwrite, lprportdeath, lprgetstat, lprsetstat): Likewise. |
| 14053 |
(kbdopen, kbdclose, kbdread, kbdgetstat, kbdsetstat): Likewise. |
| 14054 |
(mouseopen, mouseclose, mouseread, mousegetstat): Likewise. |
| 14055 |
(memmmap): Likewise. |
| 14056 |
(kmsgopen, kmsgclose, kmsgread, kmsggetstat): Likewise. |
| 14057 |
(hypcnopen, hypcnclose, hypcnread, hypcnwrite, hypcnportdeath, hypcngetstat, hypcnsetstat): Likewise. |
| 14058 |
Include i386at/kd.h. |
| 14059 |
Include i386at/com.h. |
| 14060 |
Include i386at/lpr.h. |
| 14061 |
Include i386at/kd_event.h. |
| 14062 |
Include i386at/kd_mouse.h. |
| 14063 |
Include i386at/mem.h. |
| 14064 |
Include device/kmsg.h. |
| 14065 |
Include xen/console.h. |
| 14066 |
* i386/i386at/kd.h: Include device/io_req.h. |
| 14067 |
(kdopen, kdclose, kdread, kdwrite, kdgetstat, kdsetstat, kdportdeath, kdmmap): Add prototypes. |
| 14068 |
* i386/i386at/kd_event.h (kbdopen, kbdclose, kbdread, kbdgetstat, kbdsetstat): Likewise. |
| 14069 |
* i386/i386at/kd_mouse.h (mouseopen, mouseclose, mouseread, mousegetstat): Likewise. |
| 14070 |
* i386/i386at/lpr.h (lpropen, lprclose, lprread, lprwrite, lprportdeath): Likewise. |
| 14071 |
(lprgetstat, lprsetstat): Declare as extern. |
| 14072 |
* i386/i386at/mem.h: New file. |
| 14073 |
Add copyright. |
| 14074 |
[_MEM_H_]: Add ifndef. |
| 14075 |
(memmmap): Add prototype. |
| 14076 |
* i386/i386at/model_dep.c: Include i386/i386at/model_dep.h. |
| 14077 |
(timemmap): Fix argument list. |
| 14078 |
* i386/i386at/model_dep.h: New file. |
| 14079 |
Add copyright. |
| 14080 |
[_MODEL_DEP_H_]: Add ifndef. |
| 14081 |
(timemmap): Add prototype. |
| 14082 |
* kern/mach_clock.h (timeopen, timeclose): Add prototypes. |
| 14083 |
* xen/console.h (hypcnopen, hypcnclose, hypcnread, hypcnwrite, hypcnportdeath, hypcngetstat, hypcnsetstat): Add prototypes. |
| 14084 |
|
| 14085 |
i386/i386at/autoconf.c, com.c, lpr.c: remove forward declarations |
| 14086 |
* i386/i386/autoconf.c (comintr, lprintr): Remove forward declarations. |
| 14087 |
Include i386at/com.h. |
| 14088 |
Include i386at/lprreg.h. |
| 14089 |
* i386/i386at/com.c (comprobe, commctl, comstart, comstop, comattach, comintr, comgetstat, comsetstat): Remove forward declarations. |
| 14090 |
* i386/i386at/com.h: Include device/tty.h. |
| 14091 |
(comprobe, commctl, comstart, comstop, comattach, comintr, comgetstat, comsetstat): Add prototypes. |
| 14092 |
* i386/i386at/lpr.c (lprprobe, lprstop, lprintr, lprstart, lprattach, lprgetstat, lprsetstat, lprpr_addr): Remove forward declarations. |
| 14093 |
(lprprobe): Fix argument list. |
| 14094 |
(lprpr): Define argument type. |
| 14095 |
lprpr_addr): Likewise. |
| 14096 |
* i386/i386at/lprreg.h (lprprobe, lprstop, lprintr, lprstart, lprattach, lprgetstat, lprsetstat, lprpr_addr): Add prototypes. |
| 14097 |
|
| 14098 |
kern/exception.c: remove forward declarations |
| 14099 |
* i386/i386/trap.h (thread_kdb_return): Add prototype. |
| 14100 |
* kern/exception.c (thread_kdb_return, db_printf): Remove forward declarations. |
| 14101 |
Include machine/trap.h. |
| 14102 |
Include ddb/db_output.h. |
| 14103 |
|
| 14104 |
kern: new header file exception.h |
| 14105 |
* Makefrag.am: Include kern/exception.h. |
| 14106 |
* i386/i386/trap.c: Include kern/exception.h. |
| 14107 |
(exception, thread_exception_return): Remove forward declarations. |
| 14108 |
* kern/exception.c: Include kern/exception.h. |
| 14109 |
(exception, exception_try_task, exception_no_server, exception_raise, exception_parse_reply, exception_raise_continue, exception_raise_continue_slow, exception_raise_continue_fast): Remove forward declarations. |
| 14110 |
* kern/exception.h: New file. |
| 14111 |
Add copyright. |
| 14112 |
[_KERN_EXCEPTION_H_]: Add ifndef. |
| 14113 |
(exception, exception_try_task, exception_no_server, exception_raise, exception_parse_reply, exception_raise_continue, exception_raise_continue_slow, exception_raise_continue_fast): Add prototypes. |
| 14114 |
|
| 14115 |
i386/i386/pcb.c: remove forward declarations |
| 14116 |
* i386/i386/pcb.c (Load_context, Switch_context, Thread_continue, user_ldt_free): Remove forward declarations. |
| 14117 |
* i386/i386/pcb.h (Load_context, Switch_context, Thread_continue): Add prototypes. |
| 14118 |
* i386/i386/user_ldt.h (user_ldt_free): Add prototype. |
| 14119 |
|
| 14120 |
i386/i386/io_perm.c: remove forward declaration |
| 14121 |
* i386/i386/io_perm.c: Include pcb.h. |
| 14122 |
(update_ktss_iopb): Remove forward declaration. |
| 14123 |
* i386/i386/pcb.h (update_ktss_iopb): Add prototype. |
| 14124 |
|
| 14125 |
i386/i386/fpu.c, trap.c: remove forward declarations |
| 14126 |
* i386/i386/fpu.c: Include i386/trap.h. |
| 14127 |
(void i386_exception, fp_save, fp_load): Remove forward declaration. |
| 14128 |
* i386/i386/trap.c (void i386_exception): Remove forward declaration. |
| 14129 |
* i386/i386/trap.h (void i386_exception): Add prototype. |
| 14130 |
|
| 14131 |
i386/i386/db_trace.c: remove forward declaration |
| 14132 |
* i386/i386/db_interface.h: Include ddb/db_variables.h. |
| 14133 |
(db_i386_reg_value): Add prototype. |
| 14134 |
* i386/i386/db_trace.c (db_i386_reg_value): Remove forward declaration. |
| 14135 |
|
| 14136 |
device/device_init.c: remove forward declarations |
| 14137 |
* device/dev_lookup.c: Include device/ds_routines.h. |
| 14138 |
* device/device_init.c: Include device/ds_routines.h. |
| 14139 |
Include device/net_io.h. |
| 14140 |
(mach_device_init, dev_lookup_init, net_io_init, device_pager_init, io_done_thread, net_thread): Remove forward declarations. |
| 14141 |
* device/ds_routines.h (mach_device_init, dev_lookup_init, device_pager_init, io_done_thread): Add prototypes. |
| 14142 |
* device/net_io.h (net_io_init, net_thread): Add prototypes. |
| 14143 |
|
| 14144 |
ddb/db_variables.c: remove forward declarations |
| 14145 |
* ddb/db_task_thread.h: Include ddb/db_variables.h. |
| 14146 |
(db_set_default_thread, db_get_task_thread): Add prototypes. |
| 14147 |
* ddb/db_variables: Include ddb/db_macro.h. |
| 14148 |
(db_set_default_thread, db_get_task_thread, db_arg_variable): Remove forward declarations. |
| 14149 |
|
| 14150 |
ddb/db_trap.c: remove forward declarations |
| 14151 |
* ddb/db_run.h (db_restart_at_pc, db_stop_at_pc): Add prototypes. |
| 14152 |
* ddb/db_trap.c (db_restart_at_pc, db_stop_at_pc): Remove forward declarations. |
| 14153 |
Include ddb/db_run.h. |
| 14154 |
|
| 14155 |
ddb/db_command.c: remove useless forward declaration without definition |
| 14156 |
* ddb/db_command.c (ddb_display): Remove forward declaration. |
| 14157 |
Remove ddb_display call. |
| 14158 |
|
| 14159 |
ddb/db_command.c: remove forward declaration |
| 14160 |
* ddb/db_command.c (db_reset_cpu): Remove forward declaration. |
| 14161 |
* i386/i386/db_interface.h (db_reset_cpu): Add prototype. |
| 14162 |
* i386/i386at/model_dep.c: Include i386/db_interface.h. |
| 14163 |
|
| 14164 |
ddb/db_sym.c: fix argument list |
| 14165 |
* ddb/db_sym.c (dummy_db_free_symbol): Fix argument list. |
| 14166 |
|
| 14167 |
ddb/db_sym.c: remove useless forward declarations without definitions |
| 14168 |
* ddb/db_sym.c (coff_db_sym_init, coff_db_line_at_pc, db_sym_t coff_db_lookup, coff_db_search_symbol, coff_db_symbol_values): Remove forward declarations. |
| 14169 |
(x_db): Modify field definition. |
| 14170 |
|
| 14171 |
ddb: new header file db_aout.h |
| 14172 |
* Makefrag.am: Include ddb/db_aout.h. |
| 14173 |
* ddb/db_aout.c: Include ddb/db_aout.h. |
| 14174 |
* ddb/db_aout.h: New file. |
| 14175 |
Add copyright. |
| 14176 |
[_DDB_DB_AOUT_H_]: Add ifndef. |
| 14177 |
Include ddb/db_sym.h. |
| 14178 |
Include machine/db_machdep.h. |
| 14179 |
(aout_db_line_at_pc, aout_db_lookup, aout_db_search_symbol, aout_db_symbol_values): Add prototypes. |
| 14180 |
* ddb/db_sym.c: Include ddb/db_aout.h. |
| 14181 |
(db_search_in_task_symbol, aout_db_line_at_pc, aout_db_lookup, aout_db_search_symbol, aout_db_symbol_values): Remove forward declarations. |
| 14182 |
* ddb/db_sym.h (db_search_in_task_symbol): Add prototype. |
| 14183 |
|
| 14184 |
ddb/db_aout.c: trivial stylistic fix for consistency |
| 14185 |
* ddb/db_aout.c: Trivial stylistic fix for consistency. |
| 14186 |
|
| 14187 |
ddb/db_run.c: add comment after endif |
| 14188 |
* ddb/db_run.c [FIXUP_PC_AFTER_BREAK]: Add comment after endif. |
| 14189 |
|
| 14190 |
ddb/db_mp.c: add comment after else and endif |
| 14191 |
* ddb/db_mp.c [CONSOLE_ON_MASTER]: Add comment after else and endif. |
| 14192 |
|
| 14193 |
ddb/db_input.c: add comment after endif |
| 14194 |
* ddb/db_input.c [DB_HISTORY_SIZE]: Add comment after endif. |
| 14195 |
|
| 14196 |
ddb/db_command.c: remove forward declarations |
| 14197 |
* ddb/db_command.c: Include machine/db_interface.h. |
| 14198 |
(db_help_cmd, db_stack_trace_cmd): Remove forward declarations. |
| 14199 |
* ddb/db_command.h (db_help_cmd): Add prototype. |
| 14200 |
* i386/i386/db_interface.h (db_stack_trace_cmd): Add prototype. |
| 14201 |
|
| 14202 |
device/net_io.c: initialize hash_entp to NULL |
| 14203 |
* device/net_io.c (hash_entp): Initialize to NET_HASH_ENTRY_NULL. |
| 14204 |
|
| 14205 |
2013-11-24 Marin Ramesa <[email protected]> |
| 14206 |
|
| 14207 |
Modify struct db_variable |
| 14208 |
* ddb/db_macro.c (db_arg_variable): Make function void. |
| 14209 |
* ddb/db_macro.h (db_arg_variable): Declare void return. |
| 14210 |
* ddb/db_task_thread.c (db_set_default_thread): Make function void. |
| 14211 |
(db_get_task_thread): Make function void. |
| 14212 |
* ddb/db_variables.c (db_set_default_thread, db_get_task_thread, db_arg_variable): Declare void return. |
| 14213 |
(db_read_write_variable): Use void in initialization. |
| 14214 |
* ddb/db_variables.h (db_variable): Make third member return void. |
| 14215 |
[FCN_NULL]: Define void. |
| 14216 |
* i386/i386/db_trace.c (db_i386_reg_value): Make function void. |
| 14217 |
|
| 14218 |
device: new header file chario.h |
| 14219 |
* Makefrag.am: Include device/chario.h. |
| 14220 |
* device/chario.c (queue_delayed_reply, tty_output, char_open_done, char_read_done, char_write_done): Remove forward declarations. |
| 14221 |
* device/chario.h: New file. |
| 14222 |
Add copyright. |
| 14223 |
[_DEVICE_CHARIO_H_]: Add ifndef. |
| 14224 |
Include device/tty.h. |
| 14225 |
(queue_delayed_reply, tty_output, char_open_done, char_read_done, char_write_done): Add prototypes. |
| 14226 |
|
| 14227 |
ddb/db_examine.c: trivial stylistic fix for consistency |
| 14228 |
* ddb/db_examine.c: Trivial stylistic fix for consistency. |
| 14229 |
|
| 14230 |
ddb: move forward declarations into a header file |
| 14231 |
* ddb/db_examine.c (db_disasm, db_search): Remove forward declarations. |
| 14232 |
* ddb/db_examine.h (db_disasm, db_search): Add prototypes. |
| 14233 |
|
| 14234 |
ddb: move forward declaration into a header file |
| 14235 |
* ddb/db_sym.c (db_lookup): Remove forward declaration. |
| 14236 |
* ddb/db_sym.h (db_lookup): Add prototype. |
| 14237 |
|
| 14238 |
ddb: create new header file db_mp.h |
| 14239 |
* Makefrag.am: Include ddb/db_mp.h. |
| 14240 |
* ddb/db_mp.c (remote_db, lock_db, unlock_db): Remove forward declarations. |
| 14241 |
* ddb/db_mp.h: New file. |
| 14242 |
Add copyright. |
| 14243 |
[_DDB_DB_MP_H_]: Add ifndef. |
| 14244 |
(remote_db, lock_db, unlock_db): Add prototypes. |
| 14245 |
|
| 14246 |
ddb: move forward declarations into a header file |
| 14247 |
* ddb/db_run.c (db_set_task_single_step, db_clear_task_single_step): Remove forward declarations. |
| 14248 |
* ddb/db_run.h (db_set_task_single_step, db_clear_task_single_step): Add prototypes. |
| 14249 |
|
| 14250 |
2013-11-24 Samuel Thibault <[email protected]> |
| 14251 |
|
| 14252 |
Simplify test |
| 14253 |
* ddb/db_sym.c (db_name_is_ambiguous): Simplify test for value returned by |
| 14254 |
X_db_lookup. |
| 14255 |
|
| 14256 |
Drop spurious volatile qualifier |
| 14257 |
* kern/processor.h (processor_doshutdown): Drop spurious volatile qualifier. |
| 14258 |
|
| 14259 |
2013-11-24 Marin Ramesa <[email protected]> |
| 14260 |
|
| 14261 |
kern: move forward declarations into a header file |
| 14262 |
* kern/machine.c (processor_doaction, processor_doshutdown): Remove forward declarations. |
| 14263 |
* kern/processor.h (processor_doaction, processor_doshutdown): Add prototypes. |
| 14264 |
|
| 14265 |
kern: move forward declaration into a header file |
| 14266 |
* kern/eventcount.c [NCPUS] (simpler_thread_setrun): Remove forward declaration. |
| 14267 |
* kern/eventcount.h [NCPUS] (simpler_thread_setrun): Add prototype. |
| 14268 |
|
| 14269 |
kern: move forward declaration into a header file |
| 14270 |
* kern/timer.c (timer_init): Remove forward declaration. |
| 14271 |
* kern/timer.h (timer_init): Add prototype. |
| 14272 |
|
| 14273 |
kern: move forward declaration into a header file |
| 14274 |
* kern/mach_clock.c (softclock): Remove forward declaration. |
| 14275 |
* kern/timer.h (softclock): Add prototype. |
| 14276 |
|
| 14277 |
kern: move forward declarations into a header file |
| 14278 |
* kern/thread.c [MACH_DEBUG] (stack_init, stack_finalize): Remove forward declarations. |
| 14279 |
* kern/thread.h [MACH_DEBUG] (stack_init, stack_finalize): Add prototypes. |
| 14280 |
|
| 14281 |
vm: move forward declarations into a header file |
| 14282 |
* vm/vm_map.c (vm_map_delete, vm_map_copyout_page_list, vm_map_copy_page_discard, vm_map_lookup_entry): Remove forward declarations. |
| 14283 |
* vm/vm_map.h (vm_map_delete, vm_map_copyout_page_list, vm_map_copy_page_discard, vm_map_lookup_entry): Add prototypes. |
| 14284 |
|
| 14285 |
vm: move forward declarations into a header file |
| 14286 |
* vm/vm_object.c (memory_object_release, vm_object_deactivate_pages, vm_object_copy_delayed): Remove forward declarations. |
| 14287 |
* vm/vm_object.h (memory_object_release, vm_object_deactivate_pages, vm_object_copy_delayed): Add prototypes. |
| 14288 |
|
| 14289 |
2013-11-24 Samuel Thibault <[email protected]> |
| 14290 |
|
| 14291 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 14292 |
|
| 14293 |
2013-11-24 Marin Ramesa <[email protected]> |
| 14294 |
|
| 14295 |
Remove leftover register qualifiers |
| 14296 |
* ddb/db_break.c: Remove register qualifiers. |
| 14297 |
* i386/i386/pcb.c: Likewise. |
| 14298 |
* i386/i386at/com.c: Likewise. |
| 14299 |
* i386/i386at/lpr.c: Likewise. |
| 14300 |
* i386/intel/pmap.c: Likewise. |
| 14301 |
* kern/machine.c: Likewise. |
| 14302 |
* kern/queue.h: Likewise. |
| 14303 |
* kern/sched_prim.c: Likewise. |
| 14304 |
* kern/sched_prim.h: Likewise. |
| 14305 |
* kern/timer.c: Likewise. |
| 14306 |
* vm/vm_fault.c: Likewise. |
| 14307 |
* vm/vm_resident.h: Likewise. |
| 14308 |
|
| 14309 |
2013-11-24 Richard Braun <[email protected]> |
| 14310 |
|
| 14311 |
New RPC for thread destruction |
| 14312 |
A new call, thread_terminate_release, is added to support self |
| 14313 |
destruction in threading libraries. |
| 14314 |
|
| 14315 |
* include/mach/gnumach.defs (thread_terminate_release): New |
| 14316 |
simpleroutine declaration. |
| 14317 |
* kern/thread.c: Include vm/vm_user.h and ipc/mach_port.h. |
| 14318 |
(thread_terminate_release): New function. |
| 14319 |
* kern/thread.h (thread_terminate_release): New prototype. |
| 14320 |
|
| 14321 |
2013-11-24 Richard Braun <[email protected]> |
| 14322 |
|
| 14323 |
Export mach_port_destroy declaration |
| 14324 |
* ipc/mach_port.h (mach_port_destroy): Add prototype. |
| 14325 |
|
| 14326 |
2013-11-22 Marin Ramesa <[email protected]> |
| 14327 |
|
| 14328 |
ddb/db_break.c: remove duplicate include |
| 14329 |
* ddb/db_break.c: Don't include ddb/db_access.h. |
| 14330 |
|
| 14331 |
2013-11-21 Marin Ramesa <[email protected]> |
| 14332 |
|
| 14333 |
i386/i386/db_interface.h: fix implicit declaration of function |
| 14334 |
* i386/i386/db_interface.h (cnpollc): Add prototype. |
| 14335 |
|
| 14336 |
ddb/db_sym.c: move assignment outside if |
| 14337 |
* ddb/db_sym.c: Move assignment outside of if. |
| 14338 |
(db_lookup): New variable. |
| 14339 |
|
| 14340 |
i386/i386at/kd.h: fix implicit declaration of function |
| 14341 |
* i386/i386at/kd.h [MACH_KDB] (kdb_kintr): Add prototype. |
| 14342 |
|
| 14343 |
ddb/db_break.c: fix implicit declaration of functions |
| 14344 |
* ddb/db_break.c: Include machine/db_interface.h. |
| 14345 |
|
| 14346 |
2013-11-20 Marin Ramesa <[email protected]> |
| 14347 |
|
| 14348 |
i386/i386/trap.c: fix implicit declaration of function |
| 14349 |
* i386/i386/trap.c: Include machine/db_interface.h. |
| 14350 |
|
| 14351 |
i386/i386/db_trace.c: don't cast to db_addr_t |
| 14352 |
* i386/i386/db_trace.c (db_check_thread_address_valid): Don't cast argument 1 to db_addr_t. |
| 14353 |
|
| 14354 |
2013-11-20 Samuel Thibault <[email protected]> |
| 14355 |
|
| 14356 |
Comment out db_search_null |
| 14357 |
* i386/i386/db_interface.c (db_search_null) [!GNU]: Do not define |
| 14358 |
db_search_null. |
| 14359 |
|
| 14360 |
2013-11-20 Marin Ramesa <[email protected]> |
| 14361 |
|
| 14362 |
i386/i386/db_interface.c: add comments after else and endif |
| 14363 |
* i386/i386/db_interface.c [GNU]: Add comments after else and endif. |
| 14364 |
|
| 14365 |
2013-11-20 Marin Ramesa <[email protected]> |
| 14366 |
|
| 14367 |
i386/i386/db_interface.c: remove return value |
| 14368 |
Void function returns with FALSE. Remove return value. |
| 14369 |
|
| 14370 |
* i386/i386/db_interface.c (db_task_name): Remove return value. |
| 14371 |
|
| 14372 |
2013-11-20 Marin Ramesa <[email protected]> |
| 14373 |
|
| 14374 |
i386/i386/db_trace.c: fix implicit declaration of function |
| 14375 |
* i386/i386/db_trace.c: Include machine/db_interface.h. |
| 14376 |
|
| 14377 |
i386/i386/db_interface.c: fix implicit declaration of function |
| 14378 |
* i386/i386/db_interface.c: Include string.h. |
| 14379 |
|
| 14380 |
i386/i386/db_interface.c: fix implicit declaration of function |
| 14381 |
* i386/i386/db_interface.c: Include vm/vm_fault.h. |
| 14382 |
|
| 14383 |
Fix implicit declaration of function |
| 14384 |
* ddb/db_sym.c (aout_db_sym_init): Remove forward declaration. |
| 14385 |
* ddb/db_sym.h (aout_db_sym_init): Add prototype. |
| 14386 |
* i386/i386at/model_dep.c (aout_db_sym_init): Fix call. |
| 14387 |
[MACH_KDB]: Include ddb/db_sym.h. |
| 14388 |
[MACH_KDB]: Add comment after else and endif. |
| 14389 |
|
| 14390 |
kern/xpr.c: quiet warning about uninitialized variable |
| 14391 |
* kern/xpr.c (s): Initialize. |
| 14392 |
|
| 14393 |
kern/startup.c: fix implicit declaration of function |
| 14394 |
* kern/startup.c [MACH_KDB]: Include device/cons.h. |
| 14395 |
|
| 14396 |
ipc/ipc_print.h: include ipc/ipc_pset.h for ipc_pset_t |
| 14397 |
* ipc/ipc_print.h: Include ipc/ipc_pset.h for ipc_pset_t. |
| 14398 |
|
| 14399 |
ddb/db_variables.c: fix initializations from incompatible pointer type |
| 14400 |
* ddb/db_variables.c (db_set_default_thread, db_get_task_thread, db_arg_variable, fcn): Declare long return type. |
| 14401 |
|
| 14402 |
ddb/db_run.c: move declaration of brpc into SOFTWARE_SSTEP |
| 14403 |
* ddb/db_run.c (brpc): Move declaration into SOFTWARE_SSTEP code. |
| 14404 |
|
| 14405 |
ddb/db_run.c: trivial stylistic fix for consistency |
| 14406 |
* ddb/db_run.c: Trivial stylistic fix for consistency. |
| 14407 |
|
| 14408 |
ddb/db_run.c: remove set but unused variable |
| 14409 |
* ddb/db_run.c (ins): Remove variable. |
| 14410 |
|
| 14411 |
ddb: fix implicit declaration of function |
| 14412 |
* ddb/db_variables.c (db_read_write_variable): Remove forward declaration. |
| 14413 |
* ddb/db_variables.h (db_read_write_variable): Add prototype. |
| 14414 |
|
| 14415 |
ddb/db_examine.c: add missing cast |
| 14416 |
ddb/db_examine.c (addr, count): Cast to (db_expr_t *). |
| 14417 |
|
| 14418 |
Add comment |
| 14419 |
* ddb/db_command.c [DB_MACHINE_COMMANDS]: Add comment after endif. |
| 14420 |
|
| 14421 |
2013-11-20 Samuel Thibault <[email protected]> |
| 14422 |
|
| 14423 |
Drop volatile function qualifier |
| 14424 |
* i386/i386/setjmp.h (_longjmp): Drop volatile function qualifier. |
| 14425 |
|
| 14426 |
2013-11-20 Marin Ramesa <[email protected]> |
| 14427 |
|
| 14428 |
ddb/db_break.c: quiet GCC warning about uninitialized variable |
| 14429 |
* ddb/db_break.c (bkpt): Initialize. |
| 14430 |
|
| 14431 |
2013-11-19 Marin Ramesa <[email protected]> |
| 14432 |
|
| 14433 |
kern/slab.c: initialize info_size |
| 14434 |
info_size is initialized to a random value. Quiet the warning by |
| 14435 |
initializing to zero. |
| 14436 |
|
| 14437 |
* kern/slab.c (info_size): Initialize to zero. |
| 14438 |
|
| 14439 |
2013-11-19 Marin Ramesa <[email protected]> |
| 14440 |
|
| 14441 |
kern/slab.c: initialize optimal_embed |
| 14442 |
optimal_embed is initialized to a random value. Quiet the warning by |
| 14443 |
initializing to zero. |
| 14444 |
|
| 14445 |
* kern/slab.c (optimal_embed): Initialize to zero. |
| 14446 |
|
| 14447 |
2013-11-19 Marin Ramesa <[email protected]> |
| 14448 |
|
| 14449 |
Add copyright |
| 14450 |
* ddb/db_write_cmd.h: Add copyright. |
| 14451 |
* ipc/ipc_print.h: Likewise. |
| 14452 |
* vm/vm_print.h: Likewise. |
| 14453 |
|
| 14454 |
2013-11-18 Marin Ramesa <[email protected]> |
| 14455 |
|
| 14456 |
Add ifndefs |
| 14457 |
Finish up with the addition of ifndefs. |
| 14458 |
|
| 14459 |
* device/buf.h: Add ifndef. |
| 14460 |
* device/dev_master.h: Likewise. |
| 14461 |
* include/device/tty_status.h: Likewise. |
| 14462 |
* include/mach/version.h: Likewise. |
| 14463 |
* ipc/ipc_machdep.h: Likewise. |
| 14464 |
|
| 14465 |
2013-11-17 Marin Ramesa <[email protected]> |
| 14466 |
|
| 14467 |
ddb/stab.h: add ifndef |
| 14468 |
* ddb/stab.h: Add ifndef. |
| 14469 |
|
| 14470 |
ddb/db_write_cmd.c: remove register qualifiers |
| 14471 |
* ddb/db_write_cmd.c: Remove register qualifiers. |
| 14472 |
|
| 14473 |
ddb/db_watch.c: remove register qualifiers |
| 14474 |
* ddb/db_watch.c: Remove register qualifiers. |
| 14475 |
|
| 14476 |
ddb/db_variables.c: remove register qualifiers |
| 14477 |
* ddb/db_variables.c: Remove register qualifiers. |
| 14478 |
|
| 14479 |
ddb/db_task_thread.c: remove register qualifiers |
| 14480 |
* ddb/db_task_thread.c: Remove register qualifiers. |
| 14481 |
|
| 14482 |
ddb/db_sym.h: add comment after endif |
| 14483 |
* ddb/db_sym.h: Add comment after endif. |
| 14484 |
|
| 14485 |
ddb/db_sym.c: remove register qualifiers |
| 14486 |
* ddb/db_sym.c: Remove register qualifiers. |
| 14487 |
|
| 14488 |
ddb/db_run.h: add ifndef |
| 14489 |
* ddb/db_run.h: Add ifndef. |
| 14490 |
|
| 14491 |
ddb/db_run.c: remove register qualifiers |
| 14492 |
* ddb/db_run.c: Remove register qualifiers. |
| 14493 |
|
| 14494 |
ddb/db_print.c: remove register qualifiers |
| 14495 |
* ddb/db_print.c: Remove register qualifiers. |
| 14496 |
|
| 14497 |
ddb/db_output.h: add ifndef |
| 14498 |
* ddb/db_output.h: Add ifndef. |
| 14499 |
|
| 14500 |
ddb/db_output.c: remove register qualifiers |
| 14501 |
* ddb/db_output.c: Remove register qualifiers. |
| 14502 |
|
| 14503 |
ddb/db_mp.c: remove register qualifier |
| 14504 |
* ddb/db_mp.c: Remove register qualifier. |
| 14505 |
|
| 14506 |
ddb/db_macro.c: remove register qualifiers |
| 14507 |
* ddb/db_macro.c: Remove register qualifiers. |
| 14508 |
|
| 14509 |
ddb/db_lex.h: add ifndef |
| 14510 |
* ddb/db_lex.h: Add ifndef. |
| 14511 |
|
| 14512 |
ddb/db_lex.c: remove register qualifiers |
| 14513 |
* ddb/db_lex.c: Remove register qualifiers. |
| 14514 |
|
| 14515 |
ddb/db_input.c: remove register qualifiers |
| 14516 |
* ddb/db_input.c: Remove register qualifiers. |
| 14517 |
|
| 14518 |
ddb/db_expr.c: remove register qualifier |
| 14519 |
* ddb/db_expr.c: Remove register qualifier. |
| 14520 |
|
| 14521 |
ddb/db_examine.c: remove register qualifiers |
| 14522 |
* ddb/db_examine.c: Remove register qualifiers. |
| 14523 |
|
| 14524 |
ddb/db_cond.c: remove register qualifiers |
| 14525 |
* ddb/db_cond.c: Remove register qualifiers. |
| 14526 |
|
| 14527 |
ddb/db_command.h: add ifndef |
| 14528 |
* ddb/db_command.h: Add ifndef. |
| 14529 |
|
| 14530 |
ddb/db_command.c: remove register qualifiers |
| 14531 |
* ddb/db_command.c: Remove register qualifiers. |
| 14532 |
|
| 14533 |
ddb/db_break.c: remove register qualifiers |
| 14534 |
* ddb/db_break.c: Remove register qualifiers. |
| 14535 |
|
| 14536 |
ddb/db_aout.c: remove register qualifiers |
| 14537 |
* ddb/db_aout.c: Remove register qualifiers. |
| 14538 |
|
| 14539 |
ddb/db_access.h: add ifndef |
| 14540 |
* ddb/db_access.h: Add ifndef. |
| 14541 |
|
| 14542 |
ddb/db_access.c: remove register qualifiers |
| 14543 |
* ddb/db_access.c: Remove register qualifiers. |
| 14544 |
|
| 14545 |
2013-11-17 Samuel Thibault <[email protected]> |
| 14546 |
|
| 14547 |
Remove dead code |
| 14548 |
Thanks Marin Ramesa for the report. |
| 14549 |
|
| 14550 |
* i386/i386/user_ldt.c (selector_check): Remove function. |
| 14551 |
* i386/i386/user_ldt.h (S_CODE, S_STACK, S_DATA): Remove macros. |
| 14552 |
(selector_check): Remove declaration. |
| 14553 |
|
| 14554 |
2013-11-15 Marin Ramesa <[email protected]> |
| 14555 |
|
| 14556 |
i386/intel/read_fault.c: remove register qualifier |
| 14557 |
* i386/intel/read_fault.c: Remove register qualifier. |
| 14558 |
|
| 14559 |
i386/intel/pmap.h: remove register qualifiers |
| 14560 |
* i386/intel/pmap.h: Remove register qualifiers. |
| 14561 |
|
| 14562 |
i386/intel/pmap.c: remove register qualifiers |
| 14563 |
* i386/intel/pmap.c: Remove register qualifiers. |
| 14564 |
|
| 14565 |
i386/i386at/rtc.h: remove register qualifiers |
| 14566 |
* i386/i386at/rtc.h: Remove register qualifiers. |
| 14567 |
|
| 14568 |
i386/i386at/rtc.c: remove register qualifier |
| 14569 |
* i386/i386at/rtc.c: Remove register qualifier. |
| 14570 |
|
| 14571 |
i386/i386at/lpr.c: remove register qualifier |
| 14572 |
* i386/i386at/lpr.c: Remove register qualifier. |
| 14573 |
|
| 14574 |
i386/i386at/kd_mouse.c: remove register qualifiers |
| 14575 |
* i386/i386at/kd_mouse.c: Remove register qualifiers. |
| 14576 |
|
| 14577 |
i386/i386at/kd.c: remove register qualifiers |
| 14578 |
* i386/i386at/kd.c: Remove register qualifiers. |
| 14579 |
|
| 14580 |
i386/i386at/kd_event.c: remove register qualifiers |
| 14581 |
* i386/i386at/kd_event.c: Remove register qualifiers. |
| 14582 |
|
| 14583 |
i386/i386at/int_init.h: add comment after endif |
| 14584 |
* i386/i386at/int_init.h (__ASSEMBLER__): Add comment after endif. |
| 14585 |
|
| 14586 |
i386/i386at/idt.h: add comment after endif |
| 14587 |
* i386/i386at/idt.h (__ASSEMBLER__): Add comment after endif. |
| 14588 |
|
| 14589 |
i386/i386at/com.c: remove register qualifiers |
| 14590 |
* i386/i386at/com.c: Remove register qualifiers. |
| 14591 |
|
| 14592 |
i386/i386at/com.c: trivial stylistic fix for consistency |
| 14593 |
* i386/i386at/com.c: Trivial stylistic fix for consistency. |
| 14594 |
|
| 14595 |
i386/i386at/autoconf.c: remove register qualifiers |
| 14596 |
* i386/i386at/autoconf.c: Remove register qualifiers. |
| 14597 |
|
| 14598 |
i386/i386/trap.c: remove register qualifiers |
| 14599 |
* i386/i386/trap.c: Remove register qualifiers. |
| 14600 |
|
| 14601 |
i386/i386/thread.h: add comment after endif |
| 14602 |
* i386/i386/thread.h (LINUX_DEV): Add comment after endif. |
| 14603 |
|
| 14604 |
i386/i386/pic.h: add comment after endif |
| 14605 |
* i386/i386/pic.h (__ASSEMBLER__): Add comment after endif. |
| 14606 |
|
| 14607 |
i386/i386/pcb.c: remove register qualifiers |
| 14608 |
* i386/i386/pcb.c: Remove register qualifiers. |
| 14609 |
|
| 14610 |
i386/i386/mp_desc.c: remove register qualifiers |
| 14611 |
* i386/i386/mp_desc.c: Remove register qualifiers. |
| 14612 |
|
| 14613 |
i386/i386/machine_routines.h: add comment after endif |
| 14614 |
* i386/i386/machine_routines.h (_I386_MACHINE_ROUTINES_H_): Add comment after endif. |
| 14615 |
|
| 14616 |
i386/i386/loose_ends.c: remove unused variable |
| 14617 |
* i386/i386/loose_ends.c (boothowto): Remove unused variable. |
| 14618 |
|
| 14619 |
i386/i386/loose_ends.c: add comment after endif |
| 14620 |
* i386/i386/loose_ends.c (NDEBUG): Add comment after endif. |
| 14621 |
|
| 14622 |
i386/i386/lock.h: remove register quaalifier |
| 14623 |
* i386/i386/lock.h: Remove register qualifier. |
| 14624 |
|
| 14625 |
i386/i386/kttd_interface.c: trivial stylistic fix for consistency |
| 14626 |
* i386/i386/kttd_interface.c: Trivial stylistic fix for consistency. |
| 14627 |
|
| 14628 |
i386/i386/hardclock.c: add comment after endif |
| 14629 |
* i386/i386/hardclock.c (LINUX_DEV): Add comment after endif. |
| 14630 |
|
| 14631 |
i386/i386/fpu.h: remove register qualifiers |
| 14632 |
* i386/i386/fpu.h: Remove register qualifiers. |
| 14633 |
|
| 14634 |
i386/i386/fpu.c: remove register qualifiers |
| 14635 |
* i386/i386/fpu.c: Remove register qualifiers. |
| 14636 |
|
| 14637 |
i386/i386/db_trace.c: qualify constants with const |
| 14638 |
* i386/i386/db_trace.c: Qualify constants with const. |
| 14639 |
|
| 14640 |
i386/i386/db_trace.c: remove register qualifiers |
| 14641 |
* i386/i386/db_trace.c: Remove register qualifiers. |
| 14642 |
|
| 14643 |
i386/i386/db_interface.c: remove register qualifiers |
| 14644 |
* i386/i386/db_interface.c: Remove register qualifiers. |
| 14645 |
|
| 14646 |
Fix typo |
| 14647 |
|
| 14648 |
i386/i386/vm_tuning.h: remove file |
| 14649 |
* i386/Makefrag.am: Remove i386/i386/vm_tuning.h. |
| 14650 |
* i386/i386/vm_tuning.h: Remove file. |
| 14651 |
* vm/vm_pageout.c: Don't include i386/i386/vm_tuning.h. |
| 14652 |
|
| 14653 |
i386/i386at: add ifndefs |
| 14654 |
* i386/i386at/kd_queue.h: Add ifndef. |
| 14655 |
* i386/i386at/kdsoft.h: Likewise. |
| 14656 |
* i386/i386at/lprreg.h: Likewise. |
| 14657 |
* i386/i386at/rtc.h: Likewise. |
| 14658 |
|
| 14659 |
chips/busses.c: remove register qualifiers |
| 14660 |
* chips/busses.c: Remove register qualifiers. |
| 14661 |
|
| 14662 |
chips/busses.c: use boolean instead of an int |
| 14663 |
* chips/busses.c (found): Constrain range of values to a boolean. |
| 14664 |
|
| 14665 |
vm/vm_user.c: remove register qualifiers |
| 14666 |
* vm/vm_user.c: Remove register qualifiers. |
| 14667 |
|
| 14668 |
vm/vm_resident.c: remove register qualifiers |
| 14669 |
* vm/vm_resident.c: Remove register qualifiers. |
| 14670 |
|
| 14671 |
vm/vm_pageout.c: remove register qualifiers |
| 14672 |
* vm/vm_pageout.c: Remove register qualifiers. |
| 14673 |
|
| 14674 |
vm/vm_object.c: remove register qualifiers |
| 14675 |
* vm/vm_object.c: Remove register qualifiers. |
| 14676 |
|
| 14677 |
vm/vm_map.c: remove register qualifiers |
| 14678 |
* vm/vm_map.c: Remove register qualifiers. |
| 14679 |
|
| 14680 |
vm/vm_map.c: trivial stylistic fix for consistency |
| 14681 |
* vm/vm_map.c: Trivial stylistic fix for consistency. |
| 14682 |
|
| 14683 |
vm/vm_kern.c: remove register qualifiers |
| 14684 |
* vm/vm_kern.c: Remove register qualifiers. |
| 14685 |
|
| 14686 |
vm/vm_fault.c: remove register qualifiers |
| 14687 |
* vm/vm_fault.c: Remove register qualifiers. |
| 14688 |
|
| 14689 |
vm/vm_fault.c: remove unused variable |
| 14690 |
* vm/vm_fault.c: Remove unused variable. |
| 14691 |
|
| 14692 |
vm/memory_object_proxy.h: fix definition |
| 14693 |
* vm/memory_object_proxy.h (_VM_MEMORY_OBJECT_PROXY_H_): Fix definition. |
| 14694 |
|
| 14695 |
vm/memory_object.c: remove register qualifiers |
| 14696 |
* vm/memory_object.c: Remove register qualifiers. |
| 14697 |
|
| 14698 |
2013-11-13 Marin Ramesa <[email protected]> |
| 14699 |
|
| 14700 |
kern: remove register qualifiers |
| 14701 |
* kern/xpr.c: Remove register qualifiers. |
| 14702 |
|
| 14703 |
kern: remove register qualifiers |
| 14704 |
* kern/timer.h: Remove register qualifiers. |
| 14705 |
|
| 14706 |
kern: remove register qualifiers |
| 14707 |
* kern/timer.c: Remove register qualifiers. |
| 14708 |
|
| 14709 |
kern: remove register qualifiers |
| 14710 |
* kern/thread_swap.c: Remove register qualifiers. |
| 14711 |
|
| 14712 |
kern: remove register qualifiers |
| 14713 |
* kern/thread.c: Remove register qualifiers. |
| 14714 |
|
| 14715 |
kern: remove register qualifiers |
| 14716 |
* kern/task.c: Remove register qualifiers. |
| 14717 |
|
| 14718 |
kern: remove register qualifiers |
| 14719 |
* kern/syscall_subr.c: Remove register qualifiers. |
| 14720 |
|
| 14721 |
kern: remove register qualifiers |
| 14722 |
* kern/syscall_emulation.c: Remove register qualifiers. |
| 14723 |
|
| 14724 |
kern: remove register qualifiers |
| 14725 |
* kern/strings.c: Remove register qualifiers. |
| 14726 |
|
| 14727 |
kern: remove register qualifiers |
| 14728 |
* kern/startup.c: Remove register qualifiers. |
| 14729 |
|
| 14730 |
kern: remove register qualifiers |
| 14731 |
* kern/sched_prim.c: Remove register qualifiers. |
| 14732 |
|
| 14733 |
kern: remove register qualifiers |
| 14734 |
* kern/sched.h: Remove register qualifiers. |
| 14735 |
|
| 14736 |
kern: remove register qualifiers |
| 14737 |
* kern/queue.h: Remove register qualifiers. |
| 14738 |
|
| 14739 |
kern: remove register qualifiers |
| 14740 |
* kern/queue.c: Remove register qualifiers. |
| 14741 |
|
| 14742 |
kern: remove register qualifiers |
| 14743 |
* kern/processor.c: Remove register qualifiers. |
| 14744 |
|
| 14745 |
kern: remove register qualifiers |
| 14746 |
* kern/priority.c: Remove register qualifiers. |
| 14747 |
|
| 14748 |
kern: remove register qualifiers |
| 14749 |
* kern/printf.c: Remove register qualifiers. |
| 14750 |
|
| 14751 |
kern: remove register qualifiers |
| 14752 |
* kern/pc_sample.c: Remove register qualifiers. |
| 14753 |
|
| 14754 |
kern: remove register qualifiers |
| 14755 |
* kern/machine.c: Remove register qualifiers. |
| 14756 |
|
| 14757 |
kern: remove register qualifiers |
| 14758 |
* kern/mach_factor.c: Remove register qualifiers. |
| 14759 |
|
| 14760 |
kern: remove register qualifiers |
| 14761 |
* kern/mach_clock.c: Remove register qualifiers. |
| 14762 |
|
| 14763 |
kern: remove register qualifiers |
| 14764 |
* kern/lock_mon.c: Remove register qualifiers. |
| 14765 |
|
| 14766 |
kern: remove register qualifiers |
| 14767 |
* kern/lock.c: Remove register qualifiers. |
| 14768 |
|
| 14769 |
kern: remove register qualifiers |
| 14770 |
* kern/ipc_tt.c: Remove register qualifiers. |
| 14771 |
|
| 14772 |
kern: remove register qualifiers |
| 14773 |
* kern/ipc_sched.c: Remove register qualifiers. |
| 14774 |
|
| 14775 |
kern: remove register qualifiers |
| 14776 |
* kern/ipc_mig.c: Remove register qualifiers. |
| 14777 |
|
| 14778 |
kern: remove register qualifiers |
| 14779 |
* kern/host.c: Remove register qualifiers. |
| 14780 |
|
| 14781 |
kern: remove register qualifiers |
| 14782 |
* kern/exception.c: Remove register qualifiers. |
| 14783 |
|
| 14784 |
kern: remove register qualifiers |
| 14785 |
* kern/eventcount.c: Remove register qualifiers. |
| 14786 |
|
| 14787 |
kern: remove register qualifiers |
| 14788 |
* kern/bootstrap.c: Remove register qualifiers. |
| 14789 |
|
| 14790 |
kern: remove register qualifiers |
| 14791 |
* kern/ast.c: Remove register qualifiers. |
| 14792 |
|
| 14793 |
kern: remove register qualifiers |
| 14794 |
* kern/act.c: Remove register qualifiers. |
| 14795 |
|
| 14796 |
2013-11-11 Marin Ramesa <[email protected]> |
| 14797 |
|
| 14798 |
ipc: remove register qualifiers |
| 14799 |
* ipc/ipc_thread.h: Remove register qualifiers. |
| 14800 |
|
| 14801 |
ipc: remove register qualifiers |
| 14802 |
* ipc/mach_msg.c: Remove register qualifiers. |
| 14803 |
|
| 14804 |
ipc: qualify constants with const |
| 14805 |
* ipc/ipc_table.c: Qualify constants with const. |
| 14806 |
|
| 14807 |
ipc: trivial stylistic fix for consistency |
| 14808 |
* ipc/ipc_pset.c: Trivial stylistic fix for consistency. |
| 14809 |
|
| 14810 |
2013-11-11 Samuel Thibault <[email protected]> |
| 14811 |
|
| 14812 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 14813 |
|
| 14814 |
2013-11-11 Marin Ramesa <[email protected]> |
| 14815 |
|
| 14816 |
ipc: remove register qualifiers |
| 14817 |
* ipc/ipc_kmsg.c: Remove register qualifiers. |
| 14818 |
|
| 14819 |
2013-11-11 Justus Winter <[email protected]> |
| 14820 |
|
| 14821 |
kern: fix the error handling in exec_load |
| 14822 |
Found using the Clang Static Analyzer. |
| 14823 |
|
| 14824 |
* kern/elf-load.c (exec_load): Properly propagate errors. |
| 14825 |
|
| 14826 |
2013-11-10 Marin Ramesa <[email protected]> |
| 14827 |
|
| 14828 |
kern: comment unused variable |
| 14829 |
Variable reply_port is never used. There is indication in the comments |
| 14830 |
that it might be used in future function call, so comment it. |
| 14831 |
|
| 14832 |
* kern/ipc_mig.c (syscall_device_writev_request): Comment variable. |
| 14833 |
|
| 14834 |
2013-11-10 Marin Ramesa <[email protected]> |
| 14835 |
|
| 14836 |
device: initialize to zero offset |
| 14837 |
Initialize addr to zero offset to quiet warnings about uninitialized |
| 14838 |
deallocation. |
| 14839 |
|
| 14840 |
* device/chario.c (addr): Initialize to zero. |
| 14841 |
|
| 14842 |
2013-11-10 Marin Ramesa <[email protected]> |
| 14843 |
|
| 14844 |
remove register qualifiers |
| 14845 |
* device/subrs.c: Remove register qualifiers. |
| 14846 |
|
| 14847 |
remove register qualifiers |
| 14848 |
* device/net_io.c: Remove register qualifiers. |
| 14849 |
|
| 14850 |
remove definitions of ETHERMTU and ETHERMIN |
| 14851 |
* device/if_ether.h (ETHERMTU, ETHERMIN): Remove unused definitions. |
| 14852 |
|
| 14853 |
remove register qualifiers |
| 14854 |
* device/blkio.c: Remove register qualifiers. |
| 14855 |
|
| 14856 |
2013-11-09 Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]> |
| 14857 |
|
| 14858 |
Fix overflow in Xen clock computation |
| 14859 |
* xen/time.c (hyp_get_stime): Split `delta` into `delta_high` and |
| 14860 |
`delta_low`, as it may overflow 4 second timing nowadays. |
| 14861 |
|
| 14862 |
2013-11-09 Marin Ramesa <[email protected]> |
| 14863 |
|
| 14864 |
Remove lint code |
| 14865 |
|
| 14866 |
2013-10-10 Richard Braun <[email protected]> |
| 14867 |
|
| 14868 |
Increase kernel map entry pool size |
| 14869 |
* vm/vm_map.h (KENTRY_DATA_SIZE): Set to 256 pages. |
| 14870 |
|
| 14871 |
2013-10-09 Richard Braun <[email protected]> |
| 14872 |
|
| 14873 |
VM cache policy change |
| 14874 |
This patch lets the kernel unconditionnally cache non empty unreferenced |
| 14875 |
objects instead of using a fixed arbitrary limit. As the pageout daemon |
| 14876 |
evicts pages, it collects cached objects that have become empty. The |
| 14877 |
effective result is a graceful adjustment of the number of objects |
| 14878 |
related to memory management (virtual memory objects, their associated |
| 14879 |
ports, and potentially objects maintained in the external memory |
| 14880 |
managers). Physical memory can now be almost entirely filled up with |
| 14881 |
cached pages. In addition, these cached pages are not automatically |
| 14882 |
deactivated as objects can quickly be referenced again. |
| 14883 |
|
| 14884 |
There are problems with this patch however. The first is that, on |
| 14885 |
machines with a large amount of physical memory (above 1 GiB but it also |
| 14886 |
depends on usage patterns), scalability issues are exposed. For example, |
| 14887 |
file systems which don't throttle their writeback requests can create |
| 14888 |
thread storms, strongly reducing system responsiveness. Other issues |
| 14889 |
such as linear scans of memory objects also add visible CPU overhead. |
| 14890 |
|
| 14891 |
The second is that, as most memory is used, it increases the chances of |
| 14892 |
swapping deadlocks. Applications that map large objects and quickly |
| 14893 |
cause lots of page faults can still easily bring the system to its |
| 14894 |
knees. |
| 14895 |
|
| 14896 |
2013-09-28 Samuel Thibault <[email protected]> |
| 14897 |
|
| 14898 |
Add files missing in distrib tarball |
| 14899 |
* Makefrag.am (libkernel_a_SOURCES): Add ddb/db_write_cmd.h, |
| 14900 |
ipc/ipc_print.h, vm/vm_print.h |
| 14901 |
* linux/Makefrag.am (EXTRA_DIST): Add linux/src/drivers/scsi/FlashPoint.c, |
| 14902 |
linux/src/drivers/scsi/eata_pio_proc.c, linux/src/drivers/scsi/scsiiom.c. |
| 14903 |
|
| 14904 |
2013-09-27 Thomas Schwinge <[email protected]> |
| 14905 |
|
| 14906 |
Merge remote-tracking branch 'savannah/master' into master |
| 14907 |
|
| 14908 |
GNU Mach 1.4. |
| 14909 |
* version.m4 (AC_PACKAGE_VERSION): Set to 1.4. |
| 14910 |
* NEWS: Finalize changes for 1.4. |
| 14911 |
* README: Update. |
| 14912 |
|
| 14913 |
* configure.ac (AM_INIT_AUTOMAKE): Add dist-bzip2. |
| 14914 |
|
| 14915 |
Generate ChangeLog files for distributions. |
| 14916 |
* gitlog-to-changelog: New file; import from gnulib's |
| 14917 |
9fc81090f6c5590bd1b0e0fa5087577a2ee43a3e:build-aux/gitlog-to-changelog. |
| 14918 |
* Makefile.am (gen-ChangeLog): New target. |
| 14919 |
(dist-hook): Depend on it. |
| 14920 |
|
| 14921 |
dist-hook extensibility. |
| 14922 |
* Makefile.am (dist-hook): Rename to... |
| 14923 |
(dist-rm-CVS): ... this new target. |
| 14924 |
(dist-hook): Depend on it. |
| 14925 |
|
| 14926 |
* README: Simplify build instructions. |
| 14927 |
Follow-up to commit 471e5b080f7790c2cf95e3069d9fed1173c9ec17. |
| 14928 |
|
| 14929 |
2013-09-27 Svante Signell <[email protected]> |
| 14930 |
|
| 14931 |
Fix typo |
| 14932 |
* README: Fix typo. |
| 14933 |
|
| 14934 |
2013-09-26 Samuel Thibault <[email protected]> |
| 14935 |
|
| 14936 |
Fix gpl.texi build |
| 14937 |
texinfo does not support @heading/@center in the middle of an enumerate. |
| 14938 |
|
| 14939 |
* doc/gpl.texi: Move "NO WARRANTY" to item heading. |
| 14940 |
|
| 14941 |
2013-09-26 Samuel Thibault <[email protected]> |
| 14942 |
|
| 14943 |
Really update README |
| 14944 |
* README: Network drivers are actually enabled by default. |
| 14945 |
|
| 14946 |
Update README |
| 14947 |
* README: Update default drivers notice. Mention cross-compilation flags |
| 14948 |
for 64bit systems. |
| 14949 |
|
| 14950 |
2013-09-24 Samuel Thibault <[email protected]> |
| 14951 |
|
| 14952 |
Drop Invariant, Front-Cover and Back-Cover references |
| 14953 |
The referenced Invariant sections does not exist, and the front and back |
| 14954 |
covers do not hold much information. |
| 14955 |
|
| 14956 |
2013-09-22 Marin Ramesa <[email protected]> |
| 14957 |
|
| 14958 |
device: remove unused file dk_label.c |
| 14959 |
* device/dk_label.c: Remove file. |
| 14960 |
|
| 14961 |
2013-09-21 Marin Ramesa <[email protected]> |
| 14962 |
|
| 14963 |
add comments after endifs |
| 14964 |
* device/ds_routines.c [CONFIG_PCMCIA, CONFIG_INET, LINUX_DEV, MACH_HYP]: Add comments after endifs. |
| 14965 |
|
| 14966 |
remove lint code |
| 14967 |
* device/ds_routines.c [lint]: Remove ifdefs and associated code. |
| 14968 |
|
| 14969 |
remove register qualifiers |
| 14970 |
* device/ds_routines.c: Remove register qualifiers. |
| 14971 |
|
| 14972 |
remove lint code |
| 14973 |
* device/dev_pager.c [lint]: Remove ifdefs and associated code. |
| 14974 |
|
| 14975 |
Coding style trivial fixes |
| 14976 |
|
| 14977 |
remove register qualifiers |
| 14978 |
* device/dev_pager.c: Remove register qualifiers. |
| 14979 |
|
| 14980 |
2013-09-16 Marin Ramesa <[email protected]> |
| 14981 |
|
| 14982 |
another small change in style for consistency |
| 14983 |
* device/dev_name.c: Change in coding style. |
| 14984 |
|
| 14985 |
2013-09-16 Marin Ramesa <[email protected]> |
| 14986 |
|
| 14987 |
use boolean_t instead of an int |
| 14988 |
Variable 'found' already receives values TRUE and FALSE, so why not make |
| 14989 |
it a boolean. |
| 14990 |
|
| 14991 |
* device/dev_name.c: Use boolean_t instead of an int. |
| 14992 |
|
| 14993 |
2013-09-16 Marin Ramesa <[email protected]> |
| 14994 |
|
| 14995 |
remove preprocessor comments |
| 14996 |
The first one is a message that name lookup has been called, which |
| 14997 |
I think is safe to remove, or maybe add #if DEBUG. Second one is a |
| 14998 |
alternate calculation that I doubt it will ever be used, so I think |
| 14999 |
it's safe to remove it. |
| 15000 |
|
| 15001 |
* device/dev_name.c: Remove preprocessor comments. |
| 15002 |
|
| 15003 |
2013-09-16 Marin Ramesa <[email protected]> |
| 15004 |
|
| 15005 |
another small change in style for consistency |
| 15006 |
* device/dev_name.c: Change in coding style. |
| 15007 |
|
| 15008 |
small style changes for consistency |
| 15009 |
* device/dev_name: Changes in coding style. |
| 15010 |
|
| 15011 |
remove register qualifiers |
| 15012 |
* device/dev_name.c: Remove register qualifiers. |
| 15013 |
|
| 15014 |
2013-09-15 Marin Ramesa <[email protected]> |
| 15015 |
|
| 15016 |
remove definition of NDEVICES |
| 15017 |
NDEVICES is never used. Judging by the position and the comments |
| 15018 |
it was once used in initialization, but it's not anymore. I think |
| 15019 |
it's safe to remove it. |
| 15020 |
|
| 15021 |
* device/dev_lookup.c (NDEVICES): Remove definition. |
| 15022 |
|
| 15023 |
2013-09-15 Marin Ramesa <[email protected]> |
| 15024 |
|
| 15025 |
remove register qualifiers |
| 15026 |
* device/dev_lookup.c: Remove register qualifiers. |
| 15027 |
|
| 15028 |
2013-09-11 Marin Ramesa <[email protected]> |
| 15029 |
|
| 15030 |
remove register qualifiers. |
| 15031 |
* device/cirbuf.c: Remove register qualifiers. |
| 15032 |
|
| 15033 |
2013-09-11 Marin Ramesa <[email protected]> |
| 15034 |
|
| 15035 |
track the console init with a boolean instead of an int |
| 15036 |
A variable that keeps track if the console init has been called. It should |
| 15037 |
never receive values other than 0 and 1, so constrain it's possible range of |
| 15038 |
values to a boolean. |
| 15039 |
|
| 15040 |
* device/cons.c (cn_inited): Use boolean_t instead of an int. |
| 15041 |
|
| 15042 |
2013-09-11 Marin Ramesa <[email protected]> |
| 15043 |
|
| 15044 |
track the console buffer usage with a boolean instead of an int |
| 15045 |
A variable that keeps track of the console buffer usage should never receive |
| 15046 |
values other than 0 and 1, so constrain it's value range to boolean. Plus, it's |
| 15047 |
more readable this way. |
| 15048 |
|
| 15049 |
* device/cons.c (consbufused): Use boolean_t instead of an int. |
| 15050 |
|
| 15051 |
2013-09-11 Marin Ramesa <[email protected]> |
| 15052 |
|
| 15053 |
drop unused CONSMAJOR |
| 15054 |
CONSMAJOR is never used. I'm guessing that in the past it was |
| 15055 |
a part of some problematic code. I don't see a reason to keep |
| 15056 |
it's definition. |
| 15057 |
|
| 15058 |
* device/cons.h (CONSMAJOR): Remove definition. |
| 15059 |
|
| 15060 |
2013-09-09 Marin Ramesa <[email protected]> |
| 15061 |
|
| 15062 |
Remove register qualifiers |
| 15063 |
* device/chario.c: Remove register qualifiers. |
| 15064 |
|
| 15065 |
Add const qualifiers. |
| 15066 |
* device/chario.c (tty_inq_size, tty_outq_size): Qualify constants as const. |
| 15067 |
|
| 15068 |
Drop useless forward declaration |
| 15069 |
* device/chario.c (tty_flush): Remove forward declaration (prototype is in tty.h). |
| 15070 |
|
| 15071 |
Drop luna88k bits |
| 15072 |
* device/tty.h [luna88k]: Remove ifdef and include for nonexistent header files. |
| 15073 |
* kern/debug.c: Remove check for luna88k. |
| 15074 |
|
| 15075 |
2013-08-28 Samuel Thibault <[email protected]> |
| 15076 |
|
| 15077 |
Drop FXSR initialization message |
| 15078 |
* i386/i386/fpu.c (init_fpu): Drop FXSR initialization message |
| 15079 |
|
| 15080 |
2013-07-18 Marin Ramesa <[email protected]> |
| 15081 |
|
| 15082 |
kern: add missing prototype |
| 15083 |
* kern/lock.h (db_show_all_slocks): Add prototype. |
| 15084 |
|
| 15085 |
ipc: organize ipc print function prototypes |
| 15086 |
* ipc/ipc_print.h: New file. |
| 15087 |
[MACH_KDB] Include <mach/mach_types.h>. |
| 15088 |
[MACH_KDB] Include <mach/message.h>. |
| 15089 |
[MACH_KDB] Include <ipc/ipc_types.h>. |
| 15090 |
(ipc_port_print): Add prototype. |
| 15091 |
(ipc_pset_print): Likewise. |
| 15092 |
(ipc_kmsg_print): Likewise. |
| 15093 |
(ipc_msg_print): Likewise. |
| 15094 |
* ipc/ipc_port.h (ipc_port_print): Remove prototype. |
| 15095 |
* ipc/ipc_port.c [MACH_KDB]: Include <ipc/ipc_print.h>. |
| 15096 |
* ipc/ipc_pset.h (ipc_pset_print): Remove prototype. |
| 15097 |
* ipc/ipc_pset.c [MACH_KDB]: Include <ipc/ipc_print.h>. |
| 15098 |
* ipc/ipc_kmsg.c [MACH_KDB]: Include <ipc/ipc_print.h>. |
| 15099 |
|
| 15100 |
vm: organize vm print function prototypes |
| 15101 |
* vm/vm_print.h: New file. |
| 15102 |
Include <vm/vm_map.h>. |
| 15103 |
Include <machine/db_machdep.h>. |
| 15104 |
(vm_map_print): Add prototype. |
| 15105 |
(vm_map_copy_print): Likewise. |
| 15106 |
(vm_object_print): Likewise. |
| 15107 |
(vm_page_print): Likewise. |
| 15108 |
Include <vm/vm_object.h>. |
| 15109 |
Include <vm/vm_page.h> |
| 15110 |
* vm/vm_map.h (vm_map_print): Remove prototype. |
| 15111 |
* vm/vm_map.c [MACH_KDB]: Include <vm/vm_print.h>. |
| 15112 |
* vm/vm_object.h (vm_object_print): Remove prototype. |
| 15113 |
* vm/vm_object.c [MACH_KDB]: Include <vm/vm_print.h>. |
| 15114 |
* vm/vm_resident.c [MACH_KDB]: Include <vm/vm_print.h>. |
| 15115 |
|
| 15116 |
ddb: cleanup db_command.c |
| 15117 |
* ddb/db_command.c (_longjmp): Remove prototype. |
| 15118 |
(vm_map_print): Likewise. |
| 15119 |
(vm_object_print): Likewise. |
| 15120 |
(vm_page_print): Likewise. |
| 15121 |
(vm_map_copy_print): Likewise. |
| 15122 |
(ipc_port_print): Likewise. |
| 15123 |
(ipc_pset_print): Likewise. |
| 15124 |
(db_show_all_slocks): Likewise. |
| 15125 |
(ipc_kmsg_print): Likewise. |
| 15126 |
(ipc_msg_print): Likewise. |
| 15127 |
Include <vm/vm_print.h>. |
| 15128 |
Include <ipc/ipc_print.h>. |
| 15129 |
Include <kern/lock.h>. |
| 15130 |
* i386/i386/setjmp.h [__GNUC__] (_longjmp): Add prototype. |
| 15131 |
|
| 15132 |
2013-07-07 Marin Ramesa <[email protected]> |
| 15133 |
|
| 15134 |
fix implicit declarations |
| 15135 |
* ddb/db_trap.c: Include <machine/setjmp.h>. |
| 15136 |
* i386/i386/setjmp.h (_setjmp): Add prototype. |
| 15137 |
|
| 15138 |
2013-07-07 Samuel Thibault <[email protected]> |
| 15139 |
|
| 15140 |
Restore db_help_cmd |
| 15141 |
* ddb/db_command.c (db_help_cmd): Restore function. |
| 15142 |
|
| 15143 |
2013-07-06 Marin Ramesa <[email protected]> |
| 15144 |
|
| 15145 |
ddb: cleanup db_command.c |
| 15146 |
* ddb/db_write_cmd.h: New file. |
| 15147 |
(db_write_cmd): Add prototype. |
| 15148 |
Include <mach/boolean.h>. |
| 15149 |
Include <machine/db_machdep.h>. |
| 15150 |
* ddb/db_break.h (db_listbreak_cmd): Add prototype. |
| 15151 |
(db_delete_cmd): Likewise. |
| 15152 |
(db_breakpoint_cmd): Likewise. |
| 15153 |
* ddb/db_watch.h (db_listwatch_cmd): Likewise. |
| 15154 |
(db_deletewatch_cmd): Likewise. |
| 15155 |
(db_watchpoint_cmd): Likewise. |
| 15156 |
* ddb/db_print.h (db_show_one_thread): Likewise. |
| 15157 |
(db_show_all_threads): Likewise. |
| 15158 |
* ddb/db_examine.h (db_print_cmd): Likewise. |
| 15159 |
(db_examine_forward): Likewise. |
| 15160 |
(db_examine_backward): Likewise. |
| 15161 |
(db_search_cmd): Likewise. |
| 15162 |
* ddb/db_variables.h (db_set_cmd): Likewise. |
| 15163 |
* ddb/db_run.h (db_trace_until_call_cmd): Likewise. |
| 15164 |
(db_trace_until_matching_cmd): Likewise. |
| 15165 |
(db_continue_cmd): Likewise. |
| 15166 |
* ddb/db_command.h (db_fncall): Likewise. |
| 15167 |
* ddb/db_command.c: Include <ddb/db_break.h>. |
| 15168 |
Include <ddb/db_watch.h>. |
| 15169 |
Include <ddb/db_variables.h>. |
| 15170 |
Include <ddb/db_write_cmd.h>. |
| 15171 |
Include <ddb/db_run.h>. |
| 15172 |
Include <ddb/db_cond.h>. |
| 15173 |
(db_listbreak_cmd): Remove prototype. |
| 15174 |
(db_listwatch_cmd): Likewise. |
| 15175 |
(db_show_one_thread): Likewise. |
| 15176 |
(db_show_all_threads): Likewise. |
| 15177 |
(db_show_macro): Likewise. |
| 15178 |
(db_show_help): Likewise. |
| 15179 |
(db_print_cmd): Likewise. |
| 15180 |
(db_examine_cmd): Likewise. |
| 15181 |
(db_set_cmd): Likewise. |
| 15182 |
(db_examine_forward): Likewise. |
| 15183 |
(db_examine_backward): Likewise. |
| 15184 |
(db_search_cmd): Likewise. |
| 15185 |
(db_write_cmd): Likewise. |
| 15186 |
(db_delete_cmd): Likewise. |
| 15187 |
(db_breakpoint_cmd): Likewise. |
| 15188 |
(db_deletewatch_cmd): Likewise. |
| 15189 |
(db_watchpoint_cmd): Likewise. |
| 15190 |
(db_single_step_cmd): Likewise. |
| 15191 |
(db_trace_until_call_cmd): Likewise. |
| 15192 |
(db_trace_until_matching_cmd): Likewise. |
| 15193 |
(db_continue_cmd): Likewise. |
| 15194 |
(db_cond_cmd): Likewise. |
| 15195 |
(db_help_cmd): Likewise. |
| 15196 |
(db_def_macro_cmd): Likewise. |
| 15197 |
(db_del_macro_cmd): Likewise. |
| 15198 |
(db_fncall): Likewise. |
| 15199 |
|
| 15200 |
2013-07-05 Marin Ramesa <[email protected]> |
| 15201 |
|
| 15202 |
ddb: use and cleanup db_print.h |
| 15203 |
* ddb/db_command.c: Include db_print.h. |
| 15204 |
Remove extern db_show_regs(). |
| 15205 |
Remove extern db_show_one_task(). |
| 15206 |
Remove extern db_show_port_id(). |
| 15207 |
* ddb/db_print.c: Include db_print.h |
| 15208 |
* ddb/db_print.h (db_show_all_acts): Remove prototype. |
| 15209 |
(db_show_one_act): Likewise. |
| 15210 |
(db_show_shuttle): Likewise. |
| 15211 |
(db_show_one_task_vm): Likewise. |
| 15212 |
(db_show_all_task_vm): Likewise. |
| 15213 |
(db_show_one_space): Likewise. |
| 15214 |
(db_show_all_spaces): Likewise. |
| 15215 |
(db_sys): Likewise. |
| 15216 |
(db_port_kmsg_count): Likewise. |
| 15217 |
(db_show_one_simple_lock): Likewise. |
| 15218 |
(db_show_one_mutex): Likewise. |
| 15219 |
(db_show_subsystem): Likewise. |
| 15220 |
(db_show_runq): Likewise. |
| 15221 |
|
| 15222 |
2013-07-04 Marin Ramesa <[email protected]> |
| 15223 |
|
| 15224 |
ddb: fix implicit declarations |
| 15225 |
* ddb/db_break.c: Include ddb/db_access.h. |
| 15226 |
* ddb/db_examine.h (db_xcdump): Add prototype. |
| 15227 |
* ddb/db_ext_symtab.c: Include vm/vm_user.h. |
| 15228 |
* ddb/db_input.c: Include device/cons.h. |
| 15229 |
* ddb/db_output.c: Likewise. |
| 15230 |
|
| 15231 |
2013-06-29 Marin Ramesa <[email protected]> |
| 15232 |
|
| 15233 |
(slab_info): fix format warnings |
| 15234 |
* kern/slab.c (slab_info): Fix format for vm_size_t. |
| 15235 |
|
| 15236 |
Add device_pager_setup prototype |
| 15237 |
* device/ds_routines.h (device_pager_setup): Add prototype. |
| 15238 |
|
| 15239 |
Add [nh]to[hn][ls] prototypes |
| 15240 |
* device/net_io.h (ntohl, htonl, ntohs, htons): Add prototypes. |
| 15241 |
|
| 15242 |
2013-06-29 Samuel Thibault <[email protected]> |
| 15243 |
|
| 15244 |
Fix int/long discrepancy |
| 15245 |
* device/net_io.c (bpf_match): Make the `keys' parameter a pointer to |
| 15246 |
unsigned int instead of unsigned long. |
| 15247 |
(bpf_do_filter): Make `A', `B' and `mem' unsigned ints instead of unsigned |
| 15248 |
longs. Also turn long casts into int casts. |
| 15249 |
|
| 15250 |
2013-06-24 Samuel Thibault <[email protected]> |
| 15251 |
|
| 15252 |
Add partitioning reload support to ahci |
| 15253 |
* linux/dev/drivers/block/ahci.c (port): Add `gd' field. |
| 15254 |
(ahci_ioctl): New function. |
| 15255 |
(ahci_fops): Fill `ioctl' field with `ahci_ioctl'. |
| 15256 |
(ahci_probe_pci): Fill `gd' field with `gd'. |
| 15257 |
|
| 15258 |
Fix printing ahci PCI dev and fun |
| 15259 |
* linux/dev/drivers/block/ahci.c (ahci_probe_dev): Compute `dev' and `fun' |
| 15260 |
earlier so they can be printed. |
| 15261 |
|
| 15262 |
2013-06-10 Samuel Thibault <[email protected]> |
| 15263 |
|
| 15264 |
Add missing 4KiB memory |
| 15265 |
* i386/i386at/model_dep.c (init_alloc_aligned): Let allocated area last |
| 15266 |
until end of memory map. |
| 15267 |
|
| 15268 |
Add non-contiguous mmap support |
| 15269 |
* i386/include/mach/i386/multiboot.h (multiboot_mmap): New structure |
| 15270 |
* i386/i386at/model_dep.c (mem_size_init): Parse boot_info.mmap_addr if |
| 15271 |
available. |
| 15272 |
(init_alloc_aligned): Likewise. |
| 15273 |
|
| 15274 |
2013-06-09 Samuel Thibault <[email protected]> |
| 15275 |
|
| 15276 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 15277 |
|
| 15278 |
2013-06-09 Samuel Thibault <[email protected]> |
| 15279 |
|
| 15280 |
Do not skip AHCI controller without HOST_CAP_ONLY |
| 15281 |
We rather rely on the announced PCI type to determine whether to use IDE or |
| 15282 |
AHCI. |
| 15283 |
|
| 15284 |
* linux/dev/drivers/block/ahci.c (ahci_probe_dev): Do not skip AHCI |
| 15285 |
controller without HOST_CAP_ONLY. |
| 15286 |
|
| 15287 |
2013-06-09 Samuel Thibault <[email protected]> |
| 15288 |
|
| 15289 |
Add timeout to ahci IDENTIFY |
| 15290 |
* linux/dev/drivers/block/ahci.c (identify_timeout): New function. |
| 15291 |
(identify_timer): New variable. |
| 15292 |
(ahci_probe_port): Add timer to abandon identify command. |
| 15293 |
|
| 15294 |
Fix printf format |
| 15295 |
* linux/dev/drivers/block/ahci.c (ahci_do_request): Cast capacity into unsigned |
| 15296 |
long and use %lu format. |
| 15297 |
(ahci_probe_port): Cast size into unsigned and use %u format. |
| 15298 |
|
| 15299 |
Fix format |
| 15300 |
|
| 15301 |
2013-06-09 Richard Braun <[email protected]> |
| 15302 |
|
| 15303 |
Fix object construction in the slab allocator |
| 15304 |
There is currently no actual use of constructors, which is why this bug has |
| 15305 |
been long overlooked. |
| 15306 |
|
| 15307 |
* kern/slab.c (kmem_cpu_pool_fill): Call constructor on buffers unless |
| 15308 |
verification is enabled for the cache, or the constructor is NULL. |
| 15309 |
|
| 15310 |
2013-06-04 Marin Ramesa <[email protected]> |
| 15311 |
|
| 15312 |
Comment unused variable |
| 15313 |
* kern/ipc_mig.c (syscall_device_write_request): Comment unused variable. |
| 15314 |
|
| 15315 |
2013-06-04 Samuel Thibault <[email protected]> |
| 15316 |
|
| 15317 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 15318 |
|
| 15319 |
2013-06-04 Miguel Figueiredo <[email protected]> |
| 15320 |
|
| 15321 |
Fix format warnings |
| 15322 |
* vm/vm_resident.c (pmap_startup): Fix printf format. |
| 15323 |
* xen/block.c (hyp_block_init, device_write): Likewise. |
| 15324 |
* xen/net.c (hyp_net_init): Likewise. |
| 15325 |
|
| 15326 |
2013-06-02 Miguel Figueiredo <[email protected]> |
| 15327 |
|
| 15328 |
Remove unused variable |
| 15329 |
* kern/act.c (act_create): Remove unused variable. |
| 15330 |
|
| 15331 |
2013-06-02 Richard Braun <[email protected]> |
| 15332 |
|
| 15333 |
Fix yet another locking error in the slab allocator |
| 15334 |
* kern/slab.c (kmem_cache_free): Relock cache before retrying releasing |
| 15335 |
an object to the CPU pool layer. |
| 15336 |
|
| 15337 |
2013-06-02 Miguel Figueiredo <[email protected]> |
| 15338 |
|
| 15339 |
Remove unused variable |
| 15340 |
* ipc/mach_port.c (mach_port_set_syscall_right): Remove unused variable. |
| 15341 |
|
| 15342 |
2013-05-30 Samuel Thibault <[email protected]> |
| 15343 |
|
| 15344 |
Add LBA48 support to AHCI driver |
| 15345 |
* linux/dev/drivers/block/ahci.c (port): Extend `capacity' field type to |
| 15346 |
unsigned long long. Add `lba48' field. Make `identify' field unsigned. |
| 15347 |
(ahci_do_port_request): When `lba48' is true, use WIN_READDMA_EXT and |
| 15348 |
WIN_WRITEDMA_EXT commands. |
| 15349 |
(ahci_probe_port): Test lba48 flag, read capacity and set `lba48' |
| 15350 |
accordingly. Display size in GiB above 10GiB. |
| 15351 |
* linux/src/include/linux/hdreg.h (WIN_READDMA_EXT, WIN_WRITEDMA_EXT): New |
| 15352 |
macros |
| 15353 |
(hd_driveid): Add `command_set_2' and lba_capacity_2' fields. |
| 15354 |
|
| 15355 |
2013-05-27 Miguel Figueiredo <[email protected]> |
| 15356 |
|
| 15357 |
Remove old elevator algorithm function |
| 15358 |
* device/blkio.c (disksort): remove unused function |
| 15359 |
|
| 15360 |
2013-05-19 Miguel Figueiredo <[email protected]> |
| 15361 |
|
| 15362 |
Remove unneeded variable initialization |
| 15363 |
* kern/thread.c (thread_force_terminate): Remove unneeded variable |
| 15364 |
initialization. |
| 15365 |
|
| 15366 |
2013-05-19 Samuel Thibault <[email protected]> |
| 15367 |
|
| 15368 |
Remove duplicate line |
| 15369 |
Reported by Miguel Figueiredo |
| 15370 |
|
| 15371 |
* kern/thread.c (thread_create): Remove duplicate reset of |
| 15372 |
new_thread->pc_sample.buffer to 0. |
| 15373 |
|
| 15374 |
2013-05-16 Richard Braun <[email protected]> |
| 15375 |
|
| 15376 |
Reduce fragmentation in the slab allocator |
| 15377 |
This reverts a change brought when reworking slab lists handling that made |
| 15378 |
the allocator store slabs in LIFO order, whatever their reference count. |
| 15379 |
While it's fine for free slabs, it actually increased fragmentation for |
| 15380 |
partial slabs. |
| 15381 |
|
| 15382 |
* kern/slab.c (kmem_cache_alloc_from_slab): Insert slabs that become partial |
| 15383 |
at the end of the partial slabs list. |
| 15384 |
|
| 15385 |
2013-05-16 Richard Braun <[email protected]> |
| 15386 |
|
| 15387 |
Rename list_insert to list_insert_head |
| 15388 |
This change increases clarity. |
| 15389 |
|
| 15390 |
* kern/list.h (list_insert): Rename to ... |
| 15391 |
(list_insert_head): ... this. |
| 15392 |
* kern/slab.c: Update calls to list_insert. |
| 15393 |
|
| 15394 |
2013-05-15 Richard Braun <[email protected]> |
| 15395 |
|
| 15396 |
Fix itemization errors in the texinfo documentation |
| 15397 |
* doc/mach.texi: Replace @itemx with @item for --enable-tulip and |
| 15398 |
--enable-epic100. |
| 15399 |
|
| 15400 |
2013-05-13 Miguel Figueiredo <[email protected]> |
| 15401 |
|
| 15402 |
Drop unused variables |
| 15403 |
* kern/slab.c (kalloc_init): Remove unused variables. |
| 15404 |
|
| 15405 |
2013-05-11 Samuel Thibault <[email protected]> |
| 15406 |
|
| 15407 |
Add missing parameters to printf |
| 15408 |
* linux/dev/drivers/block/ahci.c (ahci_probe_dev): Add missing parameters to |
| 15409 |
printf. |
| 15410 |
|
| 15411 |
2013-05-10 Samuel Thibault <[email protected]> |
| 15412 |
|
| 15413 |
Fix ahci.h path |
| 15414 |
* linux/Makefrag.am (liblinux_a_SOURCES): Fix path to ahci.h |
| 15415 |
|
| 15416 |
Add AHCI driver |
| 15417 |
* linux/dev/glue/kmem.c (vmtophys): New function. |
| 15418 |
* linux/dev/include/linux/mm.h (vmtophys): New prototype. |
| 15419 |
* linux/src/include/linux/pci.h (PCI_CLASS_STORAGE_SATA, |
| 15420 |
PCI_CLASS_STORAGE_SATA_AHCI): New macros. |
| 15421 |
* linux/dev/drivers/block/ahci.c: New file. |
| 15422 |
* linux/dev/include/ahci.h: New file. |
| 15423 |
* linux/Makefrag.am (liblinux_a_SOURCES): Add linux/dev/drivers/block/ahci.c |
| 15424 |
and linux/dev/drivers/block/ahci.h. |
| 15425 |
* linux/src/drivers/block/ide.c: Include <ahci.h>. |
| 15426 |
(probe_for_hwifs): Call ahci_probe_pci. |
| 15427 |
|
| 15428 |
2013-05-02 Samuel Thibault <[email protected]> |
| 15429 |
|
| 15430 |
Fix non-block-aligned-offset reads |
| 15431 |
This fixes grave issues when device_read is called with non-block-aligned |
| 15432 |
offset, e.g. when using grub-probe with a non-block-aligned partition table. |
| 15433 |
|
| 15434 |
* linux/dev/glue/block.c (rdwr_full): Use current position instead of base |
| 15435 |
buffer position to check for alignment. |
| 15436 |
|
| 15437 |
2013-05-01 Samuel Thibault <[email protected]> |
| 15438 |
|
| 15439 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 15440 |
|
| 15441 |
Fix macro name |
| 15442 |
* linux/dev/glue/block.c (device_get_status): Use |
| 15443 |
DEV_GET_RECORDS_RECORD_SIZE for DEV_GET_RECORDS instead of |
| 15444 |
DEV_GET_SIZE_RECORD_SIZE. |
| 15445 |
|
| 15446 |
2013-04-21 Richard Braun <[email protected]> |
| 15447 |
|
| 15448 |
Optimize slab reaping |
| 15449 |
Instead of walking the list of free slabs while holding the cache lock, |
| 15450 |
detach the list from the cache and directly compute the final count values, |
| 15451 |
and destroy slabs after releasing the cache lock. |
| 15452 |
|
| 15453 |
* kern/slab.c (kmem_cache_reap): Optimize. |
| 15454 |
|
| 15455 |
2013-04-21 Richard Braun <[email protected]> |
| 15456 |
|
| 15457 |
Rework slab lists handling |
| 15458 |
Don't enforce strong ordering of partial slabs. Separating partial slabs |
| 15459 |
from free slabs is already effective against fragmentation, and sorting |
| 15460 |
would sometimes cause pathological scalability issues. In addition, store |
| 15461 |
new slabs (whether free or partial) in LIFO order for better cache usage. |
| 15462 |
|
| 15463 |
* kern/slab.c (kmem_cache_grow): Insert new slab at the head of the slabs list. |
| 15464 |
(kmem_cache_alloc_from_slab): Likewise. In addition, don't sort partial slabs. |
| 15465 |
(kmem_cache_free_to_slab): Likewise. |
| 15466 |
* kern/slab.h: Remove comment about partial slabs sorting. |
| 15467 |
|
| 15468 |
2013-04-21 Richard Braun <[email protected]> |
| 15469 |
|
| 15470 |
Fix locking error in the slab allocator |
| 15471 |
* kern/slab.c (kmem_cache_free): Lock cache before releasing an object to |
| 15472 |
the slab layer. |
| 15473 |
|
| 15474 |
2013-04-08 Samuel Thibault <[email protected]> |
| 15475 |
|
| 15476 |
Add -fno-optimize-sibling-calls option for better kdb traces |
| 15477 |
* Makefrag.am (AM_CFLAGS) [enable_kdb]: Add -fno-optimize-sibling-calls |
| 15478 |
option. |
| 15479 |
|
| 15480 |
2013-03-11 Samuel Thibault <[email protected]> |
| 15481 |
|
| 15482 |
Update BASEPRI_USER |
| 15483 |
* kern/sched.h (BASEPRI_USER): Increase to 25. |
| 15484 |
|
| 15485 |
Fix build without kdb |
| 15486 |
* i386/i386/db_interface.h [! MACH_KBD] (db_set_hw_watchpoint, |
| 15487 |
db_clear_hw_watchpoint, db_dr): Do not declare functions. |
| 15488 |
|
| 15489 |
2013-03-06 Samuel Thibault <[email protected]> |
| 15490 |
|
| 15491 |
Increase number of priorities |
| 15492 |
* kern/sched.h (NRQS): Increase to 50. |
| 15493 |
|
| 15494 |
2013-03-05 Samuel Thibault <[email protected]> |
| 15495 |
|
| 15496 |
Do not hardcode maximum priority value |
| 15497 |
* kern/sched_prim.c (do_priority_computation): Replace 31 with NRQS - 1. |
| 15498 |
idle_thread: Likewise. |
| 15499 |
|
| 15500 |
2013-02-04 Samuel Thibault <[email protected]> |
| 15501 |
|
| 15502 |
Include machine/db_interface instead of hardcoding function prototypes |
| 15503 |
* ddb/db_access.c: Include <machine/db_interface.h>. |
| 15504 |
(db_read_bytes, db_write_bytes): Remove functions prototypes. |
| 15505 |
(db_get_task_value): Fix calling db_read_bytes. |
| 15506 |
(db_put_task_value): Fix calling db_write_bytes. |
| 15507 |
* ddb/db_watch.c: Include <machine/db_interface.h>. |
| 15508 |
(db_set_hw_watchpoint, db_clear_hw_watchpoint): Remove functions prototypes. |
| 15509 |
|
| 15510 |
2013-02-04 Samuel Thibault <[email protected]> |
| 15511 |
|
| 15512 |
Plug hw debug register support into kdb |
| 15513 |
Make the `watch' command use hw debug registers whenever possible. |
| 15514 |
|
| 15515 |
* ddb/db_watch.c (db_set_hw_watchpoint, db_clear_hw_watchpoint): Add |
| 15516 |
functions prototypes. |
| 15517 |
(db_set_watchpoints): Try to call db_set_hw_watchpoint. |
| 15518 |
(db_clear_watchpoints): Call db_clear_hw_watchpoint. |
| 15519 |
* i386/i386/db_interface.c: Include <ddb/db_watch.h> |
| 15520 |
(db_set_hw_watchpoint): Take a db_watchpoint_t WATCH parameter instead of |
| 15521 |
its content. Remove support for clearing a debug register. |
| 15522 |
(db_clear_hw_watchpoint): Add function. |
| 15523 |
* i386/i386/db_interface.h: Include <ddb/db_watch.h>. |
| 15524 |
(db_set_hw_watchpoint): Fix function prototype. |
| 15525 |
(db_clear_hw_watchpoint): Add function prototype. |
| 15526 |
* i386/i386/db_machdep.h: Do not include <machine/db_interface.h> |
| 15527 |
|
| 15528 |
2013-02-04 Samuel Thibault <[email protected]> |
| 15529 |
|
| 15530 |
Document dwatch |
| 15531 |
* doc/mach.texi: Add dwatch documentation. |
| 15532 |
|
| 15533 |
2013-02-04 Samuel Thibault <[email protected]> |
| 15534 |
|
| 15535 |
Add x86 hardware debugging register support |
| 15536 |
This adds using the x86 hardware debugging registers, either from the kernel |
| 15537 |
through db_set_hw_watchpoint, or from userland through i386_DEBUG_STATE. |
| 15538 |
While the kernel is using the registers, the userland values are ignored. |
| 15539 |
|
| 15540 |
* i386/i386/db_interface.c (kernel_dr, ids): New variables. |
| 15541 |
(db_load_context, db_get_debug_state, db_set_debug_state, db_dr, |
| 15542 |
db_set_hw_watchpoint): New functions. |
| 15543 |
(kdb_trap): Use get_dr* instead of dr_addr[]. |
| 15544 |
* i386/i386/db_interface.h (db_user_to_kernel_address, db_set_hw_watchpoint) |
| 15545 |
(db_dr, db_get_debug_state, db_set_debug_state, db_load_context): Add functions |
| 15546 |
prototypes. |
| 15547 |
(dr0, dr1, dr2, dr3): Remove functions prototypes. |
| 15548 |
* i386/i386/locore.S (dr6, dr0, dr1, dr2, dr3): Remove functions. |
| 15549 |
(dr_msk, dr_addr): Remove variables. |
| 15550 |
* i386/include/mach/i386/thread_status.h (i386_DEBUG_STATE): Add macro. |
| 15551 |
(i386_debug_state): Add structure. |
| 15552 |
(i386_DEBUG_STATE_COUNT): Add macro. |
| 15553 |
* i386/i386/thread.h: Include <mach/machine/thread_status.h>. |
| 15554 |
(i386_machine_state): Add `struct i386_debug_state ids' field. |
| 15555 |
* i386/i386/pcb.c: Include <i386/db_interface.h>. |
| 15556 |
(switch_ktss): Call db_load_context. |
| 15557 |
(thread_setstatus, thread_getstatus): Add I386_DEBUG_STATE case. |
| 15558 |
* i386/i386/proc_reg.h (get_dr0, set_dr0, get_dr1, set_dr1, get_dr2, |
| 15559 |
set_dr2, get_dr3, set_dr3, get_dr6, set_dr6, get_dr7, set_dr7): Add macros. |
| 15560 |
|
| 15561 |
2013-02-03 Samuel Thibault <[email protected]> |
| 15562 |
|
| 15563 |
Prevent the kernel from making any FPU use |
| 15564 |
* i386/Makefrag.am (AM_CFLAGS): Add -mno-3dnow -mno-mmx -mno-sse -mno-sse2. |
| 15565 |
|
| 15566 |
2013-01-31 Samuel Thibault <[email protected]> |
| 15567 |
|
| 15568 |
Implement pmap_map_mfn for the PVH case |
| 15569 |
* i386/intel/pmap.c (pmap_map_mfn) [MACH_XEN && !MACH_PV_PAGETABLES]: |
| 15570 |
Implement. |
| 15571 |
|
| 15572 |
Make the PVH variant get sure that the support is available in the hypervisor |
| 15573 |
* i386/xen/xen_boothdr.S (FEATURES): Mark PVH features as required. |
| 15574 |
|
| 15575 |
2013-01-30 Samuel Thibault <[email protected]> |
| 15576 |
|
| 15577 |
Add comment for TODO |
| 15578 |
|
| 15579 |
Do not use 4gb segment assistance in PVH |
| 15580 |
* i386/i386/gdt.c (gdt_init) [MACH_PV_DESCRIPTORS && !MACH_PV_PAGETABLES]: |
| 15581 |
Do not enable VMASST_TYPE_4gb_segments. |
| 15582 |
* i386/i386/trap.c (user_trap): Do not handle trap 15, 4gb segment |
| 15583 |
assist notification. |
| 15584 |
|
| 15585 |
Drop spurious inclusion |
| 15586 |
* i386/i386/vm_param.h [MACH_XEN && !MACH_PV_PAGETABLES]: Do not include |
| 15587 |
<xen/public/xen.h>. |
| 15588 |
|
| 15589 |
Increase VM_MAX_KERNEL_ADDRESS for PVH case |
| 15590 |
* i386/i386/vm_param.h (VM_MAX_KERNEL_ADDRESS) [MACH_XEN && |
| 15591 |
!MACH_PV_PAGETABLES]: Remove hypervisor area from VM_MAX_KERNEL_ADDRESS |
| 15592 |
restriction. |
| 15593 |
|
| 15594 |
2013-01-28 Samuel Thibault <[email protected]> |
| 15595 |
|
| 15596 |
More ifdef fixes for ring1 support and pv descriptors support |
| 15597 |
* i386/i386/idt_inittab.S: Turn MACH_XEN test into MACH_PV_DESCRIPTORS test. |
| 15598 |
* i386/i386/fpu.c: Turn appropriate MACH_HYP/XEN tests into MACH_RING1 tests. |
| 15599 |
* i386/i386/ktss.c: Likewise. |
| 15600 |
* i386/i386/locore.S: Likewise. |
| 15601 |
* i386/i386/mp_desc.c: Likewise. |
| 15602 |
* i386/i386/pcb.c: Likewise. |
| 15603 |
* i386/i386/proc_reg.h: Likewise. |
| 15604 |
* i386/i386/trap.c: Likewise. |
| 15605 |
|
| 15606 |
Add initial code for disabling PV pagetables |
| 15607 |
* xen/configfrag.ac (--disable-pv-pagetables): Add option. |
| 15608 |
* i386/xen/xen_boothdr.S (XEN_ELFNOTE_FEATURES) [!MACH_PV_PAGETABLES]: Add |
| 15609 |
writable_page_tables. |
| 15610 |
* i386/i386/gdt.c: Turn appropriate MACH_XEN/MACH_HYP tests into |
| 15611 |
MACH_PV_PAGETABLES tests. |
| 15612 |
* i386/i386/i386asm.sym: Likewise |
| 15613 |
* i386/i386/ldt.c: Likewise |
| 15614 |
* i386/i386/locore.S: Likewise |
| 15615 |
* i386/i386/proc_reg.h: Likewise |
| 15616 |
* i386/i386/user_ldt.c: Likewise |
| 15617 |
* i386/i386/vm_param.h: Likewise |
| 15618 |
* i386/i386/xen.h: Likewise |
| 15619 |
* i386/i386at/model_dep.c: Likewise |
| 15620 |
* i386/intel/pmap.h: Likewise |
| 15621 |
* include/mach/xen.h: Likewise |
| 15622 |
* xen/console.c: Likewise |
| 15623 |
* xen/store.c: Likewise |
| 15624 |
* i386/intel/pmap.c: Likewise. Define pmap_map_mfn as TODO stub. |
| 15625 |
|
| 15626 |
Fix comments |
| 15627 |
|
| 15628 |
Fix build with --disable-pseudo-phys |
| 15629 |
* i386/i386/i386asm.sym (PFN_LIST) [!MACH_PSEUDO_PHYS]: Do not define. |
| 15630 |
|
| 15631 |
Add initial code for disabling ring1 xen execution |
| 15632 |
* xen/configfrag.ac (--disable-ring1): Add option. |
| 15633 |
* i386/xen/xen_boothdr.S (XEN_ELFNOTE_FEATURES) [!MACH_RING1]: Add |
| 15634 |
supervisor_mode_kernel. |
| 15635 |
* i386/i386/seg.h (KERNEL_RING) [!MACH_RING1]: Set macro to 0. |
| 15636 |
|
| 15637 |
Add initial code for disabling PV descriptors |
| 15638 |
* xen/configfrag.ac (--disable-pv-descriptors): Add option |
| 15639 |
* i386/xen/xen_boothdr.S (XEN_ELFNOTE_FEATURES) [!MACH_PV_DESCRIPTORS]: Add |
| 15640 |
writable_descriptor_tables. |
| 15641 |
* i386/i386/gdt.c: Turn appropriate MACH_XEN/MACH_HYP tests into |
| 15642 |
MACH_PV_DESCRIPTORS tests. |
| 15643 |
* i386/i386/gdt.h: Likewise. |
| 15644 |
* i386/i386/i386asm.sym: Likewise. |
| 15645 |
* i386/i386/idt.c: Likewise. |
| 15646 |
* i386/i386/idt_inittab.S: Likewise. |
| 15647 |
* i386/i386/ldt.c: Likewise. |
| 15648 |
* i386/i386/pcb.c: Likewise. |
| 15649 |
* i386/i386/seg.h: Likewise. |
| 15650 |
* i386/i386/user_ldt.c: Likewise. |
| 15651 |
* i386/i386/user_ldt.h: Likewise. |
| 15652 |
|
| 15653 |
2013-01-22 Richard Braun <[email protected]> |
| 15654 |
|
| 15655 |
Add the mach_print debugging system call |
| 15656 |
The purpose of this system call is to help debugging in situations where |
| 15657 |
it's desirable to bypass the mach_msg call entirely. |
| 15658 |
|
| 15659 |
* include/mach/syscall_sw.h (mach_print): Generate system call code. |
| 15660 |
* kern/syscall_subr.c: Include <kern/printf.h>. |
| 15661 |
[MACH_KDB] (mach_print): New function. |
| 15662 |
* kern/syscall_subr.h (mach_print): New prototype. |
| 15663 |
* kern/syscall_sw.c [MACH_KDB] (mach_trap_table): Declare mach_print |
| 15664 |
system call. |
| 15665 |
|
| 15666 |
2013-01-13 Samuel Thibault <[email protected]> |
| 15667 |
|
| 15668 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 15669 |
|
| 15670 |
Fix task stats incrementations |
| 15671 |
* vm/vm_fault.c (vm_fault_page): Properly increment |
| 15672 |
current_task()->zero_fills and cow_faults. |
| 15673 |
|
| 15674 |
2013-01-13 David Höppner <[email protected]> |
| 15675 |
|
| 15676 |
Add statistics for task_events_info |
| 15677 |
* ipc/ipc_mqueue.c (ipc_mqueue_send, ipc_mqueue_receive): Increment |
| 15678 |
counters for message sent and received. |
| 15679 |
* kern/ipc_kobject.c (ipc_kobject_server): Increment sent and received |
| 15680 |
counters for the kernel task. |
| 15681 |
* kern/task.c (task_create): Zero statistics. |
| 15682 |
* kern/task.c (task_info): Add task_events_info call. |
| 15683 |
* kern/task.h: Add statistics. |
| 15684 |
* vm/vm_fault.c (vm_fault_page): Increment zero_fills, pageins, |
| 15685 |
reactivations and cow_faults counters. |
| 15686 |
* vm/vm_fault.c (vm_fault_wire_fast): Increment faults counters. |
| 15687 |
* vm/vm_pageout.c (vm_pageout_scan): Increment reactivations counter. |
| 15688 |
|
| 15689 |
2013-01-08 Richard Braun <[email protected]> |
| 15690 |
|
| 15691 |
Fix slab cache list locking |
| 15692 |
This problem was overlooked because of simple locks being no-ops. |
| 15693 |
|
| 15694 |
* kern/slab.c (slab_collect): Fix lock name to kmem_cache_list_lock. |
| 15695 |
(host_slab_info): Likewise. |
| 15696 |
|
| 15697 |
2013-01-08 Richard Braun <[email protected]> |
| 15698 |
|
| 15699 |
Add function to dump a raw summary of the slab allocator state |
| 15700 |
The purpose of this function is to allow kernel code to display the state |
| 15701 |
of the slab caches in situations where the host_slab_info RPC wouldn't be |
| 15702 |
available, e.g. before a panic. |
| 15703 |
|
| 15704 |
* kern/slab.c (slab_info): New function. |
| 15705 |
* kern/slab.h: Add declaration for slab_info. |
| 15706 |
|
| 15707 |
2013-01-06 Samuel Thibault <[email protected]> |
| 15708 |
|
| 15709 |
Double KENTRY_DATA_SIZE |
| 15710 |
* vm/vm_map.h (KENTRY_DATA_SIZE): Bump from 32 pages to 64 pages. |
| 15711 |
|
| 15712 |
2013-01-04 David Höppner <[email protected]> |
| 15713 |
|
| 15714 |
Fix compilation warning implicit function declaration kdbprintf |
| 15715 |
When kernel debugger support is requested ipc and vm need |
| 15716 |
the prototype for the debugger function kdbprintf. |
| 15717 |
|
| 15718 |
* ddb/db_output.h: Add prototype for kdbprintf. |
| 15719 |
* ipc/ipc_object.c: Add include file ddb/db_output.h |
| 15720 |
* ipc/ipc_port.c: Likewise. |
| 15721 |
* ipc/ipc_pset.c: Likewise. |
| 15722 |
* vm/vm_map.c: Likewise. |
| 15723 |
* vm/vm_object.c: Likewise. |
| 15724 |
* vm/vm_resident.c: Likewise. |
| 15725 |
|
| 15726 |
2012-12-27 Samuel Thibault <[email protected]> |
| 15727 |
|
| 15728 |
Fix slow boot in virtualbox |
| 15729 |
By disabling some of the most slow drivers by default, and giving progress |
| 15730 |
feedback to the user. |
| 15731 |
|
| 15732 |
* linux/configfrag.ac (CONFIG_SCSI_NCR53C7xx, CONFIG_SCSI_AIC7XXX, |
| 15733 |
CONFIG_SCSI_GDTH): Disable by default |
| 15734 |
* linux/src/drivers/scsi/eata.c (__initfunc): Don't feed line in probe |
| 15735 |
message. |
| 15736 |
* linux/src/drivers/scsi/hosts.c (scsi_init): Print SCSI probe progress. |
| 15737 |
|
| 15738 |
2012-12-27 Samuel Thibault <[email protected]> |
| 15739 |
|
| 15740 |
Fix spurious error on accessing fd1 |
| 15741 |
Cherry picked from Linux kernel commit 76c25284e0d845bff4ee1031721556148af4db1c |
| 15742 |
|
| 15743 |
* linux/dev/drivers/block/floppy.c (config_types): Clear from |
| 15744 |
`allowed_drive_mask' floppy drives whose cmos type is 0. |
| 15745 |
|
| 15746 |
2012-12-23 Samuel Thibault <[email protected]> |
| 15747 |
|
| 15748 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 15749 |
|
| 15750 |
2012-12-23 Samuel Thibault <[email protected]> |
| 15751 |
|
| 15752 |
Make thread_suspend wait for !TH_UNINT |
| 15753 |
0a55db5 made thread_suspend return KERN_FAILURE when the target thread is in |
| 15754 |
TH_UNINT state. That however is not currently handled by libc, and it's more |
| 15755 |
useful to just wait for the thread to get interruptible. |
| 15756 |
|
| 15757 |
* kern/sched_prim.c (thread_invoke): Wake NEW_THREAD->STATE for thread_suspend. |
| 15758 |
* kern/thread.c (thread_suspend): Wait on NEW_THREAD->STATE as long as THREAD |
| 15759 |
has TH_UNINT. |
| 15760 |
|
| 15761 |
2012-12-21 David S. Miller <[email protected]> |
| 15762 |
|
| 15763 |
ide: Increase WAIT_DRQ to accomodate some CF cards and SSD drives. |
| 15764 |
Based upon a patch by Philippe De Muyter, and feedback from Mark |
| 15765 |
Lord and Robert Hancock. |
| 15766 |
|
| 15767 |
As noted by Mark Lord, the outdated ATA1 spec specifies a 20msec |
| 15768 |
timeout for setting DRQ but lots of common devices overshoot this. |
| 15769 |
|
| 15770 |
(cherry picked from Linux kernel commit 602da297e293eb2cbd28dcdbbe247593a46a853a) |
| 15771 |
|
| 15772 |
* linux/src/drivers/block/ide.h (WAIT_DRQ): Increase to 1 s. |
| 15773 |
|
| 15774 |
2012-12-21 Thomas Schwinge <[email protected]> |
| 15775 |
|
| 15776 |
IDE disk drives with unusual C/H/S. |
| 15777 |
* linux/src/drivers/block/ide.c: Partially update to Linux 2.0.40 code. |
| 15778 |
|
| 15779 |
2012-12-05 Richard Braun <[email protected]> |
| 15780 |
|
| 15781 |
Fix kernel task creation time |
| 15782 |
The mapable_time_init function is called before machine_init, but the |
| 15783 |
latter sets the system boot time. Fix their calling order. |
| 15784 |
|
| 15785 |
* kern/startup.c (setup_main): Call machine_init before mapable_time_init. |
| 15786 |
|
| 15787 |
2012-12-04 Richard Braun <[email protected]> |
| 15788 |
|
| 15789 |
Strongly reduce risks of name capture in rbtree macros |
| 15790 |
* kern/rbtree.h (rbtree_lookup): Prefix local variable names with three |
| 15791 |
underscores. |
| 15792 |
(rbtree_lookup_nearest): Likewise. |
| 15793 |
(rbtree_insert): Likewise. |
| 15794 |
(rbtree_lookup_slot): Likewise. |
| 15795 |
(rbtree_insert_slot): Rewrite as an inline function. |
| 15796 |
|
| 15797 |
2012-11-21 Richard Braun <[email protected]> |
| 15798 |
|
| 15799 |
Fix calls to vm_map when size is 0 |
| 15800 |
* vm/vm_map.c (vm_map_enter): return KERN_INVALID_ARGUMENT if size is 0. |
| 15801 |
* vm/vm_user.c (vm_map): Likewise. |
| 15802 |
|
| 15803 |
2012-11-19 Matthew Leach <[email protected]> |
| 15804 |
|
| 15805 |
Fix compilation error with older versions of GCC |
| 15806 |
Some versions of GCC will error if you define a type twice (even if |
| 15807 |
the definition is the same). The NCR53C8XX SCSI driver defines |
| 15808 |
'vm_offset_t', this is also defined in vm_types.h and will therefore |
| 15809 |
cause a compilation error depending on the GCC version. |
| 15810 |
|
| 15811 |
* linux/src/drivers/scsi/ncr53c8xx.c [!MACH] (vm_offset_t, vm_size_t): Don't |
| 15812 |
define types. |
| 15813 |
|
| 15814 |
2012-09-23 Samuel Thibault <[email protected]> |
| 15815 |
|
| 15816 |
Fix gnumach_server_routine prototype |
| 15817 |
* kern/ipc_kobject.c (ipc_kobject_server): Set gnumach_server_routine |
| 15818 |
prototype to mig_routine_t. |
| 15819 |
|
| 15820 |
2012-09-23 Richard Braun <[email protected]> |
| 15821 |
|
| 15822 |
Add missing file for page statistics |
| 15823 |
* kern/gnumach.srv: New file. |
| 15824 |
|
| 15825 |
Add missing file for page statistics |
| 15826 |
* include/mach/vm_cache_statistics.h: New file |
| 15827 |
|
| 15828 |
2012-09-23 Gianluca Guida <[email protected]> |
| 15829 |
|
| 15830 |
Fix panic on irq >= 16 |
| 15831 |
* linux/src/drivers/net/pci-scan.c (pci_drv_register): Skip device |
| 15832 |
if we are getting an invalid IRQ >= 16 and different from 255 (it |
| 15833 |
happens in some motherboard). |
| 15834 |
|
| 15835 |
2012-09-23 Sergio Lopez <[email protected]> |
| 15836 |
|
| 15837 |
Update DMA auto-enabling, make forcing DMA an option |
| 15838 |
* linux/configfrag.ac (--enable-ide-forcedma): Add option. |
| 15839 |
* linux/src/drivers/block/ide.c (ide_probe_promise_20246): Do not call |
| 15840 |
ide_init_promise. |
| 15841 |
(probe_for_hwifs): Add SI, VIA, AL PCI probing. |
| 15842 |
* linux/src/drivers/block/ide.h (hwif_chipset_t): Add hpt343, udma and |
| 15843 |
ultra66 chipsets. |
| 15844 |
* linux/src/drivers/block/triton.c: Update to upstream 1.14 version. |
| 15845 |
* linux/src/include/linux/hdreg.h (HDIO_GET_IDENTITY): Rename to ... |
| 15846 |
(HDIO_OBSOLETE_IDENTITY): ... new macro. |
| 15847 |
(HDIO_GET_IDENTITY): New macro. |
| 15848 |
(hd_driveid): Add fields for extended identification. |
| 15849 |
|
| 15850 |
2012-09-23 Alexey Dejneka <[email protected]> |
| 15851 |
|
| 15852 |
Fix CDROM door unlock on closure without device_close |
| 15853 |
* linux/dev/glue/block.c |
| 15854 |
(device_open): Properly return devp on multiple opens. |
| 15855 |
(device_close_forced): Renamed from device_close, when force parameter is 1, do |
| 15856 |
not wait for open_count to become 0 before closing. |
| 15857 |
(device_close): New function. |
| 15858 |
(device_no_senders): New function. |
| 15859 |
linux_block_emulation_ops: Use (device_no_senders). |
| 15860 |
|
| 15861 |
2012-09-23 Richard Braun <[email protected]> |
| 15862 |
|
| 15863 |
Provide basic page cache statistics |
| 15864 |
* Makefrag.am (EXTRA_DIST): Add kern/gnumach.srv. |
| 15865 |
(include_mach_HEADERS): Add include/mach/gnumach.defs and |
| 15866 |
include/mach/vm_cache_statistics.h |
| 15867 |
(nodist_libkernel_a_SOURCES): Add kern/gnumach.server.defs.c, |
| 15868 |
kern/gnumach.server.h, kern/gnumach.server.c, kern/gnumach.server.msgids, |
| 15869 |
kern/gnumach.server.defs. |
| 15870 |
* include/mach/mach_types.h: Add #include <mach/vm_cache_statistics.h>. |
| 15871 |
* kern/ipc_kobject.c (ipc_kobject_server): Declare and call |
| 15872 |
gnumach_server_routine. |
| 15873 |
* vm/vm_object.c (vm_object_cached_pages): New variable. |
| 15874 |
(vm_object_cached_pages_lock_data): Likewise. |
| 15875 |
(vm_object_deallocate): Update number of cached pages. |
| 15876 |
(vm_object_lookup): Likewise. |
| 15877 |
(vm_object_lookup_name): Likewise. |
| 15878 |
(vm_object_destroy): Likewise. |
| 15879 |
(vm_object_enter): Likewise. |
| 15880 |
* vm/vm_object.h (ref_count): Declare as int. |
| 15881 |
(resident_page_count): Likewise. |
| 15882 |
(vm_object_cached_count): Add extern declaration. |
| 15883 |
(vm_object_cached_pages): Likewise. |
| 15884 |
(vm_object_cached_pages_lock_data): Likewise. |
| 15885 |
(vm_object_cached_pages_update): New macro. |
| 15886 |
* vm/vm_resident.c (vm_page_insert): Assert resident page count doesn't |
| 15887 |
overflow, update number of cached pages as appropriate. |
| 15888 |
(vm_page_replace): Likewise. |
| 15889 |
(vm_page_remove): Update number of cached pages as appropriate. |
| 15890 |
* vm/vm_user.c: Add #include <mach/vm_cache_statistics.h>. |
| 15891 |
(vm_cache_statistics): New function. |
| 15892 |
* vm/vm_user.h: Add #include <mach/mach_types.h>. |
| 15893 |
(vm_cache_statistics): New declaration. |
| 15894 |
* include/mach/gnumach.defs: New file. |
| 15895 |
|
| 15896 |
2012-08-24 Richard Braun <[email protected]> |
| 15897 |
|
| 15898 |
Store threads waiting on a message queue in LIFO order |
| 15899 |
* ipc/ipc_thread.h (ipc_thread_enqueue_macro): Insert thread at the |
| 15900 |
head of the list instead of the tail. |
| 15901 |
|
| 15902 |
2012-07-14 Samuel Thibault <[email protected]> |
| 15903 |
|
| 15904 |
Fix Xen boot at linear address 0xC0000000 |
| 15905 |
* i386/intel/pmap.c (pmap_bootstrap): Interate over linear addresses and compute |
| 15906 |
l3 and l2 offsets from it instead of assuming nul l3 offset. |
| 15907 |
|
| 15908 |
2012-07-08 Richard Braun <[email protected]> |
| 15909 |
|
| 15910 |
Fix slab collection timing |
| 15911 |
The slab garbage collector uses sched_tick as its time reference, which |
| 15912 |
is increased every seconds, while the interval is expressed in clock |
| 15913 |
ticks. Use the proper time reference instead. |
| 15914 |
|
| 15915 |
* kern/slab.c (kmem_gc_last_tick): Declare as unsigned long. |
| 15916 |
(slab_collect): Use elapsed_ticks instead of sched_tick. |
| 15917 |
|
| 15918 |
2012-07-08 Richard Braun <[email protected]> |
| 15919 |
|
| 15920 |
Increase the slab collection interval |
| 15921 |
* kern/slab.c (KMEM_GC_INTERVAL): Increase to 5 seconds. |
| 15922 |
|
| 15923 |
2012-07-07 Richard Braun <[email protected]> |
| 15924 |
|
| 15925 |
Allocate kernel thread stacks out of kmem_map |
| 15926 |
The kernel submaps eat most of the available kernel space. Using the |
| 15927 |
main kernel map for thread stacks sometimes lead to exhaustion when many |
| 15928 |
threads are created. Use kmem_map instead to increase this limit. |
| 15929 |
|
| 15930 |
* kern/thread.c (stack_alloc): Use kmem_map instead of kernel_map for |
| 15931 |
stack allocation. |
| 15932 |
(stack_collect): Likewise for release. |
| 15933 |
|
| 15934 |
2012-07-07 Richard Braun <[email protected]> |
| 15935 |
|
| 15936 |
Merge kalloc_map into kmem_map |
| 15937 |
* ipc/ipc_table.c: Add #include <kern/slab.h>. |
| 15938 |
(ipc_table_alloc): Use kmem_map instead of kalloc_map when allocating |
| 15939 |
a table. |
| 15940 |
(ipc_table_realloc): Likewise for reallocation. |
| 15941 |
(ipc_table_free): Likewise for release. |
| 15942 |
* kern/kalloc.h (kalloc_map): Remove declaration. |
| 15943 |
* kern/slab.c (KMEM_MAP_SIZE): Increase to 128 MiB. |
| 15944 |
(KALLOC_MAP_SIZE): Remove macro. |
| 15945 |
(kalloc_map_store): Remove variable. |
| 15946 |
(kalloc_map): Likewise. |
| 15947 |
(kalloc_pagealloc): Use kmem_map instead of kalloc_map for general |
| 15948 |
purpose allocations. |
| 15949 |
(kalloc_pagefree): Likewise. |
| 15950 |
(kalloc_init): Remove the creation of kalloc_map. |
| 15951 |
|
| 15952 |
2012-06-10 Samuel Thibault <[email protected]> |
| 15953 |
|
| 15954 |
Permit to select/deselect whole driver groups |
| 15955 |
* linux/configfrag.ac (AC_OPTION_Linux_group): New function |
| 15956 |
(AC_OPTION_Linux_ix86_at): Do not enable driver by default if the group was |
| 15957 |
explicitly disabled. |
| 15958 |
(scsi, net, pcmcia, wireless): Define groups. |
| 15959 |
|
| 15960 |
2012-05-17 Samuel Thibault <[email protected]> |
| 15961 |
|
| 15962 |
Offset bios32 entry |
| 15963 |
* linux/src/arch/i386/kernel/bios32.c (check_pcibios, pcibios_init): Convert |
| 15964 |
physical bios32 entry address to kernel virtual address. |
| 15965 |
|
| 15966 |
2012-05-17 Samuel Thibault <[email protected]> |
| 15967 |
|
| 15968 |
Clear direction flag after bios32 call |
| 15969 |
Linux does this, there are probably wild BIOSes out there. |
| 15970 |
|
| 15971 |
* linux/src/arch/i386/kernel/bios32.c (bios32_service, check_pcibios, |
| 15972 |
pci_bios_find_class, pci_bios_find_device, pci_bios_read_config_byte, |
| 15973 |
pci_bios_read_config_word, pci_bios_read_config_dword, |
| 15974 |
pci_bios_write_config_byte, pci_bios_write_config_word, |
| 15975 |
pci_bios_write_config_dword): Clear direction flag after lcall to bios32. |
| 15976 |
|
| 15977 |
2012-05-05 Samuel Thibault <[email protected]> |
| 15978 |
|
| 15979 |
Offset kernel addresses by 3GiB |
| 15980 |
This permits better trace support in kdb. |
| 15981 |
|
| 15982 |
* i386/i386/vm_param.h (VM_MIN_KERNEL_ADDRESS): Set to 0xC0000000 |
| 15983 |
* i386/Makefrag.am (_START): Set to 0xC0100000. |
| 15984 |
|
| 15985 |
2012-05-05 Samuel Thibault <[email protected]> |
| 15986 |
|
| 15987 |
Document how to offset the kernel to get better debugging |
| 15988 |
* i386/i386/vm_param.h (VM_MIN_KERNEL_ADDRESS): Document that it can be |
| 15989 |
changed, but _START has to be offset too. |
| 15990 |
(INIT_VM_MIN_KERNEL_ADDRESS): Document that it should remain 0. |
| 15991 |
|
| 15992 |
2012-04-27 Richard Braun <[email protected]> |
| 15993 |
|
| 15994 |
Augment VM maps with a red-black tree |
| 15995 |
* vm/vm_map.c: Add #include <kern/rbtree.h>. |
| 15996 |
(vm_map_setup): Initialize the map red-black tree. |
| 15997 |
(vm_map_entry_cmp_lookup): New function. |
| 15998 |
(vm_map_entry_cmp_insert): Likewise. |
| 15999 |
(_vm_map_entry_link): Insert map entry in the red-black tree. |
| 16000 |
(_vm_map_entry_unlink): Remove map entry from the red-black tree. |
| 16001 |
(vm_map_lookup_entry): Rework the way the VM map hint is used, and |
| 16002 |
replace the linear search with a binary search tree lookup. |
| 16003 |
(vm_map_copy_insert): Move map entries from the map copy tree to the |
| 16004 |
destination map tree. |
| 16005 |
(vm_map_copyin): Initialize the map copy red-black tree. |
| 16006 |
* vm/vm_map.h: Add #include <kern/rbtree.h>. |
| 16007 |
(vm_map_entry): Add `tree_node' member. |
| 16008 |
(vm_map_header): Add `tree' member. |
| 16009 |
|
| 16010 |
2012-04-22 Richard Braun <[email protected]> |
| 16011 |
|
| 16012 |
Update comments. |
| 16013 |
Literature about red-black trees vary concerning the cases numbering, |
| 16014 |
and the implementation doesn't make all of them clearly appear. Remove |
| 16015 |
cases numbering references to avoid confusion. |
| 16016 |
|
| 16017 |
2012-04-22 Richard Braun <[email protected]> |
| 16018 |
|
| 16019 |
Fix copyright assignment |
| 16020 |
Maksym and I have assigned copyright to the Free Software Foundation. |
| 16021 |
In addition, restore the original upstream copyrights for correctness. |
| 16022 |
|
| 16023 |
* kern/list.h: Fix copyright assignment. |
| 16024 |
* kern/rbtree.c: Likewise. |
| 16025 |
* kern/rbtree.h: Likewise. |
| 16026 |
* kern/rbtree_i.h: Likewise. |
| 16027 |
* kern/slab.c: Likewise. |
| 16028 |
* kern/slab.h: Likewise. |
| 16029 |
|
| 16030 |
2012-04-06 Samuel Thibault <[email protected]> |
| 16031 |
|
| 16032 |
Check hyp_stack_switch return |
| 16033 |
* i386/i386/pcb.c (switch_ktss): Check value returned by hyp_stack_switch. |
| 16034 |
|
| 16035 |
Fix integer type |
| 16036 |
* kern/thread.c (host_stack_usage): Set `total' type to natural_t. |
| 16037 |
|
| 16038 |
2012-04-06 Samuel Thibault <[email protected]> |
| 16039 |
|
| 16040 |
Do not take address of va_list variable |
| 16041 |
This breaks on x86_64, where it is an array and thus gets bogus results. |
| 16042 |
|
| 16043 |
* ddb/db_output.c (db_printf, kdbprintf): Pass copy of va_list variable instead |
| 16044 |
of its address. |
| 16045 |
* kern/debug.c (panic, log): Likewise. |
| 16046 |
* kern/printf.c (vprintf, iprintf, sprintf, vsnprintf): Likewise. |
| 16047 |
(_doprnt): Take va_list instead of va_list *, fix usage and comment accordingly. |
| 16048 |
* kern/printf.h (_doprnt): Take va_list instead of va_list *. |
| 16049 |
|
| 16050 |
2012-03-24 Samuel Thibault <[email protected]> |
| 16051 |
|
| 16052 |
Fix Xen boot after c74adfe |
| 16053 |
* i386/Makefrag.am (_START_MAP): Define symbol to 0x100000. |
| 16054 |
* i386/xen/Makefrag.am (_START_MAP): Define symbol to 0xC0000000. |
| 16055 |
* i386/ldscript: Use _START_MAP instead of hardcoding 0x100000. |
| 16056 |
|
| 16057 |
2012-03-24 Samuel Thibault <[email protected]> |
| 16058 |
|
| 16059 |
Relocate kernel at bootup |
| 16060 |
Grub is not able to map us at high addresses. We can however make it load us at |
| 16061 |
low addresses (through the linker script mapping), then use segmentation to move |
| 16062 |
ourselves to high addresses, and switch to C which uses high addresses |
| 16063 |
(through _START definition). |
| 16064 |
|
| 16065 |
* i386/ldscript: Force mapping kernel at 0x100000, regardless of the value |
| 16066 |
of _START. |
| 16067 |
* i386/i386at/boothdr.S (boot_entry): Set up initial segments to project the |
| 16068 |
bootstrap linear space to high addresses. |
| 16069 |
|
| 16070 |
2012-03-24 Samuel Thibault <[email protected]> |
| 16071 |
|
| 16072 |
Make sure BIOS area is mapped in kernel threads |
| 16073 |
* i386/i386at/model_dep.c (i386at_init): Map BIOS memory at 0. |
| 16074 |
* i386/intel/pmap.c (pmap_create): Do not map BIOS memory in user tasks. |
| 16075 |
|
| 16076 |
2012-03-24 Samuel Thibault <[email protected]> |
| 16077 |
|
| 16078 |
Separate INIT_VM_MIN_KERNEL_ADDRESS from VM_MIN_KERNEL_ADDRESS |
| 16079 |
The former is the initial value set by the bootloader. It may not be the |
| 16080 |
same as what Mach will set up. |
| 16081 |
|
| 16082 |
* i386/i386/vm_param.h (INIT_VM_MIN_KERNEL_ADDRESS): New macro. |
| 16083 |
* i386/i386at/model_dep.c (i386at_init): Use INIT_VM_MIN_KERNEL_ADDRESS |
| 16084 |
instead of VM_MIN_KERNEL_ADDRESS. |
| 16085 |
|
| 16086 |
2012-03-24 Samuel Thibault <[email protected]> |
| 16087 |
|
| 16088 |
Add missing phystokv/kvtophys calls |
| 16089 |
* i386/i386/vm_param.h [!MACH_XEN]: Do not include <xen/public/xen.h>. |
| 16090 |
* i386/i386at/model_dep.c (init_alloc_aligned): Use phystokv to compare physical |
| 16091 |
memory addresses with kernel start, end, and symbol table. |
| 16092 |
* i386/intel/pmap.c (pmap_enter): Use kvtophys to convert ptp pointer to pte |
| 16093 |
entry. |
| 16094 |
* linux/dev/init/main.c (alloc_contig_mem, linux_init): Use phystokv to convert |
| 16095 |
allocated pages to virtual pointer. |
| 16096 |
* linux/src/include/asm-i386/io.h: Include <machine/vm_param.h>. |
| 16097 |
(virt_to_phys): Call _kvtophys. |
| 16098 |
(phys_to_virt): Call phystokv. |
| 16099 |
* linux/src/include/linux/compatmac.h: Include <asm/io.h>. |
| 16100 |
(ioremap): Use phys_to_virt to convert physical address to virtual pointer. |
| 16101 |
(my_iounmap): Likewise. |
| 16102 |
* linux/dev/include/asm-i386/page.h: Include <mach/vm_param.h>. |
| 16103 |
(PAGE_SHIFT, PAGE_SIZE, PAGE_MASK): Remove macros. |
| 16104 |
* linux/src/drivers/scsi/ncr53c8xx.c (vm_size_t): Remove type. |
| 16105 |
* linux/dev/glue/net.c: Include <machine/vm_param.h> |
| 16106 |
(device_write): Call phystokv to convert from physical page address to |
| 16107 |
virtual pointer. |
| 16108 |
* linux/dev/glue/block.c (alloc_buffer, free_buffer, rdwr_full): Likewise. |
| 16109 |
|
| 16110 |
Fix issig crash at boot |
| 16111 |
* linux/dev/glue/misc.c (issig): Return 0 if current_thread() is NULL. |
| 16112 |
|
| 16113 |
Fix wrap-around in pmap bootstrap |
| 16114 |
* i386/intel/pmap.c (pmap_bootstrap): Check against `va' wrap around |
| 16115 |
0xffffffff. |
| 16116 |
|
| 16117 |
2012-03-23 Samuel Thibault <[email protected]> |
| 16118 |
|
| 16119 |
Fix boot with big values of _start |
| 16120 |
When _start is not close to 0, just using init_alloc_aligned() is not enough |
| 16121 |
to know how much should be duplicated between linear and virtual mappings. |
| 16122 |
Just mapping everything that can be is not very costly and should just work |
| 16123 |
when it can work. |
| 16124 |
|
| 16125 |
* i386/i386at/model_dep.c (i386at_init) [VM_MIN_KERNEL_ADDRESS != |
| 16126 |
LINEAR_MIN_KERNEL_ADDRESS]: Extend `nb_direct' to VM_MIN_KERNEL_ADDRESS - |
| 16127 |
LINEAR_MIN_KERNEL_ADDRESS. |
| 16128 |
|
| 16129 |
2012-03-22 Ludovic Courtès <[email protected]> |
| 16130 |
|
| 16131 |
Refer to `PFN_LIST' on Xen only. |
| 16132 |
* i386/i386/i386asm.sym (PFN_LIST): Enclose in #ifdef MACH_XEN. Thanks |
| 16133 |
to Samuel Thibault for the suggestion. |
| 16134 |
|
| 16135 |
2012-03-20 Samuel Thibault <[email protected]> |
| 16136 |
|
| 16137 |
Use long types |
| 16138 |
* ddb/db_examine.c (db_xcdump): Do not cast addr before passing to |
| 16139 |
db_read_bytes. |
| 16140 |
* ddb/db_macro.c (db_arg_variable): Return long. |
| 16141 |
* ddb/db_macro.h (db_arg_variable): Likewise. |
| 16142 |
* ddb/db_sym.c (db_maxoff): Set type to unsigned long. |
| 16143 |
* ddb/db_task_thread.c (db_set_default_thread, db_get_task_thread): Return |
| 16144 |
long. |
| 16145 |
* ddb/db_variables.h (db_variable): Make fcn function field to return long. |
| 16146 |
(FCN_NULL): Make function type return long. |
| 16147 |
* i386/i386/db_interface.c (int_regs): Set field sizes to long. |
| 16148 |
* i386/i386/db_machdep.h (db_expr_t): Set type to long. |
| 16149 |
* i386/i386/db_trace.c (db_i386_reg_value): Return long. Use long types. |
| 16150 |
(i386_frame, i386_kregs, interrupt_frame, db_nextframe): Set field sizes to |
| 16151 |
long. |
| 16152 |
(db_regs, i386_kregs): Use long * pointers. |
| 16153 |
(db_lookup_i386_kreg): Return long *. |
| 16154 |
(db_numargs, db_nextframe, db_stack_trace_cmd, db_i386_stack_trace): Use long |
| 16155 |
types. |
| 16156 |
* i386/i386/debug_i386.c (dump_ss): Fix format. |
| 16157 |
* i386/i386/ktss.c (ktss_init): Use long type. |
| 16158 |
* i386/i386/pcb.c (set_user_regs): Likewise. |
| 16159 |
* i386/i386/thread.h (i386_saved_state, v86_segs, i386_kernel_state, |
| 16160 |
i386_interrupt_state): Set field sizes to long. |
| 16161 |
* i386/i386/trap.c (kernel_trap, user_trap): Fix formats. |
| 16162 |
* kern/ast.h (ast_t): Set type to long. |
| 16163 |
* kern/boot_script.c (create_task, resume_task, prompt_resume_task, |
| 16164 |
boot_script_set_variable): Use long types. |
| 16165 |
* kern/boot_script.h (boot_script_set_variable): Use long type. |
| 16166 |
* kern/bootstrap.c (bootstrap_create): Pass long type. |
| 16167 |
* kern/lock.c (simple_lock, simple_lock_try): Use long type. |
| 16168 |
* linux/dev/kernel/softirq.c (linux_soft_intr): Fix format. |
| 16169 |
|
| 16170 |
Complain about Xen console smash only once at a time |
| 16171 |
* xen/console.c (hypputc): Warning only once per console write about console |
| 16172 |
ring smash. |
| 16173 |
|
| 16174 |
Make xchgl arch-neutral |
| 16175 |
* i386/i386/xen.h (xchgl): Use xchg instruction instead of xchgl, so the |
| 16176 |
assembler can detect unsigned long size. |
| 16177 |
|
| 16178 |
2012-03-20 Guillem Jover <[email protected]> |
| 16179 |
|
| 16180 |
Use compiler defined __i386__ symbol instead of use defined i386 |
| 16181 |
* i386/configfrag.ac (i386): Remove definition. |
| 16182 |
* i386/intel/pmap.c (pmap_update_interrupt): Rename i386 to __i386__. |
| 16183 |
* i386/intel/pmap.h: Likewise. |
| 16184 |
* kern/debug.c (Debugger): Likewise. |
| 16185 |
* kern/lock.c (simple_lock, simple_lock_try, db_show_all_slocks): Likewise. |
| 16186 |
|
| 16187 |
2012-03-20 Guillem Jover <[email protected]> |
| 16188 |
|
| 16189 |
Change types holding cpu flags from int to long |
| 16190 |
On amd64 the cpu flags is a 64-bit word, and long on 32-bit systems is |
| 16191 |
32-bit wide anyway. |
| 16192 |
|
| 16193 |
* linux/dev/glue/kmem.c (linux_kmalloc, linux_kfree, __get_free_pages, |
| 16194 |
free_pages): Use unsigned long instead of unsigned. |
| 16195 |
* linux/dev/include/asm-i386/system.h (__save_flags, __restore_flags): |
| 16196 |
Likewise. |
| 16197 |
* linux/dev/kernel/printk.c (printk): Likewise. |
| 16198 |
* linux/src/drivers/scsi/advansys.c (DvcEnterCritical, DvcLeaveCritical, |
| 16199 |
advansys_queuecommand, advansys_abort, advansys_reset, advansys_interrupt, |
| 16200 |
interrupts_enabled, AdvISR): Likewise. |
| 16201 |
* linux/src/drivers/scsi/aha152x.c (aha152x_intr): Likewise. |
| 16202 |
* linux/src/drivers/scsi/aha1542.c (aha1542_intr_handle): Likewise. |
| 16203 |
* linux/src/drivers/scsi/aic7xxx.c (aic7xxx_done_cmds_complete): Likewise. |
| 16204 |
* linux/src/drivers/scsi/ultrastor.c (log_ultrastor_abort, |
| 16205 |
ultrastor_queuecommand, ultrastor_abort): Likewise. |
| 16206 |
|
| 16207 |
2012-03-20 Guillem Jover <[email protected]> |
| 16208 |
|
| 16209 |
Match type for count with tty_get_status and tty_set_status |
| 16210 |
* i386/i386at/com.c (comgetstat): Use natural_t instead of `unsigned int'. |
| 16211 |
(comsetstat): Likewise. |
| 16212 |
* i386/i386at/kd.c (kdgetstat, kdsetstat): Likewise. |
| 16213 |
* i386/i386at/lpr.c (lprgetstat, lprsetstat): Likewise. |
| 16214 |
|
| 16215 |
2012-03-19 Samuel Thibault <[email protected]> |
| 16216 |
|
| 16217 |
Use unsigned int for ELF 32bit values |
| 16218 |
* i386/include/mach/i386/exec/elf.h (Elf32_Addr, Elf32_Off, Elf32_Sword, |
| 16219 |
Elf32_Word): Use int type instead of long. |
| 16220 |
|
| 16221 |
2012-03-18 Samuel Thibault <[email protected]> |
| 16222 |
|
| 16223 |
Fix assembly snippet portability |
| 16224 |
* xen/evt.c (hyp_c_callback): Do not set assembly instruction suffixes, |
| 16225 |
using 1UL constant instead. |
| 16226 |
|
| 16227 |
Use unsigned long types for addresses |
| 16228 |
* i386/include/mach/i386/vm_param.h (i386_btop, i386_ptob, i386_round_page, |
| 16229 |
i386_trunc_page): Cast to unsigned long. |
| 16230 |
|
| 16231 |
Use unsigned long for registers |
| 16232 |
* i386/i386/proc_reg.h (get_eflags, get_esp, get_eflags, get_cr0, get_cr2, |
| 16233 |
get_cr3, get_cr4): Return unsigned long type. |
| 16234 |
(set_eflags, set_cr0, set_cr3, set_cr4): Take unsigned long type. |
| 16235 |
|
| 16236 |
Do not hardcode structure offset |
| 16237 |
* i386/i386/i386asm.sym (R_EDI): Define macro. |
| 16238 |
* i386/i386/locore.S (t_page_fault): Use R_CR2-R_EDI instead of hardcoded |
| 16239 |
12. |
| 16240 |
|
| 16241 |
2012-03-18 Samuel Thibault <[email protected]> |
| 16242 |
|
| 16243 |
Set Xen kernel virtual address to 0xC0000000 |
| 16244 |
That makes the virtual addressing equal to linear addressing, thus optimizing |
| 16245 |
some computations away. |
| 16246 |
|
| 16247 |
* i386/i386/vm_param.h (VM_MIN_KERNEL_ADDRESS) [MACH_XEN]: Set to |
| 16248 |
0xC0000000UL. |
| 16249 |
* i386/xen/Makefrag.am (gnumach_LINKFLAGS): Set _START to 0xC0000000. |
| 16250 |
* i386/xen/xen_boothdr.S (VIRT_BASE, ELF_PADDR_OFFSET): Set to 0xC0000000. |
| 16251 |
|
| 16252 |
2012-03-18 Samuel Thibault <[email protected]> |
| 16253 |
|
| 16254 |
Fix access above 4GiB in bootstrap page table |
| 16255 |
* i386/intel/pmap.c (pmap_set_page_readonly_init) [PAE]: Access the bootstrap |
| 16256 |
dirbase with PTEMASK (1 page) instead of PDEMASK (4 pages) through pmap_pde. |
| 16257 |
|
| 16258 |
2012-03-15 Thomas Schwinge <[email protected]> |
| 16259 |
|
| 16260 |
Fix build error introduced in 5f701793f63f16d111db3e3d2e91134fcc179c5b. |
| 16261 |
* linux/src/include/linux/interrupt.h (intr_count): Declare as unsigned int. |
| 16262 |
|
| 16263 |
2012-03-14 Samuel Thibault <[email protected]> |
| 16264 |
|
| 16265 |
Simplify splx |
| 16266 |
* i386/i386/spl.S (splx): Use S_ARG0 instead of reimplementing it. |
| 16267 |
|
| 16268 |
Fix variable types according to assembly use |
| 16269 |
* linux/dev/arch/i386/kernel/irq.c (intr_count): Set to int type. |
| 16270 |
* linux/dev/kernel/softirq.c (bh_active, bh_mask): Likewise. |
| 16271 |
(linux_soft_intr: active, mask, left): Likewise |
| 16272 |
* linux/src/include/linux/interrupt.h (bh_active, bh_mask): Likewise. |
| 16273 |
* linux/src/kernel/softirq.c (intr_count, bh_active, bh_mask): Likewise. |
| 16274 |
(do_bottom_half: active, mask, left): Likewise |
| 16275 |
|
| 16276 |
Stick to binutils ELF scripts |
| 16277 |
* i386/ldscript: Reformat to follow binutils version |
| 16278 |
|
| 16279 |
Fix PAE page frame number mask. |
| 16280 |
* i386/intel/pmap.h (INTEL_PTE_PFN): Keep only 47bits, others are not usable. |
| 16281 |
|
| 16282 |
Fix Xen bootstrap at virtual address above 1GiB |
| 16283 |
* i386/intel/pmap.h (lin2pdpnum): New macro. |
| 16284 |
* i386/intel/pmap.c (pmap_set_page_readonly_init): Use lin2pdpnum macro |
| 16285 |
instead of hardcoding 0. |
| 16286 |
|
| 16287 |
Simplify i386at_init |
| 16288 |
* i386/i386at/model_dep.c (i386at_init): Do not copy linear into virtual kernel |
| 16289 |
mapping when they are equal, and do not drop the former either. Use the |
| 16290 |
function `i' variable. |
| 16291 |
|
| 16292 |
Simplify kvtophys |
| 16293 |
* i386/i386/phys.c (kvtophys): Use pte_to_pa macro instead of reimplementing |
| 16294 |
it. |
| 16295 |
|
| 16296 |
2012-03-09 Samuel Thibault <[email protected]> |
| 16297 |
|
| 16298 |
Use unsigned long for addresses and sizes |
| 16299 |
TODO: remonter formats |
| 16300 |
|
| 16301 |
* i386/include/mach/i386/vm_types.h (vm_offset_t): Define to unsigned long. |
| 16302 |
(signed32_t): Define to signed int. |
| 16303 |
(unsigned32_t): Define to unsigned int. |
| 16304 |
* i386/include/mach/sa/stdarg.h (__va_size): Use sizeof(unsigned long)-1 |
| 16305 |
instead of 3. |
| 16306 |
* include/mach/port.h (mach_port_t): Define to vm_offset_t instead of |
| 16307 |
natural_t. |
| 16308 |
* include/sys/types.h (size_t): Define to unsigned long instead of |
| 16309 |
natural_t. |
| 16310 |
* linux/src/include/asm-i386/posix_types.h (__kernel_size_t): Define to |
| 16311 |
unsigned long. |
| 16312 |
(__kernel_ssize_t): Define to long. |
| 16313 |
* linux/src/include/linux/stddef.h (size_t): Define to unsigned long. |
| 16314 |
|
| 16315 |
* device/dev_pager.c (dev_pager_hash): Cast port to vm_offset_t insted of |
| 16316 |
natural_t. |
| 16317 |
(device_pager_data_request): Fix format. |
| 16318 |
|
| 16319 |
* device/ds_routines.c (ds_no_senders): Fix format. |
| 16320 |
* i386/i386/io_map.c (io_map): Likewise. |
| 16321 |
* i386/i386at/autoconf.c (take_dev_irq): Likewise. |
| 16322 |
* i386/i386at/com.c (comattach): Likewise. |
| 16323 |
* i386/i386at/lpr.c (lprattach): Likewise. |
| 16324 |
* i386/i386at/model_dep.c (mem_size_init, mem_size_init, c_boot_entry): |
| 16325 |
Likewise. |
| 16326 |
* i386/intel/pmap.c (pmap_enter): Likewise. |
| 16327 |
* ipc/ipc_notify.c (ipc_notify_port_deleted, ipc_notify_msg_accepted, |
| 16328 |
ipc_notify_dead_name): Likewise. |
| 16329 |
* ipc/mach_port.c (mach_port_destroy, mach_port_deallocate): Likewise. |
| 16330 |
* kern/ipc_kobject.c (ipc_kobject_destroy): Likewise. |
| 16331 |
* kern/slab.c (kalloc_init): Likewise. |
| 16332 |
* vm/vm_fault.c (vm_fault_page): Likewise. |
| 16333 |
* vm/vm_map.c (vm_map_pmap_enter): Likewise. |
| 16334 |
* xen/block.c (device_read): Likewise. |
| 16335 |
|
| 16336 |
* device/net_io.c (bpf_match): Take unsigned long * instead of unsigned int |
| 16337 |
*. |
| 16338 |
(bpf_do_filter): Make mem unsigned long instead of long. |
| 16339 |
* i386/i386/ktss.c (ktss_init): Cast pointer to unsigned long instead of |
| 16340 |
unsigned. |
| 16341 |
* i386/i386/pcb.c (stack_attach, switch_ktss): Cast pointers to long instead of |
| 16342 |
int. |
| 16343 |
* i386/i386/trap.c (dump_ss): Likewise. |
| 16344 |
* ipc/ipc_hash.c (IH_LOCAL_HASH): Cast object to vm_offset_t. |
| 16345 |
* ipc/mach_msg.c (mach_msg_receive, mach_msg_receive_continue): Cast kmsg to |
| 16346 |
vm_offset_t instead of natural_t. |
| 16347 |
* kern/pc_sample.c (take_pc_sample): Cast to vm_offset_t instead of |
| 16348 |
natural_t. |
| 16349 |
* kern/boot_script.c (sym, arg): Set type of `val' field to long instead of int. |
| 16350 |
(create_task, builtin_symbols, boot_script_parse_line, |
| 16351 |
boot_script_define_function): Cast to long instead of int. |
| 16352 |
* kern/bootstrap.c (bootstrap_create): Likewise. |
| 16353 |
* kern/sched_prim.c (decl_simple_lock_data): Likewise. |
| 16354 |
* kern/printf.c (vsnprintf): Set size type to size_t. |
| 16355 |
* kern/printf.h (vsnprintf): Likewise. |
| 16356 |
* vm/vm_map.h (kentry_data_size): Fix type to vm_size_t. |
| 16357 |
* vm/vm_object.c (vm_object_pmap_protect_by_page): Fix size parameter type |
| 16358 |
to vm_size_t. |
| 16359 |
|
| 16360 |
2012-03-08 Samuel Thibault <[email protected]> |
| 16361 |
|
| 16362 |
Move kentry_data_size initial value to header |
| 16363 |
* vm/vm_map.h (KENTRY_DATA_SIZE): Define macro. |
| 16364 |
* vm/vm_map.c (kentry_data_size): Initialize to KENTRY_DATA_SIZE. |
| 16365 |
|
| 16366 |
2012-03-03 Gabriele Giacone <[email protected]> |
| 16367 |
|
| 16368 |
Set default serial parameters to 8N1 instead of 7E1 |
| 16369 |
* i386/i386at/com.c (comcninit): Set LINE_CTL register to i8BITS instead of |
| 16370 |
i7BITS|iPEN. |
| 16371 |
|
| 16372 |
2012-02-19 Samuel Thibault <[email protected]> |
| 16373 |
|
| 16374 |
Fix format for string print |
| 16375 |
* linux/src/drivers/net/3c505.c (elp_sense): Use %s format for printing a mere |
| 16376 |
string, not the string. |
| 16377 |
|
| 16378 |
Fix format for string print |
| 16379 |
* linux/src/drivers/net/8390.c: Use %s format for printing a mere string, not |
| 16380 |
the string. |
| 16381 |
|
| 16382 |
Fix format for string print |
| 16383 |
* linux/src/drivers/net/3c503.c (el2_probe1): Use %s format for printing a mere |
| 16384 |
string, not the string. |
| 16385 |
|
| 16386 |
Fix format for string print |
| 16387 |
* linux/src/drivers/scsi/aha1542.c (aha1542_setup): Use %s format for printing a |
| 16388 |
mere string, not the string. |
| 16389 |
|
| 16390 |
Fix format for string print |
| 16391 |
* linux/src/drivers/scsi/advansys.c (asc_prt_line): Use %s format for |
| 16392 |
printing a mere string, not the string. |
| 16393 |
|
| 16394 |
Fix format for string print |
| 16395 |
* i386/i386at/model_dep.c (c_boot_entry): Use %s format for printing a mere |
| 16396 |
string, not the string. |
| 16397 |
|
| 16398 |
2012-01-28 Samuel Thibault <[email protected]> |
| 16399 |
|
| 16400 |
Merge branch 'master' into master-slab |
| 16401 |
|
| 16402 |
2012-01-22 Samuel Thibault <[email protected]> |
| 16403 |
|
| 16404 |
Fix build on 64bit host |
| 16405 |
When stealing the memset function from the 32bit host libc on a 64bit host |
| 16406 |
system, glibc tends to bring unwanted references to _Unwind_Resume, |
| 16407 |
__gcc_personality_v0, etc. So let's stop stealing memset. |
| 16408 |
|
| 16409 |
* kern/strings.c (memset): New function. |
| 16410 |
* Makefile.am (clib_routines): Remove memset. |
| 16411 |
|
| 16412 |
2012-01-09 Richard Braun <[email protected]> |
| 16413 |
|
| 16414 |
Improve ipc hash/marequest init readability |
| 16415 |
Use macros instead of raw numeric values. |
| 16416 |
|
| 16417 |
* ipc/ipc_hash.h (IPC_HASH_GLOBAL_SIZE): New macro. |
| 16418 |
* ipc/ipc_hash.c (ipc_hash_init): Directly set the global hash table |
| 16419 |
size to IPC_HASH_GLOBAL_SIZE. |
| 16420 |
* ipc/ipc_marequest.h (IPC_MAREQUEST_SIZE): New macro. |
| 16421 |
* ipc/ipc_marequest.c (ipc_marequest_init): Directly set the marequest |
| 16422 |
hash table size to IPC_MAREQUEST_SIZE. |
| 16423 |
|
| 16424 |
2011-12-30 Samuel Thibault <[email protected]> |
| 16425 |
|
| 16426 |
Cope with dom0s which do not respect feature-no-csum-offload |
| 16427 |
Event with feature-no-csum-offload=1, some dom0s (such as Debian Squeeze's |
| 16428 |
2.6.32) send packets with a blank checksum. Recompute them before givin the |
| 16429 |
packet to pfinet. |
| 16430 |
|
| 16431 |
* xen/net.c (recompute_checksum): New function. |
| 16432 |
(hyp_net_intr): Call recompute_checksum when the checksum is blank but the |
| 16433 |
data is validated. |
| 16434 |
|
| 16435 |
2011-12-29 Samuel Thibault <[email protected]> |
| 16436 |
|
| 16437 |
Fix typo |
| 16438 |
|
| 16439 |
Upgrade number of event queues |
| 16440 |
* kern/sched_prim.c (NUMQUEUES): Increase to 1031 |
| 16441 |
|
| 16442 |
2011-12-17 Richard Braun <[email protected]> |
| 16443 |
|
| 16444 |
Remove arbitrary limits used by the zone system |
| 16445 |
The zone allocator could limit the size of its zones to an arbitrary |
| 16446 |
value set at zinit() time. There is no such parameter with the slab |
| 16447 |
module. As a result of removing those limits, the kern/mach_param.h |
| 16448 |
header becomes empty, and is simply removed altogether. |
| 16449 |
|
| 16450 |
* Makefrag.am (libkernel_a_SOURCES): Remove kern/mach_param.h. |
| 16451 |
* i386/i386/fpu.c: Remove #include <kern/mach_param.h>. |
| 16452 |
* i386/i386/machine_task.c: Likewise. |
| 16453 |
* i386/i386/pcb.c: Likewise. |
| 16454 |
* ipc/ipc_init.c: Likewise. |
| 16455 |
(ipc_space_max): Remove variable. |
| 16456 |
(ipc_tree_entry_max): Likewise. |
| 16457 |
(ipc_port_max): Likewise. |
| 16458 |
(ipc_pset_max): Likewise. |
| 16459 |
* ipc/ipc_init.h (IPC_ZONE_TYPE): Remove macro. |
| 16460 |
(ipc_space_max): Remove extern declaration. |
| 16461 |
(ipc_tree_entry_max): Likewise. |
| 16462 |
(ipc_port_max): Likewise. |
| 16463 |
(ipc_pset_max): Likewise. |
| 16464 |
* ipc/ipc_hash.c (ipc_hash_init): Don't use ipc_tree_entry_max to |
| 16465 |
compute ipc_hash_global_size. |
| 16466 |
* ipc/ipc_marequest.c: Remove #include <kern/mach_param.h>. |
| 16467 |
(ipc_marequest_max): Remove variable. |
| 16468 |
(ipc_marequest_init): Don't use ipc_marequest_max to compute |
| 16469 |
ipc_marequest_size. |
| 16470 |
(ipc_marequest_info): Return (unsigned int)-1 in maxp. |
| 16471 |
* kern/act.c: Remove #include <kern/mach_param.h>. |
| 16472 |
* kern/mach_clock.c: Likewise. |
| 16473 |
* kern/priority.c: Likewise. |
| 16474 |
* kern/task.c: Likewise. |
| 16475 |
* kern/thread.c: Likewise. |
| 16476 |
* vm/memory_object_proxy.c: Likewise. |
| 16477 |
* vm/vm_fault.c: Likewise. |
| 16478 |
|
| 16479 |
2011-12-17 Richard Braun <[email protected]> |
| 16480 |
|
| 16481 |
Remove the defunct kernel_task_create() function |
| 16482 |
The kmem_suballoc() function, which has been replaced with |
| 16483 |
kmem_submap(), is called by kernel_task_create(). Rather than update it, |
| 16484 |
remove this now unused function. |
| 16485 |
|
| 16486 |
* kern/task.c (kernel_task_create): Remove function. |
| 16487 |
* kern/task.h (kernel_task_create): Remove prototype. |
| 16488 |
|
| 16489 |
2011-12-17 Richard Braun <[email protected]> |
| 16490 |
|
| 16491 |
Fix kern/kalloc.h includes |
| 16492 |
* device/dev_pager.c: Remove #include <kern/kalloc.h>. |
| 16493 |
* i386/i386/io_perm.c: Add #include <kern/kalloc.h>. |
| 16494 |
* kern/bootstrap.c: Likewise. |
| 16495 |
* kern/ipc_tt.c: Likewise. |
| 16496 |
* kern/pc_sample.c: Likewise. |
| 16497 |
* kern/processor.c: Likewise. |
| 16498 |
* kern/server_loop.ch: Likewise. |
| 16499 |
* kern/thread.c: Likewise. |
| 16500 |
* linux/dev/glue/block.c: Likewise. |
| 16501 |
* linux/dev/glue/net.c: Likewise. |
| 16502 |
* vm/vm_map.c: Likewise. |
| 16503 |
* xen/block.c: Likewise. |
| 16504 |
* xen/net.c: Likewise. |
| 16505 |
* xen/store.c: Likewise. |
| 16506 |
|
| 16507 |
2011-12-17 Richard Braun <[email protected]> |
| 16508 |
|
| 16509 |
Adjust VM initialization |
| 16510 |
Unlike the zone allocator, the slab code can't be fed with an initial |
| 16511 |
chunk of memory. Some VM objects used early during startup now have to |
| 16512 |
be statically allocated, and kernel map entries need a special path |
| 16513 |
to avoid recursion when being allocated. |
| 16514 |
|
| 16515 |
* vm/vm_map.c (vm_submap_object_store): New variable. |
| 16516 |
(vm_submap_object): Point to vm_submap_object_store. |
| 16517 |
(kentry_data_size): Initialize to arbitrary value. |
| 16518 |
(kentry_count): Remove variable. |
| 16519 |
(kentry_pagealloc): New function. |
| 16520 |
(vm_map_setup): Likewise. |
| 16521 |
(vm_map_create): Replace initialization with a call to vm_map_setup(). |
| 16522 |
* vm/vm_map.h (vm_map_setup): New prototype. |
| 16523 |
* vm/vm_kern.c (kernel_map_store): New variable. |
| 16524 |
(kernel_map): Point to kernel_map_store. |
| 16525 |
(kmem_suballoc): Remove function. Replaced with... |
| 16526 |
(kmem_submap): New function. |
| 16527 |
(kmem_init): Call vm_map_setup() instead of vm_map_create(). |
| 16528 |
* vm/vm_kern.h (kmem_suballoc): Remove prototype. |
| 16529 |
(kmem_submap): New prototype. |
| 16530 |
* vm/vm_object.c (kernel_object_store): New variable. |
| 16531 |
(kernel_object): Point to kernel_object_store. |
| 16532 |
(vm_object_template): Change type from vm_object_t to struct vm_object. |
| 16533 |
(_vm_object_setup): New function. |
| 16534 |
(_vm_object_allocate): Replace initialization with a call to |
| 16535 |
_vm_object_setup(). |
| 16536 |
(vm_object_bootstrap): Don't allocate vm_object_template, and use it as |
| 16537 |
a structure instead of a pointer. Initialize kernel_object and |
| 16538 |
vm_submap_object with _vm_object_setup() instead of |
| 16539 |
_vm_object_allocate(). |
| 16540 |
* vm/vm_resident.c (vm_page_bootstrap): Don't initialize |
| 16541 |
kentry_data_size. |
| 16542 |
* device/ds_routines.c (device_io_map_store): New variable. |
| 16543 |
(device_io_map): Point to device_io_map_store. |
| 16544 |
(mach_device_init): Call kmem_submap() instead of kmem_suballoc(). |
| 16545 |
* ipc/ipc_init.c (ipc_kernel_map_store): New variable. |
| 16546 |
(ipc_kernel_map): Point to ipc_kernel_map_store. |
| 16547 |
|
| 16548 |
2011-12-17 Richard Braun <[email protected]> |
| 16549 |
|
| 16550 |
Adjust the kernel to use the slab allocator |
| 16551 |
* device/dev_lookup.c: Replace zalloc header, types and function calls |
| 16552 |
with their slab counterparts. |
| 16553 |
* device/dev_pager.c: Likewise. |
| 16554 |
* device/ds_routines.c: Likewise. |
| 16555 |
* device/io_req.h: Likewise. |
| 16556 |
* device/net_io.c: Likewise. |
| 16557 |
* i386/i386/fpu.c: Likewise. |
| 16558 |
* i386/i386/io_perm.c: Likewise. |
| 16559 |
* i386/i386/machine_task.c: Likewise. |
| 16560 |
* i386/i386/pcb.c: Likewise. |
| 16561 |
* i386/i386/task.h: Likewise. |
| 16562 |
* i386/intel/pmap.c: Likewise. |
| 16563 |
* i386/intel/pmap.h: Remove #include <kernel/zalloc.h>. |
| 16564 |
* include/mach_debug/mach_debug.defs (host_zone_info): Replace |
| 16565 |
routine declaration with skip directive. |
| 16566 |
(host_slab_info): New routine declaration. |
| 16567 |
* include/mach_debug/mach_debug_types.defs (zone_name_t) |
| 16568 |
(zone_name_array_t, zone_info_t, zone_info_array_t): Remove types. |
| 16569 |
(cache_info_t, cache_info_array_t): New types. |
| 16570 |
* include/mach_debug/mach_debug_types.h: Replace #include |
| 16571 |
<mach_debug/zone_info.h> with <mach_debug/slab_info.h>. |
| 16572 |
* ipc/ipc_entry.c: Replace zalloc header, types and function calls with |
| 16573 |
their slab counterparts. |
| 16574 |
* ipc/ipc_entry.h: Likewise. |
| 16575 |
* ipc/ipc_init.c: Likewise. |
| 16576 |
* ipc/ipc_marequest.c: Likewise. |
| 16577 |
* ipc/ipc_object.c: Likewise. |
| 16578 |
* ipc/ipc_object.h: Likewise. |
| 16579 |
* ipc/ipc_space.c: Likewise. |
| 16580 |
* ipc/ipc_space.h: Likewise. |
| 16581 |
* ipc/ipc_table.c (kalloc_map): Remove extern declaration. |
| 16582 |
* kern/act.c: Replace zalloc header, types and function calls with their |
| 16583 |
slab counterparts. |
| 16584 |
* kern/kalloc.h: Add #include <vm/vm_types.h>. |
| 16585 |
(MINSIZE): Remove definition. |
| 16586 |
(kalloc_map): Add extern declaration. |
| 16587 |
(kget): Remove prototype. |
| 16588 |
* kern/mach_clock.c: Adjust comment. |
| 16589 |
* kern/processor.c: Replace zalloc header, types and function calls with |
| 16590 |
their slab counterparts. |
| 16591 |
* kern/startup.c: Remove #include <kernel/zalloc.h>. |
| 16592 |
* kern/task.c: Replace zalloc header, types and function calls with |
| 16593 |
their slab counterparts. |
| 16594 |
* kern/thread.c: Likewise. |
| 16595 |
* vm/memory_object_proxy.c: Likewise. |
| 16596 |
* vm/vm_external.c: Likewise. |
| 16597 |
* vm/vm_fault.c: Likewise. |
| 16598 |
* vm/vm_init.c: Likewise. |
| 16599 |
* vm/vm_map.c: Likewise. |
| 16600 |
* vm/vm_object.c: Likewise. |
| 16601 |
* vm/vm_page.h: Remove #include <kernel/zalloc.h>. |
| 16602 |
* vm/vm_pageout.c: Replace zalloc header, types and function calls with |
| 16603 |
their slab counterparts. |
| 16604 |
* vm/vm_resident.c: Likewise. |
| 16605 |
(zdata, zdata_size): Remove declarations. |
| 16606 |
(vm_page_bootstrap): Don't steal memory for the zone system. |
| 16607 |
|
| 16608 |
2011-12-17 Richard Braun <[email protected]> |
| 16609 |
|
| 16610 |
Import the slab allocator |
| 16611 |
As it is intended to completely replace the zone allocator, remove it on |
| 16612 |
the way. So long to the venerable code ! |
| 16613 |
|
| 16614 |
* Makefrag.am (libkernel_a_SOURCES): Add kern/slab.{c,h}, remove kern/kalloc.c |
| 16615 |
and kern/zalloc.{c,h}. |
| 16616 |
* configfrag.ac (SLAB_VERIFY, SLAB_USE_CPU_POOLS): Add defines. |
| 16617 |
* i386/Makefrag.am (libkernel_a_SOURCES): Remove i386/i386/zalloc.h. |
| 16618 |
* i386/configfrag.ac (CPU_L1_SHIFT): Remove define. |
| 16619 |
* include/mach_debug/slab_info.h: New file. |
| 16620 |
* kern/slab.c: Likewise. |
| 16621 |
* kern/slab.h: Likewise. |
| 16622 |
* i386/i386/zalloc.h: Remove file. |
| 16623 |
* include/mach_debug/zone_info.h: Likewise. |
| 16624 |
* kern/kalloc.c: Likewise. |
| 16625 |
* kern/zalloc.c: Likewise. |
| 16626 |
* kern/zalloc.h: Likewise. |
| 16627 |
|
| 16628 |
2011-12-17 Richard Braun <[email protected]> |
| 16629 |
|
| 16630 |
Import utility files |
| 16631 |
* Makefrag.am (libkernel_a_SOURCES): Add kern/list.h, kern/rbtree.c, |
| 16632 |
kern/rbtree.h and kern/rbtree_i.h. |
| 16633 |
* kern/list.h: New file. |
| 16634 |
* kern/rbtree.c: Likewise. |
| 16635 |
* kern/rbtree.h: Likewise. |
| 16636 |
* kern/rbtree_i.h: Likewise. |
| 16637 |
* kern/macro_help.h (MACRO_BEGIN): Use GNU C compound statement |
| 16638 |
enclosed in parentheses. |
| 16639 |
(MACRO_END): Likewise. |
| 16640 |
|
| 16641 |
2011-11-27 Samuel Thibault <[email protected]> |
| 16642 |
|
| 16643 |
Keep frame pointer when debugger is enabled |
| 16644 |
* Makefrag.am (AM_CFLAGS) [enable_kdb]: Add -fno-omit-frame-pointer. |
| 16645 |
|
| 16646 |
2011-10-16 Samuel Thibault <[email protected]> |
| 16647 |
|
| 16648 |
Merge branch 'master' of callisto:gnumach |
| 16649 |
|
| 16650 |
2011-10-16 Samuel Thibault <[email protected]> |
| 16651 |
|
| 16652 |
Do not map xen driver pages |
| 16653 |
* xen/block.c (hyp_block_init): Use vm_page_grab_phys_addr instead of |
| 16654 |
kmem_alloc_wired to allocate driver pages. |
| 16655 |
* xen/net.c (hyp_net_init): Likewise. |
| 16656 |
|
| 16657 |
2011-10-16 Samuel Thibault <[email protected]> |
| 16658 |
|
| 16659 |
Increase kmem area for the Xen case. |
| 16660 |
Kernel tacks are 4 pages in the Xen case, so we need more kmem space. |
| 16661 |
|
| 16662 |
* i386/i386/vm_param.h (VM_KERNEL_MAP_SIZE) [MACH_XEN]: Increase to 224MiB. |
| 16663 |
|
| 16664 |
2011-10-10 Samuel Thibault <[email protected]> |
| 16665 |
|
| 16666 |
Raise block device interrupt level to SPL6 |
| 16667 |
* linux/dev/drivers/block/genhd.c (device_setup): Set linux_intr_pri to |
| 16668 |
SPL6. |
| 16669 |
* linux/dev/glue/block.c (init_partition, device_open): Likewise. |
| 16670 |
|
| 16671 |
Raise Linux kmem memory size |
| 16672 |
* linux/dev/glue/kmem.c (MEM_CHUNKS): Increase to 32. |
| 16673 |
|
| 16674 |
2011-10-10 Samuel Thibault <[email protected]> |
| 16675 |
|
| 16676 |
Leave interrupts enabled in sym53c8xx driver |
| 16677 |
The driver can work with them, and request_irq works fine with them. |
| 16678 |
|
| 16679 |
* linux/src/drivers/scsi/sym53c8xx.c (ncr_attach): Do not pass SA_INTERRUPT to |
| 16680 |
request_irq(). |
| 16681 |
|
| 16682 |
2011-10-09 Samuel Thibault <[email protected]> |
| 16683 |
|
| 16684 |
Define BITS_PER_LONG for Linux code |
| 16685 |
* linux/src/include/asm-i386/types.h (BITS_PER_LONG): Define to 32. |
| 16686 |
|
| 16687 |
2011-10-08 Samuel Thibault <[email protected]> |
| 16688 |
|
| 16689 |
Add sym53c8xx driver from linux 2.2 |
| 16690 |
This driver supports qemu's SCSI host device. |
| 16691 |
Unfortunately it seems to be breaking the network device, so test with care. |
| 16692 |
|
| 16693 |
* linux/Makefrag.am (liblinux_a_SOURCES): Add |
| 16694 |
linux/src/drivers/scsi/sym53c8xx{.c,_comm.h,.h,_defs.h} |
| 16695 |
* linux/configfrag.ac: Add AC_Linux_DRIVER([sym53c8xx] to enable |
| 16696 |
CONFIG_SCSI_SYM53C8XX. |
| 16697 |
* linux/dev/glue/kmem.c (MEM_CHUNKS): Increase to 16. |
| 16698 |
* linux/src/drivers/scsi/hosts.c [CONFIG_SCSI_SYM53C8XX]: Include "sym53c8xx.h". |
| 16699 |
(builtin_scsi_hosts): include SYM53C8XX. |
| 16700 |
|
| 16701 |
2011-09-28 Sergio Lopez <[email protected]> |
| 16702 |
|
| 16703 |
fix copy out-of-line data when length >= 512MB |
| 16704 |
* ipc/ipc_kmsg.c (ipc_kmsg_copyin_body): Change length type to |
| 16705 |
unsigned64_t. Cast number to unsigned64_t. |
| 16706 |
(ipc_kmsg_copyout_body): Likewise. |
| 16707 |
|
| 16708 |
2011-09-28 Sergio López <[email protected]> |
| 16709 |
|
| 16710 |
Make thread_suspend honor the TH_UNINT flag |
| 16711 |
Interrupting a thread without a continuation, puts it in a |
| 16712 |
inconsistent state. This is the cause for the bug described in |
| 16713 |
https://lists.gnu.org/archive/html/bug-hurd/2011-09/msg00148.html |
| 16714 |
|
| 16715 |
* kern/thread.c (thread_suspend): Fail with KERN_FAILURE if thread is |
| 16716 |
uninterruptible. |
| 16717 |
|
| 16718 |
2011-09-12 Guillem Jover <[email protected]> |
| 16719 |
|
| 16720 |
Remove unused [!MACH_KERNEL] driver code |
| 16721 |
Use «unifdef -DMACK_KERNEL=1» as a starting point, but only remove |
| 16722 |
the code not exposed on public headers, the rest is needed to build |
| 16723 |
properly from userland. |
| 16724 |
|
| 16725 |
* device/cons.c [!MACH_KERNEL]: Remove includes. |
| 16726 |
[!MACH_KERNEL] (constty): Remove variable. |
| 16727 |
(cninit, cnmaygetc) [MACH_KERNEL]: Remove preprocessor conditionals. |
| 16728 |
[!MACH_KERNEL] (cnopen, cnclose, cnread, cnwrite, cnioctl, cnselect) |
| 16729 |
(cncontrol): Remove functions. |
| 16730 |
* device/cons.h (struct consdev) [MACH_KERNEL]: Remove preprocessor |
| 16731 |
conditional. |
| 16732 |
* device/kmsg.h [MACH_KERNEL]: Likewise. |
| 16733 |
* i386/i386at/autoconf.c [!MACH_KERNEL]: Remove includes. |
| 16734 |
* i386/i386at/kd_event.c [!MACH_KERNEL]: Likewise. |
| 16735 |
[!MACH_KERNEL] (kbd_sel, kbdpgrp, kbdflag): Remove variables. |
| 16736 |
[!MACH_KERNEL] (KBD_COLL, KBD_ASYNC, KBD_NBIO): Remove macros. |
| 16737 |
(kbdopen, kbdclose, kbd_enqueue) [!MACH_KERNEL]: Remove code. |
| 16738 |
[!MACH_KERNEL] (kbdioctl, kbdselect, kbdread): Remove functions. |
| 16739 |
[!MACH_KERNEL] (X_kdb_enter_init, X_kdb_exit_init: Likewise. |
| 16740 |
* i386/i386at/kd_mouse.c [!MACH_KERNEL]: Remove includes. |
| 16741 |
[!MACH_KERNEL] (mouse_sel, mousepgrp, mouseflag): Remove variables. |
| 16742 |
[!MACH_KERNEL] (MOUSE_COLL, MOUSE_ASYNC, MOUSE_NBIO): Remove macros. |
| 16743 |
(mouseopen, mouseclose, kd_mouse_read, mouse_enqueue) [!MACH_KERNEL]: Remove |
| 16744 |
code. |
| 16745 |
[!MACH_KERNEL] (mouseioctl, mouseselect, mouseread): Remove functions. |
| 16746 |
* i386/i386at/lpr.c [!MACH_KERNEL]: Remove includes. |
| 16747 |
(lpropen) [MACH_KERNEL]: Remove preprocessor conditionals. |
| 16748 |
(lpropen, lprclose, lprstart) [!MACH_KERNEL]: Remove code. |
| 16749 |
[!MACH_KERNEL] (lprwrite, lprioctl, lprstop): Remove functions. |
| 16750 |
* i386/i386at/rtc.c (readtodc, writetodc) [!MACH_KERNEL]: Remove code. |
| 16751 |
* kern/mach_factor.c [MACH_KERNEL]: Remove preprocessor conditional. |
| 16752 |
* xen/time.c (readtodc) [!MACH_KERNEL]: Remove code. |
| 16753 |
|
| 16754 |
2011-09-09 Samuel Thibault <[email protected]> |
| 16755 |
|
| 16756 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 16757 |
|
| 16758 |
2011-09-09 Guillem Jover <[email protected]> |
| 16759 |
|
| 16760 |
Do not take unused strpbrk() from libc |
| 16761 |
* Makefile.am (clib_routines): Remove strpbrk. |
| 16762 |
|
| 16763 |
2011-09-06 Thomas Schwinge <[email protected]> |
| 16764 |
|
| 16765 |
* .gitignore: Tighten some rules, and distribute others to... * doc/.gitignore: ... here; * i386/i386/.gitignore: ... here; * tests/.gitignore: ..., and here. |
| 16766 |
|
| 16767 |
* i386/i386/pcb.h (stack_attach): Parameterize the continuation parameter's parameter list. * i386/i386/pcb.c (stack_attach): Likewise. |
| 16768 |
|
| 16769 |
Move i386/i386/locore.S declarations. |
| 16770 |
* i386/i386/trap.c (recover_table, recover_table_end, retry_table) |
| 16771 |
(retry_table_end): Move declarations to... |
| 16772 |
* i386/i386/locore.h: ... here. |
| 16773 |
|
| 16774 |
2011-09-06 Thomas Schwinge <[email protected]> |
| 16775 |
|
| 16776 |
Further prototyping work for memory_object_proxy.c functions. |
| 16777 |
* vm/memory_object_proxy.h: Add #includes. |
| 16778 |
(memory_object_proxy_lookup): New declaration. |
| 16779 |
* vm/memory_object_proxy.c: #include <vm/memory_object_proxy.h>. |
| 16780 |
* vm/vm_user.c: Likewise. |
| 16781 |
(memory_object_proxy_lookup): Drop declaration. |
| 16782 |
|
| 16783 |
Parts based on a patch by Fridolín Pokorný <[email protected]>. |
| 16784 |
|
| 16785 |
2011-09-05 Samuel Thibault <[email protected]> |
| 16786 |
|
| 16787 |
Drop module memory free verbosity |
| 16788 |
* kern/bootstrap.c (bootstrap_create): Do not show freed module memory. |
| 16789 |
|
| 16790 |
Free memory used by boot modules |
| 16791 |
* vm/vm_resident.c (pmap_startup): Warn when some pages could not be included |
| 16792 |
in the allocator due to bad estimation. |
| 16793 |
* kern/bootstrap.c: Include <vm/pmap.h>. |
| 16794 |
(bootstrap_create): Call vm_page_create on bootstrap modules content. |
| 16795 |
|
| 16796 |
2011-09-03 Fridolín Pokorný <[email protected]> |
| 16797 |
|
| 16798 |
Add prototypes for memory_object_proxy.c functions |
| 16799 |
* vm/memory_object_proxy.h: Add file. |
| 16800 |
* vm/vm_init.c: Include <vm/memory_object_proxy.h>. |
| 16801 |
* kern/ipc_kobject.c: Likewise. |
| 16802 |
* Makefile.am (libkernel_a_SOURCES): Add vm/memory_object_proxy.h. |
| 16803 |
|
| 16804 |
2011-09-03 Samuel Thibault <[email protected]> |
| 16805 |
|
| 16806 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 16807 |
|
| 16808 |
2011-09-02 Guillem Jover <[email protected]> |
| 16809 |
|
| 16810 |
Remove long obsolete RPC routines |
| 16811 |
* kern/compat_xxx_defs.h: Remove file. |
| 16812 |
* Makefrag.am (libkernel_a_SOURCES): Remove `kern/compat_xxx_defs.h'. |
| 16813 |
|
| 16814 |
* include/mach/mach_types.defs (xxx_emulation_vector_t): Remove type. |
| 16815 |
|
| 16816 |
* device/device.srv: Do not simport <kern/compat_xxx_defs.h>. |
| 16817 |
* kern/mach.srv: Likewise. |
| 16818 |
* kern/mach_host.srv: Likewise. |
| 16819 |
|
| 16820 |
* include/device/device.defs [MACH_KERNEL]: Do not simport |
| 16821 |
<kern/compat_xxx_defs.h>. |
| 16822 |
(xxx_device_set_status, xxx_device_get_status) |
| 16823 |
(xxx_device_set_filter): Replace routine declarations with skip |
| 16824 |
directives. |
| 16825 |
* include/mach/mach.defs [MACH_KERNEL]: Do not simport |
| 16826 |
<kern/compat_xxx_defs.h>. |
| 16827 |
(xxx_memory_object_lock_request, xxx_task_get_emulation_vector) |
| 16828 |
(xxx_task_set_emulation_vector, xxx_host_info, xxx_slot_info) |
| 16829 |
(xxx_cpu_control, xxx_task_info, xxx_thread_get_state) |
| 16830 |
(xxx_thread_set_state, xxx_thread_info): Replace routine declarations |
| 16831 |
with skip directive. |
| 16832 |
* include/mach/mach_host.defs [MACH_KERNEL]: Do not simport |
| 16833 |
<kern/compat_xxx_defs.h>. |
| 16834 |
(yyy_host_info, yyy_processor_info, yyy_processor_control) |
| 16835 |
(xxx_processor_set_default_priv, yyy_processor_set_info): Replace |
| 16836 |
routine declarations with skip directive. |
| 16837 |
|
| 16838 |
* kern/ipc_host.c (xxx_processor_set_default_priv): Remove function. |
| 16839 |
* kern/machine.c (xxx_host_info, xxx_slot_info) |
| 16840 |
(xxx_cpu_control): Likewise. |
| 16841 |
* kern/syscall_emulation.c (xxx_task_set_emulation_vector) |
| 16842 |
(xxx_task_get_emulation_vector): Likewise. |
| 16843 |
* vm/memory_object.c (xxx_memory_object_lock_request): Likewise. |
| 16844 |
|
| 16845 |
2011-09-02 Guillem Jover <[email protected]> |
| 16846 |
|
| 16847 |
Do not remap errno codes from E* to LINUX_E* |
| 16848 |
Mach no longer uses any of the old and clashing errno E* codes, so |
| 16849 |
it's safe to use them now w/o namespacing. This also means one less |
| 16850 |
modification needed to the Linux code. |
| 16851 |
|
| 16852 |
* linux/dev/include/asm-i386/errno.h: Remove file. |
| 16853 |
* linux/dev/kernel/dma.c (notifier_chain_unregister) [MACH_INCLUDE]: Remove |
| 16854 |
code. |
| 16855 |
* linux/dev/include/linux/notifier.h: Likewise. |
| 16856 |
* linux/dev/arch/i386/kernel/irq.c (setup_x86_irq): Rename LINUX_EBUSY |
| 16857 |
to EBUSY. |
| 16858 |
(request_irq): Rename LINUX_EINVAL to EINVAL. |
| 16859 |
* linux/dev/glue/block.c (register_blkdev): Rename LINUX_EBUSY to EBUSY |
| 16860 |
and LINUX_EINVAL to EINVAL. |
| 16861 |
(unregister_blkdev): Rename LINUX_EINVAL to EINVAL. |
| 16862 |
(rdwr_partial) Rename LINUX_ENOMEM to ENOMEM and LINUX_EIO to EIO. |
| 16863 |
* linux/dev/glue/misc.c (linux_to_mach_error): Rename LINUX_EPERM to |
| 16864 |
EPERM, LINUX_EIO to EIO, LINUX_ENXIO to ENXIO, LINUX_EACCES to EACCES, |
| 16865 |
LINUX_EFAULT to EFAULT, LINUX_EBUSY to EBUSY, LINUX_EINVAL to EINVAL, |
| 16866 |
LINUX_EROFS to EROFS, LINUX_EWOULDBLOCK to EWOULDBLOCK and LINUX_ENOMEM |
| 16867 |
to ENOMEM. |
| 16868 |
(verify_area): Rename LINUX_EFAULT to EFAULT. |
| 16869 |
* linux/dev/kernel/resource.c (check_region): Rename LINUX_EBUSY to |
| 16870 |
EBUSY. |
| 16871 |
* linux/dev/kernel/sched.c (__do_down): Rename LINUX_EINTR to EINTR. |
| 16872 |
|
| 16873 |
2011-09-02 Guillem Jover <[email protected]> |
| 16874 |
|
| 16875 |
Use Mach native error codes instead of POSIX errno E* ones |
| 16876 |
* device/errno.h: Remove file. |
| 16877 |
* Makefrag.am (libkernel_a_SOURCES): Remove `device/errno.h'. |
| 16878 |
* i386/i386at/com.c: Include <device/device_types.h> instead of |
| 16879 |
<device/errno.h>. |
| 16880 |
(comopen): Replace ENXIO with D_NO_SUCH_DEVICE. |
| 16881 |
* i386/i386at/kd_event.c: Include <device/device_types.h> instead of |
| 16882 |
<device/errno.h>. |
| 16883 |
* i386/i386at/kd_mouse.c: Likewise. |
| 16884 |
(mouseopen): Replace ENODEV with D_NO_SUCH_DEVICE and EBUSY with |
| 16885 |
D_ALREADY_OPEN. |
| 16886 |
* i386/i386at/lpr.c: Include <device/device_types.h> instead of |
| 16887 |
<device/errno.h>. |
| 16888 |
(lpropen): Replace ENXIO with D_NO_SUCH_DEVICE and EBUSY with |
| 16889 |
D_ALREADY_OPEN. |
| 16890 |
|
| 16891 |
2011-09-02 Guillem Jover <[email protected]> |
| 16892 |
|
| 16893 |
Change argument name to match function body usage |
| 16894 |
Otherwise the function wrongly uses the global symbol. |
| 16895 |
|
| 16896 |
* linux/src/drivers/scsi/ppa.c (ppa_nibble_in): Rename `str_p' argument |
| 16897 |
to `base'. |
| 16898 |
|
| 16899 |
2011-09-02 Guillem Jover <[email protected]> |
| 16900 |
|
| 16901 |
Disable set but unused variable |
| 16902 |
* linux/src/drivers/scsi/gdth.c (gdth_detect): Conditionalize `b' on |
| 16903 |
[LINUX_VERSION_CODE < 0x020000]. Do not preset it to 0, it's initialized |
| 16904 |
later on when needed. |
| 16905 |
|
| 16906 |
Remove set but unused variables |
| 16907 |
* linux/dev/drivers/block/floppy.c (setup_rw_floppy): Remove `dflags'. |
| 16908 |
(floppy_eject): Remove `dummy'. |
| 16909 |
* linux/src/drivers/net/8390.c (ethdev_init): Remove `ei_local'. |
| 16910 |
* linux/src/drivers/scsi/ppa.c (ppa_detect): Remove `ppb'. |
| 16911 |
|
| 16912 |
Cast addr argument to vm_offset_t |
| 16913 |
* linux/dev/glue/kmem.c (vfree): Cast `addr' argument on kfree_mem |
| 16914 |
function to vm_offset_t. |
| 16915 |
|
| 16916 |
Add vsnprintf prototype |
| 16917 |
* kern/printf.h (vsnprintf): New prototype. |
| 16918 |
|
| 16919 |
Add missing headers |
| 16920 |
* linux/dev/init/main.c: Include <linux/pci.h>. |
| 16921 |
* linux/dev/kernel/printk.c: Include <kern/printf.h>. |
| 16922 |
|
| 16923 |
2011-09-01 Ludovic Courtès <[email protected]> |
| 16924 |
|
| 16925 |
Add missing header file to the distribution. |
| 16926 |
* linux/Makefrag.am (liblinux_a_SOURCES): Add `linux/dev/glue/glue.h', |
| 16927 |
which appeared in commit 2b4bff9914d57bff600ac70194b8b1aab3485bee |
| 16928 |
("Fix declarations"). |
| 16929 |
|
| 16930 |
2011-09-01 Samuel Thibault <[email protected]> |
| 16931 |
|
| 16932 |
Fix documentation |
| 16933 |
|
| 16934 |
Close kernel stacks. |
| 16935 |
* i386/i386/pcb.c (stack_attach): Initialize ebp to 0. |
| 16936 |
|
| 16937 |
2011-09-01 Samuel Thibault <[email protected]> |
| 16938 |
|
| 16939 |
Fix PC sampling |
| 16940 |
interrupt.S now saves the IRQ on the stack to acknowledge it later. |
| 16941 |
|
| 16942 |
* i386/i386/hardclock.c (hardclock): Add irq parameter. |
| 16943 |
* i386/i386at/kd.c (kdintr, kdcheckmagic): Remove regs parameter. |
| 16944 |
* i386/i386at/kd.h (kdintr): Likewise. |
| 16945 |
|
| 16946 |
2011-08-31 Guillem Jover <[email protected]> |
| 16947 |
|
| 16948 |
Add silent rules support if available and disable it by default |
| 16949 |
* configure.ac (AM_SILENT_RULES): Add silent rules support if available, |
| 16950 |
and disable it by default. |
| 16951 |
* Makefile.am (AWK_V, AWK_V_, AWK_V_0): New variables. |
| 16952 |
(NM_V, NM_V_, NM_V_0): Likewise. |
| 16953 |
(GZIP_V, GZIP_V_, GZIP_V_0): Likewise. |
| 16954 |
(MIGCOM_V, MIGCOM_V_, MIGCOM_V_0): Likewise. |
| 16955 |
(gnumach-undef): Use NM_V in front of NM. |
| 16956 |
(gnumach-undef-bad): Use AM_V_GEN in front of sed. |
| 16957 |
(clib-routines.o): Use AM_V_at in fron of undefined symbols check. |
| 16958 |
Use AM_V_CCLD in front of CCLD. |
| 16959 |
* Makefrag.am (gnumach.msgids): Use AM_V_GEN in front of cat. |
| 16960 |
* Makerules.am (%.symc): Use AWK_V in front of AWK. |
| 16961 |
(%.symc.o): Use AM_V_CC in front of COMPILE. |
| 16962 |
(%.h): Use AM_V_GEN in front of sed. |
| 16963 |
(%.gz): Use GZIP_V in front of GZIP. |
| 16964 |
* Makerules.mig.am (%.user.defs.c): Use AM_V_GEN in front of command. |
| 16965 |
(%.server.defs.c): Likewise. |
| 16966 |
(%.user.h %.user.c %.user.msgids): Use MIGCOM_V in front of MIGCOM. |
| 16967 |
(%.server.h %.server.c %.server.msgids): Likewise. |
| 16968 |
|
| 16969 |
2011-08-31 Samuel Thibault <[email protected]> |
| 16970 |
|
| 16971 |
Optimize copyout path |
| 16972 |
* i386/i386/locore.S (copyout): Remove RETRY() use from >=i486 variant. Move |
| 16973 |
copyout_ret and copyout_fail. |
| 16974 |
|
| 16975 |
Fix copyout retry on lazy allocation on >= i486 |
| 16976 |
* i386/i386/locore.S (copyout): Add a >=i486 variant of copyout which uses |
| 16977 |
no loop, but simply retries rep mov. |
| 16978 |
|
| 16979 |
Disable global page while writing in kernel space |
| 16980 |
* i386/i386/db_interface.c (db_write_bytes): If CPU has PGE feature, disable |
| 16981 |
CR4_PGE before enabling kernel page write access, and re-enable the former after |
| 16982 |
disabling the latter. |
| 16983 |
|
| 16984 |
2011-08-31 Samuel Thibault <[email protected]> |
| 16985 |
|
| 16986 |
Protect set_cr3 against compiler assignment optimizations |
| 16987 |
This fixes the kdb `break' command. |
| 16988 |
|
| 16989 |
i386/i386/proc_reg.h (set_cr3): Add "memory" clobber. |
| 16990 |
|
| 16991 |
2011-08-31 Guillem Jover <[email protected]> |
| 16992 |
|
| 16993 |
Fix undefined operation on assigning self pre-incremented variable |
| 16994 |
* linux/src/drivers/scsi/wd7000.c (mail_out): Add `1' instead of |
| 16995 |
pre-incrementing self assigned variable. |
| 16996 |
* linux/src/drivers/net/de4x5.c (de4x5_sw_reset, de4x5_queue_pkt, de4x5_rx) |
| 16997 |
(de4x5_tx, de4x5_rx_ovfc, set_multicast_list, ping_media, mii_get_phy) |
| 16998 |
(de4x5_ioctl): Likewise. |
| 16999 |
* linux/src/drivers/net/depca.c (depca_rx, depca_tx, load_packet): Likewise. |
| 17000 |
|
| 17001 |
Honour type promotion on variable argument handling |
| 17002 |
* linux/dev/lib/vsprintf.c (linux_vsprintf): Use `int' when retrieving |
| 17003 |
a `short' through `va_arg'. |
| 17004 |
|
| 17005 |
Correct MiG Mach types to fix compilation warnings |
| 17006 |
* include/mach/mach_types.defs (thread_info_t): Change from array of |
| 17007 |
natural_t to integer_t. |
| 17008 |
(task_info_t): Likewise. |
| 17009 |
(host_info_t): Likewise. |
| 17010 |
(processor_info_t): Likewise. |
| 17011 |
(processor_set_info_t): Likewise. |
| 17012 |
|
| 17013 |
Denote __exit symbols as used |
| 17014 |
* linux/src/include/linux/init.h: Include <linux/compiler.h>. |
| 17015 |
(__exitused): New macro. |
| 17016 |
(__exit): Define to ` __exitused __cold notrace'. |
| 17017 |
* linux/src/include/linux/kcomp.h (__exit): Remove. |
| 17018 |
|
| 17019 |
Move <linux/init.h> from linux/pcmcia-cs to linux/src |
| 17020 |
* linux/pcmcia-cs/include/linux/init.h: Move to ... |
| 17021 |
* linux/src/include/linux/init.h: ... here. |
| 17022 |
|
| 17023 |
Import Linux 3.1 compiler definitions |
| 17024 |
* linux/src/include/linux/compiler.h: New file. |
| 17025 |
* linux/src/include/linux/compiler-gcc.h: Likewise. |
| 17026 |
* linux/src/include/linux/compiler-gcc3.h: Likewise. |
| 17027 |
* linux/src/include/linux/compiler-gcc4.h: Likewise. |
| 17028 |
* linux/dev/include/linux/kernel.h (barrier): Remove definition and |
| 17029 |
include <linux/compiler.h> instead. |
| 17030 |
|
| 17031 |
Import Linux 3.1 ctype code |
| 17032 |
* linux/src/include/linux/ctype.h: Update file. |
| 17033 |
* linux/src/lib/ctype.c: Likewise. |
| 17034 |
|
| 17035 |
Remove unused and non-functional string specialization header |
| 17036 |
* linux/src/include/asm-i386/string-486.h: Remove. |
| 17037 |
|
| 17038 |
Fix memcmp prototype |
| 17039 |
* include/string.h (memcmp): Remove bogus `*' from return type. |
| 17040 |
|
| 17041 |
2011-08-31 Samuel Thibault <[email protected]> |
| 17042 |
|
| 17043 |
Fix declarations |
| 17044 |
* device/ds_routines.h (io_done_list): Add variable declaration. |
| 17045 |
(device_io_map): Keep variable declaration and move definition to... |
| 17046 |
* device/ds_routines.c: ... here. |
| 17047 |
* i386/i386/fpu.c: Include <i386/pic.h> |
| 17048 |
(curr_ipl): Remove declaration. |
| 17049 |
(fpintr): Add int unit parameter. |
| 17050 |
* linux/dev/glue/glue.h: New header. |
| 17051 |
* i386/i386/fpu.h (fpintr): Add function prototype. |
| 17052 |
* i386/i386/hardclock.c (clock_interrupt, linux_timer_intr): Remove prototypes. |
| 17053 |
[LINUX_DEV]: Include <linux/dev/glue/glue.h> |
| 17054 |
* i386/i386/ipl.h (curr_ipl): Add declaration. |
| 17055 |
* i386/i386/pic.h (curr_pic_mask, pic_mask, prtnull, intnull): Add |
| 17056 |
declarations. |
| 17057 |
* i386/i386at/kd.h (kdintr): Add declaration. |
| 17058 |
* i386/i386at/pic_isa.c: Include <i386/fpu.h> and <i386at/kd.h> |
| 17059 |
(intnull, fpintr, hardclock, kdintr, prtnull): Remove prototypes. |
| 17060 |
* i386/xen/xen.c: Include <kern/mach_clock.h> |
| 17061 |
(clock_interrupt): Remove prototype. |
| 17062 |
* linux/dev/arch/i386/kernel/irq.c: Include <linux/dev/glue/glue.h> and |
| 17063 |
<machine/machspl.h> |
| 17064 |
(linux_timer_intr, splhigh, spl0, curr_ipl, curr_pic_mask, pic_mask, |
| 17065 |
get_options): Remove declarations. |
| 17066 |
* linux/dev/drivers/block/floppy.c: Include <linux/dev/glue/glue.h> |
| 17067 |
(issig, get_options): Remove declarations. |
| 17068 |
* linux/dev/drivers/block/genhd.c: Include <linux/dev/glue/glue.h> |
| 17069 |
(linux_intr_pri): Remove declaration. |
| 17070 |
* linux/dev/glue/block.c: Include <devices/ds_routines.h> and |
| 17071 |
<linux/dev/glue/glue.h>. |
| 17072 |
(device_io_map, blksize_size): Remove declarations. |
| 17073 |
* linux/dev/glue/kmem.c: Include <kern/printf.h> and <linux/dev/glue/glue.h> |
| 17074 |
(alloc_contig_mem, printf): Remove declarations. |
| 17075 |
* linux/dev/glue/misc.c: Include <printf.h> and <linux/dev/glue/glue.h> |
| 17076 |
(vm_map_lookup_entry, printf): Remove prototypes. |
| 17077 |
* linux/dev/glue/net.c: Include <kern/printf.h>, <device/ds_routines.h> and |
| 17078 |
<linux/dev/glue/glue.h>. |
| 17079 |
(linux_intr_pri, io_done_list): Remove declarations. |
| 17080 |
* linux/dev/init/main.c: Include <machine/model_dep.h> and |
| 17081 |
<linux/dev/glue/glue.h>. |
| 17082 |
(phys_last_addr, alloc_contig_mem, free_contig_mem, init_IRQ, |
| 17083 |
restore_IRQ, startrtclock, linux_version_init, linux_kmem_init, pci_init, |
| 17084 |
linux_net_emulation_init, device_setup, linux_printk, linux_timer_intr, spl0, |
| 17085 |
splhigh, form_pic_mask, linux_bad_intr, prtnull, intnull, linux_sched_init, |
| 17086 |
pcmcia_init): Remove declarations. |
| 17087 |
* linux/dev/kernel/sched.c: Include <kern/printf.h>, <machine/machspl.h> and |
| 17088 |
<linux/dev/glue/glue.h>. |
| 17089 |
(alloc_contig_mem, free_contig_mem, splhigh, splx, linux_soft_intr, issig, |
| 17090 |
printf, linux_auto_config): Remove prototypes. |
| 17091 |
* linux/dev/kernel/softirq.c: Include <linux/dev/glue/glue.h>. |
| 17092 |
* linux/src/drivers/block/floppy.c: Include <linux/dev/glue/glue.h>. |
| 17093 |
(get_options): Remove prototype. |
| 17094 |
* linux/src/init/main.c: Include <linux/dev/glue/glue.h> |
| 17095 |
(init_IRQ): Remove prototype. |
| 17096 |
|
| 17097 |
2011-08-30 Guillem Jover <[email protected]> |
| 17098 |
|
| 17099 |
Add linux_timer_intr function declaration |
| 17100 |
* i386/i386/hardclock.c [LINUX_DEV] (linux_timer_intr): New prototype. |
| 17101 |
|
| 17102 |
Add missing headers |
| 17103 |
* device/dev_pager.c: Include <device/memory_object_reply.user.h>. |
| 17104 |
* linux/pcmcia-cs/glue/wireless_glue.h: Include <kern/debug.h>. |
| 17105 |
|
| 17106 |
Remove unused variable |
| 17107 |
* i386/i386at/rtc.c (rtc): Remove variable. |
| 17108 |
|
| 17109 |
Cast host_get_time() arguments to fix warnings |
| 17110 |
* linux/dev/glue/misc.c (do_gettimeofday): Cast arguments to |
| 17111 |
`host_get_time'. |
| 17112 |
|
| 17113 |
Cast function timeout() argument to fix a warning |
| 17114 |
* kern/mach_clock.h (timer_func_t): New function type. |
| 17115 |
(struct timer_elt): Change fcn type to timer_func_t. |
| 17116 |
* i386/i386at/com.c (comstart): Cast `ttrstrt' to `timer_funct_t *' in |
| 17117 |
`timeout' call. |
| 17118 |
* i386/i386at/lpr.c (lprstart): Likewise, |
| 17119 |
|
| 17120 |
Return a value on non-void function |
| 17121 |
* i386/i386at/com.c (comcnprobe, comcninit, comcnputc): Return 0. |
| 17122 |
|
| 17123 |
2011-08-30 Samuel Thibault <[email protected]> |
| 17124 |
|
| 17125 |
Fix copyright assignment |
| 17126 |
I have assigned copyright to the Free Software Foundation. |
| 17127 |
|
| 17128 |
* i386/i386/xen.h: Fix copyright assignment |
| 17129 |
* i386/xen/xen.c: Likewise. |
| 17130 |
* i386/xen/xen_boothdr.S: Likewise. |
| 17131 |
* i386/xen/xen_locore.S: Likewise. |
| 17132 |
* include/mach/xen.h: Likewise. |
| 17133 |
* xen/block.c: Likewise. |
| 17134 |
* xen/block.h: Likewise. |
| 17135 |
* xen/console.c: Likewise. |
| 17136 |
* xen/console.h: Likewise. |
| 17137 |
* xen/evt.c: Likewise. |
| 17138 |
* xen/evt.h: Likewise. |
| 17139 |
* xen/grant.c: Likewise. |
| 17140 |
* xen/grant.h: Likewise. |
| 17141 |
* xen/net.c: Likewise. |
| 17142 |
* xen/net.h: Likewise. |
| 17143 |
* xen/ring.c: Likewise. |
| 17144 |
* xen/ring.h: Likewise. |
| 17145 |
* xen/store.c: Likewise. |
| 17146 |
* xen/store.h: Likewise. |
| 17147 |
* xen/time.c: Likewise. |
| 17148 |
* xen/time.h: Likewise. |
| 17149 |
* xen/xen.c: Likewise. |
| 17150 |
* xen/xen.h: Likewise. |
| 17151 |
|
| 17152 |
2011-08-30 Samuel Thibault <[email protected]> |
| 17153 |
|
| 17154 |
Console declaration cleanup |
| 17155 |
* device/cons.h: Add multiple inclusion _DEVICE_CONS_H macro protector. |
| 17156 |
(struct consdev): Add function members prototypes. |
| 17157 |
* i386/i386/xen.h: Include <mach/xen.h>. |
| 17158 |
* i386/i386at/com.c (comcnprobe, comcninit, comcngetc, comcnputc): Move |
| 17159 |
prototypes... |
| 17160 |
* i386/i386at/com.h: ... here. Include <device/cons.h>. |
| 17161 |
* i386/i386at/cons_conf.c [MACH_HYP]: Include <xen/console.h>. |
| 17162 |
[!MACH_HYP]: Include "kd.h". |
| 17163 |
[!MACH_HYP && NCOM > 0]: Include "com.h". |
| 17164 |
(hypcnprobe, hypcninit, hypcngetc, hypcnputc, kdcnprobe, kdcninit, kdcngetc, |
| 17165 |
kdcnputc comcnprobe, comcninit, comcngetc, comcnputc): Remove prototypes. |
| 17166 |
* i386/i386at/kd.c (kdcnputc): Make it return int, -1 on error, 0 on |
| 17167 |
success. |
| 17168 |
(kdcnprobe, kdcninit, kdcngetc, kdcnputc): Move prototypes... |
| 17169 |
* i386/i386at/kd.h: ... here. Include <device/cons.h>. |
| 17170 |
* xen/console.c (hypcnprobe): Remove unused `my_console' local variable. |
| 17171 |
* xen/console.h: Include <device/cons.h> |
| 17172 |
(hypcnputc, hypcngetc, hypcnprobe, hypcninit): Add prototypes. |
| 17173 |
|
| 17174 |
2011-08-30 Guillem Jover <[email protected]> |
| 17175 |
|
| 17176 |
Move Linux module macros to their original header |
| 17177 |
* linux/pcmcia-cs/glue/wireless_glue.h (EXPORT_SYMBOL) |
| 17178 |
(SET_MODULE_OWNER): Move to ... |
| 17179 |
* linux/src/include/linux/module.h [!MODULE]: ... here. |
| 17180 |
|
| 17181 |
Move cdrom_sleep() definition to its original source file |
| 17182 |
* linux/dev/kernel/sched.c (cdrom_sleep): Move to ... |
| 17183 |
* linux/src/drivers/block/ide-cd.c [MACH]: ... here, make it static. |
| 17184 |
Include <kern/sched_prim.h>. |
| 17185 |
|
| 17186 |
2011-08-29 Samuel Thibault <[email protected]> |
| 17187 |
|
| 17188 |
Make copyout run in 1 loop on >= i486 |
| 17189 |
* i386/i386/locore.S (copyout): On >= i486, skip WP-check loop split and just |
| 17190 |
use byte count. |
| 17191 |
|
| 17192 |
2011-08-28 Samuel Thibault <[email protected]> |
| 17193 |
|
| 17194 |
Skip kernel WP check on i486 and above |
| 17195 |
* i386/i386/i386asm.sym (machine_slot.sub_type): Define. |
| 17196 |
* i386/i386/locore.S (copyout_retry): Skip if machine_slot[0].cpu_type > 3. |
| 17197 |
|
| 17198 |
Enable >4GiB cr3 |
| 17199 |
* i386/xen/xen_boothdr.S (__xen_guest): Add [extended-cr3] to PAE |
| 17200 |
(XEN_ELFNOTE_PAE_MODE): Likewise. |
| 17201 |
|
| 17202 |
2011-08-28 Samuel Thibault <[email protected]> |
| 17203 |
|
| 17204 |
Disable (<i486)-only WP workaround on Xen & PAE |
| 17205 |
i386 didn't support PAE anyway. |
| 17206 |
|
| 17207 |
* i386/i386/locore.S (copyout_retry) [MACH_HYP || PAE]: Remove. |
| 17208 |
* xen/xen.c (hyp_invalidate_pte): Remove function. |
| 17209 |
* xen/xen.h (hyp_invalidate_pte): Remove prototype. |
| 17210 |
|
| 17211 |
2011-08-28 Samuel Thibault <[email protected]> |
| 17212 |
|
| 17213 |
Fix pmap_clear_bootstrap_pagetable with >4G mfns |
| 17214 |
* i386/intel/pmap.c (pmap_clear_bootstrap_pagetable): Use pte_to_pa instead |
| 17215 |
of atop. |
| 17216 |
|
| 17217 |
Rework memory mapping reservation |
| 17218 |
* i386/i386/vm_param.h (VM_KERNEL_MAP_SIZE): Define to 192MiB. |
| 17219 |
* i386/i386at/model_dep.c (mem_size_init): Use VM_KERNEL_MAP_SIZE instead of |
| 17220 |
1/6 factor. |
| 17221 |
* i386/intel/pmap.c (morevm): Remove. |
| 17222 |
(pmap_bootstrap): Use VM_KERNEL_MAP_SIZE instead of morevm. |
| 17223 |
|
| 17224 |
Move free_skbuffs declaration to the top |
| 17225 |
* device/ds_routines.c (free_skbuffs): Move declaration to the top. |
| 17226 |
|
| 17227 |
2011-08-27 Guillem Jover <[email protected]> |
| 17228 |
|
| 17229 |
Initialize the new map entry when it's a projected buffer |
| 17230 |
* vm/vm_map.c (vm_map_fork): Call vm_map_entry_create for projected_on |
| 17231 |
buffers too. |
| 17232 |
|
| 17233 |
Fix initialization from incompatible pointer type |
| 17234 |
* linux/dev/glue/block.c (device_get_status): Cast `hg' to `unsigned long' |
| 17235 |
in ioctl call. |
| 17236 |
|
| 17237 |
Match signedness of char pointer comparisons and assignments |
| 17238 |
* linux/dev/drivers/block/genhd.c (msdos_partition): Cast `data' assignment |
| 17239 |
to `unsigned char *'. |
| 17240 |
* linux/src/drivers/block/ide-cd.c (cdrom_queue_request_sense): Cast |
| 17241 |
`buffer' assignment to `unsigned char *'. |
| 17242 |
(cdrom_transfer_packet_command): Change `cmd_buf' argument type to |
| 17243 |
`unsigned char *'. |
| 17244 |
(cdrom_read_capacity): Cast `pc.buffer' assignments to `unsigned char *'. |
| 17245 |
Use temporary `model' and `fw_rev' `const char *' variables to compare |
| 17246 |
against literal strings and characters. |
| 17247 |
* linux/src/drivers/block/ide.c (execute_drive_cmd): Cast `args' |
| 17248 |
assignment to `byte *'. |
| 17249 |
(ide_open): Cast `rq.buffer' assignment to `char *'. |
| 17250 |
(ide_release): Likewise. |
| 17251 |
(ide_ioctl): Likewise. |
| 17252 |
(do_identify): Cast variables being compared against literal string to |
| 17253 |
`char *'. |
| 17254 |
(probe_for_drive): Likewise. |
| 17255 |
* linux/src/drivers/block/ide.h (struct packet_command): Change `buffer' |
| 17256 |
type to `unsigned char *'. |
| 17257 |
|
| 17258 |
Always initialize A and X variables in BPF code |
| 17259 |
* device/net_io.c (bpf_do_filter): Remove lint conditional. |
| 17260 |
|
| 17261 |
Disable unused variables |
| 17262 |
* i386/i386at/com.c (comstart): Disable `i' variable. |
| 17263 |
* linux/src/drivers/net/at1700.c (net_close): Disable `lp' variable. |
| 17264 |
* linux/dev/include/linux/blk.h (end_request): Disable `nsect' variable |
| 17265 |
on MACH. |
| 17266 |
|
| 17267 |
Remove unused variables |
| 17268 |
* vm/memory_object_proxy.c (memory_object_create_proxy): Remove unused |
| 17269 |
`kr' variable. |
| 17270 |
* linux/dev/glue/block.c (free_buffer): Remove unused `i' variable. |
| 17271 |
(register_blkdev): Remove unused `err' variable. |
| 17272 |
(unregister_blkdev): Likewise. |
| 17273 |
(bread): Likewise. |
| 17274 |
(init_partition): Likewise. |
| 17275 |
* linux/dev/glue/net.c (device_write): Likewise. |
| 17276 |
|
| 17277 |
Remove ident tags producing preprocessor warnings |
| 17278 |
* linux/src/drivers/scsi/FlashPoint.c: Remove #ident tags. |
| 17279 |
|
| 17280 |
Add header for printf prototype |
| 17281 |
* vm/memory_object_proxy.c: Include <kern/printf.h>. |
| 17282 |
|
| 17283 |
Add prototype for free_skbuffs function |
| 17284 |
* device/ds_routines.c [LINUX_DEV && CONFIG_INET] (free_skbuffs): Add |
| 17285 |
prototype. |
| 17286 |
|
| 17287 |
Add prototype for log function |
| 17288 |
* kern/debug.h (log): New prototype. |
| 17289 |
|
| 17290 |
2011-08-27 Samuel Thibault <[email protected]> |
| 17291 |
|
| 17292 |
* Makefile.am (AM_CFLAGS): Add -fno-builtin-log. |
| 17293 |
|
| 17294 |
2011-08-27 Guillem Jover <[email protected]> |
| 17295 |
|
| 17296 |
Add prototypes for locore functions |
| 17297 |
* i386/i386at/model_dep.c (discover_x86_cpu_type): Move ... |
| 17298 |
* i386/i386/locore.h: ... here. |
| 17299 |
(inst_fetch, cpu_shutdown): New prototypes. |
| 17300 |
* i386/i386at/kd.c: Include <i386/locore.h>. |
| 17301 |
|
| 17302 |
Do not take obsolete and unused bcopy and bzero from libc |
| 17303 |
* Makefile.am (clib_routines): Remove bcopy and bzero. |
| 17304 |
|
| 17305 |
Use AC_LANG_SOURCE inside AC_LANG_CONFTEST to fix autoconf warning |
| 17306 |
* configure.ac (AC_LANG_CONFTEST): Wrap the source into a AC_LANG_SOURCE |
| 17307 |
call. |
| 17308 |
|
| 17309 |
Add a .gitignore file |
| 17310 |
* .gitignore: New file. |
| 17311 |
|
| 17312 |
2011-08-22 Samuel Thibault <[email protected]> |
| 17313 |
|
| 17314 |
Make ipc_space_zone not exhaustible |
| 17315 |
Users of ipc_space_create() actually assume that it succeeds. |
| 17316 |
|
| 17317 |
* ipc/ipc_init.c (ipc_bootstrap): Create ipc_space_zone without EXHAUSTIBLE |
| 17318 |
flag. |
| 17319 |
|
| 17320 |
2011-08-22 Samuel Thibault <[email protected]> |
| 17321 |
|
| 17322 |
Add more details to "zone exhausted" panics. |
| 17323 |
* kern/zalloc (zalloc): Add more details to "zone exhausted" panics. |
| 17324 |
|
| 17325 |
2011-08-21 Samuel Thibault <[email protected]> |
| 17326 |
|
| 17327 |
Add 8byte breakpoint macro |
| 17328 |
* i386/i386/db_interface.h (I386_DB_LEN_8): Define macro. |
| 17329 |
|
| 17330 |
2011-08-18 Samuel Thibault <[email protected]> |
| 17331 |
|
| 17332 |
Add compiler barrier to update_mapped_time |
| 17333 |
* kern/mach_clock.c (update_mapped_time): Add compiler barriers between |
| 17334 |
writes to shared memory. Update comment: on SMP, write barriers are |
| 17335 |
required. |
| 17336 |
|
| 17337 |
2011-08-10 Samuel Thibault <[email protected]> |
| 17338 |
|
| 17339 |
Do not warn for cross-space spurious port deallocation |
| 17340 |
These are harmless (the target is stopped) and difficult to fix anyway. |
| 17341 |
|
| 17342 |
* ipc/mach_port.c (mach_port_destroy): Do not warn about spurious port |
| 17343 |
deallocation when SPACE is not equal to current_space(). |
| 17344 |
(mach_port_deallocate): Likewise. |
| 17345 |
|
| 17346 |
2011-08-10 Samuel Thibault <[email protected]> |
| 17347 |
|
| 17348 |
Add more spurious deallocation debugging |
| 17349 |
* ipc/mach_port.c (mach_port_destroy): Print the current space and the |
| 17350 |
target space on spurious deallocation. |
| 17351 |
(mach_port_deallocate): Likewise. |
| 17352 |
|
| 17353 |
2011-07-21 Samuel Thibault <[email protected]> |
| 17354 |
|
| 17355 |
Whitelist QEMU Hard-Drive for DMA. |
| 17356 |
PIO has become very slow in Linux 2.6.35+, so we do not really have the |
| 17357 |
choice any more. |
| 17358 |
|
| 17359 |
* linux/src/drivers/block/triton.c (good_dma_drives): Re-whitelist QEMU hard |
| 17360 |
drive. |
| 17361 |
|
| 17362 |
2011-05-19 Samuel Thibault <[email protected]> |
| 17363 |
|
| 17364 |
Fix gcc 4.6 build |
| 17365 |
* linux/dev/include/linux/skbuff.h (skb_put, skb_push): Do not print the |
| 17366 |
address of a local label, gcc 4.6 does not build this and the debugger can |
| 17367 |
output it anyway. |
| 17368 |
* linux/src/include/linux/skbuff.h (skb_put, skb_push): Likewise. |
| 17369 |
|
| 17370 |
2011-05-18 Samuel Thibault <[email protected]> |
| 17371 |
|
| 17372 |
Merge two asm constraints |
| 17373 |
* linux/src/drivers/scsi/ultrastor.c (find_and_clear_bit_16): Use + modifier |
| 17374 |
instead of using both a read and a write constraint. |
| 17375 |
|
| 17376 |
2011-05-09 Samuel Thibault <[email protected]> |
| 17377 |
|
| 17378 |
Do not warn on vm_map_enter with fixed address failing |
| 17379 |
* vm/vm_map.c (vm_map_enter): Warn about missing room in map only if |
| 17380 |
anywhere is set. |
| 17381 |
|
| 17382 |
2011-04-24 Samuel Thibault <[email protected]> |
| 17383 |
|
| 17384 |
Update constants to nowadays standards |
| 17385 |
Follow-up to fa6c711d |
| 17386 |
|
| 17387 |
* ipc/ipc_init.c (ipc_kernel_map_size): Increase to 8MiB. |
| 17388 |
|
| 17389 |
2011-04-23 Samuel Thibault <[email protected]> |
| 17390 |
|
| 17391 |
Enable all caches |
| 17392 |
* i386/i386at/model_dep.c (i386at_init): Set CR0_CD and CR0_NW in CR0 |
| 17393 |
register. |
| 17394 |
|
| 17395 |
Drop spurious warning |
| 17396 |
* ipc/ipc_entry.c (ipc_entry_get): Do not warn when ipc_entry_get returns |
| 17397 |
KERN_NO_SPACE. |
| 17398 |
|
| 17399 |
2011-04-22 Samuel Thibault <[email protected]> |
| 17400 |
|
| 17401 |
Warn once when part of the kernel is lacking space |
| 17402 |
* ipc/ipc_entry.c (ipc_entry_get, ipc_entry_grow_table): Warn when returning |
| 17403 |
KERN_NO_SPACE. |
| 17404 |
* vm/vm_map.c (vm_map_find_entry, vm_map_enter, vm_map_copyout, |
| 17405 |
vm_map_copyout_page_list): Warn when returning KERN_NO_SPACE. |
| 17406 |
|
| 17407 |
2011-04-22 Samuel Thibault <[email protected]> |
| 17408 |
|
| 17409 |
Update constants to nowadays standards |
| 17410 |
Follow-up to fa6c711d |
| 17411 |
|
| 17412 |
* vm/vm_object.c (DEVICE_IO_MAP_SIZE): Increase to 16MiB. |
| 17413 |
* kern/kalloc.c (kalloc_map_size): Increase to 64MiB. |
| 17414 |
* i386/intel/pmap.c (morevm): Increase to 128MiB. |
| 17415 |
|
| 17416 |
2011-04-20 Samuel Thibault <[email protected]> |
| 17417 |
|
| 17418 |
Warn once when part of the kernel is lacking memory |
| 17419 |
* kern/printf.h (printf_once): New macro. |
| 17420 |
* ipc/mach_port.c (mach_port_names, mach_port_get_set_status): Warn when |
| 17421 |
returning KERN_RESOURCE_SHORTAGE. |
| 17422 |
* vm/vm_kern.c: Include printf.h. |
| 17423 |
(kmem_alloc, kmem_realloc, kmem_alloc_wired, kmem_alloc_aligned, |
| 17424 |
kmem_alloc_pageable): Warn when failing. |
| 17425 |
* vm/vm_resident.c (vm_page_grab_contiguous_pages): Warn when returning |
| 17426 |
KERN_RESOURCE_SHORTAGE. |
| 17427 |
|
| 17428 |
2011-04-19 Samuel Thibault <[email protected]> |
| 17429 |
|
| 17430 |
Close call stack on continuation |
| 17431 |
* i386/i386/locore.S (call_continuation): Push dummy return address instead |
| 17432 |
of letting the callee get a random one. |
| 17433 |
|
| 17434 |
2011-04-18 Arne Babenhauserheide <[email protected]> |
| 17435 |
|
| 17436 |
Removed deprecated LINTLIBRARY #ifdefs |
| 17437 |
mach/mach_traps.h: Removed LINTLIBRARY #ifdefs. |
| 17438 |
mach/message.h: Removed LINTLIBRARY #ifdefs. |
| 17439 |
|
| 17440 |
2011-04-03 Samuel Thibault <[email protected]> |
| 17441 |
|
| 17442 |
Fix build with kdb from make dist-generated tarball |
| 17443 |
* Makefrag.am (libkernel_a_SOURCES): Add ddb/db_cond.h, ddb/db_examine.h, |
| 17444 |
ddb/db_input.h, ddb/db_macro.h, ddb/db_trap.h. |
| 17445 |
* i386/Makefrag.am (libkernel_a_SOURCES): Add i386/i386/db_interface.h |
| 17446 |
|
| 17447 |
2011-03-21 Samuel Thibault <[email protected]> |
| 17448 |
|
| 17449 |
Fix typo |
| 17450 |
* i386/i386at/kd.c (key_map): Fix K_PERIOD typo. |
| 17451 |
|
| 17452 |
2011-03-20 Samuel Thibault <[email protected]> |
| 17453 |
|
| 17454 |
Clean kd.[ch] |
| 17455 |
* i386/i386at/kd.h (NUMSTATES): Fix comment about NORM_STATE. |
| 17456 |
* i386/i386at/kd.c (key_map): Use K_* macros instead of numeric values. |
| 17457 |
|
| 17458 |
2011-03-14 Samuel Thibault <[email protected]> |
| 17459 |
|
| 17460 |
Also warn about mach_port_destroy on invalid ports |
| 17461 |
* ipc/mach_port.c (mach_port_destroy): Warn (and possibly call debugger) when |
| 17462 |
ipc_right_lookup_write didn't find the port name. |
| 17463 |
|
| 17464 |
2011-03-11 Samuel Thibault <[email protected]> |
| 17465 |
|
| 17466 |
Fix continuation after keyboard debugger invocation |
| 17467 |
According to stack layout change in 5da1aea7 |
| 17468 |
|
| 17469 |
* i386/i386/locore.S [!MACH_XEN] (RET_OFFSET): Define to 12 instead of 8. |
| 17470 |
|
| 17471 |
2011-03-06 Samuel Thibault <[email protected]> |
| 17472 |
|
| 17473 |
Enable global pages after enabling paging |
| 17474 |
* i386/i386at/model_dep.c (i386at_init): Enable CR4_PGE after enabling |
| 17475 |
CR0_PG. |
| 17476 |
|
| 17477 |
2011-03-05 Samuel Thibault <[email protected]> |
| 17478 |
|
| 17479 |
Fix temporary direct mapping during page table enabling |
| 17480 |
* i386/i386at/model_dep.c (i386at_init): Count the number of actually |
| 17481 |
needed temporary L1 direct mapping by getting the last used address from |
| 17482 |
init_alloc_aligned(), instead of hardcoding it to 1 or 3, and then use a for |
| 17483 |
loop. |
| 17484 |
|
| 17485 |
2011-03-03 Samuel Thibault <[email protected]> |
| 17486 |
|
| 17487 |
Keep supplementary L1 pages read-only |
| 17488 |
* i386/intel/pmap.c (pmap_bootstrap): Fix loop which keeps supplementary L1 |
| 17489 |
pages read-only: break as soon as one of the L1 supplementary pages has been |
| 17490 |
recognized, so that its pte does not get rewritten read-write. |
| 17491 |
|
| 17492 |
2011-02-27 Samuel Thibault <[email protected]> |
| 17493 |
|
| 17494 |
Refuse to share IRQs at different interrupt levels |
| 17495 |
* linux/dev/arch/i386/kernel/irq.c (setup_x86_irq): Return -LINUX_EBUSY when |
| 17496 |
trying to share an IRQ between two different interrupt levels. |
| 17497 |
|
| 17498 |
2011-02-27 Samuel Thibault <[email protected]> |
| 17499 |
|
| 17500 |
Re-enable updating pvlist for kernel_pmap |
| 17501 |
This partially reverts 0744feb6 |
| 17502 |
|
| 17503 |
* i386/intel/pmap.c (pmap_remove_range): Update pvlist for kernel_pmap too. |
| 17504 |
|
| 17505 |
2011-02-27 Samuel Thibault <[email protected]> |
| 17506 |
|
| 17507 |
Acknoledge interrupt after handler call |
| 17508 |
This fixes interrupt overflows when software interrupts processing gets slower |
| 17509 |
than hardware. |
| 17510 |
|
| 17511 |
* i386/i386at/interrupt.S (interrupt): Issue EOI to PICs after having called |
| 17512 |
the interrupt handler and disabled interrupts through cli. |
| 17513 |
|
| 17514 |
2011-02-27 Samuel Thibault <[email protected]> |
| 17515 |
|
| 17516 |
Detect interrupt overflow |
| 17517 |
* i386/i386/locore.S (int_from_instack): Check %esp against _intstack, issue |
| 17518 |
ud2 on stack overflow. |
| 17519 |
|
| 17520 |
Add x86 debug register Xen support |
| 17521 |
* i386/xen/xen_boothdr.S: Add global visibility to __hyp_* symbols. |
| 17522 |
* i386/i386/locore.S [MACH_XEN] (dr6,dr0,dr1,dr2,dr3): Make get_debugreg and |
| 17523 |
set_debugreg hypercalls to manipulate debug registers. |
| 17524 |
(dr0,dr1,dr2,dr3): Fix dr7 field shift. |
| 17525 |
* i386/i386/xen.h (hyp_set_debugreg, hyp_get_debugreg): New prototypes. |
| 17526 |
|
| 17527 |
Add prototypes for x86 debug registers |
| 17528 |
* i386/i386/db_interface.h (I386_DB_TYPE_X, I386_DB_TYPE_W, I386_DB_TYPE_RW, |
| 17529 |
I386_DB_LEN_1, I386_DB_LEN_2, I386_DB_LEN_4, I386_DB_LOCAL, |
| 17530 |
I386_DB_GLOBAL): New macros. |
| 17531 |
(dr0, dr1, dr2, dr3): New function prototypes. |
| 17532 |
|
| 17533 |
Fix for kdb watch command |
| 17534 |
* i386/intel/pmap.c (pmap_remove_range): Do not update pvlist for |
| 17535 |
kernel_map. |
| 17536 |
[MACH_KBD] (pmap_enter): Allow physical memory remapping. |
| 17537 |
|
| 17538 |
2011-02-26 Samuel Thibault <[email protected]> |
| 17539 |
|
| 17540 |
Add console=comN boot option to enable serial console |
| 17541 |
* i386/configfrag.ac (RCLINE, RCADDR): Remove defines. |
| 17542 |
* i386/i386at/com.c: Include <string.h> and <util/atoi.h> |
| 17543 |
[!RCLINE] (RCBAUD, comcndev, comcnprobe, comcninit, comcngetc, comcnputc): |
| 17544 |
Declare and define macro, variable, and functions. |
| 17545 |
(rcline): New variable. |
| 17546 |
(kernel_cmdline): New declaration. |
| 17547 |
(comcnprobe): Detect "console=comN" option and set rcline accordingly, use |
| 17548 |
rcline instead of RCLINE for serial console selection. |
| 17549 |
* i386/i386at/cons_conf.c [NCOM>0 && !RCLINE] (comcnprobe, comcninit, |
| 17550 |
comcngetc, comcnputc): Declare functions. |
| 17551 |
[NCOM>0 && !RCLINE] (constab): Enable "com" console. |
| 17552 |
* i386/i386at/kd_event.c (kbdopen): Call kdinit function, for when the |
| 17553 |
VGA+pckbd console was not initialized. |
| 17554 |
|
| 17555 |
2011-02-09 Samuel Thibault <[email protected]> |
| 17556 |
|
| 17557 |
xen block: Add more legacy hd* name support |
| 17558 |
* xen/block.c (hyp_block_init): Add IDE 3-10 device number recognition. Skip |
| 17559 |
unknown block device numbers. |
| 17560 |
|
| 17561 |
2011-02-07 Samuel Thibault <[email protected]> |
| 17562 |
|
| 17563 |
Defer Xen device initialization to device_service_create |
| 17564 |
* device/device_init.c (device_service_create) [MACH_HYP]: Call |
| 17565 |
hyp_dev_init. |
| 17566 |
* xen/xen.c (hyp_init): Do not call hyp_block_init and hyp_net_init, now |
| 17567 |
called in ... |
| 17568 |
(hyp_dev_init): New function. |
| 17569 |
* xen/xen.h (hyp_dev_init): New declaration. |
| 17570 |
|
| 17571 |
Add rx-copy support to netfront |
| 17572 |
* xen/net.c (net_data): Add rx_copy field. |
| 17573 |
(enqueue_rx_buf): When rx_copy != 0, give grant on buffer to domD instead of |
| 17574 |
issuing a transfer from domD. |
| 17575 |
(hyp_net_intr): When rx_copy != 0, take back grant on buffer instead of |
| 17576 |
finishing transfer. Do not panic on packet error, free kmsg on error. |
| 17577 |
(hyp_net_init): Check for feature-rx-copy in backend, write 1 to |
| 17578 |
request-rx-copy in such case. Wait for Connected state before continuing. |
| 17579 |
Only unmap buffer when rx_copy is 0. |
| 17580 |
|
| 17581 |
2011-01-31 Diego Nieto Cid <[email protected]> |
| 17582 |
|
| 17583 |
* doc/mach.texi (device_set_filter): Document filter header. |
| 17584 |
Acked-by: Richard Braun <[email protected]> |
| 17585 |
|
| 17586 |
2011-01-31 Samuel Thibault <[email protected]> |
| 17587 |
|
| 17588 |
Enable pae_extended_cr3 in pmap_bootstrap |
| 17589 |
* i386/i386/gdt.c (gdt_init): Do not enable VMASST_TYPE_pae_extended_cr3. |
| 17590 |
* i386/intel/pmap.c (pmap_bootstrap): Enable VMASST_TYPE_pae_extended_cr3. |
| 17591 |
|
| 17592 |
Enable Xen >4GiB physical memory support |
| 17593 |
* i386/i386/gdt.c (gdt_init): Enable VMASST_TYPE_pae_extended_cr3. |
| 17594 |
* i386/i386/xen.h: Drop actually-unneeded comment. |
| 17595 |
* i386/xen/xen_boothdr.S (FEATURES) [MACH_PSEUDO_PHYS]: Add pae_pgdir_above_4gb. |
| 17596 |
(XEN_ELFNOTE_FEATURES) [MACH_PSEUDO_PHYS]: Add pae_pgdir_above_4gb. |
| 17597 |
|
| 17598 |
Drop kbd device on xen |
| 17599 |
* i386/Makefrag.am (libkernel_a_SOURCES): Move i386/i386at/kd_event.[ch] and |
| 17600 |
i386/i386at/kd_queue.[ch] to [PLATFORM_at]. |
| 17601 |
* i386/i386at/conf.c (dev_name_list): Move kbd device to [!MACH_HYP]. |
| 17602 |
|
| 17603 |
2011-01-15 Samuel Thibault <[email protected]> |
| 17604 |
|
| 17605 |
Avoid dropping kd_intr when RCLINE is >= 0 |
| 17606 |
* i386/i386at/kd.c (kdintr): Return immediately if !kd_initialized. |
| 17607 |
* i386/i386at/pic_isa.c (ivect) [RCLINE >= 0]: Enable kdintr in that case |
| 17608 |
too. |
| 17609 |
|
| 17610 |
2011-01-15 Samuel Thibault <[email protected]> |
| 17611 |
|
| 17612 |
Move -d and -H parse to kern/startup.c |
| 17613 |
The code is arch-independant, and reboot_on_panic, used by kern/debug.c |
| 17614 |
would be undefined on non-i386. |
| 17615 |
|
| 17616 |
* i386/i386at/model_dep.c (reboot_on_panic, c_boot_entry): Move -d and -H parse |
| 17617 |
to... |
| 17618 |
* kern/startup.c (reboot_on_panic,setup_main): ... here. Include <string.h> |
| 17619 |
|
| 17620 |
2010-12-09 Samuel Thibault <[email protected]> |
| 17621 |
|
| 17622 |
memcpy operands are not supposed to overlap |
| 17623 |
* include/string.h (memmove): Add prototype. |
| 17624 |
* i386/i386at/immc.c (immc_cnputc): Replace memcpy with memmove. |
| 17625 |
|
| 17626 |
2010-10-24 Samuel Thibault <[email protected]> |
| 17627 |
|
| 17628 |
Avoid harmless warning |
| 17629 |
* i386/i386at/kd.c (kd_setleds1): Only display unexpected state warning when |
| 17630 |
debugging is enabled. |
| 17631 |
|
| 17632 |
2010-10-23 Samuel Thibault <[email protected]> |
| 17633 |
|
| 17634 |
Add prototype for strstr |
| 17635 |
* include/string.h (strstr): Add prototype. |
| 17636 |
|
| 17637 |
Add prototype for discover_x86_cpu_type |
| 17638 |
* i386/i386at/model_dep.c (discover_x86_cpu_type): Add prototype. |
| 17639 |
|
| 17640 |
Warn on unknown CPU family |
| 17641 |
* i386/i386at/model_dep.c (c_boot_entry): Warn in the default case for |
| 17642 |
cpu_type. |
| 17643 |
|
| 17644 |
Recognize P4 and Opteron-like as pentium pro |
| 17645 |
* i386/i386at/model_dep.c (c_boot_entry): Treat cpu_type 15 as Pentium pro. |
| 17646 |
|
| 17647 |
2010-09-19 Samuel Thibault <[email protected]> |
| 17648 |
|
| 17649 |
Fix device_get/set_status ABI for NET_FLAGS |
| 17650 |
* linux/dev/glue/net.c (device_get_status): Compare count with 1 instead |
| 17651 |
of sizeof(short). Access *status instead of *(short *) status. |
| 17652 |
(device_set_status): Likewise. |
| 17653 |
|
| 17654 |
2010-09-14 Thomas Schwinge <[email protected]> |
| 17655 |
|
| 17656 |
Merge branch 'typo-print' |
| 17657 |
|
| 17658 |
2010-09-14 Thomas Schwinge <[email protected]> |
| 17659 |
|
| 17660 |
Typo fix. |
| 17661 |
* i386/i386/trap.c (user_trap): Call printf, not print. |
| 17662 |
|
| 17663 |
2010-09-14 Samuel Thibault <[email protected]> |
| 17664 |
|
| 17665 |
Fix ifunc entries |
| 17666 |
* i386/ldscript: Update to the version from binutils 2.20.51.20100617. |
| 17667 |
Remove SEARCH_DIR calls. |
| 17668 |
* Makefile.am (clib_routines): Accept undefined __rel_iplt_start and |
| 17669 |
__rel_iplt_end as these come from the ldscript. |
| 17670 |
* i386/i386at/boothdr.S (boot_entry): Call ifunc hooks at boot. |
| 17671 |
* i386/xen/xen_boothdr.S (start): Likewise. |
| 17672 |
|
| 17673 |
2010-09-08 Samuel Thibault <[email protected]> |
| 17674 |
|
| 17675 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 17676 |
|
| 17677 |
Fix non-contiguous PCI functions |
| 17678 |
* linux/src/drivers/pci/pci.c (scan_bus): Do not set `is_multi' to 0 |
| 17679 |
when a hole is encountered. Detect 0000:ffff and ffff:0000 vendor ID as |
| 17680 |
holes too. |
| 17681 |
|
| 17682 |
2010-08-27 Guillem Jover <[email protected]> |
| 17683 |
|
| 17684 |
Fix "make dist" |
| 17685 |
* Makefile.am (EXTRA_DIST): Remove ChangeLog.0, ChangeLog.00 and |
| 17686 |
Makefile.correct_output_files_for_.S_files.patch. |
| 17687 |
* Makefrag.am (libkernel_a_SOURCES): Add ipc/mach_port.h, |
| 17688 |
kern/ipc_mig.h, kern/machine.h, util/putchar.h, util/atoi.h, |
| 17689 |
vm/vm_resident.h, vm/vm_types.h and device/subrs.h. |
| 17690 |
Remove kern/time_out.h. |
| 17691 |
* i386/Makefrag.am (libkernel_a_SOURCES): Add i386/i386at/autoconf.h, |
| 17692 |
i386/i386at/com.h, i386/i386at/int_init.h, i386/i386/loose_ends.h, |
| 17693 |
i386/i386/model_dep.h, i386/intel/read_fault.h and i386/i386/xen.h. |
| 17694 |
Remove i386/i386/timer.h. |
| 17695 |
* linux/Makefrag.am (liblinux_a_SOURCES): Add |
| 17696 |
linux/src/drivers/net/sis900.h. |
| 17697 |
* xen/Makefrag.am (libkernel_a_SOURCES): Add xen/public/arch-x86_32.h |
| 17698 |
xen/public/arch-x86_64.h, xen/public/arch-x86/xen.h, |
| 17699 |
xen/public/arch-x86/xen-mca.h, xen/public/arch-x86/xen-x86_32.h, |
| 17700 |
xen/public/arch-x86/xen-x86_64.h, xen/public/callback.h, xen/public/COPYING, |
| 17701 |
xen/public/dom0_ops.h, xen/public/domctl.h, xen/public/elfnote.h, |
| 17702 |
xen/public/elfstructs.h, xen/public/event_channel.h, xen/public/features.h, |
| 17703 |
xen/public/grant_table.h, xen/public/io/blkif.h, xen/public/io/console.h, |
| 17704 |
xen/public/io/fbif.h, xen/public/io/fsif.h, xen/public/io/kbdif.h, |
| 17705 |
xen/public/io/netif.h, xen/public/io/pciif.h, xen/public/io/protocols.h, |
| 17706 |
xen/public/io/ring.h, xen/public/io/tpmif.h, xen/public/io/xenbus.h, |
| 17707 |
xen/public/io/xs_wire.h, xen/public/kexec.h, xen/public/libelf.h, |
| 17708 |
xen/public/memory.h, xen/public/nmi.h, xen/public/physdev.h, |
| 17709 |
xen/public/platform.h, xen/public/sched.h, xen/public/sysctl.h, |
| 17710 |
xen/public/trace.h, xen/public/vcpu.h, xen/public/version.h, |
| 17711 |
xen/public/xencomm.h, xen/public/xen-compat.h, xen/public/xen.h, |
| 17712 |
xen/public/xenoprof.h, xen/block.h, xen/console.h, xen/evt.h, |
| 17713 |
xen/grant.h, xen/net.h, xen/ring.h, xen/store.h, xen/time.h and xen/xen.h. |
| 17714 |
|
| 17715 |
2010-08-26 Samuel Thibault <[email protected]> |
| 17716 |
|
| 17717 |
Do not advice to install libc0.3-xen on 4gb_segment trap |
| 17718 |
ext2fs.static will trigger some anyway. Instead, provide an easy way to |
| 17719 |
track how many traps happen. |
| 17720 |
|
| 17721 |
* i386/i386/gdt.c [MACH_XEN] (gdt_init): Disable enabling |
| 17722 |
VMASST_TYPE_4gb_segments_notify. |
| 17723 |
* i386/i386/trap.c [MACH_XEN] (user_trap): Remove printing libc0.3-xen |
| 17724 |
installation advice on 4gb_segments trap. Instead, print a count every 10000 |
| 17725 |
traps, and disable them on the 1000000th. |
| 17726 |
|
| 17727 |
2010-08-22 Samuel Thibault <[email protected]> |
| 17728 |
|
| 17729 |
Disable 4gb segment emulation notification on first notification |
| 17730 |
i386/i386/trap.c [MACH_XEN] (user_trap): Disable |
| 17731 |
VMASST_TYPE_4gb_segments_notify on trap 15. |
| 17732 |
|
| 17733 |
Report Xen 4gb segment emulation |
| 17734 |
* i386/i386/gdt.c [MACH_XEN] (gdt_init): Enable VMASST_TYPE_4gb_segments_notify. |
| 17735 |
* i386/i386/idt_inittab.S [MACH_XEN]: Set trap 15 as pushing an error |
| 17736 |
code. |
| 17737 |
* i386/i386/trap.c [MACH_XEN]: Print trap 15 first occurrence. |
| 17738 |
|
| 17739 |
2010-08-01 Samuel Thibault <[email protected]> |
| 17740 |
|
| 17741 |
Fix unexpected irq + irq timeout on write |
| 17742 |
* linux/src/drivers/block/ide.c (do_rw_disk): Set IRQ handler before |
| 17743 |
issuing write command. |
| 17744 |
|
| 17745 |
Move read-only sections to after text section |
| 17746 |
|
| 17747 |
2010-07-31 Samuel Thibault <[email protected]> |
| 17748 |
|
| 17749 |
Un-whitelist the QEMU harddisk for DMA support |
| 17750 |
* linux/src/drivers/block/triton.c (good_dma_drives): Remove "QEMU HARDDISK". |
| 17751 |
|
| 17752 |
Put a name on the 16MiB magic number |
| 17753 |
* linux/dev/glue/kmem.c (MEM_DMA_LIMIT): New macro |
| 17754 |
(linux_kmem_init): Replace 16 * 1024 * 1024 occurrences with |
| 17755 |
MEM_DMA_LIMIT. |
| 17756 |
|
| 17757 |
2010-06-25 Jeremie Koenig <[email protected]> |
| 17758 |
|
| 17759 |
Route BLKRRPART to partitions layer |
| 17760 |
* linux/dev/glue/block.c (device_set_status): New function |
| 17761 |
(linux_block_emulation_ops): Set set_status field to device_set_status. |
| 17762 |
|
| 17763 |
2010-04-16 Samuel Thibault <[email protected]> |
| 17764 |
|
| 17765 |
Add memory clobbers to segment selector loaders |
| 17766 |
* i386/i386/seg.h (lldt): Add memory clobber to lldt asm |
| 17767 |
snippet. |
| 17768 |
* i386/i386/tss.h (ltr): Add memory clobber to ltr asm |
| 17769 |
snippet. |
| 17770 |
|
| 17771 |
2010-04-08 Samuel Thibault <[email protected]> |
| 17772 |
|
| 17773 |
Fix bootstrap additional mapping |
| 17774 |
* i386/intel/pmap.c (pmap_bootstrap): Use pt_entry_t type |
| 17775 |
instead of vm_offset_t to map additional kernel space. |
| 17776 |
|
| 17777 |
Extend machine addresses to 64bit for PAE |
| 17778 |
* i386/i386/pcb.c (switch_ktss): Use uint64_t for descriptor |
| 17779 |
type instead of unsigned long long. |
| 17780 |
* i386/i386/seg.h (fill_descriptor): Use uint64_t for descriptor |
| 17781 |
type instead of unsigned long long. Cast result of kv_to_ma() |
| 17782 |
into vm_offset_t before printing. |
| 17783 |
* i386/i386/xen.h (hyp_mmu_update_pte): Use pt_entry_t type |
| 17784 |
instead of unsigned long long, make pte parameter a pt_entry_t |
| 17785 |
too. |
| 17786 |
(hyp_mmu_update_pte): Compute pte address just using pt_entry_t |
| 17787 |
integers. |
| 17788 |
(hyp_high): New macro to fix 32bit right shifting. |
| 17789 |
(hyp_do_update_descriptor): Use pt_entry_t type for machine |
| 17790 |
address instead of unsigned long. Split it in 32bit parts. Use uint64_t |
| 17791 |
for descriptor type instead of unsigned long long. |
| 17792 |
(update_va_mapping): Use pt_entry_t type instead of unsigned |
| 17793 |
long long. Use hyp_high macro. |
| 17794 |
(hyp_invlpg): Use uint64_t for time type instead of unsigned |
| 17795 |
long long. |
| 17796 |
* i386/intel/pmap.c (pmap_bootstrap): Use ptetokv instead of |
| 17797 |
pte_to_pa + phystokv. Cast machine addresses into vm_offset_t |
| 17798 |
before printing. |
| 17799 |
(pmap_set_page_readwrite): Likewise. |
| 17800 |
(pmap_set_page_readonly): Likewise |
| 17801 |
(pmap_set_page_readonly_init): Likewise |
| 17802 |
(pmap_clear_bootstrap_pagetable): Likewise |
| 17803 |
(pmap_destroy): Likewise |
| 17804 |
(pmap_map_mfn): Use pt_entry_t type for machine addresses. Cast |
| 17805 |
machine addresses into vm_offset_t before printing. |
| 17806 |
* i386/intel/pmap.h [PAE] (INTEL_PTE_PFN): Set macro to |
| 17807 |
0xfffffffffffff000ULL. |
| 17808 |
* include/mach/xen.h [PAE] (pa_to_ma, ma_to_pa): Use pt_entry_t |
| 17809 |
type for machine addresses. |
| 17810 |
[!PAE] (pa_to_ma): Remove cast to vm_offset_t. |
| 17811 |
(mfn_to_kv): Use mfn_to_pfn + ptoa instead of ptoa + ma_to_pa. |
| 17812 |
* xen/xen.c (hyp_invalidate_pte): Cast machine addresses into |
| 17813 |
vm_offset_t before printing. |
| 17814 |
|
| 17815 |
2010-04-06 Samuel Thibault <[email protected]> |
| 17816 |
|
| 17817 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 17818 |
|
| 17819 |
Fix crash on Xen when no module is provided |
| 17820 |
* kern/bootstrap.c (bootstrap_create): Iterate over bmods only |
| 17821 |
if is not NULL. |
| 17822 |
|
| 17823 |
2010-03-15 Thomas Schwinge <[email protected]> |
| 17824 |
|
| 17825 |
Require GNU Automake 1.10.2. |
| 17826 |
9ff49d9648debffbe42d18863c739d37bcdb50b4's config.status.dep.patch is fit for |
| 17827 |
1.10.2 (released in November 2008) and later, and is no longer suitable for |
| 17828 |
1.10.1. |
| 17829 |
|
| 17830 |
* configure.ac (AM_INIT_AUTOMAKE): Require 1.10.2. |
| 17831 |
|
| 17832 |
2010-03-14 Samuel Thibault <[email protected]> |
| 17833 |
|
| 17834 |
Fix Xen build without kdb |
| 17835 |
* xen/console.c (hypcnintr): Use #if MACH_KDB instead of #ifdef |
| 17836 |
MACH_KDB. |
| 17837 |
|
| 17838 |
Add mem device |
| 17839 |
* i386/Makefrag.am (libkernel_a_SOURCES): Add |
| 17840 |
i386/i386at/iopl.c. |
| 17841 |
* i386/i386at/conf.c [!MACH_HYP] (memmmap): Declare function. |
| 17842 |
(memname): Add macro. |
| 17843 |
(dev_name_list): Add mem device. |
| 17844 |
* i386/i386at/mem.c: New file. |
| 17845 |
|
| 17846 |
2010-03-02 Samuel Thibault <[email protected]> |
| 17847 |
|
| 17848 |
whitelist the QEMU harddisk for DMA support |
| 17849 |
* linux/src/drivers/block/triton.c (good_dma_drives): Add |
| 17850 |
"QEMU HARDDISK". |
| 17851 |
|
| 17852 |
2010-01-04 Samuel Thibault <[email protected]> |
| 17853 |
|
| 17854 |
ignore bogus FDPT information from BIOS |
| 17855 |
|
| 17856 |
2009-12-22 Samuel Thibault <[email protected]> |
| 17857 |
|
| 17858 |
Align mach_port_deallocate debug flag with usage |
| 17859 |
* ipc/mach_port.c (debug_mach_port_deallocate): Rename to... |
| 17860 |
(mach_port_deallocate_debug): ... new name, and set volatile |
| 17861 |
to permit live changes from ddb. |
| 17862 |
|
| 17863 |
Do not systematically debug buggy port deallocation |
| 17864 |
* ipc/mach_port.c (debug_mach_port_deallocation): New variable, |
| 17865 |
set to 0. |
| 17866 |
(mach_port_deallocate): Only call SoftDebugger if |
| 17867 |
debug_mach_port_deallocation is not 0. |
| 17868 |
|
| 17869 |
Merge branch 'master' of debhurd0:xen/gnumach |
| 17870 |
|
| 17871 |
2009-12-22 root <[email protected]> |
| 17872 |
|
| 17873 |
Fix debugger trigger |
| 17874 |
* i386/i386/locore.S [MACH_XEN] (RET_OFFSET): Define to 8 |
| 17875 |
* xen/console.c (hypcnintr): On pound sign, call kdb_kintr instead of |
| 17876 |
panicing. |
| 17877 |
|
| 17878 |
2009-12-21 Samuel Thibault <[email protected]> |
| 17879 |
|
| 17880 |
Invoke debugger on duplicate port deallocation |
| 17881 |
* ipc/mach_port.c (mach_port_deallocate): Call SoftDebugger if |
| 17882 |
ipc_right_lookup_write was not succcessful and `name' is not |
| 17883 |
MACH_PORT_NULL or MACH_PORT_DEAD. |
| 17884 |
|
| 17885 |
Add a SoftDebugger function |
| 17886 |
* kern/debug.h (SoftDebugger): Add prototype. |
| 17887 |
* kern/debug.c (Debugger): Move code invoking debugging trap |
| 17888 |
to... |
| 17889 |
(SoftDebugger): ... new function. Print the passed message. |
| 17890 |
* kern/lock_mon.c (decl_simple_lock_data, retry_bit_lock): Call |
| 17891 |
SoftDebugger instead of Debugger. |
| 17892 |
* device/ds_routines.c (ds_device_open, device_read, |
| 17893 |
device_read_inband): Call SoftDebugger instead of Debugger. |
| 17894 |
* i386/i386at/model_dep.c (c_boot_entry): Call SoftDebugger |
| 17895 |
instead of Debugger. |
| 17896 |
* kern/syscall_sw.c (null_port, kern_invalid): Call SoftDebugger |
| 17897 |
instead of Debugger. |
| 17898 |
* vm/vm_object.c (vm_object_collapse): Call SoftDebugger instead |
| 17899 |
of Debugger. |
| 17900 |
|
| 17901 |
2009-12-19 Samuel Thibault <[email protected]> |
| 17902 |
|
| 17903 |
Document kdb_kintr stack manipulation |
| 17904 |
* i386/i386/locore.S: Document kdb_kintr stack manipulation. |
| 17905 |
|
| 17906 |
2009-12-19 root <[email protected]> |
| 17907 |
|
| 17908 |
Fix debugger trigger |
| 17909 |
* i386/i386/locore.S [MACH_XEN] (RET_OFFSET): Define to 8 |
| 17910 |
* xen/console.c (hypcnintr): On pound sign, call kdb_kintr instead of |
| 17911 |
panicing. |
| 17912 |
|
| 17913 |
2009-12-18 Guillem Jover <[email protected]> |
| 17914 |
|
| 17915 |
Add missing casts |
| 17916 |
* vm/vm_resident.c (vm_page_grab_contiguous_pages): Cast `prevmemp' |
| 17917 |
assignement to vm_page_t. |
| 17918 |
|
| 17919 |
Add missing function prototypes |
| 17920 |
* i386/i386/pcb.c (Load_context): New prototype. |
| 17921 |
* i386/i386at/lpr.c (lprpr_addr): Likewise. |
| 17922 |
|
| 17923 |
Use `unsigned char *' for byte buffers |
| 17924 |
* linux/src/drivers/net/apricot.c (struct i596_tbd): Change `data' |
| 17925 |
member type to `unsigned char *'. |
| 17926 |
(struct i596_rfd): Change `data' member type to `unsigned char'. |
| 17927 |
(print_eth): Change argument type to `unsigned char'. Remove |
| 17928 |
unneeded casts. |
| 17929 |
(set_multicast_list): Change cast for print_eth to `unsigned char *'. |
| 17930 |
|
| 17931 |
Mark macro arguments as used |
| 17932 |
* i386/intel/pmap.c [!NCPUS > 1] (INVALIDATE_TLB): Mark `pmap', `s' |
| 17933 |
and `e' arguments as used. |
| 17934 |
* i386/intel/pmap.h [!NCPUS > 1] (PMAP_ACTIVATE_KERNEL): Mark `my_cpu' |
| 17935 |
argument as used. |
| 17936 |
(PMAP_DEACTIVATE_KERNEL): Likewise. |
| 17937 |
(PMAP_ACTIVATE_USER): Likewise. Mark `th' argument as used. |
| 17938 |
(PMAP_DEACTIVATE_USER): Mark `thread' and `cpu' arguments as used. |
| 17939 |
|
| 17940 |
Missing `*' in assembler indirect lcall |
| 17941 |
* linux/src/arch/i386/kernel/bios32.c (bios32_service): Add `*' |
| 17942 |
in indirect lcall. |
| 17943 |
(check_pcibios, pci_bios_find_class, pci_bios_find_device): Likewise. |
| 17944 |
(pci_bios_read_config_byte, pci_bios_read_config_word): Likewise. |
| 17945 |
(pci_bios_read_config_dword, pci_bios_write_config_byte): Likewise. |
| 17946 |
(pci_bios_write_config_word, pci_bios_write_config_dword): Likewise. |
| 17947 |
|
| 17948 |
Interrupt handlers do not return any value |
| 17949 |
* i386/i386at/kd_mouse.c (kd_mouse_open): Change kdintr return type |
| 17950 |
to `void'. |
| 17951 |
(oldvect): Change return type to `void'. |
| 17952 |
* linux/dev/arch/i386/kernel/irq.c (linux_timer_intr): Likewise. |
| 17953 |
(intnull, prtnull, linux_intr, linux_bad_intr): Likewise. |
| 17954 |
(old_clock_handler): Likewise. |
| 17955 |
|
| 17956 |
Use selector definitions from Mach for Linux code |
| 17957 |
* linux/src/include/asm-i386/segment.h [MACH]: Include <machine/gdt.h> |
| 17958 |
and <machine/ldt.h>. |
| 17959 |
[MACH && MACH_HYP] (KERNEL_CS, KERNEL_DS): Remove macros. |
| 17960 |
[MACH && !MACH_HYP] (KERNEL_CS, KERNEL_DS): Likewise. |
| 17961 |
[MACH] (USER_CS, USER_DS): Likewise. |
| 17962 |
|
| 17963 |
Move linux/dev/include/asm-i386/segment.h to src tree |
| 17964 |
* linux/dev/include/asm-i386/segment.h: Move to ... |
| 17965 |
* linux/src/include/asm-i386/segment.h: ... here. |
| 17966 |
|
| 17967 |
Match function types with `struct tty' member functions |
| 17968 |
* i386/i386at/com.c (comstart): Change return type to `void'. |
| 17969 |
* i386/i386at/lpr.c (lprstop): Likewise. |
| 17970 |
|
| 17971 |
Use explicit type int when defining register variables |
| 17972 |
* linux/src/drivers/scsi/aha1542.c (WAIT, WAITd): Define variables |
| 17973 |
with explicit type `register int' and not just `register'. |
| 17974 |
|
| 17975 |
2009-12-16 Samuel Thibault <[email protected]> |
| 17976 |
|
| 17977 |
Add Xen support |
| 17978 |
2009-03-11 Samuel Thibault <[email protected]> |
| 17979 |
|
| 17980 |
* i386/i386/vm_param.h (VM_MIN_KERNEL_ADDRESS) [MACH_XEN]: Set to |
| 17981 |
0x20000000. |
| 17982 |
* i386/i386/i386asm.sym (pfn_list) [VM_MIN_KERNEL_ADDRESS == |
| 17983 |
LINEAR_MIN_KERNEL_ADDRESS]: Define to constant PFN_LIST. |
| 17984 |
|
| 17985 |
2009-02-27 Samuel Thibault <[email protected]> |
| 17986 |
|
| 17987 |
* i386/intel/pmap.c [MACH_HYP] (INVALIDATE_TLB): Call hyp_invlpg |
| 17988 |
instead of flush_tlb when e - s is compile-time known to be |
| 17989 |
PAGE_SIZE. |
| 17990 |
|
| 17991 |
2008-11-27 Samuel Thibault <[email protected]> |
| 17992 |
|
| 17993 |
* i386/configfrag.ac (enable_pae): Enable by default on the Xen |
| 17994 |
platform. |
| 17995 |
|
| 17996 |
2007-11-14 Samuel Thibault <[email protected]> |
| 17997 |
|
| 17998 |
* i386/i386at/model_dep.c (machine_relax): New function. |
| 17999 |
(c_boot_entry): Refuse to boot as dom0. |
| 18000 |
|
| 18001 |
2007-10-17 Samuel Thibault <[email protected]> |
| 18002 |
|
| 18003 |
* i386/i386/fpu.c [MACH_XEN]: Disable unused fpintr(). |
| 18004 |
|
| 18005 |
2007-08-12 Samuel Thibault <[email protected]> |
| 18006 |
|
| 18007 |
* Makefile.am (clib_routines): Add _START. |
| 18008 |
* i386/xen/xen_boothdr: Use _START for VIRT_BASE and PADDR_OFFSET. Add |
| 18009 |
GUEST_VERSION and XEN_ELFNOTE_FEATURES. |
| 18010 |
|
| 18011 |
2007-06-13 Samuel Thibault <[email protected]> |
| 18012 |
|
| 18013 |
* i386/i386/user_ldt.h (user_ldt) [MACH_XEN]: Add alloc field. |
| 18014 |
* i386/i386/user_ldt.c (i386_set_ldt) [MACH_XEN]: Round allocation of |
| 18015 |
LDT to a page, set back LDT pages read/write before freeing them. |
| 18016 |
(user_ldt_free) [MACH_XEN]: Likewise. |
| 18017 |
|
| 18018 |
2007-04-18 Samuel Thibault <[email protected]> |
| 18019 |
|
| 18020 |
* device/ds_routines.c [MACH_HYP]: Add hypervisor block and net devices. |
| 18021 |
|
| 18022 |
2007-02-19 Thomas Schwinge <[email protected]> |
| 18023 |
|
| 18024 |
* i386/xen/Makefrag.am [PLATFORM_xen] (gnumach_LINKFLAGS): Define. |
| 18025 |
|
| 18026 |
* Makefrag.am: Include `xen/Makefrag.am'. |
| 18027 |
* configure.ac: Include `xen/configfrag.ac'. |
| 18028 |
(--enable-platform): Support the `xen' platform. |
| 18029 |
* i386/configfrag.ac: Likewise. |
| 18030 |
* i386/Makefrag.am [PLATFORM_xen]: Include `i386/xen/Makefrag.am'. |
| 18031 |
|
| 18032 |
2007-02-19 Samuel Thibault <[email protected]> |
| 18033 |
Thomas Schwinge <[email protected]> |
| 18034 |
|
| 18035 |
* i386/xen/Makefrag.am: New file. |
| 18036 |
* xen/Makefrag.am: Likewise. |
| 18037 |
* xen/configfrag.ac: Likewise. |
| 18038 |
|
| 18039 |
2007-02-11 (and later dates) Samuel Thibault <[email protected]> |
| 18040 |
|
| 18041 |
Xen support |
| 18042 |
* Makefile.am (clib_routines): Add _start. |
| 18043 |
* Makefrag.am (include_mach_HEADERS): Add include/mach/xen.h. |
| 18044 |
* device/cons.c (cnputc): Call hyp_console_write. |
| 18045 |
* i386/Makefrag.am (libkernel_a_SOURCES): Move non-Xen source to |
| 18046 |
[PLATFORM_at]. |
| 18047 |
* i386/i386/debug_trace.S: Include <i386/xen.h> |
| 18048 |
* i386/i386/fpu.c [MACH_HYP] (init_fpu): Call set_ts() and clear_ts(), |
| 18049 |
do not enable CR0_EM. |
| 18050 |
* i386/i386/gdt.c: Include <mach/xen.h> and <intel/pmap.h>. |
| 18051 |
[MACH_XEN]: Make gdt array extern. |
| 18052 |
[MACH_XEN] (gdt_init): Register gdt with hypervisor. Request 4gb |
| 18053 |
segments assist. Shift la_shift. |
| 18054 |
[MACH_PSEUDO_PHYS] (gdt_init): Shift pfn_list. |
| 18055 |
* i386/i386/gdt.h [MACH_XEN]: Don't define KERNEL_LDT and LINEAR_DS. |
| 18056 |
* i386/i386/i386asm.sym: Include <i386/xen.h>. |
| 18057 |
[MACH_XEN]: Remove KERNEL_LDT, Add shared_info's CPU_CLI, CPU_PENDING, |
| 18058 |
CPU_PENDING_SEL, PENDING, EVTMASK and CR2. |
| 18059 |
* i386/i386/idt.c [MACH_HYP] (idt_init): Register trap table with |
| 18060 |
hypervisor. |
| 18061 |
* i386/i386/idt_inittab.S: Include <i386/i386asm.h>. |
| 18062 |
[MACH_XEN]: Set IDT_ENTRY() for hypervisor. Set trap table terminator. |
| 18063 |
* i386/i386/ktss.c [MACH_XEN] (ktss_init): Request exception task switch |
| 18064 |
from hypervisor. |
| 18065 |
* i386/i386/ldt.c: Include <mach/xen.h> and <intel/pmap.h> |
| 18066 |
[MACH_XEN]: Make ldt array extern. |
| 18067 |
[MACH_XEN] (ldt_init): Set ldt readwrite. |
| 18068 |
[MACH_HYP] (ldt_init): Register ldt with hypervisor. |
| 18069 |
* i386/i386/locore.S: Include <i386/xen.h>. Handle KERNEL_RING == 1 |
| 18070 |
case. |
| 18071 |
[MACH_XEN]: Read hyp_shared_info's CR2 instead of %cr2. |
| 18072 |
[MACH_PSEUDO_PHYS]: Add mfn_to_pfn computation. |
| 18073 |
[MACH_HYP]: Drop Cyrix I/O-based detection. Read cr3 instead of %cr3. |
| 18074 |
Make hypervisor call for pte invalidation. |
| 18075 |
* i386/i386/mp_desc.c: Include <mach/xen.h>. |
| 18076 |
[MACH_HYP] (mp_desc_init): Panic. |
| 18077 |
* i386/i386/pcb.c: Include <mach/xen.h>. |
| 18078 |
[MACH_XEN] (switch_ktss): Request stack switch from hypervisor. |
| 18079 |
[MACH_HYP] (switch_ktss): Request ldt and gdt switch from hypervisor. |
| 18080 |
* i386/i386/phys.c: Include <mach/xen.h> |
| 18081 |
[MACH_PSEUDO_PHYS] (kvtophys): Do page translation. |
| 18082 |
* i386/i386/proc_reg.h [MACH_HYP] (cr3): New declaration. |
| 18083 |
(set_cr3, get_cr3, set_ts, clear_ts): Implement macros. |
| 18084 |
* i386/i386/seg.h [MACH_HYP]: Define KERNEL_RING macro. Include |
| 18085 |
<mach/xen.h> |
| 18086 |
[MACH_XEN] (fill_descriptor): Register descriptor with hypervisor. |
| 18087 |
* i386/i386/spl.S: Include <i386/xen.h> and <i386/i386/asm.h> |
| 18088 |
[MACH_XEN] (pic_mask): #define to int_mask. |
| 18089 |
[MACH_XEN] (SETMASK): Implement. |
| 18090 |
* i386/i386/vm_param.h [MACH_XEN] (HYP_VIRT_START): New macro. |
| 18091 |
[MACH_XEN]: Set VM_MAX_KERNEL_ADDRESS to HYP_VIRT_START- |
| 18092 |
LINEAR_MIN_KERNEL_ADDRESS + VM_MIN_KERNEL_ADDRESS. Increase |
| 18093 |
KERNEL_STACK_SIZE and INTSTACK_SIZE to 4 pages. |
| 18094 |
* i386/i386at/conf.c [MACH_HYP]: Remove hardware devices, add hypervisor |
| 18095 |
console device. |
| 18096 |
* i386/i386at/cons_conf.c [MACH_HYP]: Add hypervisor console device. |
| 18097 |
* i386/i386at/model_dep.c: Include <sys/types.h>, <mach/xen.h>. |
| 18098 |
[MACH_XEN] Include <xen/console.h>, <xen/store.h>, <xen/evt.h>, |
| 18099 |
<xen/xen.h>. |
| 18100 |
[MACH_PSEUDO_PHYS]: New boot_info, mfn_list, pfn_list variables. |
| 18101 |
[MACH_XEN]: New la_shift variable. |
| 18102 |
[MACH_HYP] (avail_next, mem_size_init): Drop BIOS skipping mecanism. |
| 18103 |
[MACH_HYP] (machine_init): Call hyp_init(), drop hardware |
| 18104 |
initialization. |
| 18105 |
[MACH_HYP] (machine_idle): Call hyp_idle(). |
| 18106 |
[MACH_HYP] (halt_cpu): Call hyp_halt(). |
| 18107 |
[MACH_HYP] (halt_all_cpus): Call hyp_reboot() or hyp_halt(). |
| 18108 |
[MACH_HYP] (i386at_init): Initialize with hypervisor. |
| 18109 |
[MACH_XEN] (c_boot_entry): Add Xen-specific initialization. |
| 18110 |
[MACH_HYP] (init_alloc_aligned, pmap_valid_page): Drop zones skipping |
| 18111 |
mecanism. |
| 18112 |
* i386/intel/pmap.c: Include <mach/xen.h>. |
| 18113 |
[MACH_PSEUDO_PHYS] (WRITE_PTE): Do page translation. |
| 18114 |
[MACH_HYP] (INVALIDATE_TLB): Request invalidation from hypervisor. |
| 18115 |
[MACH_XEN] (pmap_map_bd, pmap_create, pmap_destroy, pmap_remove_range) |
| 18116 |
(pmap_page_protect, pmap_protect, pmap_enter, pmap_change_wiring) |
| 18117 |
(pmap_attribute_clear, pmap_unmap_page_zero, pmap_collect): Request MMU |
| 18118 |
update from hypervisor. |
| 18119 |
[MACH_XEN] (pmap_bootstrap): Request pagetable initialization from |
| 18120 |
hypervisor. |
| 18121 |
[MACH_XEN] (pmap_set_page_readwrite, pmap_set_page_readonly) |
| 18122 |
(pmap_set_page_readonly_init, pmap_clear_bootstrap_pagetable) |
| 18123 |
(pmap_map_mfn): New functions. |
| 18124 |
* i386/intel/pmap.h [MACH_XEN] (INTEL_PTE_GLOBAL): Disable global page |
| 18125 |
support. |
| 18126 |
[MACH_PSEUDO_PHYS] (pte_to_pa): Do page translation. |
| 18127 |
[MACH_XEN] (pmap_set_page_readwrite, pmap_set_page_readonly) |
| 18128 |
(pmap_set_page_readonly_init, pmap_clear_bootstrap_pagetable) |
| 18129 |
(pmap_map_mfn): Declare functions. |
| 18130 |
* i386/i386/xen.h: New file. |
| 18131 |
* i386/xen/xen.c: New file. |
| 18132 |
* i386/xen/xen_boothdr.S: New file. |
| 18133 |
* i386/xen/xen_locore.S: New file. |
| 18134 |
* include/mach/xen.h: New file. |
| 18135 |
* kern/bootstrap.c [MACH_XEN] (boot_info): Declare variable. |
| 18136 |
[MACH_XEN] (bootstrap_create): Rebase multiboot header. |
| 18137 |
* kern/debug.c: Include <mach/xen.h>. |
| 18138 |
[MACH_HYP] (panic): Call hyp_crash() without delay. |
| 18139 |
* linux/dev/include/asm-i386/segment.h [MACH_HYP] (KERNEL_CS) |
| 18140 |
(KERNEL_DS): Use ring 1. |
| 18141 |
* xen/block.c: New file. |
| 18142 |
* xen/block.h: Likewise. |
| 18143 |
* xen/console.c: Likewise. |
| 18144 |
* xen/console.h: Likewise. |
| 18145 |
* xen/evt.c: Likewise. |
| 18146 |
* xen/evt.h: Likewise. |
| 18147 |
* xen/grant.c: Likewise. |
| 18148 |
* xen/grant.h: Likewise. |
| 18149 |
* xen/net.c: Likewise. |
| 18150 |
* xen/net.h: Likewise. |
| 18151 |
* xen/ring.c: Likewise. |
| 18152 |
* xen/ring.h: Likewise. |
| 18153 |
* xen/store.c: Likewise. |
| 18154 |
* xen/store.h: Likewise. |
| 18155 |
* xen/time.c: Likewise. |
| 18156 |
* xen/time.h: Likewise. |
| 18157 |
* xen/xen.c: Likewise. |
| 18158 |
* xen/xen.h: Likewise. |
| 18159 |
* xen/public/COPYING: Import file from Xen. |
| 18160 |
* xen/public/callback.h: Likewise. |
| 18161 |
* xen/public/dom0_ops.h: Likewise. |
| 18162 |
* xen/public/domctl.h: Likewise. |
| 18163 |
* xen/public/elfnote.h: Likewise. |
| 18164 |
* xen/public/elfstructs.h: Likewise. |
| 18165 |
* xen/public/event_channel.h: Likewise. |
| 18166 |
* xen/public/features.h: Likewise. |
| 18167 |
* xen/public/grant_table.h: Likewise. |
| 18168 |
* xen/public/kexec.h: Likewise. |
| 18169 |
* xen/public/libelf.h: Likewise. |
| 18170 |
* xen/public/memory.h: Likewise. |
| 18171 |
* xen/public/nmi.h: Likewise. |
| 18172 |
* xen/public/physdev.h: Likewise. |
| 18173 |
* xen/public/platform.h: Likewise. |
| 18174 |
* xen/public/sched.h: Likewise. |
| 18175 |
* xen/public/sysctl.h: Likewise. |
| 18176 |
* xen/public/trace.h: Likewise. |
| 18177 |
* xen/public/vcpu.h: Likewise. |
| 18178 |
* xen/public/version.h: Likewise. |
| 18179 |
* xen/public/xen-compat.h: Likewise. |
| 18180 |
* xen/public/xen.h: Likewise. |
| 18181 |
* xen/public/xencomm.h: Likewise. |
| 18182 |
* xen/public/xenoprof.h: Likewise. |
| 18183 |
* xen/public/arch-x86/xen-mca.h: Likewise. |
| 18184 |
* xen/public/arch-x86/xen-x86_32.h: Likewise. |
| 18185 |
* xen/public/arch-x86/xen-x86_64.h: Likewise. |
| 18186 |
* xen/public/arch-x86/xen.h: Likewise. |
| 18187 |
* xen/public/arch-x86_32.h: Likewise. |
| 18188 |
* xen/public/arch-x86_64.h: Likewise. |
| 18189 |
* xen/public/io/blkif.h: Likewise. |
| 18190 |
* xen/public/io/console.h: Likewise. |
| 18191 |
* xen/public/io/fbif.h: Likewise. |
| 18192 |
* xen/public/io/fsif.h: Likewise. |
| 18193 |
* xen/public/io/kbdif.h: Likewise. |
| 18194 |
* xen/public/io/netif.h: Likewise. |
| 18195 |
* xen/public/io/pciif.h: Likewise. |
| 18196 |
* xen/public/io/protocols.h: Likewise. |
| 18197 |
* xen/public/io/ring.h: Likewise. |
| 18198 |
* xen/public/io/tpmif.h: Likewise. |
| 18199 |
* xen/public/io/xenbus.h: Likewise. |
| 18200 |
* xen/public/io/xs_wire.h: Likewise. |
| 18201 |
|
| 18202 |
2009-11-30 Samuel Thibault <[email protected]> |
| 18203 |
|
| 18204 |
Add stack-protector support |
| 18205 |
* kern/debug.c (__stack_chk_guard): New variable |
| 18206 |
(__stack_chk_fail): New function. |
| 18207 |
|
| 18208 |
Use gcc builtins for stdarg.h when available |
| 18209 |
* i386/include/mach/sa/stdarg.h [__GNUC__ >= 3] (va_list): |
| 18210 |
Typedef to __builtin_va_list. |
| 18211 |
(va_start): define to __builtin_va_start. |
| 18212 |
(va_end): define to __builtin_va_end. |
| 18213 |
(va_arg): define to __builtin_va_arg. |
| 18214 |
|
| 18215 |
2009-11-28 Samuel Thibault <[email protected]> |
| 18216 |
|
| 18217 |
Fix commit d088a062 |
| 18218 |
* vm/memory_object_proxy.c: New file. |
| 18219 |
|
| 18220 |
2009-11-28 Samuel Thibault <[email protected]> |
| 18221 |
|
| 18222 |
Add memory object proxies |
| 18223 |
Memory object proxies permit to replicate objects with different parameters, |
| 18224 |
like reduced privileged, different offset, etc. They are e.g. essential for |
| 18225 |
properly managing memory access permissions. |
| 18226 |
|
| 18227 |
2005-06-06 Marcus Brinkmann <[email protected]> |
| 18228 |
|
| 18229 |
* include/mach/mach4.defs: Add memory_object_create_proxy |
| 18230 |
interface. |
| 18231 |
* Makefile.in (vm-cfiles): Add memory_object_proxy.c. |
| 18232 |
* i386/include/mach/i386/vm_types.h (vm_offset_array_t): New type. |
| 18233 |
* include/mach/memory_object.h (memory_object_array_t): New type. |
| 18234 |
* vm/memory_object_proxy.c: New file. |
| 18235 |
* kern/ipc_kobject.h: New macro IKOT_PAGER_PROXY. Bump up macros |
| 18236 |
IKOT_UNKNOWN and IKOT_MAX_TYPE. |
| 18237 |
* kern/ipc_kobject.c (ipc_kobject_notify): Call |
| 18238 |
memory_object_proxy_notify for IKOT_PAGER_PROXY. |
| 18239 |
* vm/vm_init.c (vm_mem_init): Call memory_object_proxy_init. |
| 18240 |
* vm/vm_user.c (vm_map): Implement support for proxy memory |
| 18241 |
objects. |
| 18242 |
|
| 18243 |
2009-11-28 Samuel Thibault <[email protected]> |
| 18244 |
|
| 18245 |
Add -H option to halt on panic |
| 18246 |
2005-12-29 Soeren D. Schulze <[email protected]> |
| 18247 |
|
| 18248 |
* i386/i386at/model_dep.c (reboot_on_panic) [!MACH_KBD]: New variable. |
| 18249 |
(c_boot_entry) [!MACH_KBD]: Set reboot_on_panic to 0 if kernel_cmdline |
| 18250 |
contains '-H'. |
| 18251 |
* kern/debug.c (panic): Call halt_all_cpus with reboot_on_panic as |
| 18252 |
argument. |
| 18253 |
|
| 18254 |
2009-11-28 Samuel Thibault <[email protected]> |
| 18255 |
|
| 18256 |
Add sis900 driver |
| 18257 |
2005-05-01 Andreas B. Mundt <[email protected]> |
| 18258 |
|
| 18259 |
* i386/README-Drivers: Likewise. |
| 18260 |
* i386/linux/Makefile.in (linux-net-files): Added 'sis900'. |
| 18261 |
* i386/linux/configure.ac (sis900): New driver. |
| 18262 |
* linux/dev/drivers/net/Space.c: Add conditional probes 'sis900' |
| 18263 |
driver. |
| 18264 |
* linux/src/drivers/net/sis900.c: New file. |
| 18265 |
* linux/src/drivers/net/sis900.h: Likewise. |
| 18266 |
|
| 18267 |
2009-11-28 Samuel Thibault <[email protected]> |
| 18268 |
|
| 18269 |
Add XMM FPU registers save/restore support. |
| 18270 |
* i386/include/mach/i386/fp_reg.h (struct i386_fp_regs): Invert array |
| 18271 |
indices. |
| 18272 |
(struct i386_xfp_save): New structure. |
| 18273 |
(FP_387X): New macro. |
| 18274 |
* i386/i386/thread.h (struct i386_fpsave_state): Add xfp_save_state |
| 18275 |
member, keep existing fp_save_state and fp_regs members in an unnamed |
| 18276 |
union member. Move fp_valid member to the end of the structure. |
| 18277 |
* i386/i386/fpu.h (fxsave, fxrstor): New macros. |
| 18278 |
(fpu_save_context): Use fxsave() when FPU is FXSR-capable. |
| 18279 |
* i386/i386/fpu.c: Include <i386/locore.h> |
| 18280 |
(mxcsr_feature_mask): New variable. |
| 18281 |
(fp_save, fp_load): Add declaration. |
| 18282 |
(init_fpu): Add FXSR-capable FPU detection. |
| 18283 |
(fpu_module_init): Request 16-byte alignment to zinit() for |
| 18284 |
i386_fpsave_state structures. |
| 18285 |
(twd_i387_to_fxsr, twd_fxsr_to_i387): New functions. |
| 18286 |
(fpu_set_state): Convert FPU state when FPU is FXSR-capable. |
| 18287 |
(fpu_get_state): Convert FPU state when FPU is FXSR-capable. |
| 18288 |
(fpexterrflt): Pass to i386_exception either xfp_save_state or |
| 18289 |
fp_save_state according to FPU type. |
| 18290 |
(fpastintr): Likewise. |
| 18291 |
(fp_load): Likewise. Use fxrstor() when FPU is FXSR-capable. |
| 18292 |
(fp_save): Use fxsave() when FPU is FXSR-capable. |
| 18293 |
(fp_state_alloc): Add FXSR-aware initialization. |
| 18294 |
|
| 18295 |
Fix debugging message |
| 18296 |
* i386/i386/fpu.c (fphandleerr): Fix debugging message. |
| 18297 |
|
| 18298 |
Add native FPU error support |
| 18299 |
* i386/i386/fpu.c (init_fpu): Enable CR0_NE when processor is at |
| 18300 |
least i486. |
| 18301 |
(fpintr): Move code handling the FPU state to... |
| 18302 |
(fphandleerr): New function. |
| 18303 |
(fpexterrflt): Rename into... |
| 18304 |
(fpastintr): New function. |
| 18305 |
(fpexterrflt): Reintroduce function, calls fphandleerr then |
| 18306 |
raises exception. |
| 18307 |
* i386/i386/fpu.h (fpastintr): Add prototype. |
| 18308 |
* i386/i386/trap.c (i386_astintr): Call fpastintr instead of |
| 18309 |
fpexterrflt. |
| 18310 |
|
| 18311 |
Panic when no FPU is available |
| 18312 |
* i386/i386/fpu.c (init_fpu): Panic if no FPU is available. |
| 18313 |
|
| 18314 |
Initialize FPU in MS-DOS compatibility mode |
| 18315 |
* i386/i386/fpu.c (init_fpu): Make sure CR0_NE is dropped. |
| 18316 |
|
| 18317 |
2009-11-22 Samuel Thibault <[email protected]> |
| 18318 |
|
| 18319 |
Declare memcmp function |
| 18320 |
* include/string.h (memcmp): New prototype. |
| 18321 |
|
| 18322 |
Do not fail if no PTE maps virtual address 0 |
| 18323 |
* i386/intel/pmap.c (pmap_unmap_page_zero): Do not fail if no PTE maps |
| 18324 |
virtual address 0. |
| 18325 |
|
| 18326 |
Remove (vm_offset_t) casts from constants |
| 18327 |
* i386/i386/vm_param.h (VM_MIN_KERNEL_ADDRESS, VM_MAX_KERNEL_ADDRESS, |
| 18328 |
LINEAR_MIN_KERNEL_ADDRESS, LINEAR_MAX_KERNEL_ADDRESS): Remove |
| 18329 |
(vm_offset_t) cast, use UL suffix instead. |
| 18330 |
* i386/include/mach/i386/vm_param.h (VM_MIN_ADDRESS, |
| 18331 |
VM_MAX_ADDRESS): Remove (vm_offset_t) cast, use UL suffix instead. |
| 18332 |
|
| 18333 |
Really call startrtclock() with an active thread. |
| 18334 |
* kern/startup.c (cpu_launch_first_thread): Call startrtclock |
| 18335 |
really after starting at least one thread. |
| 18336 |
|
| 18337 |
Add pmap parameter to INVALIDATE_TLB |
| 18338 |
* i386/intel/pmap.c (INVALIDATE_TLB): Add pmap parameter. |
| 18339 |
(PMAP_UPDATE_TLBS): Pass pmap parameter. |
| 18340 |
(process_pmap_updates): Likewise. |
| 18341 |
(pmap_unmap_page_zero): Use INVALIDATE_TLB instead of hardcoding |
| 18342 |
it. |
| 18343 |
|
| 18344 |
Add phys_first_addr and phys_last_addr declaration |
| 18345 |
* i386/i386/model_dep.h (phys_first_addr, phys_last_addr): New |
| 18346 |
declarations. |
| 18347 |
* i386/i386/trap.c: Include <i386/model_dep.h> |
| 18348 |
(user_trap): Remove extern declaration of phys_last_addr. |
| 18349 |
* i386/intel/pmap.c: Include <i386/model_dep.h> |
| 18350 |
(phys_first_addr, phys_last_addr): Remove extern declaration. |
| 18351 |
|
| 18352 |
Use typeof(boot_info) |
| 18353 |
* i386/i386at/model_dep.c (i386at_init): Use typeof(boot_info) |
| 18354 |
instead of hardcoding struct multiboot_info*. |
| 18355 |
|
| 18356 |
Fix early interrupt crash |
| 18357 |
* i386/i386at/model_dep.c (i386at_init): Move int_stack_high |
| 18358 |
assignation to before setting up interrupts. |
| 18359 |
|
| 18360 |
Add missing phystokv/kvtophys conversions |
| 18361 |
* i386/i386/mp_desc.c (interrupt_stack_alloc): Apply phystokv to |
| 18362 |
stack_start. |
| 18363 |
* i386/i386at/model_dep.c (i386at_init): Apply phystokv to |
| 18364 |
memory allocated to duplicate multiboot information. Apply |
| 18365 |
_kvtophys before calling set_cr3. Apply phystokv to |
| 18366 |
phys_last_addr before assigning to int_stack_high. |
| 18367 |
* i386/intel/pmap.c (pmap_bootstrap): Apply phystokv to |
| 18368 |
phys_last_addr, use kernel_virtual_start instead of |
| 18369 |
phys_last_addr. Apply phystokv to allocated bootstrap page |
| 18370 |
table pages. Apply _kvtophys to page table pointers before |
| 18371 |
writing into page table. |
| 18372 |
(pmap_enter): Apply phystokv to allocated page table page, apply |
| 18373 |
kvtophys to deallocated page table page. |
| 18374 |
|
| 18375 |
Show command lines in task list |
| 18376 |
* Makefile.am (clib_routines): Add memcmp. |
| 18377 |
* i386/i386/db_machdep.h (DB_GNUMACH_TASK_NAME): New macro. |
| 18378 |
* i386/i386/db_interface.c (GNU): New macro. |
| 18379 |
[GNU] (looks_like_command): New function. |
| 18380 |
(db_task_name): When task map is kernel_pmap, return |
| 18381 |
DB_GNUMACH_TASK_NAME. |
| 18382 |
[GNU] (db_task_name): Use a GNU/Hurd-specific heuristic to get |
| 18383 |
argv[] of a task. |
| 18384 |
|
| 18385 |
Replace phys_mem_va with VM_MIN_KERNEL_ADDRESS |
| 18386 |
* i386/i386/vm_param.h (phystokv): Use VM_MIN_KERNEL_ADDRESS |
| 18387 |
instead of phys_mem_va. |
| 18388 |
(_kvtophys): New macro. |
| 18389 |
* i386/i386at/model_dep.c (phys_mem_va): Remove variable. |
| 18390 |
|
| 18391 |
Avoid confusion between global and local ldt vars |
| 18392 |
* i386/i386/pcb.c (switch_ktss): Rename ldt variable into tldt. |
| 18393 |
|
| 18394 |
Do not assume that VM_MIN_KERNEL_ADDRESS is 0 |
| 18395 |
* i386/i386/vm_param.h (VM_MAX_KERNEL_ADDRESS): Add |
| 18396 |
VM_MIN_KERNEL_ADDRESS. |
| 18397 |
(kvtolin): Subtract VM_MIN_KERNEL_ADDRESS. |
| 18398 |
(lintokv): Add VM_MIN_KERNEL_ADDRESS. |
| 18399 |
* i386/i386at/model_dep.c (mem_size_init): Subtract |
| 18400 |
VM_MIN_KERNEL_ADDRESS in computation of phys_last_addr. |
| 18401 |
(i386at_init): Use VM_MIN_KERNEL_ADDRESS instead of 0 as |
| 18402 |
argument of lin2pdenum. |
| 18403 |
|
| 18404 |
Rewamp spl.h |
| 18405 |
* i386/i386/spl.h (splnet, splbio, spl7, splx_cli): Add |
| 18406 |
prototypes. |
| 18407 |
|
| 18408 |
Do not assume that VM_MIN_KERNEL_ADDRESS is 0 |
| 18409 |
* i386/i386/gdt.c (gdt_init): Subtract VM_MIN_KERNEL_ADDRESS |
| 18410 |
from LINEAR_MIN_KERNEL_ADDRESS to avoid assuming the former |
| 18411 |
being 0. |
| 18412 |
|
| 18413 |
Fix db_search_null loop |
| 18414 |
* i386/i386/db_interface.c (db_search_null): Do not decrease |
| 18415 |
vaddr twice. |
| 18416 |
|
| 18417 |
Introduce KERNEL_RING |
| 18418 |
* i386/i386/seg.h (KERNEL_RING): New macro, set to 0. |
| 18419 |
(ACC_PL_K, SEL_PL_K): Use KERNEL_RING instead of assuming 0. |
| 18420 |
* i386/i386/gdt.h (KERNEL_CS, KERNEL_DS): Likewise. |
| 18421 |
* i386/i386/db_interface.c (kdb_trap, kdb_kentry): Likewise. |
| 18422 |
* i386/i386/kttd_interface.c (kttd_trap, kttd_netentry): Likewise. |
| 18423 |
* i386/i386/i386asm.sym: Add KERNEL_RING expression. |
| 18424 |
|
| 18425 |
Rename kd_atoi into mach_atoi |
| 18426 |
* i386/i386at/kd.c: Include <util/atoi.h> |
| 18427 |
(DEFAULT): Remove, replaced by MACH_ATOI_DEFAULT. |
| 18428 |
(kd_parserest): Use mach_atoi instead of kd_atoi and MACH_ATOI_DEFAULT |
| 18429 |
instead of DEFAULT. |
| 18430 |
(kd_atoi): Move and rename function to... |
| 18431 |
* util/atoi.c: ... mach_atoi in new file. |
| 18432 |
* i386/i386at/kd.h (kd_atoi): Move and rename declaration to... |
| 18433 |
* util/atoi.h: ... mach_atoi in new file. |
| 18434 |
* Makefrag.am (libkernel_a_SOURCES): Add util/atoi.c |
| 18435 |
|
| 18436 |
2009-11-16 Guillem Jover <[email protected]> |
| 18437 |
|
| 18438 |
Update dependency patch for Automake 1.10.2, 1.11, and thereabouts. |
| 18439 |
* config.status.dep.patch: Refresh. |
| 18440 |
|
| 18441 |
2009-11-11 Zheng Da <[email protected]> |
| 18442 |
|
| 18443 |
Fix a bug in vm_page_grab_contiguous_pages. |
| 18444 |
* vm/vm_resident.c (vm_page_grab_contiguous_pages): Maintain the free vm page queue correctly. |
| 18445 |
|
| 18446 |
2009-11-01 Samuel Thibault <[email protected]> |
| 18447 |
|
| 18448 |
Show EATA probing progression |
| 18449 |
* linux/src/drivers/scsi/eata.c (port_detect): Print the port being |
| 18450 |
probed. |
| 18451 |
|
| 18452 |
2009-10-26 Samuel Thibault <[email protected]> |
| 18453 |
|
| 18454 |
Fix VM_MAX_ADDRESS default |
| 18455 |
* i386/include/mach/i386/vm_param.h (VM_MAX_ADDRESS): Set back to 0xc0000000 by |
| 18456 |
default. |
| 18457 |
|
| 18458 |
Make tuning VM_MAX_ADDRESS trivial |
| 18459 |
* i386/i386/vm_param.h (LINEAR_MIN_KERNEL_ADDRESS): Set to |
| 18460 |
VM_MAX_ADDRESS instead of hardcoding to 0xc0000000. |
| 18461 |
(VM_MAX_KERNEL_ADDRESS): Set to LINEAR_MAX_KERNEL_ADDRESS - |
| 18462 |
LINEAR_MIN_KERNEL_ADDRESS instead of hardcoding to 0x40000000. |
| 18463 |
* i386/include/mach/i386/vm_param.h: Document how it may be tuned. |
| 18464 |
|
| 18465 |
Fix build |
| 18466 |
* i386/i386at/com.h (comtimer): Fix prototype of comtimer. |
| 18467 |
|
| 18468 |
2009-10-25 Samuel Thibault <[email protected]> |
| 18469 |
|
| 18470 |
Fix warning |
| 18471 |
* i386/i386at/autoconf.c: Include <i386/pic.h> even when [!LINUX_DEV]. |
| 18472 |
|
| 18473 |
Fix warning |
| 18474 |
* i386/i386/trap.h: Include <mach/mach_types.h> |
| 18475 |
|
| 18476 |
Fix warning |
| 18477 |
* i386/i386/pcb.c (thread_setstatus): Comment out state variable |
| 18478 |
declaration. |
| 18479 |
|
| 18480 |
Fix warning |
| 18481 |
* device/net_io.c (net_set_filter): Cast filter into bpf_insn_t for |
| 18482 |
bpf_eq call. |
| 18483 |
|
| 18484 |
Fix warning |
| 18485 |
* i386/i386/locore.S (TIME_INT_ENTRY): Fix comment. |
| 18486 |
|
| 18487 |
Fix warning |
| 18488 |
* i386/intel/pmap.c (i): Declare only when [NCPUS > 1]. |
| 18489 |
|
| 18490 |
2009-10-20 Samuel Thibault <[email protected]> |
| 18491 |
|
| 18492 |
Fix warnings |
| 18493 |
* devices/io_reqs.h (io_req): Set type of io_alloc_size field to |
| 18494 |
vm_size_t. |
| 18495 |
* device/ds_routines.c (device_write_dealloc): Remove cast of |
| 18496 |
io_alloc_size field. |
| 18497 |
* device/subrs.c (brelse): Likewise. |
| 18498 |
|
| 18499 |
Fix warnings |
| 18500 |
* device/chario.c (ttypush): Set parameter type to void * instead of |
| 18501 |
struct tty *, and implicitly cast the former into the latter instead. |
| 18502 |
* i386/i386at/com.c: Include <kern/mach_clock.h>. |
| 18503 |
(timeout, ttrstrt): Remove declarations. |
| 18504 |
(comtimer): Add unused void * parameter. |
| 18505 |
(comopen): Pass NULL to comtimer function. |
| 18506 |
* i386/i386at/kd.h (kd_belloff): Add unused void * parameter. |
| 18507 |
* i386/i386at/kd.c (timeout): Remove declaration. |
| 18508 |
(kd_belloff): Add unused void * parameter. |
| 18509 |
(feep, kdsetbell): Pass NULL to kd_belloff function. |
| 18510 |
* i386/i386at/lpr.c: Include <mach_clock.h>. |
| 18511 |
(timeout, ttrstrt): Remove declarations. |
| 18512 |
* kern/mach_clock.c (softclock, timeout, untimeout): Set parameter |
| 18513 |
type of fcn function pointer to void * instead of char *. Set type |
| 18514 |
of param to void * instead of char *. |
| 18515 |
* kern/mach_clock.h (timer_elt): Set parameter type of fcn member |
| 18516 |
to void * instead of char *. Set time of param member to void * instead |
| 18517 |
of char *. |
| 18518 |
(timeout): Set parameter type of fcn function pointer parameter to void |
| 18519 |
* instead of char *. |
| 18520 |
(untimeout): Likewise, set type of param parameter to void * instead of |
| 18521 |
char *. |
| 18522 |
* kern/sched_prim.c (sched_init): Remove cast of recompute_priorities. |
| 18523 |
Replace (char *)0 with NULL. |
| 18524 |
(thread_timeout): Set parameter type to void * instead of thread_t, and |
| 18525 |
implicitly cast the former into the latter instead. |
| 18526 |
(thread_timeout_setup): Remove cast of thread_timeout, cast |
| 18527 |
thread_depress_timeout into (void (*) (void*)). Remove cast of thread. |
| 18528 |
(thread_recompute_priorities): Add unused void * parameter. |
| 18529 |
|
| 18530 |
Fix warnings |
| 18531 |
* device/tty.h (tty): Set type of t_ispeed and t_ospeed members to |
| 18532 |
unsigned char instead of (potentially signed) char. |
| 18533 |
|
| 18534 |
Fix warnings |
| 18535 |
* vm/vm_resident.c (vm_page_grab_contiguous_pages): Remove unused |
| 18536 |
count_zeroes and not_found_em labels. |
| 18537 |
|
| 18538 |
Fix warning |
| 18539 |
* vm/vm_pageout.c (vm_pageout_scan): Remove unused Restart label. |
| 18540 |
|
| 18541 |
Fix warning |
| 18542 |
* vm/vm_map.c (vm_map_lookup): Add braces to fix readability. |
| 18543 |
|
| 18544 |
Fix warning |
| 18545 |
* kern/thread.c (_s_): Remove unused variable. |
| 18546 |
|
| 18547 |
Fix warnings |
| 18548 |
* kern/bootstrap.c (task_insert_send_right): Remove spurious cast of |
| 18549 |
port into ipc_object_t. |
| 18550 |
(load_protect_text, load_fault_in_text, boot_map, |
| 18551 |
load_bootstrap_symbols): Comment out unused variables and function. |
| 18552 |
(read_exec): Comment out unused user_map variable. |
| 18553 |
|
| 18554 |
Fix boot from grub2 with more than 800MiB memory |
| 18555 |
* i386/i386at/model_dep.c (init_alloc_aligned): Add declaration. |
| 18556 |
(i386at_init): Use init_alloc_aligned to allocate memory to save the |
| 18557 |
content pointed by boot_info: cmdline, mods_addr, mod_start, and string. |
| 18558 |
Set kernel_cmdline to the newly allocated string. |
| 18559 |
(c_boot_entry): Do not set kernel_cmdline. |
| 18560 |
|
| 18561 |
Better estimate avail_remaining |
| 18562 |
* i386/i386at/model_dep.c (mem_size_init): Move avail_remaining computation to |
| 18563 |
after all phys_last_addr corrections. |
| 18564 |
|
| 18565 |
2009-10-18 Samuel Thibault <[email protected]> |
| 18566 |
|
| 18567 |
Revert "Fix multiboot compliancy concerning x86 D flag" |
| 18568 |
This reverts commit de00e82b8c4491a4ff3320c0ddd80ac91ed0977b. |
| 18569 |
|
| 18570 |
Flags already get cleared using push/pop a few instructions later. |
| 18571 |
|
| 18572 |
2009-10-17 Samuel Thibault <[email protected]> |
| 18573 |
|
| 18574 |
Fix multiboot compliancy concerning x86 D flag |
| 18575 |
i386/i386at/boothdr.S (boot_entry): Clear D flag. |
| 18576 |
|
| 18577 |
2009-10-14 Samuel Thibault <[email protected]> |
| 18578 |
|
| 18579 |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumach |
| 18580 |
|
| 18581 |
Update constants to nowadays standards |
| 18582 |
kern/zalloc.c (zone_map_size): Increase to 64MiB. |
| 18583 |
i386/i386at/model_dep.c (mem_size_init): Reduce cap to 1/6 of memory |
| 18584 |
space to save room for zalloc area. |
| 18585 |
linux/src/drivers/block/ide.h (INITIAL_MULT_COUNT): Set to 16. |
| 18586 |
vm/vm_map.h (VM_MAP_COPY_PAGE_LIST_MAX): Set to 64. |
| 18587 |
vm/vm_object.c (vm_object_cached_max): Set to 4000. |
| 18588 |
|
| 18589 |
2009-10-14 Thomas Schwinge <[email protected]> |
| 18590 |
|
| 18591 |
Merge branch 'master-zhengda' |
| 18592 |
|
| 18593 |
2009-10-14 Zheng Da <[email protected]> |
| 18594 |
|
| 18595 |
Apply patch #6851: fix a bug in BPF * net_io.c (net_filter): Correct the amount of data of a packet accepted by BPF. |
| 18596 |
|
| 18597 |
2009-10-14 Samuel Thibault <[email protected]> |
| 18598 |
|
| 18599 |
Fix yet more allocation failures during gc |
| 18600 |
kern/zalloc.c (zone_gc): Allocate and free two vm_map_kentry_zone elements to |
| 18601 |
make sure the gc will be able to allocate two in vm_map_delete. |
| 18602 |
|
| 18603 |
Revert spurious part of 909c941d |
| 18604 |
|
| 18605 |
Fix db kernel memory access |
| 18606 |
i386/i386/db_interface.c (db_read_bytes): Also check addr against |
| 18607 |
VM_MAX_KERNEL_ADDRESS. |
| 18608 |
|
| 18609 |
Fix macro escapes |
| 18610 |
i386/intel/pmap.c (INVALIDATE_TLB): Fix macro escapes |
| 18611 |
|
| 18612 |
Fix allocation failure during gc |
| 18613 |
kern/zalloc.c (zone_gc): Allocate and free a vm_map_kentry_zone element to make |
| 18614 |
sure the gc will be able to allocate one for vm_map_delete. |
| 18615 |
|
| 18616 |
More restrictive requirements on zone alignment |
| 18617 |
kern/zalloc.c (zinit): Panic if requested alignment doesn't match page |
| 18618 |
size and list elements. |
| 18619 |
|
| 18620 |
Fix return with lock held |
| 18621 |
vm/vm_map.c (vm_map_copy_overwrite): Unlock dst_map before returning. |
| 18622 |
|
| 18623 |
Fix return with lock held |
| 18624 |
vm/vm_map.c (vm_map_enter): Use RETURN instead of return to unlock the |
| 18625 |
map before returning. |
| 18626 |
|
| 18627 |
Make local variable static |
| 18628 |
kern/lock.c (lock_wait_time): Add static qualifier. |
| 18629 |
|
| 18630 |
Advertise memory size truncations |
| 18631 |
i386/i386at/model_dep.c (mem_size_init): Advertise memory size |
| 18632 |
truncations. |
| 18633 |
|
| 18634 |
2009-09-27 Samuel Thibault <[email protected]> |
| 18635 |
|
| 18636 |
Disable CMD-640 support |
| 18637 |
It messes too much with probing and brings hang issue. |
| 18638 |
|
| 18639 |
* i386/linux/dev/include/linux/autoconf.h |
| 18640 |
(CONFIG_BLK_DEV_CMD640, CONFIG_BLK_DEV_CMD640_ENHANCED): |
| 18641 |
Undefine macros. |
| 18642 |
|
| 18643 |
2009-07-11 Thomas Schwinge <[email protected]> |
| 18644 |
|
| 18645 |
Switch to the new ChangeLog style. |
| 18646 |
* ChangeLog: Wipe out content, and add instructions about how to get it back. |
| 18647 |
* ChangeLog.0: Remove file. |
| 18648 |
* ChangeLog.00: Likewise. |
| 18649 |
|
| 18650 |
2009-02-26 Samuel Thibault <[email protected]> |
| 18651 |
|
| 18652 |
* i386/i386/prog_reg.h (invlpg_linear): Rename macro into... |
| 18653 |
(invlpg_linear_range): ... this. |
| 18654 |
(invlpg_linear): New macro. |
| 18655 |
* i386/intel/pmap.c (INVALIDATE_TLB): Call invlpg_linear instead |
| 18656 |
of flush_tlb when e - S is compile-time known to be PAGE_SIZE, |
| 18657 |
instead of run-time known to be less than 32 * PAGE_SIZE. |
| 18658 |
|
| 18659 |
2009-01-05 Samuel Thibault <[email protected]> |
| 18660 |
|
| 18661 |
* i386/i386/gdt.h (LINEAR_DS): New macro. |
| 18662 |
* i386/i386/gdt.c (gdt_init): Initialize LINEAR_DS descriptor. |
| 18663 |
* i386/i386/proc_reg.h (invlpg_user): Rename macro into... |
| 18664 |
(invlpg_linear): ... this. Use movw instead of movl to set KERNEL_DS |
| 18665 |
selector. Use LINEAR_DS selector instead of USER_DS selector. |
| 18666 |
* i386/intel/pmap.c (INVALIDATE_TLB): Call invlpg_linear instead of |
| 18667 |
invlpg_user. For now, disable use of invlpg. |
| 18668 |
|
| 18669 |
2008-12-30 Samuel Thibault <[email protected]> |
| 18670 |
|
| 18671 |
* i386/i386/proc_reg.h [__ASSEMBLER__ && __GNUC__]: Include |
| 18672 |
<i386/gdt.h> and <i386/ldt.h> |
| 18673 |
(invlpg_user): New macro. |
| 18674 |
* i386/intel/pmap.c (INVALIDATE_TLB): Call invlpg_user instead |
| 18675 |
of invlpg. |
| 18676 |
(pmap_remove, pmap_page_protect, pmap_protect, pmap_enter, |
| 18677 |
pmap_collect, phys_attribute_clear): Call PMAP_UPDATE_TLBS |
| 18678 |
after pde update instead of before. |
| 18679 |
|
| 18680 |
2008-12-29 Samuel Thibault <[email protected]> |
| 18681 |
|
| 18682 |
* i386/intel/pmap.c (pmap_bootstrap): Extend kernel virtual memory to |
| 18683 |
at least the size of the physical memory. |
| 18684 |
|
| 18685 |
2008-12-05 Samuel Thibault <[email protected]> |
| 18686 |
|
| 18687 |
* vm/vm_fault.c (vm_fault_page): Print value returned |
| 18688 |
memory_object_data_request as %x instead of %d. |
| 18689 |
|
| 18690 |
2008-11-15 Shakthi Kannan <[email protected]> |
| 18691 |
|
| 18692 |
* device/ds_routines.h (device_reference, device_deallocate): Add |
| 18693 |
function prototypes. |
| 18694 |
* kern/task.c (task_create): Moved unused i variable inside FAST_TAS. |
| 18695 |
* vm/vm_map.h (vm_map_copy_page_discard): Add function prototype. |
| 18696 |
* vm/vm_kern.c (projected_buffer_deallocate): Give &map->hdr |
| 18697 |
instead of map to _vm_map_clip_start and _vm_map_clip_end functions. |
| 18698 |
|
| 18699 |
2008-12-01 Samuel Thibault <[email protected]> |
| 18700 |
|
| 18701 |
* device/device_emul.h (device_emulation_ops): Turn back reference, |
| 18702 |
dealloc, dev_to_port, write_trap and writev_trap into taking a void*, |
| 18703 |
as they do not always take a mach_device_t. |
| 18704 |
* device/ds_routines.c (mach_device_emulation_ops): Cast |
| 18705 |
mach_device_reference, mach_device_deallocate, |
| 18706 |
mach_convert_device_to_port, device_write_trap and device_writev_trap |
| 18707 |
to (void*) to make them accept a void* argument. |
| 18708 |
* linux/pcmcia-cs/glue/ds.c (device_deallocate): Rename function |
| 18709 |
into... |
| 18710 |
(ds_device_deallocate): ... this. |
| 18711 |
(dev_to_port): Call ds_device_deallocate instead of device_deallocate. |
| 18712 |
(linux_pcmcia_emulation_ops): Use ds_device_deallocate instead of |
| 18713 |
device_deallocate, cast mach_device_reference to (void*) to make it |
| 18714 |
accept a void* argument. |
| 18715 |
|
| 18716 |
2008-11-28 Thomas Schwinge <[email protected]> |
| 18717 |
|
| 18718 |
* doc/Makefrag.am: Only advertize updating the web pages on |
| 18719 |
gnumach-1-branch. |
| 18720 |
|
| 18721 |
2008-11-27 Samuel Thibault <[email protected]> |
| 18722 |
|
| 18723 |
* i386/i386/proc_reg.h (invlpg): New macro. |
| 18724 |
* i386/intel/pmap.c (INVALIDATE_TLB): If portion to be flushed is less |
| 18725 |
than 32 pages, use calls to invlpg instead of flush_tlb. |
| 18726 |
|
| 18727 |
2008-11-23 Samuel Thibault <[email protected]> |
| 18728 |
|
| 18729 |
* i386/i386/proc_reg.h (get_cr0, get_cr2, get_cr3, get_cr4, get_tr, |
| 18730 |
get_ldt): Add volatile qualifier to asm statement to prevent gcc from |
| 18731 |
optimizing it away since there seems to be no way to clobber these |
| 18732 |
properly in the set_* macros. |
| 18733 |
|
| 18734 |
2008-11-17 Thomas Schwinge <[email protected]> |
| 18735 |
|
| 18736 |
* Makefile.am (install_sh, INSTALL): Point to `build-aux/install-sh'. |
| 18737 |
Make use of its `-C' option. |
| 18738 |
|
| 18739 |
* configure.ac: Require GNU Automake 1.10.1. |
| 18740 |
* Makefile.am: Adapt. |
| 18741 |
* Makefile.correct_output_files_for_.S_files.patch: Remove. |
| 18742 |
|
| 18743 |
2008-07-19 Barry deFreese <[email protected]> |
| 18744 |
|
| 18745 |
* device/device_emul.h (struct device_emulation_ops): Make members |
| 18746 |
reference, dealloc, dev_to_port, write_trap, and writev_trap take |
| 18747 |
mach_device_t parameter instead of void *. |
| 18748 |
* i386/i386at/autoconf.c: Make forward declarations for comintr() |
| 18749 |
and lprintr() match prototype. Add brackets around initialization |
| 18750 |
members for bus_ctlr and bus_device structs. |
| 18751 |
* i386/i386at/conf.c (dev_name_list): Pass nomap instead of nulldev |
| 18752 |
for map field. |
| 18753 |
* i386/i386at/pic_isa.c (intnull, fpintr, hardclock, kdintr, |
| 18754 |
prtnull): Declare the type of the value returned by functions to void. |
| 18755 |
|
| 18756 |
2008-11-13 Thomas Schwinge <[email protected]> |
| 18757 |
|
| 18758 |
[task #8135 -- PAE for GNU Mach] |
| 18759 |
* i386/configfrag.ac (enable_pae): Add checks: this is ix86-only. |
| 18760 |
* doc/mach.texi (Configuration): Document the new option. |
| 18761 |
|
| 18762 |
2008-11-11 Shakthi Kannan <[email protected]> |
| 18763 |
|
| 18764 |
* kern/eventcount.c (evc_wait_clear): Remove unused variable 'ret'. |
| 18765 |
|
| 18766 |
2008-11-10 Samuel Thibault <[email protected]> |
| 18767 |
|
| 18768 |
[task #8135 -- PAE for GNU Mach] |
| 18769 |
* i386/configfrag.ac: Add --enable-pae option, which defines PAE. |
| 18770 |
* i386/i386/i386asm.sym (PDPSHIFT, PDEMASK, PTE_SIZE): New assembly |
| 18771 |
macros. |
| 18772 |
* i386/i386/locore.S (copyout_retry) [PAE]: Use page directory pointer |
| 18773 |
bits, take PTE_SIZE into account. |
| 18774 |
* i386/i386at/model_dep.c (i386at_init) [PAE]: Set second initial 2MB |
| 18775 |
page. Enable PAE bit. Set cr3 to page directory pointer table instead |
| 18776 |
of page directory. |
| 18777 |
* i386/intel/pmap.c (pmap_bootstrap, pmap_create) [PAE]: Allocate 4 |
| 18778 |
pages for dirbase. Setup pdpbase. |
| 18779 |
(pmap_destroy) [PAE]: Free 4 pages from dirbase. Free pdpbase. |
| 18780 |
* i386/intel/pmap.h (pt_entry_t) [PAE]: Typedef to unsigned long long. |
| 18781 |
(PDPSHIFT, PDPNUM, PDPMASK) [PAE]: New macros. |
| 18782 |
(PDESHIFT, PDEMASK, PTEMASK) [PAE]: Set to PAE values. |
| 18783 |
(lin2pdenum, NPDES) [PAE]: Make them take the page directory pointer |
| 18784 |
index into account too. |
| 18785 |
(struct pmap) [PAE]: Add `pdpbase' member. |
| 18786 |
(set_dirbase): Remove macro, replaced by... |
| 18787 |
(set_pmap): New macro, taking a pmap instead of the dirbase. |
| 18788 |
(PMAP_ACTIVATE_USER): Use set_pmap instead of set_dirbase. |
| 18789 |
|
| 18790 |
2008-11-05 Shakthi Kannan <[email protected]> |
| 18791 |
|
| 18792 |
* ipc/mach_port.c (mach_port_insert_right): Cast poly into |
| 18793 |
(ipc_object_t) to fix compiler warning when calling |
| 18794 |
ipc_object_copyout_name. |
| 18795 |
|
| 18796 |
2008-08-31 Samuel Thibault <[email protected]> |
| 18797 |
|
| 18798 |
* i386/i386/trap.c (user_trap): On page fault, raise exception instead |
| 18799 |
of asserting that cr2 is below LINEAR_MIN_KERNEL_ADDRESS. |
| 18800 |
|
| 18801 |
2008-07-29 Zheng Da <[email protected]> |
| 18802 |
Manuel Menal <[email protected]> |
| 18803 |
|
| 18804 |
* include/device/net_status.h (NET_FLAGS): New macro. |
| 18805 |
* linux/dev/glue/net.c (device_get_status): Handle NET_FLAGS case. |
| 18806 |
(device_set_status): Likewise, calls dev_change_flags. |
| 18807 |
* linux/dev/include/linux/netdevice.h (dev_change_flags): Declare |
| 18808 |
function. |
| 18809 |
* linux/dev/net/core/dev.c (dev_change_flags): Add function. |
| 18810 |
|
| 18811 |
2008-08-03 Samuel Thibault <[email protected]> |
| 18812 |
|
| 18813 |
* i386/i386/lock.h (_simple_lock_xchg_, bit_lock, bit_unlock): Add |
| 18814 |
memory clobbers. |
| 18815 |
* i386/include/mach/i386/cthreads.h (spin_unlock, spin_try_lock): Add |
| 18816 |
memory clobbers. |
| 18817 |
|
| 18818 |
2008-07-23 Barry deFreese <[email protected]> |
| 18819 |
|
| 18820 |
* device/chario.c (ttyinput_many): Change chars param to char *. |
| 18821 |
* device/tty.h (ttyinput_many): Likewise. |
| 18822 |
* i386/i386/pcb.h: Include <mach/exec/exec.h>. |
| 18823 |
* i386/i386at/autoconf.h: Include <chips/busses.h>. |
| 18824 |
* i386/i386at/model_dep.c (inittodr): Cast &new_time.seconds to u_int *. |
| 18825 |
* ipc/mach_port.c (mach_port_insert_right): Cast poly to ipc_object_t. |
| 18826 |
* ipc/mach_debug.c (host_ipc_hash_info): Initialize size to 0 to make |
| 18827 |
the compiler believe that there is no bug. |
| 18828 |
* ipc/mach_debug.c (mach_port_space_info): Likewise for tree_size and |
| 18829 |
table_size. |
| 18830 |
* i386/i386at/com.c (commctl): Likewise for b. |
| 18831 |
* i386/i386/trap.c (user_trap): Likewise for exc. |
| 18832 |
* i386/i386/user_ldt.c (i386_set_ldt): Likewise for old_copy_object. |
| 18833 |
* i386/i386at/com.c (comintr): Check line_stat&iOR instead of line&iOR. |
| 18834 |
|
| 18835 |
2008-07-23 Barry deFreese <[email protected]> |
| 18836 |
|
| 18837 |
* i386/i386/locore.h (copyinmsg, copyoutmsg): |
| 18838 |
Make parameters const void* and void* instead of vm_offset_t. |
| 18839 |
* i386/i386at/com.c (comportdeath): Cast port as ipc_port_t in |
| 18840 |
tty_portdeath call. |
| 18841 |
* i386/i386at/kd.c (kdportdeath): Likewise. |
| 18842 |
* i386/i386at/lpr.c (lprportdeath): Likewise. |
| 18843 |
* i386/i386at/kd_mouse.c (mouse_handle_byte): Cast param to wakeup() as |
| 18844 |
vm_offset_t. |
| 18845 |
* i386/intel/pmap.c (pmap_destroy): Cast arg 2 of kmem_free() to |
| 18846 |
vm_offset_t. |
| 18847 |
* i386/intel/pmap.h: Cast all arg 1 params to kvtophy() to vm_offset_t. |
| 18848 |
* ipc/ipc_kmsg.c: Remove casts from params to copyinmsg and |
| 18849 |
copyoutmsg calls. |
| 18850 |
* ipc/mach_msg.c: Likewise. |
| 18851 |
* kern/exceptions.c: Likewise. |
| 18852 |
* ipc/mach_msg.c: Remove casts from params to copyout calls. |
| 18853 |
* ipc/bootstrap.c: Likewise. |
| 18854 |
* kern/ipc_tt.c (mach_ports_register): Cast memory[i] as ipc_port_t in |
| 18855 |
assignment. |
| 18856 |
|
| 18857 |
2008-07-19 Barry deFreese <[email protected]> |
| 18858 |
|
| 18859 |
* chips/busses.h (bus_ctlr, bus_device): Make intr return void instead |
| 18860 |
of int. |
| 18861 |
* device/tty.h (tty): Make t_start and t_stop return void instead of |
| 18862 |
int. |
| 18863 |
* i386/i386/ipl.h (ivect[]): return void instead of int. |
| 18864 |
* i386/i386at/pic_isa.h (ivect[]): Likewise. |
| 18865 |
* i386/i386at/kd_mouse.c (mouseintr): Likewise. |
| 18866 |
* i386/i386at/com.c (comintr, comstop): Likewise. |
| 18867 |
* i386/i386at/kd.c (kdcnputc, kdstart, kdstop, kdintr): Likewise. |
| 18868 |
* i386/i386/trap.c (exception, thread_exception_return, i386_exception): |
| 18869 |
Add __attribute__ ((noreturn)). |
| 18870 |
* i386/i386at/kd.c (kdcnprobe): Return 0 at end of function. |
| 18871 |
* i386/i386at/lpr.c (lprintr, lprstart): Return void instead of int. |
| 18872 |
(lprstart): Don't return numeric values any longer. |
| 18873 |
* kern/eventcount.c (evc_wait_clear): Return a value. |
| 18874 |
* kern/exceptions.c (exception, exception_try_task, exception_no_server, |
| 18875 |
exception_raise, exception_raise_continue, exception_raise_continue_slow, |
| 18876 |
exception_raise_continue_fast): Add __attribute__ ((noreturn)). |
| 18877 |
(exception, exceptio_try_task, exception_raise, |
| 18878 |
exception_raise_continue_slow, exception_raise_continue_fast): |
| 18879 |
Remove spurious returns. |
| 18880 |
(exception_no_server): Add panic() on return from thread_halt_self(). |
| 18881 |
|
| 18882 |
2008-07-20 Samuel Thibault <[email protected]> |
| 18883 |
|
| 18884 |
* linux/pcmcia-cs/glue/wireless_glue.h (schedule_task): Add parameter |
| 18885 |
to Debugger() call. |
| 18886 |
* kern/lock_mon.c (retry_simple_lock, retry_bit_lock): Likewise. |
| 18887 |
* kern/machine.c (Debugger): Remove declaration. |
| 18888 |
* device/net_io.c (net_deliver): Fix parenthesis to really round up. |
| 18889 |
* kern/mach_clock.c (timeout): Make the `fcn' parameter take a void * |
| 18890 |
instead of char *. |
| 18891 |
* kern/mach_clock.h (timeout): Likewise. |
| 18892 |
* device/net_io.c (net_set_filter): Reference the proper member |
| 18893 |
instead of casting pointers. |
| 18894 |
* device/subrs.c (ether_sprintf): Set type of `i' to `int'. |
| 18895 |
* i386/i386/trap.c (kernel_trap): Pass page fault address to printf. |
| 18896 |
* i386/i386at/rtc.c (rtcget): Fix parenthesis to really test the bit. |
| 18897 |
* linux/src/include/linux/tqueue.h (queue_task_irq, |
| 18898 |
queue_task_irq_off, queue_task, run_task_queue): Turn into static |
| 18899 |
inlines. |
| 18900 |
|
| 18901 |
2008-07-19 Barry deFreese <[email protected]> |
| 18902 |
|
| 18903 |
* device/dev_hdr.h (dev_name_lookup, dev_set_indirection): Add |
| 18904 |
prototypes. |
| 18905 |
* device/dev_pager.c: Include <vm/vm_user.h>. |
| 18906 |
* device/ds_routines.c: Likewise. |
| 18907 |
* device/subrs.c: Likewise. |
| 18908 |
* device/device_init.c: Include <device/tty.h>. |
| 18909 |
* device/ds_routines.h (iowait): Add prototype. |
| 18910 |
* device/net_io.h (net_kmsg_collect): Add prototype. |
| 18911 |
* device/net_io.c (hash_ent_remove, net_free_dead_infp, |
| 18912 |
net_free_dead_entp, bpf_validate, bpf_eq, net_add_q_info, |
| 18913 |
bpf_match): Add forward declarations. |
| 18914 |
* device/subrs.h: New header. |
| 18915 |
* i386/i386/fpu.h: Include <sys/types.h>. |
| 18916 |
Change <i386/thread.h> include to <kern/thread.h>. |
| 18917 |
(fp_save, fp_load, fp_free, fpu_module_init, fpu_set_state, |
| 18918 |
fpu_get_state, fpnoextflt, fpextovrflt, fpexterrflt, init_fpu): |
| 18919 |
Add prototypes. |
| 18920 |
* i386/i386/gdt.h (gdt_init): Add prototype. |
| 18921 |
* i386/i386/io_map.c: Include <vm/pmap.h>. |
| 18922 |
* vm/vm_kern.c: Likewise. |
| 18923 |
* i386/i386/ktss.h (ktss_init): Add prototype. |
| 18924 |
* i386/i386/ldt.h (ldt_init): Add prototype. |
| 18925 |
* i386/i386/loose_ends.h: New header. |
| 18926 |
* i386/i386/loose_ends.c (delay): Complete prototype. |
| 18927 |
* i386/i386/model_dep.h (startrtclock): Add prototype. |
| 18928 |
* i386/i386/pcb.h (load_context, stack_attach, stack_detach, |
| 18929 |
switch_ktss): Add prototypes. |
| 18930 |
* i386/i386/pic.h (form_pic_mask, picinit): Add prototypes. |
| 18931 |
* i386/i386/pit.c: Include <i386/pic.h>. |
| 18932 |
* i386/i386at/kd_mouse.c: Likewise. |
| 18933 |
* i386/i386/pit.h (clkstart): Add prototype. |
| 18934 |
* i386/i386/trap.c: Include <i386/fpu.h>, <intel/read_fault.h>, |
| 18935 |
<vm/vm_fault.h>. |
| 18936 |
* i386/i386/trap.h (interrupted_pc): Add prototype. |
| 18937 |
* i386/i386/user_ldt.c: Include <i386/pcb.h>. |
| 18938 |
* i386/i386at/autoconf.h: New header. |
| 18939 |
* i386/i386at/com.h: New header. |
| 18940 |
* i386/i386at/com.c: Include <i386at/autoconf.h>, <i386at/com.h>. |
| 18941 |
* i386/i386at/idt.h (idt_init): Add prototype. |
| 18942 |
* i386/i386at/int_init.h: New header. |
| 18943 |
* i386/i386at/kd.c: Include <i386/loose_ends.h>. |
| 18944 |
* kern/debug.c: Likewise. |
| 18945 |
* i386/i386at/kd_event.c: Include <device/ds_routines.h>. |
| 18946 |
* i386/i386at/kd_mouse.c: Likewise. |
| 18947 |
* i386/i386at/kd_mouse.c: Include <device/subrs.h>, <i386at/com.h>. |
| 18948 |
* i386/i386at/lpr.c: Include <i386at/autoconf.h> |
| 18949 |
* i386/i386at/model_dep.c: Include: <i386/fpu.h>, <i386/gdt.h>, |
| 18950 |
<i386/ktss.h>, <i386/ldt.h>, <i386/pic.h>, <i386/pit.h>, |
| 18951 |
<i386at/autoconf.h>, <i386at/idt.h>, <i386at/int_init.h>, |
| 18952 |
<i386at/kd.h>, <i386at/rtc.h>. |
| 18953 |
* i386/i386at/rtc.h (readtodc, writetodc): Add prototypes. |
| 18954 |
* i386/intel/pmap.h: Include <mach/vm_prot.h>. |
| 18955 |
(pmap_bootstrap, pmap_unmap_page_zero, pmap_zero_page, pmap_copy_page, |
| 18956 |
kvtophys): Add prototypes. |
| 18957 |
* i386/intel/read_fault.h: New header. |
| 18958 |
* kern/ast.h (ast_init, ast_check): Add prototypes. |
| 18959 |
* kern/debug.c (Debugger): Move prototype to... |
| 18960 |
* kern/debug.h (Debugger): ... here. |
| 18961 |
* kern/eventcount.h (evc_notify_abort): Add prototype. |
| 18962 |
* kern/ipc_mig.c: Include <kern/syscall_subr.h>, <kern/ipc_tt.h>, |
| 18963 |
<device/ds_routines.h> |
| 18964 |
* kern/ipc_mig.h: New header. |
| 18965 |
* kern/ipc_tt.h (mach_reply_port): Add prototype. |
| 18966 |
* kern/machine.h: New header. |
| 18967 |
* kern/processor.h (pset_sys_bootstrap): Move prototype outside of |
| 18968 |
MACH_HOST check. |
| 18969 |
* kern/sched_prim.h (thread_bind, compute_priority, |
| 18970 |
thread_timeout_setup): Add prototypes. |
| 18971 |
* kern/startup.c: Include <kern/machine.h>, <machine/pcb.h>. |
| 18972 |
* kern/syscall_subr.c: Include <kern/syscall_subr.h>. |
| 18973 |
(thread_depress_abort): Remove prototype. |
| 18974 |
* kern/syscall_subr.h: Include <sys/types.h>, <mach/mach_types.h> |
| 18975 |
(thread_depress_abort): Add prototype. |
| 18976 |
* kern/syscall_sw.c: Include: <kern/debug.h>. |
| 18977 |
* kern/task.h (consider_task_collect): Add prototype. |
| 18978 |
* kern/thread.c: Include <kern/eventcount.h>, <kern/ipc_mig.h>, |
| 18979 |
<kern/syscall_subr.h>. |
| 18980 |
* kern/thread.h (stack_collect): Add prototype. |
| 18981 |
* linux/pcmcia-cs/glue/pcmcia_glue.h (Debugger): Remove prototype. |
| 18982 |
* util/putchar.c: Include <device/cons.h>. |
| 18983 |
* util/putchar.h: New header. |
| 18984 |
* util/puts.c: Include <device/cons.h>, <util/putchar.h>. |
| 18985 |
* vm/memory_object.c: Include <vm/vm_map.h>. |
| 18986 |
(memory_object_data_provided): Move function below |
| 18987 |
memory_object_data_supply definition. |
| 18988 |
* vm/vm_init.c: Include <vm/vm_fault.h>. |
| 18989 |
* vm/vm_kern.h (projected_buffer_in_range): Add prototype. |
| 18990 |
* vm/vm_map.c: Include <vm/pmap.h>, <vm/vm_resident.h>. |
| 18991 |
(vm_map_delete, vm_map_copyout_page_list, vm_map_copy_page_discard): |
| 18992 |
Add forward declaration. |
| 18993 |
* vm/vm_map.h (vm_map_copyin_object, vm_map_submap, |
| 18994 |
_vm_map_clip_start, _vm_map_clip_end): Add prototypes. |
| 18995 |
* vm/vm_pageout.c: Include <device/net_io.h>, <kern/task.h>, |
| 18996 |
<machine/locore.h>. |
| 18997 |
* vm/vm_resident.h: New header. |
| 18998 |
* vm/vm_user.c: Include <vm/vm_kern.h>. |
| 18999 |
* vm/pmap.h (pmap_pageable, pmap_map_bd): Add prototype. |
| 19000 |
|
| 19001 |
2008-07-18 Andrei Barbu <[email protected]> |
| 19002 |
|
| 19003 |
* i386/i386/db_disasm.c (Iba): New macro. |
| 19004 |
(db_inst_table): Use Iba for aam and aad instructions. |
| 19005 |
(db_disasm): Decode operands for Iba case. |
| 19006 |
* i386/i386/db_interface.c (db_read_bytes): Do not increment the |
| 19007 |
address before printing it. |
| 19008 |
* include/sys/types.h (int8_t, uint8_t, u_int8_t, int16_t, uint16_t, |
| 19009 |
u_int16_t, int32_t, uint32_t, u_int32_t, int64_t, uint64_t, |
| 19010 |
u_int64_t): New types. |
| 19011 |
* ddb/db_sym.c (db_task_printsym): Do not print empty symbols. |
| 19012 |
* ddb/db_break.c (db_set_breakpoint): Add db_breakpoint_t return type, |
| 19013 |
return the breakpoint in non-ddb case. |
| 19014 |
* ddb/db_break.h (BKPT_EXTERNAL): New macro. |
| 19015 |
(db_set_breakpoint): Add declaration. |
| 19016 |
* (ddb/db_sym.h): Add _DDB_DB_SYM_H_ header protection. |
| 19017 |
(db_find_sym_and_offset, db_find_xtrn_sym_and_offset, |
| 19018 |
db_find_task_sym_and_offset, db_find_xtrn_task_sym_and_offset): Call |
| 19019 |
db_free_symbol. |
| 19020 |
(db_free_symbol): New declaration. |
| 19021 |
(db_sym_switch): New `free_symbol' member. |
| 19022 |
(X_db_free_symbol): New macro. |
| 19023 |
* ddb/db_sym.c (db_value_of_name, db_lookup, db_name_is_ambiguous, |
| 19024 |
db_search_task_symbol, db_search_in_task_symbol, db_task_printsym): |
| 19025 |
Call db_free_symbol. |
| 19026 |
(db_free_symbol): New function. |
| 19027 |
(dummy_db_free_symbol): New empty function. |
| 19028 |
(x_db): Initialize `free_symbol' memberi with dummy_db_free_symbol. |
| 19029 |
* i386/i386/db_trace.c (db_i386_stack_trace): Call db_free_symbol. |
| 19030 |
* kern/lock_mon.c (print_lock_info): Likewise. |
| 19031 |
* include/sys/types.h (quad): Remove type. |
| 19032 |
|
| 19033 |
2008-07-15 Barry deFreese <[email protected]> |
| 19034 |
|
| 19035 |
* device/cons.c (cnputc): Turn parameter `c' into a char. |
| 19036 |
* device/cons.h (cninit, cngetc, cnmaygetc, cnputc): Add prototypes. |
| 19037 |
* i386/i386at/model_dep.c: Include <device/cons.h> |
| 19038 |
* kern/printf.c: Include <device/cons.h> |
| 19039 |
(cnputc): Remove prototype. |
| 19040 |
(vprintf, iprintf): Explicitely cast cnputc into the type _doprnt |
| 19041 |
expects. |
| 19042 |
* linux/dev/kernel/printk.c: Include <device/cons.h> |
| 19043 |
(cnputc): Remove prototype. |
| 19044 |
* device/ds_routines.c: Include <machine/locore.h> |
| 19045 |
* ipc/ipc_kmsg.c: Likewise. |
| 19046 |
* kern/bootstrap.c: Likewise. |
| 19047 |
* kern/exception.c: Likewise. |
| 19048 |
* kern/ipc_mig.c: Likewise. |
| 19049 |
* kern/sched_prim.c: Likewise. |
| 19050 |
* kern/time_stamp.c: Likewise. |
| 19051 |
* vm/vm_kern.c: Likewise. |
| 19052 |
* device/ds_routine.h (ds_notify): Add prototype. |
| 19053 |
* kern/ipc_kobject.c: Include <device/ds_routines.h> |
| 19054 |
* device/net_io.h (net_ast): Add prototype. |
| 19055 |
* ipc/ipc_kmsg.c: Include <device/net_io.h> |
| 19056 |
* kern/ast.c: Include <device/net_io.h> |
| 19057 |
* i386/i386at/kd.h (kd_isupper, kd_islower, kd_senddata, kd_sendcmd, |
| 19058 |
kd_cmdreg_write, kd_mouse_drain, set_kd_state, kd_setleds1, kd_setleds2, |
| 19059 |
cnsetleds, kdreboot, kd_putc, kd_parseesc, kd_down, kd_up, kd_cr, |
| 19060 |
kd_tab, kd_left, kd_right, kd_scrollup, kd_scrolldn, kd_cls, kd_home, |
| 19061 |
kd_atoi, kd_insch, kd_cltobcur, kd_cltopcur, kd_cltoecur, kd_clfrbcur, |
| 19062 |
kd_eraseln, kd_insln, kd_delln, kd_delch, kd_erase, kd_bellon, |
| 19063 |
kd_belloff, kdinit, kdsetkbent, kdgetkbent, kdsetbell, kd_resend, |
| 19064 |
kd_handle_ack, kd_kbd_magic, kdstate2idx, kd_parserest, kdcnmaygetc, |
| 19065 |
kd_slmwd, kd_slmscu, kd_slmscd): Add prototypes. |
| 19066 |
* i386/i386at/kd.c (do_modifier): Add prototype. |
| 19067 |
* kern/ipc_kobject.c: Include <vm/vm_object.h> |
| 19068 |
* vm/vm_object.h: Include <sys/types.h> and <ipc/ipc_types.h>. |
| 19069 |
(vm_object_coalesce, vm_object_pager_wakeup): Add prototypes. |
| 19070 |
* kern/priority.c: Include <kern/sched_prim.h>. |
| 19071 |
* kern/sched_prim.c (recompute_priorities, update_priority): Remove |
| 19072 |
prototypes. |
| 19073 |
* kern/sched_prim.h (update_priority, compute_my_priority): Add |
| 19074 |
prototypes. |
| 19075 |
* kern/time_stamp.h (timestamp_init): Add prototype. |
| 19076 |
* kern/startup.c: Include <kern/time_stamp.h>. |
| 19077 |
* ipc/ipc_kmsg.c: Include <vm/vm_user.h> and <ipc/ipc_hash.h>. |
| 19078 |
* ipc/ipc_mqueue (ipc_mqueue_copyin): Add prototype. |
| 19079 |
* kern/bootstrap.c: Include <vm/vm_user.h>. |
| 19080 |
* kern/exceptions.c: Include <ipc/ipc_notify.h>. |
| 19081 |
* kern/ipc_kobject.h (ipc_kobject_notify): Add prototype. |
| 19082 |
* kern/ipc_mig.c: Include <device/dev_hdr.h>. |
| 19083 |
* kern/pc_sample.c: Include <machine/trap.h>. |
| 19084 |
* kern/printf.h (safe_gets): Add prototype. |
| 19085 |
* kern/processor.c: Include <kern/ipc_tt.h>. |
| 19086 |
* kern/queue.h (insque): Add prototype. |
| 19087 |
* kern/startup.c: Include <kern/mach_factor.h> and <kern/xpr.h>. |
| 19088 |
* kern/thread.h (thread_start, kernel_thread, thread_priority, |
| 19089 |
thread_set_own_priority, thread_max_priority, thread_policy, |
| 19090 |
consider_thread_collect, stack_privilege): Add prototypes. |
| 19091 |
* kern/timer.h (timer_normalize, timer_init, init_timers): Add |
| 19092 |
prototypes. |
| 19093 |
* vm/vm_map.h (vm_map_lookup_entry, vm_map_entry_delete): Add |
| 19094 |
prototypes. |
| 19095 |
* device/chario.c: Include <vm/vm_user.h> |
| 19096 |
* device/device_init.c (chario_init): Remove prototype. |
| 19097 |
* device/tty.h (ttyinput_many, tty_cts, tty_get_status, |
| 19098 |
tty_set_status, tty_flush, ttrstrt, ttstart, ttyclose, tty_portdeath, |
| 19099 |
chario_init): Add prototypes. |
| 19100 |
* i386/i386/model_dep.h: New header. |
| 19101 |
* i386/i386at/model_dep.c: Include <i386/model_dep.h>. |
| 19102 |
* kern/debug.c: Include <machine/model_dep.h>. |
| 19103 |
* kern/mach_clock.c: Likewise. |
| 19104 |
* kern/sched_prim.c: Likewise. |
| 19105 |
* kern/startup.c: Likewise. |
| 19106 |
* kern/machine.c: Likewise. |
| 19107 |
(halt_cpu): Remove prototype. |
| 19108 |
* vm/pmap.h (pmap_grab_page): Add prototype. |
| 19109 |
* ipc/mach_port.h: New header. |
| 19110 |
* ipc/mach_port.c: Include <ipc/mach_port.h>. |
| 19111 |
(mach_port_get_receive_status): Add forward declaration. |
| 19112 |
* kern/bootstrap.c: Include <ipc/mach_port.h>. |
| 19113 |
* kern/ipc_mig.c: Likewise. |
| 19114 |
* kern/syscall_sw.c: Likewise. |
| 19115 |
* device/dev_pager.c (device_pager_data_request, |
| 19116 |
device_pager_data_request_done, device_pager_init_pager): Fix printf |
| 19117 |
formats. |
| 19118 |
* i386/i386/debug_i386.c (dump_ss): Likewise. |
| 19119 |
* i386/i386/trap.c (user_trap): Likewise. |
| 19120 |
* i386/i386at/com.c (comtimer): Likewise. |
| 19121 |
* ipc/ipc_notify (ipc_notify_port_deleted, ipc_notify_msg_accepted, |
| 19122 |
ipc_notify_port_destroyed, ipc_notify_no_senders, |
| 19123 |
ipc_notify_send_once, ipc_notify_dead_name): Likewise. |
| 19124 |
* kern/ipc_kobject.c (ipc_kobject_destroy): Likewise. |
| 19125 |
* kern/sched_prim.c (do_runq_scan): Likewise. |
| 19126 |
* linux/pcmcia-cs/clients/smc91c92_cs.c (smc_start_xmit): Likewise. |
| 19127 |
* linux/src/drivers/net/sundance.c (start_tx): Likewise. |
| 19128 |
* vm/vm_fault.c (vm_fault_page): Likewise. |
| 19129 |
* vm/vm_map.c (vm_map_pmap_enter): Likewise. |
| 19130 |
* vm/vm_object.c (vm_object_collapse): Likewise. |
| 19131 |
|
| 19132 |
2008-07-04 Samuel Thibault <[email protected]> |
| 19133 |
|
| 19134 |
* linux/src/drivers/net/rtl8139.c (rtl8129_open): Move IRQ |
| 19135 |
initialization after ring initialization. |
| 19136 |
|
| 19137 |
2008-07-02 Samuel Thibault <[email protected]> |
| 19138 |
|
| 19139 |
* linux/dev/include/asm/segment.h (__put_user, __get_user): Add |
| 19140 |
always_inline attribute. |
| 19141 |
|
| 19142 |
2008-06-29 Samuel Thibault <[email protected]> |
| 19143 |
|
| 19144 |
* i386/i386/fpu.c (fpintr): Do not panic if the we receive the |
| 19145 |
interrupt twice in the same thread. |
| 19146 |
|
| 19147 |
2008-05-28 Thomas Schwinge <[email protected]> |
| 19148 |
|
| 19149 |
[bug #23417, patch #6508 -- Building with -g3] |
| 19150 |
* Makefile.am (MIGCOM): Revert the 2008-05-19 change. |
| 19151 |
|
| 19152 |
2008-05-25 Andrei Barbu <[email protected]> |
| 19153 |
|
| 19154 |
* ddb/db_aout.c (aout_db_symbol_values): Add stab parameter. |
| 19155 |
* ddb/db_sym.h (db_sym_switch): Add stab parameter to symbol_values |
| 19156 |
member. |
| 19157 |
(X_db_symbol_values): Pass stab parameter to symbole_values function. |
| 19158 |
|
| 19159 |
2008-05-19 Thomas Schwinge <[email protected]> |
| 19160 |
|
| 19161 |
[patch #6508 -- Building with -g3] |
| 19162 |
* Makefile.am (MIGCOM): Let it filter through CPP again. |
| 19163 |
Suggested by Andrei Barbu <[email protected]>. |
| 19164 |
|
| 19165 |
2008-05-09 Andrei Barbu <[email protected]> |
| 19166 |
|
| 19167 |
* i386/i386/loose_ends.c (DELAY): Use volatile qualifier instead of |
| 19168 |
register to prevent optimization. |
| 19169 |
|
| 19170 |
2008-03-10 Samuel Thibault <[email protected]> |
| 19171 |
|
| 19172 |
* doc/Makefrag.am: Fix typo. |
| 19173 |
|
| 19174 |
2008-03-07 Samuel Thibault <[email protected]> |
| 19175 |
|
| 19176 |
* i386/i386/locore.S (syscall): Clear direction flag at entry. |
| 19177 |
|
| 19178 |
2008-02-06 Samuel Thibault <[email protected]> |
| 19179 |
|
| 19180 |
* linux/src/drivers/block/triton.c (ide_init_triton): Enable Bus |
| 19181 |
Mastering if not enabled by BIOS. |
| 19182 |
|
| 19183 |
2007-12-30 Samuel Thibault <[email protected]> |
| 19184 |
|
| 19185 |
* kern/debug.c (panic) [MACH_KDB]: Don't wait before running the |
| 19186 |
debugger. |
| 19187 |
* linux/dev/glue/block.c (MAX_BUF): Set to sane stack-friendly 8 |
| 19188 |
instead of blindly following VM_MAP_COPY_PAGE_LIST_MAX. |
| 19189 |
(rdwr_full): increment blk by cc >> bshift instead of nb. |
| 19190 |
|
| 19191 |
2007-12-11 Thomas Schwinge <[email protected]> |
| 19192 |
|
| 19193 |
* linux/dev/include/linux/nfs.h: Remove unused file. |
| 19194 |
* linux/src/include/linux/nfs.h: Likewise. |
| 19195 |
|
| 19196 |
2007-12-10 Thomas Schwinge <[email protected]> |
| 19197 |
|
| 19198 |
* i386/Makefrag.am (i386/i386at/boothdr.o, i386/i386at/interrupt.o) |
| 19199 |
(i386/i386/cswitch.o, i386/i386/locore.o): Remove targets. |
| 19200 |
* configure.ac <Dependency tracking for `.S' files>: Add a hack to |
| 19201 |
re-add the four targets with have been removed above for the (legacy) |
| 19202 |
case only where they are actually needed. |
| 19203 |
|
| 19204 |
2007-12-05 Guillem Jover <[email protected]> |
| 19205 |
|
| 19206 |
* i386/Makefrag.am (i386/i386at/interrupt.o): New target, depends on |
| 19207 |
i386/i386/i386asm.h |
| 19208 |
(i386/i386/cswitch.o): Likewise. |
| 19209 |
(i386/i386/locore.o): Likewise. |
| 19210 |
|
| 19211 |
2007-11-18 Samuel Thibault <[email protected]> |
| 19212 |
|
| 19213 |
* i386/intel/pmap.c (pmap_map_bd): Use |
| 19214 |
INTEL_PTE_NCACHE|INTEL_PTE_WTHRU. Get pmap lock. |
| 19215 |
|
| 19216 |
2007-11-15 Samuel Thibault <[email protected]> |
| 19217 |
|
| 19218 |
* ddb/db_examine.c (db_strcpy): Add extra parentheses around |
| 19219 |
assignment used as boolean. |
| 19220 |
* ddb/db_sym.c (db_qualify, db_lookup): Likewise. |
| 19221 |
|
| 19222 |
2007-11-08 Thomas Schwinge <[email protected]> |
| 19223 |
|
| 19224 |
* doc/mach.texi: Do the copyright and licensing things as suggested by |
| 19225 |
the GNU Texinfo manual. |
| 19226 |
|
| 19227 |
2007-10-09 Thomas Schwinge <[email protected]> |
| 19228 |
|
| 19229 |
* linux/dev/glue/net.c (device_open) <LINUX_IFF_ALLMULTI>: Comment. |
| 19230 |
|
| 19231 |
2007-10-08 Stefan Siegl <[email protected]> |
| 19232 |
|
| 19233 |
* linux/dev/glue/net.c (device_open): Set LINUX_IFF_ALLMULTI flag |
| 19234 |
on device and propagate. |
| 19235 |
|
| 19236 |
2007-10-02 Samuel Thibault <[email protected]> |
| 19237 |
|
| 19238 |
* kern/zalloc.c (zget_space): Fix last change. |
| 19239 |
|
| 19240 |
2007-09-03 Samuel Thibault <[email protected]> |
| 19241 |
|
| 19242 |
* kern/zalloc.c (zget_space): Align zalloc_next_space again after |
| 19243 |
calling kmem_alloc_wired (which may sleep). |
| 19244 |
|
| 19245 |
2007-08-16 Samuel Thibault <[email protected]> |
| 19246 |
|
| 19247 |
* Makefile.am (clib_routines): Add udivdi3, __udivdi3 and _end. Fix |
| 19248 |
edata into _edata. |
| 19249 |
(gnumach-undef): Do not remove heading _s. |
| 19250 |
(clib-routines.o): Add -lgcc. |
| 19251 |
|
| 19252 |
2007-07-09 Samuel Thibault <[email protected]> |
| 19253 |
|
| 19254 |
* i386/i386/db_interface.c (int_regs): Drop gs and fs fields. |
| 19255 |
(kdb_kentry): Get fs and gs from struct i386_interrupt_state instead of |
| 19256 |
struct int_regs. |
| 19257 |
* i386/i386/kttd_interface.c (int_regs, kttd_netentry): Likewise. |
| 19258 |
* i386/i386/locore.S (all_intrs): Save fs and gs and set them to kernel |
| 19259 |
segment too. |
| 19260 |
(return_to_iret): Restore fs and gs too. |
| 19261 |
(return_to_iret_i): Likewise. |
| 19262 |
(ast_from_interrupt): Set fs and gs to kernel segment too. |
| 19263 |
(kdb_from_iret): Don't save/restore fs and gs either. |
| 19264 |
(ttd_from_iret): Likewise. |
| 19265 |
* i386/i386/thread.h (i386_interrupt_state): Add gs and fs fields. |
| 19266 |
* linux/src/include/asm-i386/irq.h (SAVE_ALL): Set gs to kernel |
| 19267 |
segment too. |
| 19268 |
|
| 19269 |
2007-08-04 Samuel Thibault <[email protected]> |
| 19270 |
|
| 19271 |
* i386/i386/locore.S (TIME_TRAP_UENTRY, TIME_TRAP_SENTRY) |
| 19272 |
(TIME_TRAP_UEXIT): Use TH_SYSTEM_TIMER instead of old TH_SYS_TIMER. |
| 19273 |
(current_tstamp, TIME_TRAP_UENTRY, TIME_TRAP_SENTRY, TIME_TRAP_UEXIT) |
| 19274 |
(TIME_INT_ENTRY, TIME_INT_EXIT, timer_switch, start_timer): Use |
| 19275 |
EXT(current_tstamp) and EXT(current_timer) instead of _current_tstampt |
| 19276 |
and _current_timer. |
| 19277 |
* i386/i386/io_perm.c (i386_io_perm_create): Lock io_perm->port, not |
| 19278 |
inexistent device->port. |
| 19279 |
* i386/i386at/model_dep.c: Make init_alloc_aligned() extern. |
| 19280 |
* i386/i386/mp_desc.c: Include <machine/vm_param.h> |
| 19281 |
(interrupt_stack_alloc): Call init_alloc_aligned() instead of |
| 19282 |
init_alloc(). |
| 19283 |
(cpu_control, interrupt_processor, cpu_start, start_other_cpus): New |
| 19284 |
functions. |
| 19285 |
* i386/i386/mp_desc.h: Include <i386at/idt.h> instead of "idt.h" |
| 19286 |
* i386/i386/cswitch.S: Use EXT(interrupt_stack) instead of |
| 19287 |
_interrupt_stack. |
| 19288 |
* i386/i386/i386asm.sym (MP_GDT, MP_IDT): Remove macros. |
| 19289 |
* i386/i386/lock.h: Don't include_next "lock.h". |
| 19290 |
* i386/linux/dev/include/linux/autoconf.h [NCPUS > 1]: Define |
| 19291 |
CONFIG_SMP. |
| 19292 |
* linux/dev/include/asm-i386/smp.h: New file. |
| 19293 |
* linux/dev/init/main.c [__SMP__ && __i386] (smp_loops_per_tick): |
| 19294 |
Restore variable. |
| 19295 |
* linux/pcmcia-cs/modules/cs_internal.h: Use __SMP__ instead of |
| 19296 |
USE_SPIN_LOCKS. |
| 19297 |
* linux/pcmcia-cs/modules/i82365.c: Likewise. |
| 19298 |
* linux/pcmcia-cs/modules/rsrc_mgr.c: Likewise. |
| 19299 |
* linux/dev/include/asm-i386/system.h: Update to Linux 2.2 for SMP. |
| 19300 |
* configfrag.ac (mach_ncpus): Define to 1. |
| 19301 |
(NCPUS): Set to $mach_ncpus. |
| 19302 |
[$mach_ncpus > 1] (MULTIPROCESSOR): Set to 1. |
| 19303 |
* linux/configfrag.ac [$mach_ncpus > 1] (__SMP__): Define. |
| 19304 |
* linux/dev/arch/i386/kernel/irq.c: Include <asm/hardirq.h>. |
| 19305 |
(local_bh_count, local_irq_count, global_irq_holder, global_irq_lock) |
| 19306 |
(global_irq_count, check_smp_invalidate, show, wait_on_bh) |
| 19307 |
(wait_on_irq, synchronize_bh, synchronize_irq, get_irqlock) |
| 19308 |
(__global_cli, __global_sti, __global_save_flags) |
| 19309 |
(__global_restore_flags): New variables and functions from Linux 2.2 |
| 19310 |
* linux/src/drivers/net/3c515.c (test_and_set_bit): Remove macro. |
| 19311 |
* linux/src/drivers/net/de4x5.c (test_and_set_bit): Remove macro. |
| 19312 |
* linux/src/drivers/net/eth16i.c (test_and_set_bit): Remove macro. |
| 19313 |
* linux/src/drivers/net/kern_compat.h (test_and_set_bit): Remove macro. |
| 19314 |
* linux/src/drivers/net/pcnet32.c (test_and_set_bit): Remove macro. |
| 19315 |
* linux/src/include/linux/compatmac.h (test_and_set_bit) |
| 19316 |
(test_and_clear_bit): Remove macro. |
| 19317 |
* linux/src/include/asm-i386/atomic.h (atomic_read): New macro. |
| 19318 |
* linux/src/include/asm-i386/bitops.h (test_and_set_bit) |
| 19319 |
(test_and_clear_bit, test_and_change_bit): New inline functions. |
| 19320 |
* linux/src/include/asm-i386/hardirq.h (local_bh_count): New |
| 19321 |
declaration. |
| 19322 |
* linux/src/include/linux/tasks.h (NR_CPUS): Set to NCPUS. |
| 19323 |
(NO_PROC_ID): New macro. |
| 19324 |
|
| 19325 |
2007-07-08 Samuel Thibault <[email protected]> |
| 19326 |
|
| 19327 |
* i386/i386/seg.h (SZ_64): New macro. |
| 19328 |
* i386/i386/user_ldt.c (selector_check, i386_set_gdt): Check |
| 19329 |
user-provided descriptor against SZ_64. |
| 19330 |
|
| 19331 |
2007-07-04 Samuel Thibault <[email protected]> |
| 19332 |
|
| 19333 |
* i386/intel/pmap.c (pmap_enter): Use INTEL_PTE_NCACHE|INTEL_PTE_WTHRU |
| 19334 |
when cpu >= 486 and physical address is after memory end. |
| 19335 |
|
| 19336 |
2007-06-23 Samuel Thibault <[email protected]> |
| 19337 |
|
| 19338 |
* i386/i386/trap.c (user_trap): Read faulting linear address before |
| 19339 |
using it. |
| 19340 |
|
| 19341 |
2007-06-02 Thomas Schwinge <[email protected]> |
| 19342 |
|
| 19343 |
* Makerules.mig.am: New file, factored out of code of... |
| 19344 |
* Makefrag.am: ... this file and... |
| 19345 |
* Makerules.am: ... this file. |
| 19346 |
* i386/Makefrag.am: Update comment. |
| 19347 |
|
| 19348 |
* Makefile.am (MIGFLAGS): Remove. |
| 19349 |
(MIGCOM): Add ``-n''. |
| 19350 |
* Makerules.am: Adapt to that. |
| 19351 |
|
| 19352 |
2007-05-09 Thomas Schwinge <[email protected]> |
| 19353 |
|
| 19354 |
* include/mach/mach_types.defs (userprefix, serverprefix): Set, if |
| 19355 |
requested (by setting USERPREFIX respective SERVERPREFIX). |
| 19356 |
|
| 19357 |
2007-05-08 Samuel Thibault <[email protected]> |
| 19358 |
|
| 19359 |
* i386/i386/fpu.c (fpu_set_state): Set fp_valid to TRUE. Free the |
| 19360 |
unused ifps. |
| 19361 |
|
| 19362 |
2007-05-07 Thomas Schwinge <[email protected]> |
| 19363 |
|
| 19364 |
[bug #15295 -- Mach lets processes write to I/O ports] |
| 19365 |
|
| 19366 |
* i386/Makefrag.am (libkernel_a_SOURCES): Add `i386/i386/io_perm.c', |
| 19367 |
`i386/i386/io_perm.h', `i386/i386/machine_task.c', `i386/i386/task.h' |
| 19368 |
and remove `i386/i386/io_port.h', `i386/i386/iopb.c', |
| 19369 |
`i386/i386/iopb.h'. |
| 19370 |
|
| 19371 |
* i386/i386/io_port.h: Remove file. |
| 19372 |
* i386/i386at/kd.c: Don't include <i386/io_port.h>. |
| 19373 |
(vga_port_list, kd_io_device, kd_io_map_open, kd_io_map_close): Don't |
| 19374 |
define and don't use anymore. |
| 19375 |
|
| 19376 |
* include/stddef.h: New file. |
| 19377 |
|
| 19378 |
* i386/i386/io_perm.c: Include <string.h>, <device/device_emul.h>, |
| 19379 |
<ipc/ipc_space.h> and don't include <oskit/ds_oskit.h>. |
| 19380 |
(io_perm_device_emulation_ops): New variable. |
| 19381 |
(dev_open_alloc, setup_no_senders): Remove declarations. |
| 19382 |
(convert_io_perm_to_port, convert_port_to_io_perm, io_perm_deallocate): |
| 19383 |
Rewrite. |
| 19384 |
(no_senders): New function. |
| 19385 |
(i386_io_perm_create, i386_io_perm_modify): Rewrite partially, to adapt |
| 19386 |
to the GNU Mach environment. |
| 19387 |
* i386/i386/io_perm.h: Include <device/dev_hdr.h> and |
| 19388 |
<ipc/ipc_types.h>. |
| 19389 |
(io_perm, io_perm_t): New structure and accompanying type definition. |
| 19390 |
(IO_PERM_NULL): Define. |
| 19391 |
* i386/i386/locore.S (ktss): Move variable to... |
| 19392 |
* i386/i386/ktss.c: ... here, make it a ``struct task_tss''. |
| 19393 |
(ktss_init): Initialize the `task_tss' structure and the i/o permission |
| 19394 |
bit map. |
| 19395 |
* i386/i386/ktss.h: Adapt to that. |
| 19396 |
* i386/i386/machine_task.c (machine_task_module_init): Adapt the `zinit' |
| 19397 |
call to the GNU Mach environment. |
| 19398 |
* i386/i386/mp_desc.c: Include <machine/ktss.h>. |
| 19399 |
* i386/i386/tss.h: Include <machine/io_perm.h>. |
| 19400 |
(task_tss): New structure, equivalent to the OSKit-Mach one. |
| 19401 |
* i386/include/mach/i386/mach_i386.defs: Don't include |
| 19402 |
<device/device_types.defs>. |
| 19403 |
(device_list_t): Remove type. |
| 19404 |
* i386/include/mach/i386/mach_i386_types.h (device_list_t): Remove type |
| 19405 |
definition. |
| 19406 |
|
| 19407 |
2007-05-07 Marcus Brinkmann <[email protected]> |
| 19408 |
|
| 19409 |
[bug #15295 -- Mach lets processes write to I/O ports] |
| 19410 |
|
| 19411 |
* i386/i386/iopb.h, i386/i386/iopb.c: Obsolete files removed. |
| 19412 |
|
| 19413 |
* i386/i386/pcb.c (switch_context): Update the I/O permission |
| 19414 |
bitmap from stack_handoff() here (not only in stack_handoff()). |
| 19415 |
|
| 19416 |
* i386/i386/machine_task.c (machine_task_module_init): Set |
| 19417 |
ZONE_COLLECTABLE and ZONE_EXHAUSTIBLE flags for the iopb zone. |
| 19418 |
Requested by Roland McGrath <[email protected]>. |
| 19419 |
|
| 19420 |
* i386/i386/io_perm.h: New file. |
| 19421 |
* i386/i386/io_perm.c: New file. |
| 19422 |
* i386/i386/machine_task.c: New file. |
| 19423 |
* i386/i386/mp_desc.h: (struct mp_desc_table): Change type of ktss to |
| 19424 |
struct task_tss. |
| 19425 |
(mp_ktss): Likewise for array of pointers to the struct. |
| 19426 |
* i386/i386/mp_desc.c: Include `machine/tss.h' and `machine/io_perm.h'. |
| 19427 |
(mp_ktss): Change type to array of struct task_tss. |
| 19428 |
(mp_desc_init): Cast pointer to x86_tss into pointer to task_tss, |
| 19429 |
and use size of struct task_tss instead size of struct x86_tss. |
| 19430 |
Initialize the task_tss structure. |
| 19431 |
* i386/i386/pcb.c: Include `stddef.h' and `machine/tss.h'. |
| 19432 |
(iopb_create, iopb_destroy): Prototypes removed. |
| 19433 |
(curr_ktss): Cast pointer to base_tss to pointer to struct |
| 19434 |
task_tss. |
| 19435 |
(switch_ktss): Always use kernel TSS. |
| 19436 |
(update_ktss_iopb): New function. |
| 19437 |
(stack_handoff): Call update_ktss_iopb. |
| 19438 |
(pcb_module_init): Do not call iopb_init. |
| 19439 |
(pcb_terminate): Do not call iopb_destroy. |
| 19440 |
(thread_setstatus): Remove local variable tss. |
| 19441 |
(thread_getstatus): Rewrite i386_ISA_PORT_MAP_STATE case handler. |
| 19442 |
* i386/i386/task.h: New file. |
| 19443 |
* i386/i386/thread.h: Do not include `i386/iopb.h'. |
| 19444 |
(struct i386_machine_state): Remove member io_tss. |
| 19445 |
* i386/include/mach/i386/mach_i386.defs [KERNEL_SERVER]: Include |
| 19446 |
`machine/io_perm.h'. Define intran, outtran and destructor. |
| 19447 |
(io_port_t): New type. |
| 19448 |
(io_perm_t): Likewise. |
| 19449 |
(i386_io_port_add): Interface removed. |
| 19450 |
(i386_io_port_remove): Likewise. |
| 19451 |
(i386_io_port_list): Likewise. |
| 19452 |
(i386_io_perm_create): New interface. |
| 19453 |
(i386_io_perm_modify): Likewise. |
| 19454 |
* i386/include/mach/i386/mach_i386_types.h [MACH_KERNEL]: Include |
| 19455 |
`i386/io_perm.h'. |
| 19456 |
[!MACH_KERNEL]: Define types io_port_t and io_perm_t. |
| 19457 |
* kern/task.c (task_init): Call machine_task_module_init. |
| 19458 |
(task_create): Call machine_task_init. |
| 19459 |
(task_deallocate): Call machine_task_terminate. |
| 19460 |
(task_collect_scan): Call machine_task_collect. |
| 19461 |
* task.h: Include `machine/task.h'. |
| 19462 |
(struct task): Add member machine. |
| 19463 |
|
| 19464 |
2007-05-06 Thomas Schwinge <[email protected]> |
| 19465 |
|
| 19466 |
* device/kmsg.c: Include <device/ds_routines.h>. |
| 19467 |
(kmsg_lock): Use `decl_simple_lock_data'. |
| 19468 |
(kmsgread, kmsg_read_done): Add two typecasts. |
| 19469 |
|
| 19470 |
* device/buf.h (minphys): Add return type. |
| 19471 |
* device/device_types_kernel.h: We're not in the eighties anymore... |
| 19472 |
* device/io_req.h: Likewise. |
| 19473 |
|
| 19474 |
2007-05-05 Thomas Schwinge <[email protected]> |
| 19475 |
|
| 19476 |
* i386/i386at/model_dep.c (halt_cpu, halt_all_cpus): Call |
| 19477 |
`machine_idle' to avoid busy-looping. |
| 19478 |
|
| 19479 |
* i386/intel/read_fault.c (intel_read_fault): Remove the last parameter |
| 19480 |
from the calls of `vm_map_lookup'. |
| 19481 |
|
| 19482 |
We're not in the eighties anymore. List arguments in function |
| 19483 |
prototypes and definitions for a lot of symbols. Also drop some unused |
| 19484 |
prototypes. I refrain from listing every changed symbol. |
| 19485 |
* vm/memory_object.c: Do as described. |
| 19486 |
* vm/memory_object.h: Likewise. |
| 19487 |
* vm/pmap.h: Likewise. |
| 19488 |
* vm/vm_external.c: Likewise. |
| 19489 |
* vm/vm_external.h: Likewise. |
| 19490 |
* vm/vm_fault.c: Likewise. |
| 19491 |
* vm/vm_fault.h: Likewise. |
| 19492 |
* vm/vm_kern.h: Likewise. |
| 19493 |
* vm/vm_map.c: Likewise. |
| 19494 |
* vm/vm_map.h: Likewise. |
| 19495 |
* vm/vm_pageout.h: Likewise. |
| 19496 |
* vm/vm_user.h: Likewise. |
| 19497 |
* vm/memory_object.h: Include <ipc/ipc_types.h>. |
| 19498 |
* vm/pmap.h: Include <kern/thread.h>. |
| 19499 |
* vm/vm_fault.h: Include <mach/vm_prot.h>, <vm/vm_map.h> and |
| 19500 |
<vm/vm_types.h>. |
| 19501 |
* vm/vm_map.h: Include <mach/vm_attributes.h> and <vm/vm_types.h>. |
| 19502 |
(vm_map_t, VM_MAP_NULL): Remove type and definition. |
| 19503 |
* vm/vm_object.h (vm_object_t, VM_OBJECT_NULL): Remove type and |
| 19504 |
definition. |
| 19505 |
* vm/vm_page.h: Include <vm/vm_types.h>. |
| 19506 |
(vm_page_t, VM_PAGE_NULL): Remove type and definition. |
| 19507 |
* vm/vm_user.h: Include <mach/std_types.h>. |
| 19508 |
* kern/task.h: Include <vm/vm_types.h> instead of <vm/vm_map.h>. |
| 19509 |
* vm/vm_types.h: New file: the above-removed types and definitions. |
| 19510 |
|
| 19511 |
2007-05-02 Thomas Schwinge <[email protected]> |
| 19512 |
|
| 19513 |
* configure.ac (--disable-default-device-drivers): Transform into... |
| 19514 |
(--enable-device-drivers): ... this new option and extend it. |
| 19515 |
* i386/configfrag.ac (--enable-lpr): Adapt to that. |
| 19516 |
* linux/configfrag.ac (AC_OPTION_Linux_ix86_at, AC_Linux_DRIVER): |
| 19517 |
Likewise. |
| 19518 |
(AC_Linux_DRIVER_qemu): New definition. Use it for the `floppy', `ide' |
| 19519 |
and `ne' device drivers. |
| 19520 |
* doc/mach.texi: Document all that. |
| 19521 |
|
| 19522 |
2007-05-01 Thomas Schwinge <[email protected]> |
| 19523 |
|
| 19524 |
* assigns: Remove file. See `copyright.list' on the GNU server instead. |
| 19525 |
|
| 19526 |
2007-04-30 Thomas Schwinge <[email protected]> |
| 19527 |
|
| 19528 |
We're not in the eighties anymore. List arguments in function |
| 19529 |
prototypes and definitions for a lot of symbols. Also drop some unused |
| 19530 |
prototypes. I refrain from listing every changed symbol. |
| 19531 |
* chips/busses.h: Do as described. |
| 19532 |
* ddb/db_break.c: Likewise. |
| 19533 |
* ddb/db_break.h: Likewise. |
| 19534 |
* ddb/db_command.c: Likewise. |
| 19535 |
* ddb/db_command.h: Likewise. |
| 19536 |
* ddb/db_lex.c: Likewise. |
| 19537 |
* ddb/db_lex.h: Likewise. |
| 19538 |
* ddb/db_output.c: Likewise. |
| 19539 |
* ddb/db_output.h: Likewise. |
| 19540 |
* ddb/db_sym.h: Likewise. |
| 19541 |
* ddb/db_task_thread.c: Likewise. |
| 19542 |
* ddb/db_task_thread.h: Likewise. |
| 19543 |
* ddb/db_variables.h: Likewise. |
| 19544 |
* ddb/db_watch.c: Likewise. |
| 19545 |
* ddb/db_watch.h: Likewise. |
| 19546 |
* device/buf.h: Likewise. |
| 19547 |
* device/conf.h: Likewise. |
| 19548 |
* device/dev_hdr.h: Likewise. |
| 19549 |
* device/ds_routines.h: Likewise. |
| 19550 |
* device/if_ether.h: Likewise. |
| 19551 |
* device/io_req.h: Likewise. |
| 19552 |
* device/net_io.h: Likewise. |
| 19553 |
* i386/i386/io_port.h: Likewise. |
| 19554 |
* i386/i386/lock.h: Likewise. |
| 19555 |
* i386/i386/mp_desc.c: Likewise. |
| 19556 |
* i386/i386/mp_desc.h: Likewise. |
| 19557 |
* i386/i386/proc_reg.h: Likewise. |
| 19558 |
* i386/i386/user_ldt.h: Likewise. |
| 19559 |
* i386/i386at/kd_queue.h: Likewise. |
| 19560 |
* i386/i386at/kdsoft.h: Likewise. |
| 19561 |
* i386/intel/pmap.c: Likewise. |
| 19562 |
* i386/intel/pmap.h: Likewise. |
| 19563 |
* include/mach/mach_traps.h: Likewise. |
| 19564 |
* ipc/ipc_entry.h: Likewise. |
| 19565 |
* ipc/ipc_hash.h: Likewise. |
| 19566 |
* ipc/ipc_kmsg.h: Likewise. |
| 19567 |
* ipc/ipc_marequest.c: Likewise. |
| 19568 |
* ipc/ipc_marequest.h: Likewise. |
| 19569 |
* ipc/ipc_mqueue.h: Likewise. |
| 19570 |
* ipc/ipc_notify.h: Likewise. |
| 19571 |
* ipc/ipc_object.h: Likewise. |
| 19572 |
* ipc/ipc_port.h: Likewise. |
| 19573 |
* ipc/ipc_pset.h: Likewise. |
| 19574 |
* ipc/ipc_right.h: Likewise. |
| 19575 |
* ipc/ipc_space.h: Likewise. |
| 19576 |
* ipc/ipc_table.h: Likewise. |
| 19577 |
* ipc/mach_msg.c: Likewise. |
| 19578 |
* ipc/mach_msg.h: Likewise. |
| 19579 |
* kern/ast.c: Likewise. |
| 19580 |
* kern/ast.h: Likewise. |
| 19581 |
* kern/debug.c: Likewise. |
| 19582 |
* kern/debug.h: Likewise. |
| 19583 |
* kern/ipc_tt.c: Likewise. |
| 19584 |
* kern/ipc_tt.h: Likewise. |
| 19585 |
* kern/mach_factor.c: Likewise. |
| 19586 |
* kern/mach_factor.h: Likewise. |
| 19587 |
* kern/printf.c: Likewise. |
| 19588 |
* kern/printf.h: Likewise. |
| 19589 |
* kern/queue.h: Likewise. |
| 19590 |
* kern/sched.h: Likewise. |
| 19591 |
* kern/syscall_subr.c: Likewise. |
| 19592 |
* kern/syscall_subr.h: Likewise. |
| 19593 |
* kern/task.h: Likewise. |
| 19594 |
* kern/thread_swap.c: Likewise. |
| 19595 |
* kern/thread_swap.h: Likewise. |
| 19596 |
* kern/timer.h: Likewise. |
| 19597 |
* kern/xpr.c: Likewise. |
| 19598 |
* kern/xpr.h: Likewise. |
| 19599 |
* kern/zalloc.c: Likewise. |
| 19600 |
* kern/zalloc.h: Likewise. |
| 19601 |
* ipc/ipc_port.h: Don't include <ipc/ipc_space.h>. |
| 19602 |
* device/dev_hdr.h: Include <ipc/ipc_types.h>. |
| 19603 |
* device/net_io.h: Include <device/if_hdr.h> and <device/io_req.h>. |
| 19604 |
* ipc/ipc_entry.h: Include <mach/mach_types.h> and <ipc/ipc_types.h>. |
| 19605 |
* ipc/ipc_kmsg.h: Include <ipc/ipc_object.h>, <ipc/ipc_types.h> and |
| 19606 |
<vm/vm_map.h>. |
| 19607 |
* ipc/ipc_marequest.h: Include <mach_debug/hash_info.h> and |
| 19608 |
<ipc/ipc_types.h>. |
| 19609 |
* ipc/ipc_object.h: Include <ipc/ipc_types.h>. |
| 19610 |
* ipc/ipc_right.h: Include <ipc/ipc_entry.h>. |
| 19611 |
* ipc/ipc_space.h: Include <mach/mach_types.h> and <ipc/ipc_types.h>. |
| 19612 |
* kern/ipc_tt.h: Include <mach/mach_types.h>. |
| 19613 |
* kern/sched.h: Include <kern/kern_types.h>. |
| 19614 |
* kern/syscall_subr.h: Include <kern/kern_types.h>. |
| 19615 |
* ipc/ipc_hash.c (ipc_hash_index_t): Move type definition... |
| 19616 |
* ipc/ipc_hash.h: ... into here. |
| 19617 |
|
| 19618 |
2007-04-25 Thomas Schwinge <[email protected]> |
| 19619 |
|
| 19620 |
* DEVELOPMENT: Add url. |
| 19621 |
|
| 19622 |
[task #5878 -- Backport code from GNU Mach's trunk to |
| 19623 |
gnumach-1-branch: i386_set_gdt, i386_get_gdt] |
| 19624 |
* i386/include/mach/i386/mach_i386.defs (i386_set_gdt, i386_get_gdt): |
| 19625 |
Shift by two to maintain rpc id compatibility with OSKit-Mach. |
| 19626 |
|
| 19627 |
* linux/dev/glue/kmem.c (vmalloc_list_remove): Cast the first argument |
| 19628 |
in the `kfree' call to what is expected. |
| 19629 |
|
| 19630 |
* linux/pcmcia-cs/glue/ds.c (kmalloc, kfree): Call `linux_kmalloc', |
| 19631 |
respective `linux_kfree' instead. |
| 19632 |
|
| 19633 |
* kern/kalloc.h (kalloc, kget, kfree, kalloc_init): List the arguments. |
| 19634 |
|
| 19635 |
2007-04-24 Michael Casadevall <[email protected]> |
| 19636 |
|
| 19637 |
* linux/src/drivers/net/ne.c (bad_clone_list): Add the RealTek 8029 PCI |
| 19638 |
card's signature. |
| 19639 |
<http://lists.gnu.org/archive/html/bug-hurd/2007-04/msg00039.html> |
| 19640 |
|
| 19641 |
2007-04-24 Thomas Schwinge <[email protected]> |
| 19642 |
|
| 19643 |
* ipc/ipc_port.h: Include <ipc/ipc_space.h>. |
| 19644 |
|
| 19645 |
2007-04-11 Thomas Schwinge <[email protected]> |
| 19646 |
|
| 19647 |
* config.status.dep.patch: Update to match more files. This fixes |
| 19648 |
building GNU Mach with ``make -j2'' and higher. The problem was |
| 19649 |
reported by Michael Casadevall <[email protected]>. |
| 19650 |
|
| 19651 |
2007-04-02 Thomas Schwinge <[email protected]> |
| 19652 |
|
| 19653 |
* i386/i386/io_emulate.c: Remove file. |
| 19654 |
* i386/i386/io_emulate.h: Likewise. |
| 19655 |
* i386/i386at/iopl.c: Likewise. |
| 19656 |
* i386/Makefrag.am (libkernel_a_SOURCES): Remove the aforementioned |
| 19657 |
files. |
| 19658 |
* i386/i386/trap.c: Don't include <i386/io_emulate.h>. |
| 19659 |
(v86_assist, check_io_fault): Remove functions. |
| 19660 |
(user_trap): Remove the code referencing the above functions. |
| 19661 |
* i386/i386at/conf.c (dev_name_list): Remove the `iopl' device. |
| 19662 |
* DEVELOPMENT: Document this. |
| 19663 |
|
| 19664 |
2007-03-30 Thomas Schwinge <[email protected]> |
| 19665 |
|
| 19666 |
* Makefile.am (gnumach_o_LINK): Remove ``--start-group''. |
| 19667 |
|
| 19668 |
2007-03-27 Thomas Schwinge <[email protected]> |
| 19669 |
|
| 19670 |
Unconditionally use the device driver multiplexing. Suggested by |
| 19671 |
Gianluca Guida <[email protected]>. |
| 19672 |
* i386/i386at/dev_hdr.h: Merge into `device/dev_hdr.h' and remove. |
| 19673 |
* i386/i386at/device_emul.h: Rename to `device/device_emul.h'. Adapt |
| 19674 |
all users. |
| 19675 |
* i386/i386at/i386at_ds_routines.c: Merge into `device/ds_routines.c' |
| 19676 |
and remove. |
| 19677 |
* i386/linux/dev/include/linux_emul.h: Remove file. |
| 19678 |
* Makefrag.am (libkernel_a_SOURCES): Add `device/device_emul.h'. |
| 19679 |
* i386/Makefrag.am (libkernel_a_SOURCES): Remove |
| 19680 |
`i386/i386at/dev_hdr.h', `i386/i386at/device_emul.h' and |
| 19681 |
`i386/i386at/i386at_ds_routines.c'. |
| 19682 |
* i386/linux/Makefrag.am (liblinux_a_SOURCES): Remove |
| 19683 |
`i386/linux/dev/include/linux_emul.h'. |
| 19684 |
* dev/dev_hdr.h: Adapt all users of `i386' as if it were always |
| 19685 |
defined. |
| 19686 |
* device/dev_lookup.c: Likewise. |
| 19687 |
* device/ds_routines.c: Likewise. |
| 19688 |
* device/device_init.c (ds_init): Rename to `mach_device_init'. |
| 19689 |
* device/ds_routines.c (ds_init): Likewise. |
| 19690 |
(ds_trap_init): Rename to `mach_device_trap_init'. |
| 19691 |
(mach_device_trap_init): Make it `static'. |
| 19692 |
* linux/dev/glue/block.c: Don't include <linux_emul.h>, but instead |
| 19693 |
include <device/device_emul.h> and <i386at/disk.h>. |
| 19694 |
* linux/dev/glue/net.c: Don't include <linux_emul.h>, but instead |
| 19695 |
include <device/device_emul.h>. |
| 19696 |
* linux/pcmcia-cs/glue/ds.c: Likewise. |
| 19697 |
|
| 19698 |
* kern/pcsample.h: Remove the automatic cvs log appending machinery. |
| 19699 |
* linux/dev/drivers/scsi/g_NCR5380.c: Likewise. |
| 19700 |
* linux/src/drivers/net/sk_g16.h: Likewise. |
| 19701 |
* linux/src/drivers/scsi/AM53C974.c: Likewise. |
| 19702 |
* linux/src/drivers/scsi/AM53C974.h: Likewise. |
| 19703 |
* linux/src/drivers/scsi/NCR5380.c: Likewise. |
| 19704 |
* linux/src/drivers/scsi/NCR5380.h: Likewise. |
| 19705 |
* linux/src/drivers/scsi/aha152x.c: Likewise. |
| 19706 |
* linux/src/drivers/scsi/aha1542.h: Likewise. |
| 19707 |
* linux/src/drivers/scsi/g_NCR5380.c: Likewise. |
| 19708 |
* linux/src/drivers/scsi/g_NCR5380.h: Likewise. |
| 19709 |
* linux/src/drivers/scsi/gdth.c: Likewise. |
| 19710 |
* linux/src/drivers/scsi/qlogicisp.c: Likewise. |
| 19711 |
* linux/src/drivers/scsi/qlogicisp.h: Likewise. |
| 19712 |
* linux/src/drivers/scsi/t128.c: Likewise. |
| 19713 |
* linux/src/drivers/scsi/t128.h: Likewise. |
| 19714 |
|
| 19715 |
2007-03-24 Thomas Schwinge <[email protected]> |
| 19716 |
|
| 19717 |
* i386/i386at/conf.c (block_io_mmap): Remove declaration. |
| 19718 |
|
| 19719 |
* doc/mach.texi: Fix a typo and the url for GNU GRUB. |
| 19720 |
|
| 19721 |
* device/kmsg.h: Include <sys/types.h>, <device/device_types.h> and |
| 19722 |
<device/io_req.h>. |
| 19723 |
|
| 19724 |
* Makefrag.am (libkernel_a_SOURCES): Move `device/kmsg.h' into |
| 19725 |
[enable_kmsg]. |
| 19726 |
|
| 19727 |
2007-03-23 Thomas Schwinge <[email protected]> |
| 19728 |
|
| 19729 |
* Makerules.am (%.server.msgids, %.user.msgids): Merge into the |
| 19730 |
existing ``%.h %.c'' rules. |
| 19731 |
Comment out the currently unused rpc stub rules. |
| 19732 |
* Makefrag.am (gnumach.msgids): Rewrite. |
| 19733 |
(nodist_libkernel_a_SOURCES): Add all ``.msgids'' files. |
| 19734 |
* i386/Makefrag.am (nodist_libkernel_a_SOURCES): Likewise. |
| 19735 |
|
| 19736 |
2007-03-19 Tim Retout <[email protected]> |
| 19737 |
|
| 19738 |
* i386/ldscript: Correct 'LINKFLAGS_gnumach' in comment. |
| 19739 |
|
| 19740 |
2007-03-06 Samuel Thibault <[email protected]> |
| 19741 |
|
| 19742 |
* i386/i386/user_ldt.c (i386_set_gdt): Call switch_ktss() if target is |
| 19743 |
current thread. |
| 19744 |
|
| 19745 |
2007-03-05 Samuel Thibault <[email protected]> |
| 19746 |
|
| 19747 |
[bug #18349 -- ``General Protection Trap'' in `ipc_kmsg_enqueue'] |
| 19748 |
* linux/dev/glue/net.c (device_write): Call net_packet() with splimp |
| 19749 |
held. |
| 19750 |
|
| 19751 |
2007-03-04 Thomas Schwinge <[email protected]> |
| 19752 |
|
| 19753 |
* tests/configfrag.ac (MBCHK): Remove check. |
| 19754 |
* tests/test-mbchk.in: Fail correctly if `mbchk' is not available. |
| 19755 |
|
| 19756 |
2007-03-01 Thomas Schwinge <[email protected]> |
| 19757 |
|
| 19758 |
* linux/dev/glue/block.c (free_buffer): Use `VM_PAGE_FREE'. |
| 19759 |
* vm/vm_object.c (vm_object_collapse, vm_object_page_remove) |
| 19760 |
(vm_object_page_map): Likewise. |
| 19761 |
|
| 19762 |
2007-02-20 Samuel Thibault <[email protected]> |
| 19763 |
|
| 19764 |
* linux/dev/glue/block.c (free_buffer): Fix |
| 19765 |
vm_page_lock_queues/vm_page_unlock_queues pair. |
| 19766 |
|
| 19767 |
Fix ddb's trace command. |
| 19768 |
* i386/i386/db_trace.c (db_find_trace_symbols): Drop _ prefix on ELF |
| 19769 |
targets. |
| 19770 |
(db_i386_stack_trace): Check that adresses of known functions were |
| 19771 |
really found. |
| 19772 |
|
| 19773 |
2007-02-19 Thomas Schwinge <[email protected]> |
| 19774 |
|
| 19775 |
* Makefile.am (gnumach_LINKFLAGS): New variable. |
| 19776 |
(gnumach_LINK): Use that one instead of the previously used |
| 19777 |
`LINKFLAGS_gnumach'. |
| 19778 |
* i386/Makefrag.am (LINKFLAGS_gnumach): Rename to `gnumach_LINKFLAGS', |
| 19779 |
move into [PLATFORM_at] and pass `_START'. |
| 19780 |
* i386/ldscript: Don't hardcode a _start address of 0x100000, but make |
| 19781 |
it configurable via `_START'. |
| 19782 |
|
| 19783 |
Add a `--enable-platform' option for future use. Allow building |
| 19784 |
without any Linux code. |
| 19785 |
* Makefile.am: Don't include `linux/Makefrag.am' in there... |
| 19786 |
* Makefrag.am: ... but rather in here. |
| 19787 |
* configfrag.ac (MACH_MACHINE_ROUTINES): AC_DEFINE_UNQUOTED based on |
| 19788 |
then shell variable `mach_machine_routines'. |
| 19789 |
(--disable-default-device-drivers): Don't define in there... |
| 19790 |
* configure.ac: ... but rather in here. |
| 19791 |
(--enable-platform): New option. |
| 19792 |
(host_platform): New variable. |
| 19793 |
(HOST_i386): Don't define there... |
| 19794 |
* i386/configfrag.ac (HOST_ix86): ... but rather here, rename it and |
| 19795 |
adapt all users. |
| 19796 |
(PLATFORM_at): New conditional. |
| 19797 |
(MACH_MACHINE_ROUTINES): Don't AC_DEFINE, but rather set a shell |
| 19798 |
variable `mach_machine_routines'. |
| 19799 |
* linux/Makefrag.am (noinst_LIBRARIES, gnumach_o_LDADD): Only enhance |
| 19800 |
``if CODE_linux'' or ``if device_driver_group_pcmcia''. |
| 19801 |
* linux/configfrag.ac (AC_OPTION): Rename to `AC_OPTION_Linux_ix86_at' |
| 19802 |
and rework a bit. Adapt all users. |
| 19803 |
(AC_OPTION_nodef): Rename to `AC_OPTION_Linux_ix86_at_nodef' and rework |
| 19804 |
a bit. Adapt all users. |
| 19805 |
(CODE_linux): New conditional. |
| 19806 |
* i386/Makefrag.am (LINKFLAGS_gnumach): Don't evaluate $(systype). |
| 19807 |
|
| 19808 |
* Makefile.am: Update the FSF's postal address. |
| 19809 |
* doc/Makefrag.am: Likewise. |
| 19810 |
* i386/linux/Makefrag.am: Likewise. |
| 19811 |
* linux/Makefrag.am: Likewise. |
| 19812 |
* tests/Makefrag.am: Likewise. |
| 19813 |
* tests/configfrag.ac: Move to GPL. |
| 19814 |
|
| 19815 |
2007-02-05 Thomas Schwinge <[email protected]> |
| 19816 |
|
| 19817 |
* kern/mach_clock.c: Don't include <kern/time_out.h>. |
| 19818 |
|
| 19819 |
* i386/i386/hardclock.c: Include <kern/mach_clock.h> instead of |
| 19820 |
<kern/time_out.h>. |
| 19821 |
* i386/i386/pit.c: Likewise. |
| 19822 |
* i386/i386at/kd.c: Likewise. |
| 19823 |
* i386/i386at/model_dep.c: Likewise. |
| 19824 |
* i386/i386at/rtc.c: Likewise. |
| 19825 |
* kern/ipc_sched.c: Likewise. |
| 19826 |
* kern/mach_factor.c: Likewise. |
| 19827 |
* kern/priority.c: Likewise. |
| 19828 |
* kern/sched_prim.c: Likewise. |
| 19829 |
* kern/startup.c: Likewise. |
| 19830 |
* kern/syscall_subr.c: Likewise. |
| 19831 |
* kern/thread.h: Likewise. |
| 19832 |
* kern/zalloc.c: Likewise. |
| 19833 |
|
| 19834 |
* kern/host.c: Include <kern/mach_clock.h>. |
| 19835 |
(tick): Remove declaration. |
| 19836 |
* kern/pc_sample.c: Likewise. |
| 19837 |
* kern/thread.c: Likewise. |
| 19838 |
* kern/sched_prim.c (hz): Remove declaration. |
| 19839 |
* kern/syscall_subr.c (hz): Likewise. |
| 19840 |
* linux/dev/init/main.c (hz): Likewise. |
| 19841 |
|
| 19842 |
* kern/time_out.h: Remove file after having installed the missing bits |
| 19843 |
in... |
| 19844 |
* kern/mach_clock.h: ... here. |
| 19845 |
|
| 19846 |
* configfrag.ac: Enhance comments. |
| 19847 |
|
| 19848 |
* vm/vm_debug.c (MACH_VM_DEBUG): Correctly place conditional. |
| 19849 |
|
| 19850 |
2007-02-04 Thomas Schwinge <[email protected]> |
| 19851 |
|
| 19852 |
* doc/mach.texi (thread_switch): Enhance a bit. |
| 19853 |
|
| 19854 |
* doc/Makefrag.am ($(web)): Use ``mkdir -p''. |
| 19855 |
|
| 19856 |
* doc/mach.texi: Fix unusual hyphens. |
| 19857 |
|
| 19858 |
* i386/i386/hardclock.c: Don't check for the `SYMMETRY' platform. |
| 19859 |
|
| 19860 |
* kern/timer.h: Add some comments from... |
| 19861 |
* i386/i386/timer.h: ... here and remove this file. |
| 19862 |
|
| 19863 |
2007-01-26 Thomas Schwinge <[email protected]> |
| 19864 |
|
| 19865 |
* doc/mach.texi: Fix the last change. |
| 19866 |
|
| 19867 |
2007-01-22 Thomas Schwinge <[email protected]> |
| 19868 |
|
| 19869 |
* COPYING: Update via GNU automake 1.10. |
| 19870 |
* doc/fdl.texi: Update from <http://www.gnu.org/licenses/fdl.texi>. |
| 19871 |
* doc/gpl.texi: Update from <http://www.gnu.org/licenses/gpl.texi>. |
| 19872 |
* doc/mach.texi: Use the GFDL 1.2. |
| 19873 |
|
| 19874 |
2007-01-21 Ralf Wildenhues <[email protected]> |
| 19875 |
|
| 19876 |
* doc/mach.texi: Many typos fixed. |
| 19877 |
|
| 19878 |
2007-01-11 Thomas Schwinge <[email protected]> |
| 19879 |
|
| 19880 |
* DEVELOPMENT (LAYOUT OF THE SOURCE TREE): New section. |
| 19881 |
|
| 19882 |
These following files are regenerated by running ``autoreconf -i'' and |
| 19883 |
``make info''. |
| 19884 |
* INSTALL: Remove file. |
| 19885 |
* Makefile.in: Likewise. |
| 19886 |
* aclocal.m4: Likewise. |
| 19887 |
* build-aux/compile: Likewise. |
| 19888 |
* build-aux/config.guess: Likewise. |
| 19889 |
* build-aux/config.sub: Likewise. |
| 19890 |
* build-aux/depcomp: Likewise. |
| 19891 |
* build-aux/install-sh: Likewise. |
| 19892 |
* build-aux/mdate-sh: Likewise. |
| 19893 |
* build-aux/missing: Likewise. |
| 19894 |
* build-aux/texinfo.tex: Likewise. |
| 19895 |
* config.h.in: Likewise. |
| 19896 |
* configure: Likewise. |
| 19897 |
* doc/mach.info: Likewise. |
| 19898 |
* doc/mach.info-1: Likewise. |
| 19899 |
* doc/mach.info-2: Likewise. |
| 19900 |
* doc/stamp-vti: Likewise. |
| 19901 |
* doc/version.texi: Likewise. |
| 19902 |
|
| 19903 |
2007-01-06 Thomas Schwinge <[email protected]> |
| 19904 |
|
| 19905 |
* ddb/db_break.c (db_delete_thread_breakpoint): Don't declare |
| 19906 |
`db_cond_free'. |
| 19907 |
* ddb/db_run.c: Include <ddb/db_cond.h>. |
| 19908 |
(db_stop_at_pc): Don't declare `db_cond_check'. |
| 19909 |
* ddb/db_input.c: Include <ddb/db_input.h>. |
| 19910 |
* ddb/db_macro.c: Include <ddb/db_macro.h>. |
| 19911 |
* ddb/db_trap.c: Include <ddb/db_trap.h>. |
| 19912 |
* i386/i386/db_interface.h: Include <machine/thread.h>. |
| 19913 |
* i386/i386/db_interface.c: Include <machine/db_interface.h>. |
| 19914 |
* i386/i386/db_machdep.h: Include <machine/db_interface.h>. |
| 19915 |
(db_check_access, db_phys_eq, db_task_name): Remove declarations. |
| 19916 |
|
| 19917 |
2007-01-06 Barry deFreese <[email protected]> |
| 19918 |
|
| 19919 |
* ddb/db_aout.c: Include <ddb/db_output.h>. |
| 19920 |
* ddb/db_break.c: Include <ddb/db_cond.h>, <ddb/db_expr.h> and |
| 19921 |
<ddb/db_output.h>. |
| 19922 |
(db_delete_cmd, db_breakpoint_cmd): Explicitly define untyped variables |
| 19923 |
as `int'. |
| 19924 |
* ddb/db_command.c: Include <ddb/db_examine.h>, <ddb/db_expr.h> and |
| 19925 |
<ddb/db_macro.h>. |
| 19926 |
* ddb/db_command.h (db_exec_cmd_nest): New declaration. |
| 19927 |
* ddb/db_cond.c: Include <ddb/db_cond.h>, <ddb/db_expr.h> and |
| 19928 |
<ddb/db_output.h>. |
| 19929 |
(db_cond_cmd): Explicitly define untyped variable as `int'. |
| 19930 |
* ddb/db_cond.h: New file. |
| 19931 |
* ddb/db_examine.c: Include <machine/db_interface.h>, |
| 19932 |
<ddb/db_examine.h> and <ddb/db_expr.h>. |
| 19933 |
(db_strcpy, db_examine): Remove forward declarations. |
| 19934 |
(db_xcdump): Explicitly define untyped variables as `int'. |
| 19935 |
* ddb/db_examine.h: New file. |
| 19936 |
* ddb/db_expr.c: Include <ddb/db_expr.h>, <ddb/db_output.h>, |
| 19937 |
<ddb/db_sym.h> and <ddb/db_variables.h>. |
| 19938 |
* ddb/db_input.c: Include <ddb/db_command.h>. |
| 19939 |
* ddb/db_input.h: New file. |
| 19940 |
* ddb/db_lex.c: Include <ddb/db_command.h>, <ddb/db_examine.h>, |
| 19941 |
<ddb/db_input.h> and <ddb/db_output.h>. |
| 19942 |
(db_skip_to_eol, db_lex): Explicitly define untyped variables as `int'. |
| 19943 |
* ddb/db_lex.h (db_lex): New declaration. |
| 19944 |
* ddb/db_macro.c: Include <ddb/db_examine.h>, <ddb/db_expr.h> and |
| 19945 |
<ddb/db_output.h>. |
| 19946 |
(db_def_macro_cmd, db_exec_macro): Explicitly define untyped variables |
| 19947 |
as `int'. |
| 19948 |
* ddb/db_macro.h: New file. |
| 19949 |
* ddb/db_output.c: Include <ddb/db_command.h>. |
| 19950 |
* ddb/db_output.h (db_putchar): New declaration. |
| 19951 |
* ddb/db_print.c: Include <machine/db_interface.h>, <ddb/db_command.h> |
| 19952 |
and <ddb/db_output.h>. |
| 19953 |
(db_show_regs): Explicitly define untyped variables as `int'. |
| 19954 |
* ddb/db_run.c: Include <ddb/db_command.h>, <ddb/db_examine.h>, |
| 19955 |
<ddb/db_output.h> and <ddb/db_watch.h>. |
| 19956 |
* ddb/db_run.h: Include <kern/task.h> and <machine/db_machdep.h>. |
| 19957 |
(db_single_step, db_single_step_cmd, db_in_single_step): New |
| 19958 |
declarations. |
| 19959 |
* ddb/db_sym.c: Include <ddb/db_command.h> and <ddb/db_output.h>. |
| 19960 |
(db_sym_parse_and_lookup): Explicitly define untyped variables as |
| 19961 |
`int'. |
| 19962 |
* ddb/db_sym.h (db_line_at_pc): New declaration. |
| 19963 |
* ddb/db_task_thread.c: Include <ddb/db_command.h>, <ddb/db_expr.h>, |
| 19964 |
<ddb/db_lex.h> and <ddb/db_output.h>. |
| 19965 |
(db_lookup_task, db_lookup_task_thread, db_lookup_thread) |
| 19966 |
(db_lookup_task_id, db_lookup_thread_id): Explicitly define untyped |
| 19967 |
variables as `int'. |
| 19968 |
* ddb/db_trap.c: Include <ddb/db_examine.h> and <ddb/db_output.h>. |
| 19969 |
* ddb/db_trap.h: New file. |
| 19970 |
* ddb/db_variables.c: Include <ddb/db_command.h>, <ddb/db_examine.h>, |
| 19971 |
<ddb/db_expr.h> and <ddb/db_output.h>. |
| 19972 |
(db_get_suffix, db_cmp_variable_name): Explicitly define untyped |
| 19973 |
variables as `int'. |
| 19974 |
* ddb/db_variables.h (db_get_variable): New declaration. |
| 19975 |
* ddb/db_watch.c: Include <ddb/db_command.h>, <ddb/db_expr.h>, |
| 19976 |
<ddb/db_output.h> and <ddb/db_run.h>. |
| 19977 |
* ddb/db_write_cmd.c: Include <ddb/db_expr.h> and <ddb/db_output.h>. |
| 19978 |
* i386/i386/db_interface.c: Include <kern/printf.h>, <ddb/db_access.h>, |
| 19979 |
<ddb/db_command.h>, <ddb/db_output.h>, <ddb/db_run.h> and |
| 19980 |
<ddb/db_trap.h>. |
| 19981 |
(kdbprinttrap): Add `void' return type. |
| 19982 |
(db_user_to_kernel_address, db_task_name): Explicitly define untyped |
| 19983 |
variables as `int'. |
| 19984 |
* i386/i386/db_interface.h: New file. |
| 19985 |
* i386/i386/db_trace.c (db_i386_reg_value): Add `int' return type. |
| 19986 |
* i386/i386/trap.c [MACH_KDB]: Include <ddb/db_run.h> and |
| 19987 |
<ddb/db_watch.h>. |
| 19988 |
* ipc/ipc_kmsg.c [MACH_KDB]: Include <ddb/db_output.h>. |
| 19989 |
* kern/lock.c [MACH_KDB]: Include <ddb/db_output.h>. |
| 19990 |
|
| 19991 |
2007-01-06 Thomas Schwinge <[email protected]> |
| 19992 |
|
| 19993 |
* configure.ac (AM_INIT_AUTOMAKE): Add ``-Wall -Wno-portability''. |
| 19994 |
|
| 19995 |
2007-01-05 Richard Braun <[email protected]> |
| 19996 |
|
| 19997 |
Add alignment support in the zone allocator. |
| 19998 |
* kern/zalloc.c (ALIGN_SIZE_UP): New macro. |
| 19999 |
(zinit): New `align' parameter. |
| 20000 |
(zget_space): Likewise. |
| 20001 |
(zalloc): Updated call to zget_space() with the zone alignment. |
| 20002 |
* kern/zalloc.h (zone): New member `align'. |
| 20003 |
(zinit): Declaration updated as required. |
| 20004 |
* device/dev_lookup.c (dev_lookup_init): Updated call to zinit() with |
| 20005 |
alignment of 0. |
| 20006 |
* device/dev_pager.c (dev_pager_hash_init): Likewise. |
| 20007 |
(device_pager_init): Likewise. |
| 20008 |
* device/ds_routines.c (ds_init): Likewise. |
| 20009 |
(ds_trap_init): Likewise. |
| 20010 |
* device/net_io.c (net_io_init): Likewise. |
| 20011 |
* i386/i386/fpu.c (fpu_module_init): Likewise. |
| 20012 |
* i386/i386/pcb.c (pcb_module_init): Likewise. |
| 20013 |
* i386/intel/pmap.c (pmap_init): Likewise. |
| 20014 |
* ipc/ipc_init.c (ipc_bootstrap): Likewise. |
| 20015 |
* ipc/ipc_marequest.c (ipc_marequest_init): Likewise. |
| 20016 |
* kern/act.c (global_act_init): Likewise. |
| 20017 |
* kern/kalloc.c (kalloc_init): Likewise. |
| 20018 |
* kern/processor.c (pset_sys_init): Likewise. |
| 20019 |
* kern/task.c (task_init): Likewise. |
| 20020 |
* kern/thread.c (thread_init): Likewise. |
| 20021 |
* kern/zalloc.c (zone_bootstrap): Likewise. |
| 20022 |
* vm/vm_external.c (vm_external_module_initialize): Likewise. |
| 20023 |
* vm/vm_fault.c (vm_fault_init): Likewise. |
| 20024 |
* vm/vm_map.c (vm_map_init): Likewise. |
| 20025 |
* vm/vm_object.c (vm_object_bootstrap): Likewise. |
| 20026 |
* vm/vm_resident.c (vm_page_module_init): Likewise. |
| 20027 |
|
| 20028 |
2007-01-02 Samuel Thibault <[email protected]> |
| 20029 |
|
| 20030 |
Fix translation of port into device in the "no sender" notification. |
| 20031 |
* i386/i386at/i386at_ds_routines.c (ds_notify): Use dev_port_lookup() |
| 20032 |
for translating the remote port. |
| 20033 |
|
| 20034 |
Fix loop indexing. |
| 20035 |
* i386/intel/pmap.c (pmap_change_wiring): Increment pte in the |
| 20036 |
unwiring loop. |
| 20037 |
|
| 20038 |
Drop old and broken support for Olivetti XP7 & XP9 |
| 20039 |
* i386/intel/pmap.c [ORC] (OLIVETTICACHE): Remove macro. |
| 20040 |
[OLIVETTICACHE] (pstart): Remove declaration. |
| 20041 |
(CACHE_LINE, CACHE_SIZE, CACHE_PAGE, WRITE_PTE, WRITE_PTE_FAST): Remove |
| 20042 |
macros. |
| 20043 |
[OLIVETTICACHE] (write_pte): Remove function. |
| 20044 |
* DEVELOPMENT: Document the removal. |
| 20045 |
|
| 20046 |
2006-12-19 Samuel Thibault <[email protected]> |
| 20047 |
|
| 20048 |
Add support for global pages. |
| 20049 |
* i386/i386at/model_dep.c: Include <i386/locore.h>. |
| 20050 |
(i386at_init): Set CR4_PGE if available. |
| 20051 |
(c_boot_entry): Call discover_x86_cpu_type() before i386at_init(). |
| 20052 |
* i386/intel/pmap.c: Include <i386/locore.h>. |
| 20053 |
(pmap_map_bd): Use INTEL_PTE_GLOBAL if available. |
| 20054 |
(pmap_bootstrap): Likewise. |
| 20055 |
|
| 20056 |
Add support for cr3/cr4 flags. |
| 20057 |
* i386/i386/proc_reg.h (CR3_PCD, CR3_PWT, CR4_VME, CR4_PVI, CR4_TSD) |
| 20058 |
(CR4_DE, CR4_PSE, CR4_PAE, CR4_MCE, CR4_PGE, CR4_PCE, CR4_OSFXSR) |
| 20059 |
(CR4_OSXMMEXCPT, get_cr4, set_cr4): New macros. |
| 20060 |
* i386/intel/pmap.h (INTEL_PTE_GLOBAL): New macro. |
| 20061 |
|
| 20062 |
Add support for querying x86 features. |
| 20063 |
* i386/i386/locore.h (cpu_features): New variable declaration. |
| 20064 |
(CPU_FEATURE_FPU, CPU_FEATURE_VME, CPU_FEATURE_DE, CPU_FEATURE_PSE) |
| 20065 |
(CPU_FEATURE_TSC, CPU_FEATURE_MSR, CPU_FEATURE_PAE, CPU_FEATURE_MCE) |
| 20066 |
(CPU_FEATURE_CX8, CPU_FEATURE_APIC, CPU_FEATURE_SEP, CPU_FEATURE_MTRR) |
| 20067 |
(CPU_FEATURE_PGE, CPU_FEATURE_MCA, CPU_FEATURE_CMOV, CPU_FEATURE_PAT) |
| 20068 |
(CPU_FEATURE_PSE_36, CPU_FEATURE_PSN, CPU_FEATURE_CFLSH) |
| 20069 |
(CPU_FEATURE_DS, CPU_FEATURE_ACPI, CPU_FEATURE_MMX, CPU_FEATURE_FXSR) |
| 20070 |
(CPU_FEATURE_SSE, CPU_FEATURE_SSE2, CPU_FEATURE_SS, CPU_FEATURE_HTT) |
| 20071 |
(CPU_FEATURE_TM, CPU_FEATURE_PBE, CPU_HAS_FEATURE): New macros. |
| 20072 |
* i386/i386/locore.S (cpu_features): New variable. |
| 20073 |
(discover_x86_cpu_type): Record CPUID feature word 0. |
| 20074 |
|
| 20075 |
2006-12-13 Samuel Thibault <[email protected]> |
| 20076 |
|
| 20077 |
Drop useless and broken FPE support. |
| 20078 |
* i386/configfrac.ac (FPE): Don't define. |
| 20079 |
* i386/i386/gdt.h (FPE_CS, USER_FPREGS): Remove macros. |
| 20080 |
* i386/i386/fpu.c (init_fpu, fpu_set_state, fpu_get_state): Remove FPE |
| 20081 |
support. |
| 20082 |
* i386/i386/fpu.h: Likewise. |
| 20083 |
* i386/i386/trap.c (user_trap, i386_exception): Likewise. |
| 20084 |
* i386/i386/fpe_linkage.c: Remove file. |
| 20085 |
* i386/Makefrag.am: Remove i386/i386/fpe_linkage.c. |
| 20086 |
* Makefile.in: Regenerate. |
| 20087 |
|
| 20088 |
2006-12-03 Thomas Schwinge <[email protected]> |
| 20089 |
|
| 20090 |
[patch #5019 -- Remove checks for continuations] |
| 20091 |
|
| 20092 |
* DEVELOPMENT: Document the removal. |
| 20093 |
|
| 20094 |
* i386/configfrag.ac (CONTINUATIONS): Don't define. |
| 20095 |
|
| 20096 |
2006-12-03 Leonardo Lopes Pereira <[email protected]> |
| 20097 |
|
| 20098 |
[patch #5019 -- Remove checks for continuations] |
| 20099 |
* ipc/mach_msg.c: Adapt all users of CONTINUATIONS as if it were always |
| 20100 |
defined. |
| 20101 |
* kern/eventcount.c: Likewise. |
| 20102 |
* kern/ipc_sched.c: Likewise. |
| 20103 |
* kern/syscall_subr.c: Likewise. |
| 20104 |
* vm/vm_fault.c: Likewise. |
| 20105 |
* vm/vm_pageout.c: Likewise. |
| 20106 |
* vm/vm_resident.c: Likewise. |
| 20107 |
|
| 20108 |
2006-12-03 Thomas Schwinge <[email protected]> |
| 20109 |
|
| 20110 |
[patch #5017 -- Remove obsolete IPC interfaces] |
| 20111 |
|
| 20112 |
* DEVELOPMENT: Document the removal. |
| 20113 |
|
| 20114 |
* configfrag.ac (MACH_IPC_COMPAT): Don't define. |
| 20115 |
|
| 20116 |
2006-12-03 Leonardo Lopes Pereira <[email protected]> |
| 20117 |
|
| 20118 |
[patch #5017 -- Remove obsolete IPC interfaces] |
| 20119 |
* kern/act.c [MIGRATING_THREADS]: Don't include <mach_ipc_compat.h>. |
| 20120 |
* kern/act.h: Likewise. |
| 20121 |
* i386/include/mach/i386/machine_types.defs: Adapt all users of |
| 20122 |
MACH_IPC_COMPAT as if it were always defined to `0'. |
| 20123 |
* include/mach/mach.defs: Likewise. |
| 20124 |
* include/mach/mach_param.h: Likewise. |
| 20125 |
* include/mach/mach_traps.h: Likewise. |
| 20126 |
* include/mach/message.h: Likewise. |
| 20127 |
* include/mach/mig_errors.h: Likewise. |
| 20128 |
* include/mach/notify.h: Likewise. |
| 20129 |
* include/mach/port.h: Likewise. |
| 20130 |
* include/mach/std_types.defs: Likewise. |
| 20131 |
* include/mach/syscall_sw.h: Likewise. |
| 20132 |
* include/mach/task_special_ports.h: Likewise. |
| 20133 |
* include/mach/thread_special_ports.h: Likewise. |
| 20134 |
* ipc/ipc_kmsg.c: Likewise. |
| 20135 |
* ipc/ipc_kmsg.h: Likewise. |
| 20136 |
* ipc/ipc_marequest.c: Likewise. |
| 20137 |
* ipc/ipc_notify.c: Likewise. |
| 20138 |
* ipc/ipc_notify.h: Likewise. |
| 20139 |
* ipc/ipc_object.c: Likewise. |
| 20140 |
* ipc/ipc_object.h: Likewise. |
| 20141 |
* ipc/ipc_port.c: Likewise. |
| 20142 |
* ipc/ipc_port.h: Likewise. |
| 20143 |
* ipc/ipc_right.c: Likewise. |
| 20144 |
* ipc/ipc_right.h: Likewise. |
| 20145 |
* ipc/ipc_space.c: Likewise. |
| 20146 |
* ipc/ipc_space.h: Likewise. |
| 20147 |
* ipc/mach_debug.c: Likewise. |
| 20148 |
* ipc/mach_msg.c: Likewise |
| 20149 |
* ipc/mach_msg.h: Likewise. |
| 20150 |
* ipc/mach_port.c: Likewise. |
| 20151 |
* kern/act.c: Likewise. |
| 20152 |
* kern/act.h: Likewise. |
| 20153 |
* kern/ipc_host.c: Likewise. |
| 20154 |
* kern/ipc_tt.c: Likewise. |
| 20155 |
* kern/syscall_sw.c: Likewise. |
| 20156 |
* kern/thread.h: Likewise. |
| 20157 |
|
| 20158 |
2006-12-03 Thomas Schwinge <[email protected]> |
| 20159 |
|
| 20160 |
[bug #17120 -- GNU Mach debian dir] |
| 20161 |
* debian/README.Debian: Remove file. |
| 20162 |
* debian/changelog: Likewise. |
| 20163 |
* debian/control: Likewise. |
| 20164 |
* debian/copyright: Likewise. |
| 20165 |
* debian/postinst: Likewise. |
| 20166 |
* debian/prerm: Likewise. |
| 20167 |
* debian/rules: Likewise. |
| 20168 |
|
| 20169 |
[bug #18015 -- GNU Mach: `make dist' and friends] |
| 20170 |
* Makefile.am (DISTCLEANFILES): New variable. |
| 20171 |
|
| 20172 |
2006-11-30 Thomas Schwinge <[email protected]> |
| 20173 |
|
| 20174 |
* Makefile.in: Regenerate. |
| 20175 |
* configure: Likewise. |
| 20176 |
|
| 20177 |
2006-11-30 Barry deFreese <[email protected]> |
| 20178 |
Thomas Schwinge <[email protected]> |
| 20179 |
|
| 20180 |
[bug #18015 -- GNU Mach: `make dist' and friends] |
| 20181 |
* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable. |
| 20182 |
(EXTRA_DIST): Enhance with the patches and documentation files. |
| 20183 |
(dist-hook): New target to remove the `CVS' directories. |
| 20184 |
* Makefrag.am (libkernel_a_SOURCES, EXTRA_DIST): Add header and `mig' |
| 20185 |
input files. |
| 20186 |
(DISTCHECK_CONFIGURE_FLAGS): Enable the kernel debugger. |
| 20187 |
* i386/Makefrag.am: Likewise. Also add `i386/i386/i386asm.sym', |
| 20188 |
`i386/ldscript' and `i386/README-Drivers'. |
| 20189 |
* i386/linux/Makefrag.am (liblinux_a_SOURCES): Add the header files |
| 20190 |
from `i386/linux/'. |
| 20191 |
* linux/Makefrag.am (liblinux_a_SOURCES, EXTRA_DIST) |
| 20192 |
(liblinux_pcmcia_cs_modules_a_SOURCES) |
| 20193 |
(liblinux_pcmcia_cs_clients_a_SOURCES) |
| 20194 |
(liblinux_pcmcia_cs_wireless_a_SOURCES): Add header and other included |
| 20195 |
files. |
| 20196 |
(dist-hook): Depend on `dist-hook-linux'. |
| 20197 |
(dist-hook-linux): New phony target to remove the `asm' symbolic links. |
| 20198 |
* Makerules.am (EXTRA_DIST): Add `gensym.awk'. |
| 20199 |
* doc/Makefrag.am (EXTRA_DIST): Add `$(mach_TEXINFOS)'. |
| 20200 |
* configure.ac (AC_CONFIG_LINKS): Move instantiation to... |
| 20201 |
* configfrag.ac: ... here and change quotation. |
| 20202 |
* linux/configfrag.ac (AC_CONFIG_LINKS): Change quotation. |
| 20203 |
|
| 20204 |
2006-11-29 Thomas Schwinge <[email protected]> |
| 20205 |
|
| 20206 |
* configure: Regenerate. |
| 20207 |
* Makefile.in: Likewise. |
| 20208 |
|
| 20209 |
* configure.ac (disable_smashing_stack_protector): New conditional, set |
| 20210 |
depending on the compiler accepting `-fstack-protector' or not. |
| 20211 |
* Makefile.am (CFLAGS): Add `-fno-stack-protector' if |
| 20212 |
`disable_smashing_stack_protector' is set. |
| 20213 |
|
| 20214 |
2006-11-28 Thomas Schwinge <[email protected]> |
| 20215 |
|
| 20216 |
* doc/Makefrag.am ($(srcdir)/doc/version.texi): Oppress a potential |
| 20217 |
error message from grep. |
| 20218 |
|
| 20219 |
2006-11-26 Samuel Thibault <[email protected]> |
| 20220 |
|
| 20221 |
[bug #17346 -- GNU mach can't handle 4GB memory] |
| 20222 |
* i386/i386at/model_dep.c (mem_size_init): Truncate memory size to |
| 20223 |
4GiB. |
| 20224 |
|
| 20225 |
2006-11-21 Thomas Schwinge <[email protected]> |
| 20226 |
|
| 20227 |
* doc/Makefrag.am (doc/web, html-local, ps-local, pdf-local) |
| 20228 |
($(srcdir)/doc/version.texi): New targets to faciliate keeping the web |
| 20229 |
pages of the GNU Mach Reference Manual updated. |
| 20230 |
|
| 20231 |
2006-11-20 Samuel Thibault <[email protected]> |
| 20232 |
|
| 20233 |
[patch #5328 -- GNU Mach asm statements tidy] |
| 20234 |
* i386/i386/fpe_linkage.c (disable_fpe): Gather dependent asm |
| 20235 |
statements, add `ax' clobber. |
| 20236 |
(fpe_exception_fixup): Drop bogus cast from input parameter of lcall |
| 20237 |
asm statement. |
| 20238 |
* i386/i386/pio.h (inw, outw): Drop 0x66 prefix an just use the w |
| 20239 |
instruction variant. |
| 20240 |
* i386/i386/proc_reg.h: (get_eflags, get_tr, get_ldt): Drop |
| 20241 |
useless "volatile" from asm statement. |
| 20242 |
(get_esp): Use direct asm register specification. |
| 20243 |
* i386/include/mach/i386/cthreads.h (cthread_sp): Likewise. |
| 20244 |
* i386/intel/pmap.c (pmap_unmap_page_zero): Fix asm clobber into `eax'. |
| 20245 |
|
| 20246 |
[patch #5375 -- Fix de4x5 probe] |
| 20247 |
* linux/src/drivers/net/de4x5.c (pci_probe): Make probe loop stop on |
| 20248 |
any error, not only device not found. |
| 20249 |
|
| 20250 |
2006-11-17 Constantine Kousoulos <[email protected]> |
| 20251 |
Thomas Schwinge <[email protected]> |
| 20252 |
|
| 20253 |
[bug #18010 -- GNU Mach: update i386/README-Drivers and doc/mach.texi] |
| 20254 |
* i386/README-Drivers: Move most of the text into... |
| 20255 |
* doc/mach.texi: ... here and update a number of things. |
| 20256 |
(UPDATED): Don't override. |
| 20257 |
|
| 20258 |
2006-11-13 Samuel Thibault <[email protected]> |
| 20259 |
|
| 20260 |
* i386/i386at/iopl.c (ioplmmap): Add `int' return type. |
| 20261 |
* i386/i386at/model_dep.c (halt_all_cpus): Fix typo in declaration. |
| 20262 |
* kern/assert.h (Assert): Add __attribute__ ((noreturn)) to |
| 20263 |
declaration. |
| 20264 |
* kern/debug.c (Debugger): Add __attribute__ ((noreturn)) to |
| 20265 |
declaration. |
| 20266 |
(Debugger): Add call to panic(). |
| 20267 |
* kern/debug.h (panic): Add __attribute__ ((noreturn)) to declaration. |
| 20268 |
* util/putchar.c (putchar): Return printed char. |
| 20269 |
|
| 20270 |
2006-11-13 Barry deFreese <[email protected]> |
| 20271 |
|
| 20272 |
* device/chario.c (tty_cts): Add `void' return type. |
| 20273 |
* device/cons.c (cninit, cnputc): Add `void' return type. |
| 20274 |
(cngetc, cnmaygetc): Add `int' return type. |
| 20275 |
* device/net_io.c (net_del_q_info, net_free_dead_infp) |
| 20276 |
(net_free_dead_entp): Add `void' return type. |
| 20277 |
* i386/i386/fpu.c (fpnoextflt, fpextovrflt, fpexterrflt, fp_save) |
| 20278 |
(fp_load, fpintr): Add `void' return type. |
| 20279 |
* i386/i386/ktss.c (ktss_init): Add `int' type to `exception_stack'. |
| 20280 |
* i386/i386/loose_ends.c (delay): Add `void' return type. |
| 20281 |
* i386/i386/phys.c (pmap_zero_page, pmap_copy_page, copy_to_phys) |
| 20282 |
(copy_from_phys): Add `void' return type. |
| 20283 |
* i386/i386/pic.c (picinit, form_pic_mask, intnull, prtnull): Add |
| 20284 |
`void' return type. |
| 20285 |
* i386/i386/pit.c (clkstart): Add `void' return type. |
| 20286 |
* i386/i386at/com.c (comparm, comtimer, fix_modem_state) |
| 20287 |
(commodem_intr): Add `void' return type. |
| 20288 |
(comintr, commctl, comstop): Add `int' return type. |
| 20289 |
* i386/i386at/iopl.c (ioplclose): Add `int' return type. |
| 20290 |
* i386/i386at/kd.c (kd_io_map_openn, kd_io_map_close, feep, pause) |
| 20291 |
(kd_debug_put, cnpollc, kdclose, kd_handle_ack, kd_resend, kdinit) |
| 20292 |
(kd_belloff, kd_bellon, kd_putc, kd_setpos, kd_scrollup, kd_scrolldn) |
| 20293 |
(kd_parseesc, kd_parserest, kd_tab, kd_cls, kd_home, kd_up, kd_down) |
| 20294 |
(kd_right, kd_left, kd_cr, kd_cltobcur, kd_cltopcurn, kd_cltoecur) |
| 20295 |
(kd_clfrbcur, kd_delln, kd_insln, kd_delch, kd_erase, kd_eraseln) |
| 20296 |
(kd_insch, kd_senddata, kd_sendcmd, kd_cmdreg_write, kd_mouse_drain) |
| 20297 |
(set_kd_state, kd_setleds1, kd_setleds2, cnsetleds, kdreboot): Add |
| 20298 |
`void' return type. |
| 20299 |
(kdopen, kdread, kdwrite, kdportdeath, kdsetbell, kdgetkbent, kdintr) |
| 20300 |
(do_modifier, kdstate2idx, kdstart, kdstop, kd_kbd_magic): Add `int' |
| 20301 |
return type. |
| 20302 |
(kd_isupper, kd_islower): Add `boolean_t' return type. |
| 20303 |
(kd_cmdreg_read): Add `unsigned char' return type. |
| 20304 |
* i386/i386at/kd_event.c (kbdinit, kbdclose, kdb_in_out, X_kdb_enter) |
| 20305 |
(X_kdb_exit, X_kdb_enter_init, X_kdb_exit_init): Add `void' return |
| 20306 |
type. |
| 20307 |
(kbdopen, kbdioctl, kbdselect, kbdread): Add `int' return type. |
| 20308 |
* i386/i386at/kd_mouse.c (init_mouse_hw, serial_mouse_open) |
| 20309 |
(kd_mouse_open, mouseclose, serial_mouse_close, kd_mouse_close) |
| 20310 |
(mouse_handle_byte, mouse_packet_mouse_system_mouse) |
| 20311 |
(mouse_packet_microsoft_mouse, ibm_ps2_mouse_open) |
| 20312 |
(ibm_ps2_mouse_close, mouse_packet_ibm_ps2_mouse, mouse_moved) |
| 20313 |
(mouse_button): Add `void' return type. |
| 20314 |
(mouseopen, mouseioctl, mouseselect, mouseread, mouseintr): Add `int' |
| 20315 |
return type. |
| 20316 |
* i386/i386at/lpr.c (lprclose, lprpr_addr): Add `void' return type. |
| 20317 |
(lprprobe, lpropen, lprread, lprwrite, lprportdeath, lprstop, lprpr): |
| 20318 |
Add `int' return type. |
| 20319 |
* i386/i386at/model_dep.c (i386at_init, startrtclock): Add `void' |
| 20320 |
return type. |
| 20321 |
(timemmap): Add `int' return type. |
| 20322 |
* i386/i386at/rtc.c (rtcinit, rtcput): Add `void' return type. |
| 20323 |
(yeartoday, hexdectodec, readtodc, writetodc): Add `int' return type. |
| 20324 |
* i386/intel/pmap.c (pmap_pageable): Add `void' return type. |
| 20325 |
* kern/eventcount.c (simpler_thread_setrun): Add `int' type to |
| 20326 |
`whichrq' variable. |
| 20327 |
|
| 20328 |
2006-11-13 Barry deFreese <[email protected]> |
| 20329 |
|
| 20330 |
* i386/i386/locore.h: New file. |
| 20331 |
* i386/i386/pcb.h: New file. |
| 20332 |
* i386/i386/pcb.c: Include `pcb.h'. |
| 20333 |
* i386/i386/pit.c (clkstart): Fix type of s into unsigned long. |
| 20334 |
* i386/i386/spl.h (spl0, splsched, splx, splsoftclock, splon, sploff) |
| 20335 |
(splhigh, splimp, spltty, splclock, setsoftclock): Add prototype. |
| 20336 |
* i386/i386at/kd_event.h: New file. |
| 20337 |
* i386/i386at/kd_event.c: Include `kd_event.h'. |
| 20338 |
* i386/i386at/kd_mouse.h: New file. |
| 20339 |
* i386/i386at/kd_mouse.c: Include `kd_mouse.h'. |
| 20340 |
(mouseclose): Fix call of `serial_mouse_close' function. |
| 20341 |
* i386/i386at/kd.c: Include `kd_event.h' and `kd_mouse.h'. |
| 20342 |
* i386/i386at/kd.h (splx, spltty): Remove prototypes.h |
| 20343 |
* i386/i386at/lpr.c: Likewise. |
| 20344 |
* ipc/mach_msg.c: Include `machine/locore.h' and `machine/pcb.h'. |
| 20345 |
* kern/mach_clock.h: New file. |
| 20346 |
* kern/mach_clock.c: Include `kern/queue.h', `kern/timer.h' and |
| 20347 |
`mach_clock.h'. |
| 20348 |
* kern/mach_factor.h: New file. |
| 20349 |
* kern/mach_factor.c: Include `mach_factor.h'. |
| 20350 |
* kern/sched_prim.c: Include `kern/mach_factor.h'. |
| 20351 |
* kern/thread.c: Include `machine/pcb.h'. |
| 20352 |
|
| 20353 |
2006-11-11 Thomas Schwinge <[email protected]> |
| 20354 |
|
| 20355 |
* Makefile.am (gnumach-undef-bad): Depend on the Makefile. |
| 20356 |
|
| 20357 |
2006-11-11 Samuel Thibault <[email protected]> |
| 20358 |
|
| 20359 |
Fix I/O port type. |
| 20360 |
* i386/i386/pic.c (master_icq, master_ocw, slaves_icq, slaves_ocw): |
| 20361 |
Change variables type from char * to unsigned short. |
| 20362 |
(picinit): Remove now-useless cast. |
| 20363 |
* i386/i386at/kd_mouse.c (init_mouse_hw, serial_mouse_close) |
| 20364 |
(mouseintr): Change variable type from caddr_t to unsigned short, |
| 20365 |
remove now-useless cast. |
| 20366 |
|
| 20367 |
[task #5726 -- GCC built-in functions] |
| 20368 |
* kern/machine.c: Include `string.h'. |
| 20369 |
|
| 20370 |
Fix ``assignment used as truth value'' warnings. |
| 20371 |
* device/cons.c (cninit): Add parenthesis. |
| 20372 |
* kern/bootstrap.c (copy_bootstrap): Likewise. |
| 20373 |
* kern/printf.c (_doprnt): Likewise. |
| 20374 |
* vm/vm_map.c (vm_map_lookup): Likewise. |
| 20375 |
|
| 20376 |
Fix a bunch of ``unused variable'' warnings. |
| 20377 |
* device/ds_routines.c (ds_device_open): Remove unused `namebuf' |
| 20378 |
variable. |
| 20379 |
* device/kmsg.c (kmsgread): Remove unused `err' variable. |
| 20380 |
* device/net_io.c (net_set_filter): Remove unused `j' variable. |
| 20381 |
* i386/i386/pcb.c (curr_gdt, curr_ktss): Artificially use parameter of |
| 20382 |
macro. |
| 20383 |
* i386/i386/pic.c (picinit): Remove unused `i' variable. |
| 20384 |
* i386/i386/pit.c (clkstart): Remove unused `flags' variable. |
| 20385 |
* i386/i386/trap.c (kernel_trap): Remove unused `exc' variable. |
| 20386 |
(user_trap): Remove unused `map' and `result' variables. |
| 20387 |
(v86_assist): Remove unused `size' variable. |
| 20388 |
* i386/i386at/i386at_ds_routines.c (ds_device_open): Remove unused |
| 20389 |
`dev' variable. |
| 20390 |
* i386/i386at/kd.c (kdintr): Remove unused `o_pri' variable. |
| 20391 |
(kdcngetc): Remove unused `i' variable. |
| 20392 |
* i386/i386at/kd_event.c (kbdgetstat, kbdsetstat): Remove unused |
| 20393 |
`result' variable. |
| 20394 |
* i386/i386at/kd_mouse.c (mousegetstat): Likewise. |
| 20395 |
* i386/i386at/lpr.c (lprattach): Remove unused `tp' variable. |
| 20396 |
(lprsetstat): Remove unused `dev_addr' and `s' variables. |
| 20397 |
* i386/intel/pmap.c (pmap_bootstrap): Remove unused `pteva' variable. |
| 20398 |
(SPLVM, SPLX): Artificially use parameter of macro. |
| 20399 |
* ipc/ipc_kmsg.c (ipc_kmsg_copyin_body): Remove unused `mr' variable. |
| 20400 |
* kern/bootstrap.c (boot_script_exec_cmd): Remove unused |
| 20401 |
`boot_exec_info' and `user_map' variables. |
| 20402 |
* vm/vm_kern.c (projected_buffer_map): Remove unused `object' |
| 20403 |
variable. |
| 20404 |
|
| 20405 |
2006-11-10 Samuel Thibault <[email protected]> |
| 20406 |
|
| 20407 |
* kern/sched_prim.h (thread_syscall_return): Replace old `volatile' |
| 20408 |
function qualifier with __attribute__((__noreturn__)). |
| 20409 |
|
| 20410 |
2006-11-09 Barry deFreese <[email protected]> |
| 20411 |
|
| 20412 |
[task #5726 -- GCC built-in functions] |
| 20413 |
* include/printf.h: Move file... |
| 20414 |
* kern/printf.h: ... here. |
| 20415 |
* kern/debug.h (panic_init, panic): Add prototypes. |
| 20416 |
* chips/busses.c: Don't include `printf.h', include `kern/printf.h' |
| 20417 |
and `kern/debug.h' for panic(). |
| 20418 |
* ddb/db_command.c: Likewise. |
| 20419 |
* ddb/db_cond.c: Likewise. |
| 20420 |
* ddb/db_output.c: Likewise. |
| 20421 |
* device/cirbuf.c: Likewise. |
| 20422 |
* device/cons.c: Likewise. |
| 20423 |
* device/dev_name.c: Likewise. |
| 20424 |
* device/dev_pager.c: Likewise. |
| 20425 |
* device/device_init.c: Likewise. |
| 20426 |
* device/dk_label.c: Likewise. |
| 20427 |
* device/ds_routines.c: Likewise. |
| 20428 |
* device/net_io.c: Likewise. |
| 20429 |
* device/subrs.c: Likewise. |
| 20430 |
* i386/i386/debug_i386.c: Likewise. |
| 20431 |
* i386/i386/fpe_linkage.c: Likewise. |
| 20432 |
* i386/i386/fpu.c: Likewise. |
| 20433 |
* i386/i386/io_map.c: Likewise. |
| 20434 |
* i386/i386/kttd_interface.c: Likewise. |
| 20435 |
* i386/i386/mp_desc.c: Likewise. |
| 20436 |
* i386/i386/pcb.c: Likewise. |
| 20437 |
* i386/i386/pic.c: Likewise. |
| 20438 |
* i386/i386/trap.c: Likewise. |
| 20439 |
* i386/i386at/autoconf.c: Likewise. |
| 20440 |
* i386/i386at/com.c: Likewise. |
| 20441 |
* i386/i386at/i386at_ds_routines.c: Likewise. |
| 20442 |
* i386/i386at/kd.c: Likewise. |
| 20443 |
* i386/i386at/kd_event.c: Likewise. |
| 20444 |
* i386/i386at/kd_mouse.c: Likewise. |
| 20445 |
* i386/i386at/lpr.c: Likewise. |
| 20446 |
* i386/i386at/model_dep.c: Likewise. |
| 20447 |
* i386/intel/pmap.c: Likewise. |
| 20448 |
* ipc/ipc_entry.c: Likewise. |
| 20449 |
* ipc/ipc_hash.c: Likewise. |
| 20450 |
* ipc/ipc_kmsg.c: Likewise. |
| 20451 |
* ipc/ipc_mqueue.c: Likewise. |
| 20452 |
* ipc/ipc_notify.c: Likewise. |
| 20453 |
* ipc/ipc_object.c: Likewise. |
| 20454 |
* ipc/ipc_port.c: Likewise. |
| 20455 |
* ipc/ipc_pset.c: Likewise. |
| 20456 |
* ipc/ipc_right.c: Likewise. |
| 20457 |
* ipc/mach_msg.c: Likewise. |
| 20458 |
* ipc/mach_port.c: Likewise. |
| 20459 |
* ipc/mach_rpc.c: Likewise. |
| 20460 |
* kern/act.c: Likewise. |
| 20461 |
* kern/ast.c: Likewise. |
| 20462 |
* kern/bootstrap.c: Likewise. |
| 20463 |
* kern/debug.c: Likewise. |
| 20464 |
* kern/eventcount.c: Likewise. |
| 20465 |
* kern/exception.c: Likewise. |
| 20466 |
* kern/host.c: Likewise. |
| 20467 |
* kern/ipc_host.c: Likewise. |
| 20468 |
* kern/ipc_kobject.c: Likewise. |
| 20469 |
* kern/ipc_mig.c: Likewise. |
| 20470 |
* kern/ipc_sched.c: Likewise. |
| 20471 |
* kern/ipc_tt.c: Likewise. |
| 20472 |
* kern/kalloc.c: Likewise. |
| 20473 |
* kern/lock.c: Likewise. |
| 20474 |
* kern/mach_clock.c: Likewise. |
| 20475 |
* kern/machine.c: Likewise. |
| 20476 |
* kern/pc_sample.c: Likewise. |
| 20477 |
* kern/printf.c: Likewise. |
| 20478 |
* kern/processor.c: Likewise. |
| 20479 |
* kern/sched_prim.c: Likewise. |
| 20480 |
* kern/server_loop.ch: Likewise. |
| 20481 |
* kern/startup.c: Likewise. |
| 20482 |
* kern/task.c: Likewise. |
| 20483 |
* kern/thread.c: Likewise. |
| 20484 |
* kern/thread_swap.c: Likewise. |
| 20485 |
* kern/xpr.c: Likewise. |
| 20486 |
* kern/zalloc.c: Likewise. |
| 20487 |
* vm/memory_object.c: Likewise. |
| 20488 |
* vm/vm_debug.c: Likewise. |
| 20489 |
* vm/vm_fault.c: Likewise. |
| 20490 |
* vm/vm_kern.c: Likewise. |
| 20491 |
* vm/vm_map.c: Likewise. |
| 20492 |
* vm/vm_object.c: Likewise. |
| 20493 |
* vm/vm_object.h: Likewise. |
| 20494 |
* vm/vm_pageout.c: Likewise. |
| 20495 |
* vm/vm_resident.c: Likewise. |
| 20496 |
|
| 20497 |
2006-11-08 Thomas Schwinge <[email protected]> |
| 20498 |
|
| 20499 |
* aclocal.m4: Regenerate using GNU Autoconf 2.60 and GNU Automake 1.10. |
| 20500 |
* INSTALL: Likewise. |
| 20501 |
* Makefile.in: Likewise. |
| 20502 |
* configure: Likewise. |
| 20503 |
* build-aux/config.guess: Likewise. |
| 20504 |
* build-aux/config.sub: Likewise. |
| 20505 |
* build-aux/depcomp: Likewise. |
| 20506 |
* build-aux/install-sh: Likewise. |
| 20507 |
* build-aux/missing: Likewise. |
| 20508 |
* build-aux/texinfo.tex: Likewise. |
| 20509 |
|
| 20510 |
* Makefrag.am (gnumach.msgids): Remove temporary files. |
| 20511 |
|
| 20512 |
2006-11-08 Samuel Thibault <[email protected]> |
| 20513 |
|
| 20514 |
[task #5726 -- GCC built-in functions] |
| 20515 |
* include/printf.h (iprintf): Fix prototype. |
| 20516 |
(vprintf): Add prototype. |
| 20517 |
* kern/printf.c: Include `printf.h'. |
| 20518 |
(vprintf, printf): Fix prototype and return a dumb value. |
| 20519 |
* kern/startup.c: Include `printf.h'. |
| 20520 |
|
| 20521 |
2006-11-07 Barry deFreese <[email protected]> |
| 20522 |
|
| 20523 |
[task #5726 -- GCC built-in functions] |
| 20524 |
* include/printf.h: New file. |
| 20525 |
(printf_init, _doprnt, printnum, sprintf, printf, indent, iprint): New |
| 20526 |
declarations. |
| 20527 |
* include/string.h (strchr, strcmp, strcpy, strlen, strncmp, strncpy) |
| 20528 |
(strrchr, strsep): New extern declarations. |
| 20529 |
* kern/strings.c: Don't include `kern/strings.h', include `string.h'. |
| 20530 |
(strncmp, strncpy, strlen): Fix prototypes into using size_t. |
| 20531 |
* kern/strings.h: Removed file. |
| 20532 |
* kern/debug.c: Include `printf.h'. |
| 20533 |
(do_cnputc): New function. |
| 20534 |
(panic, log): Use do_cnputc instead of cnputc. |
| 20535 |
* chips/busses.c: Don't include `kern/strings.h', include `printf.h' and |
| 20536 |
`string.h'. |
| 20537 |
(_doprnt): Remove extern declaration. |
| 20538 |
(indent): Remove extern declaration. |
| 20539 |
* ddb/db_aout.c: Likewise. |
| 20540 |
* ddb/db_command.c: Likewise. |
| 20541 |
* ddb/db_lex.c: Likewise. |
| 20542 |
* ddb/db_macro.c: Likewise. |
| 20543 |
* ddb/db_output.c: Likewise. |
| 20544 |
* ddb/db_print.c: Likewise. |
| 20545 |
* ddb/db_sym.c: Likewise. |
| 20546 |
* device/dev_name.c: Likewise. |
| 20547 |
* device/dev_pager.c: Likewise. |
| 20548 |
* device/dk_label.c: Likewise. |
| 20549 |
* device/ds_routines.c: Likewise. |
| 20550 |
* device/net_io.c: Likewise. |
| 20551 |
* device/subrs.c: Likewise. |
| 20552 |
* i386/i386/db_trace.c: Likewise. |
| 20553 |
* i386/i386/debug_i386.c: Likewise. |
| 20554 |
* i386/i386/fpu.c: Likewise. |
| 20555 |
* i386/i386/io_map.c: Likewise. |
| 20556 |
* i386/i386/kttd_interface.c: Likewise. |
| 20557 |
* i386/i386/pic.c: Likewise. |
| 20558 |
* i386/i386/trap.c: Likewise. |
| 20559 |
* i386/i386at/autoconf.c: Likewise. |
| 20560 |
* i386/i386at/com.c: Likewise. |
| 20561 |
* i386/i386at/i386at_ds_routines.c: Likewise. |
| 20562 |
* i386/i386at/kd.c: Likewise. |
| 20563 |
* i386/i386at/kd_event.c: Likewise. |
| 20564 |
* i386/i386at/kd_mouse.c: Likewise. |
| 20565 |
* i386/i386at/lpr.c: Likewise. |
| 20566 |
* i386/i386at/model_dep.c: Likewise. |
| 20567 |
* i386/intel/pmap.c: Likewise. |
| 20568 |
* ipc/ipc_entry.c: Likewise. |
| 20569 |
* ipc/ipc_hash.c: Likewise. |
| 20570 |
* ipc/ipc_kmsg.c: Likewise. |
| 20571 |
* ipc/ipc_notify.c: Likewise. |
| 20572 |
* ipc/ipc_object.c: Likewise. |
| 20573 |
* ipc/ipc_port.c: Likewise. |
| 20574 |
* ipc/ipc_pset.c: Likewise. |
| 20575 |
* ipc/mach_msg.c: Likewise. |
| 20576 |
* ipc/mach_port.c: Likewise. |
| 20577 |
* ipc/mach_rpc.c: Likewise. |
| 20578 |
* kern/bootstrap.c: Likewise. |
| 20579 |
* kern/eventcount.c: Likewise. |
| 20580 |
* kern/ipc_kobject.c: Likewise. |
| 20581 |
* kern/pc_sample.c: Likewise. |
| 20582 |
* kern/printf.c: Likewise. |
| 20583 |
* kern/sched_prim.c: Likewise. |
| 20584 |
* kern/thread.c: Likewise. |
| 20585 |
* kern/zalloc.c: Likewise. |
| 20586 |
* vm/vm_fault.c: Likewise. |
| 20587 |
* vm/vm_map.c: Likewise. |
| 20588 |
* vm/vm_object.c: Likewise. |
| 20589 |
* vm/vm_resident.c: Likewise. |
| 20590 |
|
| 20591 |
2006-11-05 Samuel Thibault <[email protected]> |
| 20592 |
|
| 20593 |
* include/string.h: Fix copyright assignment to FSF, keep author's |
| 20594 |
name. |
| 20595 |
|
| 20596 |
2006-11-05 Thomas Schwinge <[email protected]> |
| 20597 |
|
| 20598 |
* linux/dev/README: New file. |
| 20599 |
|
| 20600 |
* config.h.in: Regenerate. |
| 20601 |
* configure: Likewise. |
| 20602 |
|
| 20603 |
[task #5956 -- Automake'ify GNU Mach's code base] |
| 20604 |
* configure.ac <AM_INIT_AUTOMAKE>: Add `no-define' and `1.9'. |
| 20605 |
|
| 20606 |
2006-11-05 Barry deFreese <[email protected]> |
| 20607 |
|
| 20608 |
[task #5878 -- Backport code from GNU Mach's trunk to |
| 20609 |
gnumach-1-branch: i386_set_gdt, i386_get_gdt''] |
| 20610 |
[sync from HEAD, 2002-10-03] |
| 20611 |
* i386/include/mach/i386/mach_i386.defs (i386_set_gdt, i386_get_gdt): |
| 20612 |
New routines. |
| 20613 |
* i386/i386/user_ldt.c (i386_set_gdt, i386_get_gdt): New functions. |
| 20614 |
* i386/i386/gdt.h (USER_GDT, USER_GDT_SLOTS): New macros. |
| 20615 |
(GDTSZ): Compute it from USER_GDT and USER_GDT_SLOTS. |
| 20616 |
* i386/i386/thread.h: Include `gdt.h'. |
| 20617 |
(struct i386_machine_state): New member `user_gdt'. |
| 20618 |
* i386/i386/pcb.c (switch_ktss): Copy those slots into the GDT. |
| 20619 |
* linux/src/include/linux/head.h (idt,gdt): Remove extern declaration. |
| 20620 |
|
| 20621 |
2006-11-05 Samuel Thibault <[email protected]> |
| 20622 |
|
| 20623 |
FPU, CPU and IO stubs cleanup. |
| 20624 |
* i386/i386/fpu.h (fstcw): New macro. |
| 20625 |
* i386/i386/locore.S (_fninit, _fstcw, _fldcw, _fnstsw, _fnclex) |
| 20626 |
(_clts, _fpsave, _fprestore, set_cr3, get_cr3, flush_tlb, get_cr2) |
| 20627 |
(get_ldt, set_ldt, get_tr, set_tr, _setts, outb, inb, outw, inw, outl) |
| 20628 |
(inl, loutb, loutw, linb, linw): Remove functions. |
| 20629 |
* i386/i386/proc_reg.h (flush_tlb): New macro. |
| 20630 |
* i386/i386/db_interface.c: Include `i386/proc_reg.h'. |
| 20631 |
* i386/intel/pmap.c: Likewise. |
| 20632 |
* i386/intel/pmap.h: Likewise. |
| 20633 |
* i386/i386/fpu.c: Include `i386/pio.h'. |
| 20634 |
* i386/i386/pic.c: Likewise. |
| 20635 |
* i386/i386/pit.c: Likewise. |
| 20636 |
* i386/i386at/iopl.c: Likewise. |
| 20637 |
* i386/i386at/kd.c: Likewise. |
| 20638 |
* i386/i386at/kd_event.c: Likewise. |
| 20639 |
* i386/i386at/kd_mouse.c: Likewise. |
| 20640 |
* i386/i386at/rtc.c: Likewise. |
| 20641 |
|
| 20642 |
2006-11-05 Barry deFreese <[email protected]> |
| 20643 |
|
| 20644 |
[task #5726 -- GCC built-in functions] |
| 20645 |
* include/string.h: New file. |
| 20646 |
* include/mach/mig_support.h: Include `string.h'. |
| 20647 |
[MACH_KERNEL] (bcopy): Remove extern declaration. |
| 20648 |
[MACH_KERNEL] (memcpy): Remove macro. |
| 20649 |
* device/cirbuf.c: Include `string.h'. |
| 20650 |
(q_to_b, b_to_q): Replace bcopy() with memcpy() and bzero() with |
| 20651 |
memset(), clean memcpy() and memset() invocation. |
| 20652 |
* device/cons.c (cnputc): Likewise. |
| 20653 |
* device/dev_pager.c (device_pager_data_request_done): Likewise. |
| 20654 |
* device/ds_routines.c (device_write_get, ds_read_done): Likewise. |
| 20655 |
* device/kmsg.c: Likewise. |
| 20656 |
* device/net_io.c (net_filter, net_set_filter, net_getstat): Likewise. |
| 20657 |
* i386/i386/fpu.c (fpu_set_state, fpu_get_state, fp_load) |
| 20658 |
(fp_state_alloc): Likewise. |
| 20659 |
* i386/i386/iopb.c (io_tss_init, i386_io_port_list): Likewise. |
| 20660 |
* i386/i386/mp_desc.c (mp_desc_init): Likewise. |
| 20661 |
* i386/i386/pcb.c (pcb_init, thread_setstatus) |
| 20662 |
(thread_getstatus): Likewise. |
| 20663 |
* i386/i386/phys.c (pmap_zero_page, pmap_copy_page, copy_to_phys) |
| 20664 |
(copy_from_phys): Likewise. |
| 20665 |
* i386/i386/trap.c (v86_assist): Likewise. |
| 20666 |
* i386/i386/user_ldt.c (i386_set_ldt, i386_get_ldt): Likewise. |
| 20667 |
* i386/i386at/immc.c (immc_cnputc): Likewise. |
| 20668 |
* i386/i386at/kd_event.c (X_kdb_enter_init, X_kdb_exit_init): Likewise. |
| 20669 |
* i386/intel/pmap.c (pmap_init, pmap_page_table_page_alloc) |
| 20670 |
(pmap_create): Likewise. |
| 20671 |
* ipc/ipc_entry.c (ipc_entry_grow_table): Likewise. |
| 20672 |
* ipc/ipc_kmsg.c (ipc_kmsg_get_from_kernel) |
| 20673 |
(ipc_kmsg_put_to_kernel): Likewise. |
| 20674 |
* ipc/ipc_object.c (ipc_object_alloc, ipc_object_alloc_name): Likewise. |
| 20675 |
* ipc/ipc_port.c (ipc_port_dngrow): Likewise. |
| 20676 |
* ipc/ipc_space.c: Likewise. |
| 20677 |
* ipc/mach_debug.c (mach_port_space_info) |
| 20678 |
(mach_port_space_info): Likewise. |
| 20679 |
* kern/act.c (act_create): Likewise. |
| 20680 |
* kern/boot_script.c: Likewise. |
| 20681 |
* kern/bootstrap.c: Likewise. |
| 20682 |
* kern/eventcount.c (evc_init): Likewise. |
| 20683 |
* kern/host.c (host_info, host_processor_sets): Likewise. |
| 20684 |
* kern/lock.c (lock_init): Likewise. |
| 20685 |
* kern/lock_mon.c (lock_info_clear): Likewise. |
| 20686 |
* kern/mach_clock.c (mapable_time_init): Likewise. |
| 20687 |
* kern/pc_sample.c (get_sampled_pcs): Likewise. |
| 20688 |
* kern/processor.c (processor_set_things): Likewise. |
| 20689 |
* kern/syscall_emulation.c (task_set_emulation_vector_internal) |
| 20690 |
(task_get_emulation_vector, xxx_task_get_emulation_vector): Likewise. |
| 20691 |
* kern/task.c (task_threads): Likewise. |
| 20692 |
* kern/xpr.c (xprbootstrap): Likewise. |
| 20693 |
* kern/zalloc.c (host_zone_info): Likewise. |
| 20694 |
* vm/vm_debug.c (mach_vm_object_pages): Likewise. |
| 20695 |
* vm/vm_kern.c (projected_buffer_allocate, copyinmap) |
| 20696 |
(copyoutmap): Likewise. |
| 20697 |
* vm/vm_object.c (vm_object_bootstrap): Likewise. |
| 20698 |
* vm/vm_resident.c (vm_page_grab_contiguous_pages): Likewise. |
| 20699 |
|
| 20700 |
2006-11-05 Samuel Thibault <[email protected]> |
| 20701 |
|
| 20702 |
* DEVELOPMENT: Document the following removals. |
| 20703 |
|
| 20704 |
Drop MB1/MB2/EXL architecture support. |
| 20705 |
* i386/i386/pit.h (PITCTR0_PORT, PITCTR1_PORT, PITCTR2_PORT) |
| 20706 |
(PITCTL_PORT, CLKNUM): Remove MB1/MB2/EXL cases. |
| 20707 |
[EXL] (time_latch): Remove structure and type. |
| 20708 |
[EXL] (intr_disable, intr_restore): Remove functions. |
| 20709 |
|
| 20710 |
Drop iPSC architecture support. |
| 20711 |
* i386/i386/hardclock.c: Remove iPSC386 from #if. |
| 20712 |
* i386/i386/locore.S: Remove iPSC386 delays. |
| 20713 |
* i386/i386/pic.c: Remove iPSC386 support. |
| 20714 |
(SLAVEMASK): Rmove iPSC386 case. |
| 20715 |
* i386/i386/pic.h (ADDR_PIC_BASE, OFF_ICW, OFF_OCW, SIZE_PIC) |
| 20716 |
(PICM_VECTBASE, PICS_VECTBASE): Remove iPSC386 cases. |
| 20717 |
[iPSC386] (I_AM_A_SLAVE, I_AM_A_MASTR): Remove macros. |
| 20718 |
* i386/i386/pit.h: Remove iPSC386 from #if. |
| 20719 |
[iPSC386] (CLKNUM): Remove macro. |
| 20720 |
* kern/machine.c (host_get_boot_info): Remove iPSC386 support. |
| 20721 |
* vm/vm_map.h (VM_MAP_COPY_PAGE_LIST_MAX): Remove iPSC case. |
| 20722 |
|
| 20723 |
Drop i860 architecture support. |
| 20724 |
* i386/i386/pmap.h: Remove i860 comment. |
| 20725 |
* i386/intel/pmap.c: Remove i860 comments. |
| 20726 |
[i860]: Don't include `i860ipsc/nodehw.h'. |
| 20727 |
(INVALIDATE_TLB): Remove i860 case. |
| 20728 |
(paging_enabled): Remove variable. |
| 20729 |
(pmap_map): Remove setting INTEL_PTE_NCACHE. |
| 20730 |
(pmap_bootstrap): Remove i860 support. |
| 20731 |
(pmap_page_table_page_alloc): Remove setting INTEL_PTE_NCACHE. |
| 20732 |
(pmap_enter): Remove call to flush function. |
| 20733 |
(set_dirbase): Remove function. |
| 20734 |
* i386/intel/pmap.h: Remove i860 comments. |
| 20735 |
(INTEL_PGBYTES, INTEL_PGSHIFT, intel_btop, intel_ptob) |
| 20736 |
(intel_round_page, intel_trunc_page, trunc_intel_to_vm) |
| 20737 |
(round_intel_to_vm, vm_to_intel, INTEL_PTE_VALID, set_dirbase): Remove |
| 20738 |
i860 cases. |
| 20739 |
(INTEL_PTE_valid): Remove macro. |
| 20740 |
* i386/intel/read_fault.c: Remove i860 comment. |
| 20741 |
|
| 20742 |
Drop PS2 architecture support. |
| 20743 |
* i386/i386/fpu.c (fpintr): Remove PS2 from #if. |
| 20744 |
* i386/i386/gdt.c [PS2] (abios_int_return, abios_th_return, intstack): |
| 20745 |
Remove extern declarations. |
| 20746 |
* i386/i386/gdt.h [PS2] (ABIOS_INT_RET, ABIOS_TH_RET, ABIOS_INT_SS) |
| 20747 |
(ABIOS_TH_SS, ABIOS_FIRST_AVAIL_SEL): Remove macros. |
| 20748 |
(GDTSZ): Remove PS2 case. |
| 20749 |
* i386/i386/hardclock.c [PS2]: Don't include `i386/pic.h' and |
| 20750 |
`i386/pio.h'. |
| 20751 |
(hardclock): Remove PS2 prototype and code. |
| 20752 |
* i386/i386/locore.S (RET_OFFSET): Remove PS2 stack layout. |
| 20753 |
* i386/i386/pic.c (picinit): Remove #ifdef PS2. |
| 20754 |
* i386/i386/pic.h: Remove PS2 from #if. |
| 20755 |
* i386/i386/pit.c [PS2] (clock_int_handler): Remove extern declaration. |
| 20756 |
Don't include `sys/types.h' and `i386ps2/abios.h'. |
| 20757 |
(clock_request_block, clock_flags, cqbuf): Remove variables. |
| 20758 |
(clkstart): Remove call to abios_clock_start function. |
| 20759 |
(COUNT): Don't define. |
| 20760 |
(abios_clock_start, ackrtclock): Remove functions. |
| 20761 |
* i386/i386/pit.h: Remove PS2 from #if. |
| 20762 |
|
| 20763 |
2006-10-26 Thomas Schwinge <[email protected]> |
| 20764 |
|
| 20765 |
* Makefile.in: Regenerate. |
| 20766 |
|
| 20767 |
[task #5956 -- Automake'ify GNU Mach's code base] |
| 20768 |
|
| 20769 |
* Makefrag.am (gnumach.msgids): Remove repetition. |
| 20770 |
* Makerules.am (%.server.msgids, %.user.msgids): Targets renamed from |
| 20771 |
`%.msgids'. Also consider MIGCOMSFLAGS respective MIGCOMUFLAGS. |
| 20772 |
Thanks to Guillem Jover and Leonardo Lopes Pereira for reporting this. |
| 20773 |
|
| 20774 |
The Automake build system wants us to have these files in the rcs, so |
| 20775 |
do that. |
| 20776 |
* doc/mach.info: New file, generated. |
| 20777 |
* doc/mach.info-1: Likewise. |
| 20778 |
* doc/mach.info-2: Likewise. |
| 20779 |
* doc/stamp-vti: Likewise. |
| 20780 |
* doc/version.texi: Likewise. |
| 20781 |
|
| 20782 |
2006-10-18 Thomas Schwinge <[email protected]> |
| 20783 |
|
| 20784 |
* Makefile.in: Regenerate. |
| 20785 |
|
| 20786 |
Install `PREFIX/share/msgids/gnumach.msgids'. |
| 20787 |
* Makerules.am (%.msgids): Two new rules. |
| 20788 |
* Makefrag.am (MOSTLYCLEANFILES): Add `gnumach.msgids'. |
| 20789 |
(gnumach.msgids): New rule. |
| 20790 |
(exec_msgidsdir, exec_msgids_DATA): New variables. |
| 20791 |
|
| 20792 |
2006-10-16 Thomas Schwinge <[email protected]> |
| 20793 |
|
| 20794 |
* configure: Regenerate. |
| 20795 |
|
| 20796 |
[bug #18011 -- `make install-data' will build the |
| 20797 |
``to-be-generated files''] |
| 20798 |
* config.status.dep.patch: Do an educated guess instead of using the |
| 20799 |
`Makefile'. |
| 20800 |
* configure.ac <config.status.dep.patch>: Update description. |
| 20801 |
|
| 20802 |
2006-10-15 Thomas Schwinge <[email protected]> |
| 20803 |
|
| 20804 |
* configure: Regenerate. |
| 20805 |
|
| 20806 |
* configure.ac: Update texts snippets: GNU Automake 1.10 has just been |
| 20807 |
released. |
| 20808 |
|
| 20809 |
* i386/include/Makefile.in: Remove unused file. Thanks to Guillem |
| 20810 |
Jover for spotting this. |
| 20811 |
|
| 20812 |
[task #5956 -- Automake'ify GNU Mach's code base] |
| 20813 |
|
| 20814 |
* configure: Regenerate. |
| 20815 |
|
| 20816 |
* configure.ac <config.status.dep.patch>: Point to [bug #18011 -- |
| 20817 |
`make install-data' will build the ``to-be-generated files'']. |
| 20818 |
|
| 20819 |
* Makefile.in: Regenerate. |
| 20820 |
|
| 20821 |
* Makefrag.am (include_mach_exec): Rename to `include_mach_eXec'. |
| 20822 |
|
| 20823 |
* Makefile.in: New file, generated by `autoreconf'. |
| 20824 |
* config.h.in: Likewise. |
| 20825 |
* configure: Updated file, generated by `autoreconf'. |
| 20826 |
|
| 20827 |
* INSTALL: File updated, thanks to `autoreconf'. |
| 20828 |
* aclocal.m4: Likewise. |
| 20829 |
|
| 20830 |
* build-aux/compile: New file, thanks to `autoreconf'. |
| 20831 |
* build-aux/config.guess: Likewise. |
| 20832 |
* build-aux/config.sub: Likewise. |
| 20833 |
* build-aux/depcomp: Likewise. |
| 20834 |
* build-aux/install-sh: Likewise. |
| 20835 |
* build-aux/mdate-sh: Likewise. |
| 20836 |
* build-aux/missing: Likewise. |
| 20837 |
* build-aux/texinfo.tex: Likewise. |
| 20838 |
|
| 20839 |
* AUTHORS: New file, copy from the MIG repository. |
| 20840 |
|
| 20841 |
* kern/bootstrap.c: Don't include `bootstrap_symbols.h'. |
| 20842 |
* ddb/db_command.c: Don't include `cpus.h'. |
| 20843 |
* ddb/db_mp.c: Likewise. |
| 20844 |
* i386/i386/ast_check.c: Likewise. |
| 20845 |
* i386/i386/cswitch.S: Likewise. |
| 20846 |
* i386/i386/db_interface.c: Likewise. |
| 20847 |
* i386/i386/fpu.c: Likewise. |
| 20848 |
* i386/i386/fpu.h: Likewise. |
| 20849 |
* i386/i386/i386asm.sym: Likewise. |
| 20850 |
* i386/i386/locore.S: Likewise. |
| 20851 |
* i386/i386/mp_desc.c: Likewise. |
| 20852 |
* i386/i386/mp_desc.h: Likewise. |
| 20853 |
* i386/i386/pcb.c: Likewise. |
| 20854 |
* i386/i386/trap.c: Likewise. |
| 20855 |
* i386/intel/pmap.c: Likewise. |
| 20856 |
* include/mach/machine.h: Likewise. |
| 20857 |
* ipc/ipc_kmsg.c: Likewise. |
| 20858 |
* ipc/ipc_kmsg.h: Likewise. |
| 20859 |
* kern/ast.c: Likewise. |
| 20860 |
* kern/ast.h: Likewise. |
| 20861 |
* kern/cpu_number.h: Likewise. |
| 20862 |
* kern/debug.c: Likewise. |
| 20863 |
* kern/eventcount.c: Likewise. |
| 20864 |
* kern/host.c: Likewise. |
| 20865 |
* kern/ipc_sched.c: Likewise. |
| 20866 |
* kern/lock.c: Likewise. |
| 20867 |
* kern/lock.h: Likewise. |
| 20868 |
* kern/lock_mon.c: Likewise. |
| 20869 |
* kern/mach_clock.c: Likewise. |
| 20870 |
* kern/mach_factor.c: Likewise. |
| 20871 |
* kern/machine.c: Likewise. |
| 20872 |
* kern/priority.c: Likewise. |
| 20873 |
* kern/processor.c: Likewise. |
| 20874 |
* kern/processor.h: Likewise. |
| 20875 |
* kern/sched.h: Likewise. |
| 20876 |
* kern/sched_prim.c: Likewise. |
| 20877 |
* kern/startup.c: Likewise. |
| 20878 |
* kern/syscall_subr.c: Likewise. |
| 20879 |
* kern/thread.c: Likewise. |
| 20880 |
* kern/timer.c: Likewise. |
| 20881 |
* kern/timer.h: Likewise. |
| 20882 |
* vm/vm_resident.c: Likewise. |
| 20883 |
* kern/sched_prim.c: Don't include `fast_tas.h'. |
| 20884 |
* kern/task.c: Likewise. |
| 20885 |
* kern/task.h: Likewise. |
| 20886 |
* kern/sched_prim.c: Don't include `hw_footprint.h'. |
| 20887 |
* kern/thread.c: Likewise. |
| 20888 |
* kern/thread.h: Likewise. |
| 20889 |
* kern/counters.c: Don't include `mach_counters.h'. |
| 20890 |
* kern/counters.h: Likewise. |
| 20891 |
* ddb/db_ext_symtab.c: Don't include `mach_debug.h'. |
| 20892 |
* i386/i386/pcb.c: Likewise. |
| 20893 |
* kern/ipc_kobject.c: Likewise. |
| 20894 |
* kern/thread.c: Likewise. |
| 20895 |
* kern/zalloc.c: Likewise. |
| 20896 |
* kern/ast.c: Don't include `mach_fixpri.h'. |
| 20897 |
* kern/processor.c: Likewise. |
| 20898 |
* kern/processor.h: Likewise. |
| 20899 |
* kern/sched.h: Likewise. |
| 20900 |
* kern/sched_prim.c: Likewise. |
| 20901 |
* kern/syscall_subr.c: Likewise. |
| 20902 |
* kern/thread.c: Likewise. |
| 20903 |
* kern/thread.h: Likewise. |
| 20904 |
* kern/host.c: Don't include `mach_host.h'. |
| 20905 |
* kern/ipc_sched.c: Likewise. |
| 20906 |
* kern/machine.c: Likewise. |
| 20907 |
* kern/processor.c: Likewise. |
| 20908 |
* kern/processor.h: Likewise. |
| 20909 |
* kern/sched_prim.c: Likewise. |
| 20910 |
* kern/startup.c: Likewise. |
| 20911 |
* kern/task.c: Likewise. |
| 20912 |
* kern/thread.c: Likewise. |
| 20913 |
* kern/thread.h: Likewise. |
| 20914 |
* include/mach/mach.defs: Don't include `mach_ipc_compat.h'. |
| 20915 |
* include/mach/mach_param.h: Likewise. |
| 20916 |
* include/mach/mach_traps.h: Likewise. |
| 20917 |
* include/mach/message.h: Likewise. |
| 20918 |
* include/mach/mig_errors.h: Likewise. |
| 20919 |
* include/mach/notify.h: Likewise. |
| 20920 |
* include/mach/port.h: Likewise. |
| 20921 |
* include/mach/std_types.defs: Likewise. |
| 20922 |
* include/mach/task_special_ports.h: Likewise. |
| 20923 |
* include/mach/thread_special_ports.h: Likewise. |
| 20924 |
* ipc/ipc_kmsg.c: Likewise. |
| 20925 |
* ipc/ipc_kmsg.h: Likewise. |
| 20926 |
* ipc/ipc_marequest.c: Likewise. |
| 20927 |
* ipc/ipc_notify.c: Likewise. |
| 20928 |
* ipc/ipc_notify.h: Likewise. |
| 20929 |
* ipc/ipc_object.c: Likewise. |
| 20930 |
* ipc/ipc_object.h: Likewise. |
| 20931 |
* ipc/ipc_port.c: Likewise. |
| 20932 |
* ipc/ipc_port.h: Likewise. |
| 20933 |
* ipc/ipc_right.c: Likewise. |
| 20934 |
* ipc/ipc_right.h: Likewise. |
| 20935 |
* ipc/ipc_space.c: Likewise. |
| 20936 |
* ipc/ipc_space.h: Likewise. |
| 20937 |
* ipc/mach_debug.c: Likewise. |
| 20938 |
* ipc/mach_msg.c: Likewise. |
| 20939 |
* ipc/mach_msg.h: Likewise. |
| 20940 |
* ipc/mach_port.c: Likewise. |
| 20941 |
* kern/ipc_tt.c: Likewise. |
| 20942 |
* kern/syscall_sw.c: Likewise. |
| 20943 |
* kern/thread.h: Likewise. |
| 20944 |
* include/mach_debug/mach_debug.defs: Don't include `mach_ipc_debug.h'. |
| 20945 |
* ipc/ipc_hash.c: Likewise. |
| 20946 |
* ipc/ipc_hash.h: Likewise. |
| 20947 |
* ipc/ipc_marequest.c: Likewise. |
| 20948 |
* ipc/ipc_marequest.h: Likewise. |
| 20949 |
* kern/ipc_kobject.c: Don't include `mach_ipc_test.h'. |
| 20950 |
* ddb/db_access.c: Don't include `mach_kdb.h'. |
| 20951 |
* ddb/db_aout.c: Likewise. |
| 20952 |
* ddb/db_break.c: Likewise. |
| 20953 |
* ddb/db_command.c: Likewise. |
| 20954 |
* ddb/db_command.h: Likewise. |
| 20955 |
* ddb/db_cond.c: Likewise. |
| 20956 |
* ddb/db_examine.c: Likewise. |
| 20957 |
* ddb/db_expr.c: Likewise. |
| 20958 |
* ddb/db_ext_symtab.c: Likewise. |
| 20959 |
* ddb/db_input.c: Likewise. |
| 20960 |
* ddb/db_lex.c: Likewise. |
| 20961 |
* ddb/db_macro.c: Likewise. |
| 20962 |
* ddb/db_mp.c: Likewise. |
| 20963 |
* ddb/db_output.c: Likewise. |
| 20964 |
* ddb/db_print.c: Likewise. |
| 20965 |
* ddb/db_run.c: Likewise. |
| 20966 |
* ddb/db_sym.c: Likewise. |
| 20967 |
* ddb/db_task_thread.c: Likewise. |
| 20968 |
* ddb/db_trap.c: Likewise. |
| 20969 |
* ddb/db_variables.c: Likewise. |
| 20970 |
* ddb/db_watch.c: Likewise. |
| 20971 |
* ddb/db_watch.h: Likewise. |
| 20972 |
* ddb/db_write_cmd.c: Likewise. |
| 20973 |
* i386/i386/db_disasm.c: Likewise. |
| 20974 |
* i386/i386/db_interface.c: Likewise. |
| 20975 |
* i386/i386/db_trace.c: Likewise. |
| 20976 |
* i386/i386/i386asm.sym: Likewise. |
| 20977 |
* i386/i386/locore.S: Likewise. |
| 20978 |
* i386/i386/trap.c: Likewise. |
| 20979 |
* i386/i386at/kd.c: Likewise. |
| 20980 |
* i386/i386at/model_dep.c: Likewise. |
| 20981 |
* include/mach_debug/mach_debug.defs: Likewise. |
| 20982 |
* ipc/ipc_kmsg.c: Likewise. |
| 20983 |
* ipc/ipc_object.c: Likewise. |
| 20984 |
* ipc/ipc_port.c: Likewise. |
| 20985 |
* ipc/ipc_pset.c: Likewise. |
| 20986 |
* kern/bootstrap.c: Likewise. |
| 20987 |
* kern/debug.c: Likewise. |
| 20988 |
* kern/exception.c: Likewise. |
| 20989 |
* kern/lock.c: Likewise. |
| 20990 |
* kern/xpr.c: Likewise. |
| 20991 |
* vm/vm_fault.c: Likewise. |
| 20992 |
* vm/vm_map.c: Likewise. |
| 20993 |
* vm/vm_object.c: Likewise. |
| 20994 |
* vm/vm_resident.c: Likewise. |
| 20995 |
* kern/lock.h: Don't include `mach_ldebug.h'. |
| 20996 |
* kern/lock_mon.c: Don't include `mach_lock_mon.h'. |
| 20997 |
* kern/ipc_kobject.c: Don't include `mach_machine_routines.h'. |
| 20998 |
* kern/lock_mon.c: Don't include `mach_mp_debug.h'. |
| 20999 |
* vm/memory_object.c: Don't include `mach_pagemap.h'. |
| 21000 |
* vm/vm_fault.c: Likewise. |
| 21001 |
* vm/vm_object.c: Likewise. |
| 21002 |
* vm/vm_object.h: Likewise. |
| 21003 |
* vm/vm_pageout.c: Likewise. |
| 21004 |
* i386/i386/trap.c: Don't include `mach_pcsample.h'. |
| 21005 |
* kern/mach4.srv: Likewise. |
| 21006 |
* kern/mach_clock.c: Likewise. |
| 21007 |
* kern/pc_sample.c: Likewise. |
| 21008 |
* kern/task.c: Likewise. |
| 21009 |
* kern/thread.c: Likewise. |
| 21010 |
* vm/vm_fault.c: Likewise. |
| 21011 |
* device/net_io.c: Don't include `mach_ttd.h'. |
| 21012 |
* i386/i386/kttd_interface.c: Likewise. |
| 21013 |
* i386/i386/locore.S: Likewise. |
| 21014 |
* i386/i386/trap.c: Likewise. |
| 21015 |
* i386/i386at/autoconf.c: Likewise. |
| 21016 |
* include/mach_debug/mach_debug.defs: Don't include `mach_vm_debug.h'. |
| 21017 |
* vm/vm_debug.c: Likewise. |
| 21018 |
* vm/vm_page.h: Likewise. |
| 21019 |
* vm/vm_resident.c: Likewise. |
| 21020 |
* kern/sched_prim.c: Don't include `power_save.h'. |
| 21021 |
* kern/sched.h: Don't include `simple_clock.h'. |
| 21022 |
* kern/sched_prim.c: Likewise. |
| 21023 |
* kern/thread.c: Likewise. |
| 21024 |
* kern/mach_clock.c: Don't include `stat_time.h'. |
| 21025 |
* i386/i386/i386asm.sym: Likewise. |
| 21026 |
* i386/i386/locore.S: Likewise. |
| 21027 |
* kern/sched.h: Likewise. |
| 21028 |
* kern/timer.c: Likewise. |
| 21029 |
* kern/timer.h: Likewise. |
| 21030 |
* kern/startup.c: Don't include `xpr_debug.h'. |
| 21031 |
* kern/xpr.h: Likewise. |
| 21032 |
* i386/i386at/autoconf.c: Don't include `com.h'. |
| 21033 |
* i386/i386at/com.c: Likewise. |
| 21034 |
* i386/i386at/conf.c: Likewise. |
| 21035 |
* i386/i386at/cons_conf.c: Likewise. |
| 21036 |
* i386/i386/fpe_linkage.c: Don't include `fpe.h'. |
| 21037 |
* i386/i386/fpu.c: Likewise. |
| 21038 |
* i386/i386/fpu.h: Likewise. |
| 21039 |
* i386/i386/trap.c: Likewise. |
| 21040 |
* i386/i386at/autoconf.c: Don't include `lpr.h'. |
| 21041 |
* i386/i386at/conf.c: Likewise. |
| 21042 |
* i386/i386at/lpr.c: Likewise. |
| 21043 |
* i386/i386/cswitch.S: Don't include `platforms.h'. |
| 21044 |
* i386/i386/fpu.c: Likewise. |
| 21045 |
* i386/i386/gdt.c: Likewise. |
| 21046 |
* i386/i386/hardclock.c: Likewise. |
| 21047 |
* i386/i386/i386asm.sym: Likewise. |
| 21048 |
* i386/i386/io_emulate.c: Likewise. |
| 21049 |
* i386/i386/locore.S: Likewise. |
| 21050 |
* i386/i386/pic.c: Likewise. |
| 21051 |
* i386/i386/pic.h: Likewise. |
| 21052 |
* i386/i386/pit.c: Likewise. |
| 21053 |
* i386/i386/pit.h: Likewise. |
| 21054 |
* i386/i386/seg.h: Likewise. |
| 21055 |
* i386/i386at/model_dep.c: Likewise. |
| 21056 |
* i386/i386at/com.c: Don't include `rc.h' |
| 21057 |
* i386/i386at/cons_conf.c: Likewise. |
| 21058 |
* i386/i386at/pic_isa.c: Likewise. |
| 21059 |
* device/ds_routines.c: Don't include <i386/linux/device-drivers.h>. |
| 21060 |
* i386/i386at/i386at_ds_routines.c: Likewise. |
| 21061 |
* i386/linux/dev/include/linux/autoconf.h: Likewise. |
| 21062 |
* linux/dev/arch/i386/kernel/setup.c: Likewise. |
| 21063 |
* linux/dev/init/main.c: Likewise. |
| 21064 |
* linux/pcmcia-cs/glue/pcmcia_glue.h: Likewise. |
| 21065 |
* linux/pcmcia-cs/glue/wireless_glue.h: Likewise. |
| 21066 |
* kern/lock_mon.c: Don't include <time_stamp.h>. |
| 21067 |
* device/cons.c: Include <device/cons.h> instead of <cons.h>. |
| 21068 |
* i386/i386at/com.c: Likewise. |
| 21069 |
* i386/i386at/kd.c: Likewise. |
| 21070 |
* i386/i386at/cons_conf.c: Likewise. |
| 21071 |
* i386/i386at/i386at_ds_routines.c: Include <device/device.server.h> |
| 21072 |
instead of "device_interface.h". |
| 21073 |
* device/chario.c: Include <device/device_reply.user.h> instead of |
| 21074 |
"device_reply.h". |
| 21075 |
* device/ds_routines.c: Likewise. |
| 21076 |
* linux/dev/glue/block.c: Likewise. |
| 21077 |
* linux/dev/glue/net.c: Likewise. |
| 21078 |
* linux/pcmcia-cs/glue/ds.c: Likewise. |
| 21079 |
* device/cons.c: Include <device/kmsg.h> instead of <kmsg.h>. |
| 21080 |
* device/kmsg.c: Likewise. |
| 21081 |
* i386/i386/cswitch.S: Include <i386/cpu_number.h> instead of |
| 21082 |
"cpu_number.h". |
| 21083 |
* i386/i386/locore.S: Likewise. |
| 21084 |
* i386/intel/pmap.c: Likewise. |
| 21085 |
* ipc/ipc_kmsg.h: Likewise. |
| 21086 |
* i386/i386/i386asm.sym: Include <i386/gdt.h> instead of "gdt.h". |
| 21087 |
* i386/i386/idt.c: Likewise. |
| 21088 |
* i386/i386at/int_init.c: Likewise. |
| 21089 |
* i386/i386/cswitch.S: Include <i386/i386asm.h> instead of "i386asm.h". |
| 21090 |
* i386/i386/locore.S: Likewise. |
| 21091 |
* i386/i386at/boothdr.S: Likewise. |
| 21092 |
* i386/i386at/interrupt.S: Likewise. |
| 21093 |
* i386/i386at/idt.h: Include <i386/idt-gen.h> instead of "idt-gen.h". |
| 21094 |
* i386/i386at/interrupt.S: Include <i386/ipl.h> instead of "ipl.h". |
| 21095 |
* i386/i386/i386asm.sym: Include <i386/ldt.h> instead of "ldt.h". |
| 21096 |
* i386/i386/locore.S: Likewise. |
| 21097 |
* i386/i386/i386asm.sym: Include <i386/mp_desc.h> instead of |
| 21098 |
"mp_desc.h". |
| 21099 |
* i386/i386at/interrupt.S: Include <i386/pic.h> instead of "pic.h". |
| 21100 |
* i386/i386/cswitch.S: Include <i386/proc_reg.h> instead of |
| 21101 |
"proc_reg.h". |
| 21102 |
* i386/i386/locore.S: Likewise. |
| 21103 |
* i386/i386at/model_dep.c: Likewise. |
| 21104 |
* i386/i386/i386asm.sym: Include <i386/seg.h> instead of "seg.h". |
| 21105 |
* i386/i386/idt.c: Likewise. |
| 21106 |
* i386/i386/locore.S: Likewise. |
| 21107 |
* i386/i386/locore.S: Include <i386/trap.h> instead of "trap.h". |
| 21108 |
* i386/i386/i386asm.sym: Include <i386/tss.h> instead of "tss.h". |
| 21109 |
* i386/i386/i386asm.sym: Include <i386/vm_param.h> instead of |
| 21110 |
"vm_param.h". |
| 21111 |
* i386/i386/idt.c: Likewise. |
| 21112 |
* i386/i386at/kd.c: Likewise. |
| 21113 |
* i386/i386at/model_dep.c: Likewise. |
| 21114 |
* i386/intel/pmap.c: Likewise. |
| 21115 |
* i386/i386/i386asm.sym: Include <i386at/idt.h> instead of "idt.h". |
| 21116 |
* i386/i386/idt.c: Likewise. |
| 21117 |
* i386/i386at/int_init.c: Likewise. |
| 21118 |
* ipc/ipc_target.c: Include <kern/sched_prim.h> instead of |
| 21119 |
"sched_prim.h". |
| 21120 |
* vm/memory_object.c: Include <vm/memory_object_default.user.h> instead |
| 21121 |
of "memory_object_default.h". |
| 21122 |
* vm/vm_object.c: Likewise. |
| 21123 |
* vm/vm_pageout.c: Likewise. |
| 21124 |
* vm/memory_object.c: Include <vm/memory_object_user.user.h> instead of |
| 21125 |
"memory_object_user.h". |
| 21126 |
* vm/vm_fault.c: Likewise. |
| 21127 |
* vm/vm_object.c: Likewise. |
| 21128 |
* vm/vm_pageout.c: Likewise. |
| 21129 |
|
| 21130 |
* Makefile.am: New file. |
| 21131 |
* Makerules.am <configure's findings, System dependent Makerules> |
| 21132 |
<Compilation flags, Dependency generation, Autoconf support>: Remove |
| 21133 |
sections. |
| 21134 |
<Building from foo.cli, Building from foo.srv>: Rewrite: |
| 21135 |
(%.server.defs.c, %.user.defs.c, %.server.h %.server.c) |
| 21136 |
(%.user.h %.user.c, %.server.defs, %.user.defs): New targets. |
| 21137 |
(%.h %_user.c %.cli.d, %_interface.h %_server.c %.srv.d): Remove |
| 21138 |
targets. |
| 21139 |
(echo-%): New target. |
| 21140 |
* Makefrag.am <configure's findings, Rules, Kernel Image, Installation> |
| 21141 |
<Building the distribution, Autoconf support, Makerules>: Remove |
| 21142 |
sections. |
| 21143 |
(enable_kdb, enable_kmsg): Adapt. |
| 21144 |
<All the source in each directory> |
| 21145 |
<Header files installed for user use>: Rewrite to adapt to how things |
| 21146 |
are to be done now. |
| 21147 |
<Automatically generated source files>: New section. |
| 21148 |
(i386/Makefrag.am): Include file if appropriate. |
| 21149 |
* i386/Makefrag.am <configure's findings, Rules, Installation> |
| 21150 |
<Autoconf support, Makerules>: Remove sections. |
| 21151 |
(enable_lpr): Adapt. |
| 21152 |
<Source files for any i386 kernel>: Rewrite to adapt to how things are |
| 21153 |
to be done now. |
| 21154 |
* i386/linux/Makefrag.am: New file. |
| 21155 |
* linux/Makefrag.am: Likewise. |
| 21156 |
|
| 21157 |
* Makefile.in: Move file... |
| 21158 |
* Makefrag.am: ... here. |
| 21159 |
* i386/Makefile.in: Move file... |
| 21160 |
* i386/Makefrag.am: ... here. |
| 21161 |
* i386/linux/Makefile.in: Remove file. |
| 21162 |
|
| 21163 |
* doc/Makefile.in: Remove file. |
| 21164 |
* doc/Makefrag.am: New file. |
| 21165 |
* tests/Makefrag.am: Likewise. |
| 21166 |
* tests/test-mbchk.in: Likewise. |
| 21167 |
|
| 21168 |
* configfrag.ac: New file. |
| 21169 |
* tests/configfrag.ac: Likewise. |
| 21170 |
* Makerules.am (DEFINES): Convert those into... |
| 21171 |
* configfrag.ac: ... AC_DEFINE instantiations. |
| 21172 |
* i386/Makerules.in (DEFINES): Convert those into... |
| 21173 |
* i386/configfrag.ac: ... AC_DEFINE instantiations. |
| 21174 |
* i386/Makerules.in: Remove file. |
| 21175 |
* i386/configfrag.ac (AC_PREREQ, AC_INIT, AC_CONFIG_SRCDIR) |
| 21176 |
(AC_CONFIG_SUBDIRS, AC_CONFIG_FILES, AC_OUTPUT): Don't invoke. |
| 21177 |
(../version.m4): Don't include. |
| 21178 |
(--disable-lpr): Rework configuration option. |
| 21179 |
(--disable-default-device-drivers): Move configuration option to... |
| 21180 |
* configfrag.ac: ... here. |
| 21181 |
* configure.ac (AC_CONFIG_AUX_DIR, AM_INIT_AUTOMAKE): Instantiate. |
| 21182 |
(AC_PREFIX_DEFAULT, AC_CONFIG_SUBDIRS): Don't invoke. |
| 21183 |
<Output variable `systype'>: Rework the whole section. |
| 21184 |
<Options> (--enable-kdb, --disable-kmsg): Move into `configfrag.ac' and |
| 21185 |
adapt. |
| 21186 |
<Programs> (AM_PROG_AS, AM_PROG_CC_C_O): Instantiate. |
| 21187 |
(AC_CHECK_PROG): Move instantiation searching for a `mbchk' program |
| 21188 |
into `tests/configfrag.ac'. |
| 21189 |
(AC_CHECK_PROG): Instantiate to search for a `patch' program. |
| 21190 |
<configure fragments> (tests/configfrag.ac, configfrag.ac) |
| 21191 |
(linux/configfrag.ac): Include files. |
| 21192 |
(i386/configfrag.ac): Include file if appropriate. |
| 21193 |
(AC_CONFIG_HEADER): Instantiate for `config.h'. |
| 21194 |
(AC_CONFIG_FILES): Remove `Makerules' and `doc/Makefile'. |
| 21195 |
(AC_CONFIG_COMMANDS_POST): Instantiate for `config.status.dep.patch'. |
| 21196 |
(AC_CONFIG_COMMANDS): Instantiate for |
| 21197 |
`Makefile.correct_output_files_for_.S_files.patch' and (the |
| 21198 |
nonexistent) `Makefile.dependency_tracking_for_.S_files.patch'. |
| 21199 |
* Makefile.dependency_tracking_for_.S_files.patch: New file. |
| 21200 |
* config.status.dep.patch: Likewise. |
| 21201 |
* bogus/bootstrap_symbols.h: Remove file. |
| 21202 |
* configfrag.ac: AC_DEFINE `BOOTSTRAP_SYMBOLS' to `0'. |
| 21203 |
* bogus/cpus.h: Remove file. |
| 21204 |
* configfrag.ac: AC_DEFINE `NCPUS' to `1'. AH_TEMPLATE |
| 21205 |
`MULTIPROCESSOR'. |
| 21206 |
* bogus/fast_tas.h: Remove file. |
| 21207 |
* configfrag.ac: AC_DEFINE `FAST_TAS' to `0'. |
| 21208 |
* bogus/hw_footprint.h: Remove file. |
| 21209 |
* configfrag.ac: AC_DEFINE `HW_FOOTPRINT' to `0'. |
| 21210 |
* bogus/mach_counters.h: Remove file. |
| 21211 |
* configfrag.ac: AC_DEFINE `MACH_COUNTERS' to `0'. |
| 21212 |
* bogus/mach_debug.h: Remove file. |
| 21213 |
* configfrag.ac: AC_DEFINE `MACH_DEBUG' to `1'. |
| 21214 |
* bogus/mach_fixpri.h: Remove file. |
| 21215 |
* configfrag.ac: AC_DEFINE `MACH_FIXPRI' to `1'. |
| 21216 |
* bogus/mach_host.h: Remove file. |
| 21217 |
* configfrag.ac: AC_DEFINE `MACH_HOST' to `0'. |
| 21218 |
* bogus/mach_ipc_compat.h: Remove file. |
| 21219 |
* configfrag.ac: AC_DEFINE `MACH_IPC_COMPAT' to `1'. |
| 21220 |
* bogus/mach_ipc_debug.h: Remove file. |
| 21221 |
* configfrag.ac: AC_DEFINE `MACH_IPC_DEBUG' to `1'. |
| 21222 |
* bogus/mach_ipc_test.h: Remove file. |
| 21223 |
* configfrag.ac: AC_DEFINE `MACH_IPC_TEST' to `0'. |
| 21224 |
* bogus/mach_kdb.h: Remove file. |
| 21225 |
* configfrag.ac (--disable-kdb): AC_DEFINE `MACH_KDB' to `0'. |
| 21226 |
* bogus/mach_ldebug.h: Remove file. |
| 21227 |
* configfrag.ac: AC_DEFINE `MACH_LDEBUG' to `0'. |
| 21228 |
* bogus/mach_lock_mon.h: Remove file. |
| 21229 |
* configfrag.ac: AC_DEFINE `MACH_LOCK_MON' to `0'. |
| 21230 |
* bogus/mach_machine_routines.h: Remove file. |
| 21231 |
* configfrag.ac: Add comment about not AC_DEFINEing |
| 21232 |
`MACH_MACHINE_ROUTINES' to `0'. |
| 21233 |
* bogus/mach_mp_debug.h: Remove file. |
| 21234 |
* configfrag.ac: AC_DEFINE `MACH_MP_DEBUG' to `0'. |
| 21235 |
* bogus/mach_pagemap.h: Remove file. |
| 21236 |
* configfrag.ac: AC_DEFINE `MACH_PAGEMAP' to `1'. |
| 21237 |
* bogus/mach_pcsample.h: Remove file. |
| 21238 |
* configfrag.ac: AC_DEFINE `MACH_PCSAMPLE' to `1'. |
| 21239 |
* bogus/mach_ttd.h: Remove file. |
| 21240 |
* configfrag.ac: AC_DEFINE `MACH_TTD' to `0'. |
| 21241 |
* bogus/mach_vm_debug.h: Remove file. |
| 21242 |
* configfrag.ac: AC_DEFINE `MACH_VM_DEBUG' to `1'. |
| 21243 |
* bogus/power_save.h: Remove file. |
| 21244 |
* configfrag.ac: AC_DEFINE `POWER_SAVE' to `1'. |
| 21245 |
* bogus/simple_clock.h: Remove file. |
| 21246 |
* configfrag.ac: AC_DEFINE `SIMPLE_CLOCK' to `0'. |
| 21247 |
* bogus/stat_time.h: Remove file. |
| 21248 |
* configfrag.ac: AC_DEFINE `STAT_TIME' to `1'. |
| 21249 |
* bogus/xpr_debug.h: Remove file. |
| 21250 |
* configfrag.ac: AC_DEFINE `XPR_DEBUG' to `1'. |
| 21251 |
* i386/bogus/com.h: Remove file. |
| 21252 |
* i386/configfrag.ac: AC_DEFINE `NCOM' to `4'. |
| 21253 |
* i386/bogus/fpe.h: Remove file. |
| 21254 |
* i386/configfrag.ac: AC_DEFINE `FPE' to `0'. |
| 21255 |
* i386/bogus/lpr.h: Remove file. |
| 21256 |
* i386/configfrag.ac: AC_DEFINE `NLPR' to `1'. |
| 21257 |
* i386/bogus/mach_machine_routines.h: Remove file. |
| 21258 |
* i386/configfrag.ac: AC_DEFINE `MACH_MACHINE_ROUTINES' to `1'. |
| 21259 |
* i386/bogus/platforms.h: Remove file. |
| 21260 |
* i386/configfrag.ac: AC_DEFINE `AT386' to `1'. |
| 21261 |
* i386/bogus/rc.h: Remove file. |
| 21262 |
* i386/configfrag.ac: AC_DEFINE `RCLINE' to `-1' and `RCADDR' to `0x3f8'. |
| 21263 |
|
| 21264 |
* Makerules.in: Move file... |
| 21265 |
* Makerules.am: ... here. |
| 21266 |
|
| 21267 |
* linux/configfrag.ac (AC_PREREQ, AC_INIT, AC_CONFIG_SRCDIR) |
| 21268 |
(AC_CONFIG_HEADER, AC_CANONICAL_HOST, hurd_SYSTYPE, AC_CONFIG_FILES) |
| 21269 |
(AC_OUTPUT): Don't invoke. |
| 21270 |
(../../version.m4, ../../Drivers.macros, ../../aclocal.m4): Don't |
| 21271 |
include. |
| 21272 |
<case "$host_cpu">: Only evaluate for i386. |
| 21273 |
(--disable-default-device-drivers): Remove configuraion option. |
| 21274 |
(LINUX_DEV, __KERNEL__): AC_DEFINE these. |
| 21275 |
(scsi, net, pcmcia, wireless): Remove AC_DRIVER_CLASS instantiations. |
| 21276 |
(device_driver_group): New shell function. |
| 21277 |
(AC_OPTION, AC_OPTION_nodef): New functions. |
| 21278 |
(linux_DRIVER): Rename function to AC_Linux_DRIVER and adapt. |
| 21279 |
(linux_DRIVER_nodef): Likewise to AC_Linux_DRIVER_nodef. |
| 21280 |
<Configuration options>: Adapt to the new functions introduced above |
| 21281 |
and re-position parts. |
| 21282 |
<Process device driver groups>: Adapt to the changes related to device |
| 21283 |
driver groups. |
| 21284 |
* linux/configure.in <AC_CONFIG_LINKS>: Move to... |
| 21285 |
* linux/configfrag.ac: ... here. |
| 21286 |
* linux/configure.in: Remove file. |
| 21287 |
* linux/configure: Likewise. |
| 21288 |
* i386/linux/Makerules.in: Likewise. |
| 21289 |
* Drivers.macros: Likewise. |
| 21290 |
|
| 21291 |
* i386/linux/configure.ac: Move file... |
| 21292 |
* linux/configfrag.ac: ... here. |
| 21293 |
* i386/linux/configure: Remove file. |
| 21294 |
* i386/linux/device-drivers.h.in: Likewise. |
| 21295 |
|
| 21296 |
* i386/configure.in: Move file... |
| 21297 |
* i386/configfrag.ac: ... here. |
| 21298 |
* i386/configure: Remove file. |
| 21299 |
|
| 21300 |
* config.guess: Remove file. |
| 21301 |
* config.sub: Likewise. |
| 21302 |
* install-sh: Likewise. |
| 21303 |
|
| 21304 |
* i386/Files: Remove file. |
| 21305 |
* i386/Subdirs: Likewise. |
| 21306 |
* linux/Files: Likewise. |
| 21307 |
* linux/Subdirs: Likewise. |
| 21308 |
|
| 21309 |
2006-10-13 Thomas Schwinge <[email protected]> |
| 21310 |
|
| 21311 |
* configure.in: Move file... |
| 21312 |
* configure.ac: ... here. |
| 21313 |
|
| 21314 |
* Makerules.in (ASFLAGS): Don't define `ASSEMBLER'. |
| 21315 |
* i386/i386/cpu_number.h: Check for `__ASSEMBLER__' instead of |
| 21316 |
`ASSEMBLER'. |
| 21317 |
* i386/i386/debug.h: Likewise. |
| 21318 |
* i386/i386/ipl.h: Likewise. |
| 21319 |
* i386/i386/ldt.h: Likewise. |
| 21320 |
* i386/i386/proc_reg.h: Likewise. |
| 21321 |
* i386/i386/seg.h: Likewise. |
| 21322 |
* i386/i386/trap.h: Likewise. |
| 21323 |
* i386/include/mach/i386/kern_return.h: Likewise. |
| 21324 |
* i386/include/mach/i386/vm_types.h: Likewise. |
| 21325 |
* i386/intel/pmap.h: Likewise. |
| 21326 |
* include/mach/boolean.h: Likewise. |
| 21327 |
* include/mach/boot.h: Likewise. |
| 21328 |
* include/mach/error.h: Likewise. |
| 21329 |
* kern/syscall_emulation.h: Likewise. |
| 21330 |
|
| 21331 |
* configure: Regenerate. |
| 21332 |
* i386/configure: Likewise. |
| 21333 |
* i386/linux/configure: Likewise. |
| 21334 |
* linux/configure: Likewise. |
| 21335 |
|
| 21336 |
2006-10-12 Thomas Schwinge <[email protected]> |
| 21337 |
|
| 21338 |
* version.m4 (AC_PACKAGE_VERSION): Let's name it `1.3.99'. |
| 21339 |
|
| 21340 |
* configure: Regenerate. |
| 21341 |
* i386/configure: Likewise. |
| 21342 |
* i386/linux/configure: Likewise. |
| 21343 |
* linux/configure: Likewise. |
| 21344 |
|
| 21345 |
* version.m4: Rewrite. |
| 21346 |
* configure.in: Adapt to the above. |
| 21347 |
* i386/configure.in: Likewise. |
| 21348 |
* i386/linux/configure.ac: Likewise. |
| 21349 |
* linux/configure.in: Likewise. |
| 21350 |
|
| 21351 |
2006-10-09 Thomas Schwinge <[email protected]> |
| 21352 |
|
| 21353 |
* ddb/tr.h: Insert the content of `bogus/mach_assert.h' instead of |
| 21354 |
including it. |
| 21355 |
* i386/i386/loose_ends.c: Likewise. |
| 21356 |
* bogus/mach_assert.h: Remove file. |
| 21357 |
|
| 21358 |
* bogus/panic.c: Remove file. |
| 21359 |
|
| 21360 |
* linux/src/drivers/scsi/in2000.c (in2000_proc_info) [PROC_INTERFACE]: |
| 21361 |
Don't consider `__DATE__' and `__TIME__'. |
| 21362 |
|
| 21363 |
2006-10-08 Thomas Schwinge <[email protected]> |
| 21364 |
|
| 21365 |
* linux/dev/drivers/scsi/scsi.h: Move file... |
| 21366 |
* linux/src/drivers/scsi/scsi.h: ... here, overwriting the old file. |
| 21367 |
|
| 21368 |
* linux/dev/drivers/scsi/seagate.c: Move file... |
| 21369 |
* linux/src/drivers/scsi/seagate.c: ... here, overwriting the old file. |
| 21370 |
|
| 21371 |
* linux/dev/drivers/scsi/aha152x.c: Move file... |
| 21372 |
* linux/src/drivers/scsi/aha152x.c: ... here, overwriting the old file. |
| 21373 |
|
| 21374 |
* linux/dev/drivers/scsi/sr.c: Move file... |
| 21375 |
* linux/src/drivers/scsi/sr.c: ... here, overwriting the old file. |
| 21376 |
|
| 21377 |
* linux/dev/drivers/scsi/sd_ioctl.c: Move file... |
| 21378 |
* linux/src/drivers/scsi/sd_ioctl.c: ... here, overwriting the old file. |
| 21379 |
|
| 21380 |
* linux/dev/drivers/scsi/sd.c: Move file... |
| 21381 |
* linux/src/drivers/scsi/sd.c: ... here, overwriting the old file. |
| 21382 |
|
| 21383 |
* linux/dev/drivers/scsi/hosts.c: Remove file. |
| 21384 |
* linux/dev/drivers/scsi/scsi.c: Likewise. |
| 21385 |
|
| 21386 |
* linux/dev/drivers/block/ide.c: Move file... |
| 21387 |
* linux/src/drivers/block/ide.c: ... here, overwriting the old file. |
| 21388 |
|
| 21389 |
* linux/dev/drivers/block/ide-cd.c: Remove file. |
| 21390 |
* linux/src/drivers/block/ide-cd.c (cdrom_sleep): Don't define function |
| 21391 |
`#ifndef MACH'. |
| 21392 |
|
| 21393 |
2006-10-07 Thomas Schwinge <[email protected]> |
| 21394 |
|
| 21395 |
* i386/linux/configure: Regernerate. |
| 21396 |
* i386/linux/device-drivers.h.in: Likewise. |
| 21397 |
|
| 21398 |
* Drivers.macros (AC_DRIVER, AC_DRIVER_nodef): Rewrite to allow options |
| 21399 |
with dashes in them, make it usable more universally and enhance the |
| 21400 |
generated comments in header files. |
| 21401 |
* i386/linux/configure.ac (linux_DRIVER, linux_DRIVER_nodef): Enhance |
| 21402 |
DESCRIPTION. |
| 21403 |
(u1434f): Rename to `u14-34f'. |
| 21404 |
(smcultra): Rename to `smc-ultra'. |
| 21405 |
(smcultra32): Rename to `smc-ultra32'. |
| 21406 |
(hpplus): Rename to `hp-plus'. |
| 21407 |
(ne2kpci): Rename to `ne2k-pci'. |
| 21408 |
(viarhine): Rename to `via-rhine'. |
| 21409 |
(intelgige): Rename to `intel-gige'. |
| 21410 |
(winbond840): Rename to `winbond-840'. |
| 21411 |
(AC_PCMCIA_OPTION): Remove function. |
| 21412 |
(pcmcia-isa): Use `AC_DRIVER' instead of `AC_PCMCIA_OPTION'. |
| 21413 |
* i386/README-Drivers: Update accordingly. |
| 21414 |
|
| 21415 |
2006-10-03 Thomas Schwinge <[email protected]> |
| 21416 |
|
| 21417 |
[task #5941 -- Linker script for GNU Mach] |
| 21418 |
|
| 21419 |
* Makefile.in (kernel.o): Remove `$(systype)-objfiles-prepend' hackery. |
| 21420 |
* i386/Makefile.in (sysdep.a): Likewise. |
| 21421 |
* i386/Makerules.in: Likewise. |
| 21422 |
(LDFLAGS-kernel): Point to the linker script. |
| 21423 |
* i386/i386at/boothdr.S (_start): Don't put into `.text', but into |
| 21424 |
`.text.start' instead. |
| 21425 |
* i386/ldscript: Change to put `.text' at 0x100000 and put |
| 21426 |
`.text.start' first into `.text'. |
| 21427 |
|
| 21428 |
* i386/ldscript: New file, copied from `/lib/ldscripts/elf_i386.x' of a |
| 21429 |
GNU Binutils 2.16.1 installation. |
| 21430 |
|
| 21431 |
2006-09-25 Stefan Siegl <[email protected]> |
| 21432 |
|
| 21433 |
* linux/dev/glue/net.c (device_get_status): Reworked to not read |
| 21434 |
from STATUS. Fill `struct iw_point' correctly if necessary. |
| 21435 |
|
| 21436 |
2006-09-23 Stefan Siegl <[email protected]> |
| 21437 |
|
| 21438 |
* i386/linux/configure: Regenerate. |
| 21439 |
* i386/linux/device-drivers.h.in: Likewise. |
| 21440 |
|
| 21441 |
* i386/linux/configure.ac (AC_PCMCIA_OPTION): New function. |
| 21442 |
(--disable-pcmcia-isa): New configuration option to disable ISA-bus |
| 21443 |
support in the pcmcia core, which is otherwise enabled now by default. |
| 21444 |
* doc/mach.texi (Configuration): Briefly document the new configuration |
| 21445 |
option. |
| 21446 |
* i386/README-Drivers: Likewise. |
| 21447 |
|
| 21448 |
2006-09-20 Thomas Schwinge <[email protected]> |
| 21449 |
|
| 21450 |
* configure: Regenerate. |
| 21451 |
* i386/configure: Likewise. |
| 21452 |
* i386/linux/configure: Likewise. |
| 21453 |
* i386/linux/device-drivers.h.in: Likewise. |
| 21454 |
|
| 21455 |
* Drivers.macros (AC_DRIVER_ALIAS): Remove definition. |
| 21456 |
(AC_DRIVER): Extend to take a `description' parameter and consider |
| 21457 |
`$enable_default_device_drivers'. |
| 21458 |
(AC_DRIVER_nodef): New definition. |
| 21459 |
* configure.in (options kdb, kmsg): Remove redundancy. |
| 21460 |
* i386/configure.in (option default-device-drivers): New option. |
| 21461 |
(option lpr): Consider `$enable_default_device_drivers'. |
| 21462 |
* i386/linux/configure.ac: Rework substantially. Remove all aliases. |
| 21463 |
Rename some of the device driver options. |
| 21464 |
(option default-device-drivers): New option. |
| 21465 |
(linux_DRIVER): Take care about a `description' parameter and don't |
| 21466 |
invoke AC_DRIVER_ALIAS. |
| 21467 |
(linux_DRIVER_nodef): New definition. |
| 21468 |
Adapt all usages of AC_DRIVER and linux_DRIVER to provide a |
| 21469 |
`description' parameter. |
| 21470 |
(g_NCR5380, NCR53c406a, eata_dma, wavelan, atp): Change from AC_DRIVER |
| 21471 |
to AC_DRIVER_nodef to have these device drivers disabled by default. |
| 21472 |
* doc/mach.texi: Add a note about the outdatedness to the configuration |
| 21473 |
option table. |
| 21474 |
* i386/README-Drivers: Update. |
| 21475 |
|
| 21476 |
2006-09-19 Samuel Thibault <[email protected]> |
| 21477 |
|
| 21478 |
[bug #17338 -- GNU Mach vs. GCC 4.1] |
| 21479 |
* i386/i386/seg.h (struct pseudo_descriptor): Pack structure and |
| 21480 |
move the padding field to the end. |
| 21481 |
(lgdt): Pass the whole structure to the lgdt assembly command. |
| 21482 |
(lidt): Likewise. |
| 21483 |
|
| 21484 |
2006-08-06 Thomas Schwinge <[email protected]> |
| 21485 |
|
| 21486 |
* DEVELOPMENT: Update. |
| 21487 |
|
| 21488 |
2006-07-31 Stefan Siegl <[email protected]> |
| 21489 |
|
| 21490 |
* doc/mach.texi (Configuration): Document the new PCMCIA drivers a bit |
| 21491 |
more. |
| 21492 |
* i386/README-Drivers: Likewise. |
| 21493 |
|
| 21494 |
2006-07-27 Thomas Schwinge <[email protected]> |
| 21495 |
|
| 21496 |
* i386/linux/configure: Regenerate. |
| 21497 |
|
| 21498 |
* i386/linux/configure.ac: Pull in the pcmcia code only if really |
| 21499 |
needed. |
| 21500 |
|
| 21501 |
* doc/mach.texi (Configuration): Very briefly document the new drivers. |
| 21502 |
* i386/README-Drivers: Likewise. |
| 21503 |
|
| 21504 |
* linux/dev/include/linux/types.h (_MACH_SA_SYS_TYPES_H_): Define. |
| 21505 |
|
| 21506 |
* i386/linux/configure: Regenerate. |
| 21507 |
* i386/linux/device-drivers.h.in: Likewise. |
| 21508 |
|
| 21509 |
2006-07-27 Stefan Siegl <[email protected]> |
| 21510 |
|
| 21511 |
* i386/linux/configure.ac (pcmcia, wireless): New driver classes. |
| 21512 |
(i82365, 3c574_cs, 3c589_cs, axnet_cs, fmvj18x_cs, nmclan_cs, pcnet_cs) |
| 21513 |
(smc91c92_cs, xirc2ps_cs, orinoco_cs): New drivers. |
| 21514 |
* i386/linux/Makefile.in (linux-pcmcia-cs-modules-files) |
| 21515 |
(linux-pcmcia-cs-clients-files, linux-pcmcia-cs-wireless-files): New |
| 21516 |
variables. Add `vpath's to the files locations. |
| 21517 |
(all-linux-files): Add the three new variables. |
| 21518 |
(linux-pcmcia-cs-modules-flags, linux-pcmcia-cs-clients-flags) |
| 21519 |
(linux-pcmcia-cs-wireless-flags): New variables. |
| 21520 |
(linux-flags): Add code to handle the above files and flags. |
| 21521 |
|
| 21522 |
* i386/i386at/i386at_ds_routines.c (emulation_list) |
| 21523 |
[LINUX_DEV && CONFIG_INET && CONFIG_PCMCIA]: Add the Linux pcmcia |
| 21524 |
emulation structure. |
| 21525 |
* linux/dev/glue/net.c: Include <linux/wireless.h>. |
| 21526 |
(device_get_status): Rewrite function. |
| 21527 |
(device_set_status): New function. |
| 21528 |
(linux_net_emulation_ops): Add `device_set_status' at the appropriate |
| 21529 |
position. |
| 21530 |
* linux/dev/init/main.c (linux_init) [CONFIG_PCMCIA]: Call pcmcia_init. |
| 21531 |
|
| 21532 |
* linux/pcmcia-cs/glue/ds.c: New file. |
| 21533 |
* linux/pcmcia-cs/glue/pcmcia.c: Likewise. |
| 21534 |
* linux/pcmcia-cs/glue/pcmcia_glue.h: Likewise. |
| 21535 |
* linux/pcmcia-cs/glue/wireless_glue.h: Likewise. |
| 21536 |
|
| 21537 |
* linux/pcmcia-cs/clients/xirc2ps_cs.c (busy_loop): Replace the code by |
| 21538 |
a call to __udelay. |
| 21539 |
* linux/pcmcia-cs/include/linux/init.h: Adapt to our Linux environment. |
| 21540 |
* linux/pcmcia-cs/include/linux/slab.h: Use `#include', not |
| 21541 |
`#include_next'. |
| 21542 |
* linux/pcmcia-cs/include/pcmcia/mem_op.h: Adapt to our Linux |
| 21543 |
environment and fix GCC 4.0 complaints. |
| 21544 |
* linux/pcmcia-cs/include/pcmcia/version.h: Always assume that |
| 21545 |
CONFIG_PCMCIA is not defined. |
| 21546 |
* linux/pcmcia-cs/modules/cs.c (init_pcmcia_cs): Don't make it static. |
| 21547 |
* linux/pcmcia-cs/modules/ds.c: Use some magic to avoid duplicate |
| 21548 |
definition `io_req_t'. |
| 21549 |
(ds_open, ds_release, ds_read, ds_write, ds_select, ds_poll, ds_fops): |
| 21550 |
Hide functions if MACH is defined. |
| 21551 |
Likewise for the module handling code. |
| 21552 |
(ds_ioctl): Use plain `memcpy' if MACH is defined. |
| 21553 |
(init_pcmcia_ds): Don't register charcater devices if MACH is defined. |
| 21554 |
Include "../glue/ds.c". |
| 21555 |
* linux/pcmcia-cs/modules/i82365.c (test_irq): Adapt to GNU Mach. |
| 21556 |
(init_i82365): Don't make it static. |
| 21557 |
* linux/pcmcia-cs/modules/pci_fixup.c (pci_devices): Don't define if |
| 21558 |
MACH is defined. |
| 21559 |
* linux/pcmcia-cs/wireless/orinoco.c: Adapt to our Linux environment. |
| 21560 |
|
| 21561 |
2006-07-27 Thomas Schwinge <[email protected]> |
| 21562 |
|
| 21563 |
Import a number of files from the pcmcia-cs package, version 3.2.8, |
| 21564 |
available from <http://pcmcia-cs.sourceforge.net/>. |
| 21565 |
|
| 21566 |
* linux/pcmcia-cs/clients/3c574_cs.c: Import file. |
| 21567 |
* linux/pcmcia-cs/clients/3c589_cs.c: Likewise. |
| 21568 |
* linux/pcmcia-cs/clients/ax8390.h: Likewise. |
| 21569 |
* linux/pcmcia-cs/clients/axnet_cs.c: Likewise. |
| 21570 |
* linux/pcmcia-cs/clients/fmvj18x_cs.c: Likewise. |
| 21571 |
* linux/pcmcia-cs/clients/nmclan_cs.c: Likewise. |
| 21572 |
* linux/pcmcia-cs/clients/ositech.h: Likewise. |
| 21573 |
* linux/pcmcia-cs/clients/pcnet_cs.c: Likewise. |
| 21574 |
* linux/pcmcia-cs/clients/smc91c92_cs.c: Likewise. |
| 21575 |
* linux/pcmcia-cs/clients/xirc2ps_cs.c: Likewise. |
| 21576 |
* linux/pcmcia-cs/include/linux/crc32.h: Likewise. |
| 21577 |
* linux/pcmcia-cs/include/linux/init.h: Likewise. |
| 21578 |
* linux/pcmcia-cs/include/linux/slab.h: Likewise. |
| 21579 |
* linux/pcmcia-cs/include/pcmcia/bulkmem.h: Likewise. |
| 21580 |
* linux/pcmcia-cs/include/pcmcia/bus_ops.h: Likewise. |
| 21581 |
* linux/pcmcia-cs/include/pcmcia/ciscode.h: Likewise. |
| 21582 |
* linux/pcmcia-cs/include/pcmcia/cisreg.h: Likewise. |
| 21583 |
* linux/pcmcia-cs/include/pcmcia/cistpl.h: Likewise. |
| 21584 |
* linux/pcmcia-cs/include/pcmcia/cs.h: Likewise. |
| 21585 |
* linux/pcmcia-cs/include/pcmcia/cs_types.h: Likewise. |
| 21586 |
* linux/pcmcia-cs/include/pcmcia/driver_ops.h: Likewise. |
| 21587 |
* linux/pcmcia-cs/include/pcmcia/ds.h: Likewise. |
| 21588 |
* linux/pcmcia-cs/include/pcmcia/mem_op.h: Likewise. |
| 21589 |
* linux/pcmcia-cs/include/pcmcia/ss.h: Likewise. |
| 21590 |
* linux/pcmcia-cs/include/pcmcia/version.h: Likewise. |
| 21591 |
* linux/pcmcia-cs/modules/bulkmem.c: Likewise. |
| 21592 |
* linux/pcmcia-cs/modules/cirrus.h: Likewise. |
| 21593 |
* linux/pcmcia-cs/modules/cistpl.c: Likewise. |
| 21594 |
* linux/pcmcia-cs/modules/cs.c: Likewise. |
| 21595 |
* linux/pcmcia-cs/modules/cs_internal.h: Likewise. |
| 21596 |
* linux/pcmcia-cs/modules/ds.c: Likewise. |
| 21597 |
* linux/pcmcia-cs/modules/ene.h: Likewise. |
| 21598 |
* linux/pcmcia-cs/modules/i82365.c: Likewise. |
| 21599 |
* linux/pcmcia-cs/modules/i82365.h: Likewise. |
| 21600 |
* linux/pcmcia-cs/modules/o2micro.h: Likewise. |
| 21601 |
* linux/pcmcia-cs/modules/pci_fixup.c: Likewise. |
| 21602 |
* linux/pcmcia-cs/modules/ricoh.h: Likewise. |
| 21603 |
* linux/pcmcia-cs/modules/rsrc_mgr.c: Likewise. |
| 21604 |
* linux/pcmcia-cs/modules/smc34c90.h: Likewise. |
| 21605 |
* linux/pcmcia-cs/modules/ti113x.h: Likewise. |
| 21606 |
* linux/pcmcia-cs/modules/topic.h: Likewise. |
| 21607 |
* linux/pcmcia-cs/modules/vg468.h: Likewise. |
| 21608 |
* linux/pcmcia-cs/modules/yenta.h: Likewise. |
| 21609 |
* linux/pcmcia-cs/wireless/hermes.c: Likewise. |
| 21610 |
* linux/pcmcia-cs/wireless/hermes.h: Likewise. |
| 21611 |
* linux/pcmcia-cs/wireless/hermes_rid.h: Likewise. |
| 21612 |
* linux/pcmcia-cs/wireless/ieee802_11.h: Likewise. |
| 21613 |
* linux/pcmcia-cs/wireless/orinoco.c: Likewise. |
| 21614 |
* linux/pcmcia-cs/wireless/orinoco.h: Likewise. |
| 21615 |
* linux/pcmcia-cs/wireless/orinoco_cs.c: Likewise. |
| 21616 |
|
| 21617 |
2006-07-24 Thomas Schwinge <[email protected]> |
| 21618 |
|
| 21619 |
* Makerules.in (%.h %_user.c): Add `%.cli.d' to the target list. |
| 21620 |
Create these files by specifying `-MD' as a flag for mig and rename the |
| 21621 |
resulting files as needed. |
| 21622 |
Include these `*.cli.d' files instead of `*.migu.d' files. |
| 21623 |
(%_interface.h %_server.c): Likewise for `%.srv.d' / `*.migs.d'. |
| 21624 |
(%.migs.d, %.migu.d): Remove targets. |
| 21625 |
* Makefile.in (clean): Adapt to the above. |
| 21626 |
* i386/Makefile.in (clean): Likewise. |
| 21627 |
|
| 21628 |
2006-06-30 Samuel Thibault <[email protected]> |
| 21629 |
|
| 21630 |
* i386/i386at/kd_mouse.c (mouse_char_in, mouse_char) Remove variables. |
| 21631 |
(mouse_char_index) New variable. |
| 21632 |
(mouse_handle_byte, kd_mouse_read): Use MOUSEBUF instead of MOUSE_CHAR |
| 21633 |
for storing incoming command characters. |
| 21634 |
(kd_mouse_read_reset): New function. |
| 21635 |
(ibm_ps2_mouse_open, ibm_ps2_mouse_close): Call new kd_mouse_read_reset |
| 21636 |
function. |
| 21637 |
|
| 21638 |
2006-06-09 Stefan Siegl <[email protected]> |
| 21639 |
|
| 21640 |
* linux/dev/include/asm-i386/uaccess.h: New dummy file. |
| 21641 |
* linux/dev/include/linux/pm.h: Likewise. |
| 21642 |
* linux/dev/include/linux/threads.h: Likewise. |
| 21643 |
* linux/src/include/linux/symtab_begin.h: New file from Linux 2.0.40. |
| 21644 |
* linux/src/include/linux/symtab_end.h: Likewise. |
| 21645 |
* linux/src/include/linux/module.h: Update from Linux 2.0.40 with minor |
| 21646 |
changes. |
| 21647 |
* linux/src/include/linux/list.h: New file from Linux 2.2.26. |
| 21648 |
* linux/src/include/linux/kcomp.h: Likewise with minor changes. |
| 21649 |
* linux/src/include/linux/wait.h: Update from Linux 2.2.26. |
| 21650 |
* linux/src/include/linux/wireless.h: Likewise. |
| 21651 |
* linux/src/include/asm-i386/bitops.h [__KERNEL__] (ffs, hweight32) |
| 21652 |
(hweight16, hweight8): Copy from Linux 2.2.26. |
| 21653 |
|
| 21654 |
* kern/printf.c (_doprnt): Support printing of pointer addresses. |
| 21655 |
|
| 21656 |
2006-05-14 Roland McGrath <[email protected]> |
| 21657 |
|
| 21658 |
[sync from HEAD, 2002-06-17] |
| 21659 |
* device/if_hdr.h: Replace ancient UCB copyright terms with current |
| 21660 |
approved UCB terms. |
| 21661 |
* include/sys/reboot.h: Likewise. |
| 21662 |
* include/device/disk_status.h: Likewise. |
| 21663 |
* include/device/tape_status.h: Likewise. |
| 21664 |
* device/net_io.c: Remove advertising clause from UCB copyright terms. |
| 21665 |
* include/device/audio_status.h: Likewise. |
| 21666 |
* include/device/bpf.h: Likewise. |
| 21667 |
|
| 21668 |
2006-05-14 Thomas Schwinge <[email protected]> |
| 21669 |
|
| 21670 |
* i386/i386at/autoconf.c (bus_device_init) <lpr> [! LINUX_DEV]: Depend |
| 21671 |
on `MACH_LPR' instead. |
| 21672 |
* i386/i386at/lpr.c: Fix obsolescent `#else' / `#endif' syntax. |
| 21673 |
|
| 21674 |
2006-05-12 Stefan Siegl <[email protected]> |
| 21675 |
|
| 21676 |
* linux/dev/glue/kmem.c (vfree): Panic if `vmalloc_list_lookup' did |
| 21677 |
NOT succeed. |
| 21678 |
|
| 21679 |
2006-05-08 Thomas Schwinge <[email protected]> |
| 21680 |
|
| 21681 |
* DEVELOPMENT: Document Samuel's patch. |
| 21682 |
|
| 21683 |
2006-05-08 Samuel Thibault <[email protected]> |
| 21684 |
|
| 21685 |
[bug #7118 -- GNU Mach can't handle 1G memory] |
| 21686 |
* i386/i386at/model_dep.c (mem_size_init): Limit memory to what can |
| 21687 |
actually be used (minus a little extra for virtual mappings). |
| 21688 |
* i386/intel/pmap.c (pmap_bootstrap): Extend the virtual mapping area |
| 21689 |
according to memory size for at least being able to manage it. But |
| 21690 |
look out for wrap and limit it to kernel adresses. Remove duplicate |
| 21691 |
computing. |
| 21692 |
|
| 21693 |
2006-04-27 Richard Braun <[email protected]> |
| 21694 |
Manuel Menal <[email protected]> |
| 21695 |
|
| 21696 |
* device/if_hdr.h (struct ifnet): Added new members `if_snd_port_list' |
| 21697 |
and `if_snd_port_list_lock'. |
| 21698 |
* device/net_io.c: Reworked to improve BPF support. Filters can be |
| 21699 |
applied to ingress packets, egress packets, or both. |
| 21700 |
* device/subrs.c: Initialize the `if_snd_port_list' and |
| 21701 |
`if_snd_port_list_lock'. |
| 21702 |
* include/device/bpf.h [0]: Enable unconditionally. |
| 21703 |
Include <sys/types.h>. |
| 21704 |
(BPF_IN, BPF_OUT): New macros. |
| 21705 |
* include/device/net_status.h (NETF_TYPE_MASK, NETF_IN, NETF_OUT): New |
| 21706 |
macros. |
| 21707 |
(struct net_rcv_msg): New member `sent'. |
| 21708 |
* linux/dev/glue/net.c: Mark ingress packets as received and inject |
| 21709 |
egress packets into the packet filters. |
| 21710 |
|
| 21711 |
2006-04-26 Thomas Schwinge <[email protected]> |
| 21712 |
|
| 21713 |
* Makefile.in: Replace `make' with `$(MAKE)'. |
| 21714 |
* i386/Makefile.in: Likewise. |
| 21715 |
Reported by Leonardo Lopes Pereira <[email protected]>. |
| 21716 |
|
| 21717 |
2006-04-08 Thomas Schwinge <[email protected]> |
| 21718 |
|
| 21719 |
* i386/Makefile.in (INCLUDES): Don't add `$(srcdir)/bogus'. |
| 21720 |
* i386/Makerules.in (INCLUDES): Add |
| 21721 |
`$(abs_top_srcdir)/$(systype)/bogus'. |
| 21722 |
Reported by Samuel Thibault <[email protected]>. |
| 21723 |
|
| 21724 |
2006-04-02 Thomas Schwinge <[email protected]> |
| 21725 |
|
| 21726 |
* Makerules.in (%_user.c, %_server.c): Those are `.PRECIOUS'. |
| 21727 |
(%.migs.d, %.migu.d): New targets. |
| 21728 |
(%.migs_d, %.migu_d, %.migsh_d, %.miguh_d): Remove targets. |
| 21729 |
Adapt the `include's to the renamed targets. |
| 21730 |
* Makefile.in (clean): Adapt to the renamed targets. |
| 21731 |
* i386/Makefile.in (clean): Likewise. |
| 21732 |
|
| 21733 |
* i386/Makefile.in (boothdr.o): New target. |
| 21734 |
|
| 21735 |
2006-03-21 Thomas Schwinge <[email protected]> |
| 21736 |
|
| 21737 |
* Makefile.in (clean): Also remove `kernel.gz', `kernel.stripped' and |
| 21738 |
`kernel.stripped.gz'. |
| 21739 |
|
| 21740 |
* Makefile.in (kernel.o): Handle `$(systype)-objfiles-prepend'. |
| 21741 |
* i386/Makefile.in (sysdep.a): Likewise. |
| 21742 |
* i386/Makerules.in (kernel-objfiles-prepend): Transform variable into |
| 21743 |
`$(systype)-objfiles-prepend'. |
| 21744 |
(kernel.o): Remove target. |
| 21745 |
|
| 21746 |
2006-03-20 Thomas Schwinge <[email protected]> |
| 21747 |
|
| 21748 |
* DEVELOPMENT: Document the NORMA removal. |
| 21749 |
|
| 21750 |
2006-03-20 Leonardo Lopes Pereira <[email protected]> |
| 21751 |
|
| 21752 |
Remove unused and unsupported code. Consult the file `DEVELOPMENT' |
| 21753 |
for details. |
| 21754 |
|
| 21755 |
[patch #4982 -- remove of unused / unsuported functions of |
| 21756 |
gnumach-1-branch] |
| 21757 |
* bogus/norma_device.h: Remove file. |
| 21758 |
* bogus/norma_ether.h: Likewise. |
| 21759 |
* bogus/norma_ipc.h: Likewise. |
| 21760 |
* bogus/norma_task.h: Likewise. |
| 21761 |
* bogus/norma_vm.h: Likewise. |
| 21762 |
* include/mach/mach_norma.defs: Likewise. |
| 21763 |
* include/mach/norma_task.defs: Likewise. |
| 21764 |
* include/mach/norma_special_ports.h: Likewise. |
| 21765 |
* Makefile.in (bogus-files): Remove `norma_device.h', `norma_ether.h', |
| 21766 |
`norma_ipc.h', `norma_task.h' and `norma_vm.h'. |
| 21767 |
(mach-headers): Remove `mach_norma.defs', `norma_task.defs' and |
| 21768 |
`norma_special_ports.h'. |
| 21769 |
* device/ds_routines.c: Don't include <norma_device.h> anymore and |
| 21770 |
adapt all users of NORMA_DEVICE as if it were always defined to `0'. |
| 21771 |
* device/net_io.c: Likewise for <norma_ether.h>, NORMA_ETHER. |
| 21772 |
* kern/machine.c: Likewise. |
| 21773 |
* ddb/db_command.c: Likevise for <norma_ipc.h>, NORMA_IPC. |
| 21774 |
* ipc/ipc_init.c: Likewise. |
| 21775 |
* ipc/ipc_kmsg.c: Likewise. |
| 21776 |
* ipc/ipc_kmsg.h: Likewise. |
| 21777 |
* ipc/ipc_mqueue.c: Likewise. |
| 21778 |
* ipc/ipc_notify.c: Likewise. |
| 21779 |
* ipc/ipc_port.c: Likewise. |
| 21780 |
* ipc/ipc_port.h: Likewise. |
| 21781 |
* ipc/ipc_space.c: Likewise. |
| 21782 |
* ipc/ipc_space.h: Likewise. |
| 21783 |
* ipc/mach_msg.c: Likewise. |
| 21784 |
* kern/ast.c: Likewise. |
| 21785 |
* kern/debug.c: Likewise. |
| 21786 |
* kern/exception.c: Likewise. |
| 21787 |
* kern/startup.c: Likewise. |
| 21788 |
* vm/memory_object.c: Likewise. |
| 21789 |
* vm/vm_map.c: Likewise. |
| 21790 |
* kern/ipc_kobject.c: Likewise for <norma_task.h>, NORMA_TASK. |
| 21791 |
* kern/task.c: Likewise. |
| 21792 |
* kern/task.h: Likewise. |
| 21793 |
* ddb/db_command.c: Likewise for <norma_vm.h>, NORMA_VM. |
| 21794 |
* device/dev_pager.c: Likewise. |
| 21795 |
* include/mach/mach_types.defs: Likewise. |
| 21796 |
* include/mach/mach_types.h: Likewise. |
| 21797 |
* include/mach/memory_object_default.defs: Likewise. |
| 21798 |
* include/mach/memory_object.defs: Likewise. |
| 21799 |
* ipc/ipc_kmsg.c: Likewise. |
| 21800 |
* kern/ipc_kobject.c: Likewise. |
| 21801 |
* kern/ipc_mig.c: Likewise. |
| 21802 |
* kern/startup.c: Likewise. |
| 21803 |
* vm/memory_object.c: Likewise. |
| 21804 |
* vm/vm_object.c: Likewise. |
| 21805 |
* vm/vm_object.h: Likewise. |
| 21806 |
* vm/vm_pageout.c: Likewise. |
| 21807 |
|
| 21808 |
2006-03-19 Thomas Schwinge <[email protected]> |
| 21809 |
|
| 21810 |
* DEVELOPMENT: Document the FIPC removal. |
| 21811 |
|
| 21812 |
2006-03-19 Leonardo Lopes Pereira <[email protected]> |
| 21813 |
|
| 21814 |
Remove unused and unsupported code. Consult the file `DEVELOPMENT' |
| 21815 |
for details. |
| 21816 |
|
| 21817 |
[patch #4982 -- remove of unused / unsuported functions of |
| 21818 |
gnumach-1-branch] |
| 21819 |
* ipc/fipc.c: Remove file. |
| 21820 |
* ipc/fipc.h: Likewise. |
| 21821 |
* Makefile.in (ipc-cfiles): Remove `fipc.c'. |
| 21822 |
(ipc-files): Remove `fipc.h'. |
| 21823 |
* device/device_init.c [FIPC]: Remove code. |
| 21824 |
* device/net_io.c [FIPC]: Likewise. |
| 21825 |
* include/mach/syscall_sw.h [FIPC]: Likewise. |
| 21826 |
* kern/syscall_sw.c [FIPC]: Likewise. |
| 21827 |
|
| 21828 |
2006-03-15 Thomas Schwinge <[email protected]> |
| 21829 |
|
| 21830 |
* configure.in: Check for strip and gzip. |
| 21831 |
* configure: Regenerated. |
| 21832 |
* Makerules.in (GZIP, STRIP): New variables. |
| 21833 |
(%.gz, %.stripped): New targets. |
| 21834 |
|
| 21835 |
2006-03-04 Roland McGrath <[email protected]> |
| 21836 |
|
| 21837 |
* Makefile.in (DEFS): Substitute once and use the variable elsewhere. |
| 21838 |
|
| 21839 |
2006-03-04 Samuel Thibault <[email protected]> |
| 21840 |
|
| 21841 |
[patch #4737 -- User TSS fixup] |
| 21842 |
* i386/i386/iopb.c: Include "vm_param.h". |
| 21843 |
(io_tss_init): Fix address and limit of user TSS. |
| 21844 |
|
| 21845 |
2006-03-04 Thomas Schwinge <[email protected]> |
| 21846 |
|
| 21847 |
Remove unused and unsupported code. Consult the file |
| 21848 |
`DEVELOPMENT' for details. Partly based on suggestions by |
| 21849 |
Gianluca Guida <[email protected]>. |
| 21850 |
|
| 21851 |
* i386/bogus/par.h: Remove file. |
| 21852 |
* i386/i386at/if_par.c: Likewise. |
| 21853 |
* i386/i386at/if_par.h: Likewise. |
| 21854 |
* i386/i386at/conf.c: Don't include <par.h> anymore and adapt all users |
| 21855 |
of NPAR as if it were always defined to `0'. |
| 21856 |
* i386/i386at/lpr.c: Likewise. |
| 21857 |
|
| 21858 |
* i386/bogus/de6c.h: Remove file. |
| 21859 |
* i386/i386at/if_de6c.c: Likewise. |
| 21860 |
* i386/i386at/if_de6c.h: Likewise. |
| 21861 |
* i386/i386at/if_de6s.S: Likewise. |
| 21862 |
* i386/i386at/conf.c: Don't include <de6c.h> anymore and adapt all |
| 21863 |
users of NDE6C as if it were always defined to `0'. |
| 21864 |
* i386/i386at/lpr.c: Likewise. |
| 21865 |
|
| 21866 |
2006-02-20 Thomas Schwinge <[email protected]> |
| 21867 |
|
| 21868 |
Remove unused and unsupported code. Consult the file |
| 21869 |
`DEVELOPMENT' for details. Partly based on suggestions by |
| 21870 |
Gianluca Guida <[email protected]>. |
| 21871 |
|
| 21872 |
* i386/bogus/blit.h: Remove file. |
| 21873 |
* i386/i386at/blit.c: Likewise. |
| 21874 |
* i386/i386at/blitreg.h: Likewise. |
| 21875 |
* i386/i386at/blituser.h: Likewise. |
| 21876 |
* i386/i386at/blitvar.h: Likewise. |
| 21877 |
* i386/i386at/conf.c: Don't include <blit.h> anymore and adapt all |
| 21878 |
users of NBLIT as if it were always defined to `0'. |
| 21879 |
* i386/i386at/kd.c: Likewise. |
| 21880 |
(blit_init): Remove definition. |
| 21881 |
(blit_present): Likewise and adapt all users as if it were always |
| 21882 |
defined to `FALSE'. |
| 21883 |
* i386/Makefile.in (i386at-files): Remove `blit.c'. |
| 21884 |
|
| 21885 |
* bogus/net_atm.h: Remove file. |
| 21886 |
* Makefile.in (bogus-files): Remove `net_atm.h'. |
| 21887 |
* kern/syscall_sw.c: Don't include <net_atm.h> anymore and adapt all |
| 21888 |
users of NET_ATM as if it were always defined to `0'. |
| 21889 |
* kern/task.c: Likewise. |
| 21890 |
* kern/task.h: Likewise. |
| 21891 |
* kern/thread.c: Likewise. |
| 21892 |
* kern/thread.h: Likewise. |
| 21893 |
|
| 21894 |
* util/about_to_die.c: Remove file. |
| 21895 |
* util/config.h: Likewise. |
| 21896 |
* util/cpu.c: Likewise. |
| 21897 |
* util/cpu.h: Likewise. |
| 21898 |
* util/cpu_init.c: Likewise. |
| 21899 |
* util/cpu_subs.h: Likewise. |
| 21900 |
* util/debug.h: Likewise. |
| 21901 |
* util/die.c: Likewise. |
| 21902 |
* util/phys_mem.h: Likewise. |
| 21903 |
* util/ref_count.h: Likewise. |
| 21904 |
* util/cpus.h: Move from here... |
| 21905 |
* bogus/cpus.h: ... to here. |
| 21906 |
* Makefile.in (bogus-files): Add `cpus.h'. |
| 21907 |
(util-cfiles): Only contain `putchar.c' and `puts.c'. |
| 21908 |
(util-files): Only contain `$(util-cfiles)'. |
| 21909 |
|
| 21910 |
* i386/util/NOTES: Remove file. |
| 21911 |
* i386/util/anno.c: Likewise. |
| 21912 |
* i386/util/anno.h: Likewise. |
| 21913 |
* i386/util/cpu.h: Likewise. |
| 21914 |
* i386/util/cpu_subs.h: Likewise. |
| 21915 |
* i386/util/cpu_tables_init.c: Likewise. |
| 21916 |
* i386/util/cpu_tables_load.c: Likewise. |
| 21917 |
* i386/util/crtn.S: Likewise. |
| 21918 |
* i386/util/debug.h: Likewise. |
| 21919 |
* i386/util/gdt.c: Likewise. |
| 21920 |
* i386/util/gdt.h: Likewise. |
| 21921 |
* i386/util/gdt_sels.h: Likewise. |
| 21922 |
* i386/util/i16/debug.h: Likewise. |
| 21923 |
* i386/util/i16/i16.h: Likewise. |
| 21924 |
* i386/util/i16/i16_die.c: Likewise. |
| 21925 |
* i386/util/i16/i16_gdt_init_temp.c: Likewise. |
| 21926 |
* i386/util/i16/i16_nanodelay.c: Likewise. |
| 21927 |
* i386/util/i16/i16_puts.c: Likewise. |
| 21928 |
* i386/util/i16/i16_writehex.c: Likewise. |
| 21929 |
* i386/util/i386_asm.sym: Likewise. |
| 21930 |
* i386/util/idt.c: Likewise. |
| 21931 |
* i386/util/idt.h: Likewise. |
| 21932 |
* i386/util/idt_inittab.S: Likewise. |
| 21933 |
* i386/util/idt_inittab.h: Likewise. |
| 21934 |
* i386/util/ldt.h: Likewise. |
| 21935 |
* i386/util/trap.h: Likewise. |
| 21936 |
* i386/util/trap_asm.sym: Likewise. |
| 21937 |
* i386/util/trap_dump.c: Likewise. |
| 21938 |
* i386/util/trap_dump_die.c: Likewise. |
| 21939 |
* i386/util/trap_handler.S: Likewise. |
| 21940 |
* i386/util/trap_return.S: Likewise. |
| 21941 |
* i386/util/tss.c: Likewise. |
| 21942 |
* i386/util/tss.h: Likewise. |
| 21943 |
* i386/util/tss_dump.c: Likewise. |
| 21944 |
* i386/util/vm_param.h: Likewise. |
| 21945 |
|
| 21946 |
* i386/pc/NOTES: Remove file. |
| 21947 |
* i386/pc/debug.h: Likewise. |
| 21948 |
* i386/pc/exit.c: Likewise. |
| 21949 |
* i386/pc/gdt.h: Likewise. |
| 21950 |
* i386/pc/gdt_sels.h: Likewise. |
| 21951 |
* i386/pc/i16/i16_a20.c: Likewise. |
| 21952 |
* i386/pc/i16/i16_a20.h: Likewise. |
| 21953 |
* i386/pc/i16/i16_bios.h: Likewise. |
| 21954 |
* i386/pc/i16/i16_exit.c: Likewise. |
| 21955 |
* i386/pc/i16/i16_ext_mem.c: Likewise. |
| 21956 |
* i386/pc/i16/i16_init.c: Likewise. |
| 21957 |
* i386/pc/i16/i16_main.c: Likewise. |
| 21958 |
* i386/pc/i16/i16_pic.c: Likewise. |
| 21959 |
* i386/pc/i16/i16_putchar.c: Likewise. |
| 21960 |
* i386/pc/i16/i16_raw.c: Likewise. |
| 21961 |
* i386/pc/i16/i16_raw_test_a20.S: Likewise. |
| 21962 |
* i386/pc/i16/i16_real_int.S: Likewise. |
| 21963 |
* i386/pc/i16/i16_switch.h: Likewise. |
| 21964 |
* i386/pc/i16/phys_mem_collect.c: Likewise. |
| 21965 |
* i386/pc/i16/phys_mem_sources.h: Likewise. |
| 21966 |
* i386/pc/i16/raw_exit.c: Likewise. |
| 21967 |
* i386/pc/i16/raw_real_int.c: Likewise. |
| 21968 |
* i386/pc/ipl.h: Likewise. |
| 21969 |
* i386/pc/irq.h: Likewise. |
| 21970 |
* i386/pc/irq_list.h: Likewise. |
| 21971 |
* i386/pc/pc_asm.sym: Likewise. |
| 21972 |
* i386/pc/phys_mem.h: Likewise. |
| 21973 |
* i386/pc/phys_mem_add.c: Likewise. |
| 21974 |
* i386/pc/pic.c: Likewise. |
| 21975 |
* i386/pc/pic.h: Likewise. |
| 21976 |
* i386/pc/putchar.c: Likewise. |
| 21977 |
* i386/pc/real.h: Likewise. |
| 21978 |
* i386/pc/real_tss.c: Likewise. |
| 21979 |
* i386/pc/real_tss.h: Likewise. |
| 21980 |
* i386/pc/real_tss_def.S: Likewise. |
| 21981 |
* i386/pc/rv86/config.h: Likewise. |
| 21982 |
* i386/pc/rv86/gdt_sels.h: Likewise. |
| 21983 |
* i386/pc/rv86/idt_irq_init.c: Likewise. |
| 21984 |
* i386/pc/rv86/rv86_real_int.c: Likewise. |
| 21985 |
* i386/pc/rv86/rv86_real_int_asm.S: Likewise. |
| 21986 |
* i386/pc/rv86/rv86_reflect_irq.S: Likewise. |
| 21987 |
* i386/pc/rv86/rv86_trap_handler.S: Likewise. |
| 21988 |
* i386/pc/rv86/trap_handler.S: Likewise. |
| 21989 |
|
| 21990 |
* i386/imps/Makefile.in: Remove file. |
| 21991 |
* i386/imps/apic.h: Likewise. |
| 21992 |
* i386/imps/cpu_number.h: Likewise. |
| 21993 |
* i386/imps/cpus.h: Likewise. |
| 21994 |
* i386/imps/imps.c: Likewise. |
| 21995 |
* i386/imps/impsasm.sym: Likewise. |
| 21996 |
|
| 21997 |
* i386/dos/dos_buf.c: Remove file. |
| 21998 |
* i386/dos/dos_check_err.c: Likewise. |
| 21999 |
* i386/dos/dos_close.c: Likewise. |
| 22000 |
* i386/dos/dos_fstat.c: Likewise. |
| 22001 |
* i386/dos/dos_gettimeofday.c: Likewise. |
| 22002 |
* i386/dos/dos_io.h: Likewise. |
| 22003 |
* i386/dos/dos_open.c: Likewise. |
| 22004 |
* i386/dos/dos_read.c: Likewise. |
| 22005 |
* i386/dos/dos_rename.c: Likewise. |
| 22006 |
* i386/dos/dos_seek.c: Likewise. |
| 22007 |
* i386/dos/dos_tcgetattr.c: Likewise. |
| 22008 |
* i386/dos/dos_unlink.c: Likewise. |
| 22009 |
* i386/dos/dos_write.c: Likewise. |
| 22010 |
* i386/dos/i16/gdt.h: Likewise. |
| 22011 |
* i386/dos/i16/gdt_sels.h: Likewise. |
| 22012 |
* i386/dos/i16/i16_crt0.S: Likewise. |
| 22013 |
* i386/dos/i16/i16_crt0.h: Likewise. |
| 22014 |
* i386/dos/i16/i16_dos.h: Likewise. |
| 22015 |
* i386/dos/i16/i16_dos_mem.c: Likewise. |
| 22016 |
* i386/dos/i16/i16_exit.c: Likewise. |
| 22017 |
* i386/dos/i16/i16_main.c: Likewise. |
| 22018 |
* i386/dos/i16/i16_putchar.c: Likewise. |
| 22019 |
* i386/dos/i16/i16_vcpi.c: Likewise. |
| 22020 |
* i386/dos/i16/i16_xms.c: Likewise. |
| 22021 |
* i386/dos/i16/idt.h: Likewise. |
| 22022 |
* i386/dos/i16/phys_mem_sources.h: Likewise. |
| 22023 |
* i386/dos/putchar.c: Likewise. |
| 22024 |
|
| 22025 |
* chips/atm.c: Remove file. |
| 22026 |
* chips/atmreg.h: Likewise. |
| 22027 |
* chips/audio.c: Likewise. |
| 22028 |
* chips/audio_config.h: Likewise. |
| 22029 |
* chips/audio_defs.h: Likewise. |
| 22030 |
* chips/bt431.c: Likewise. |
| 22031 |
* chips/bt431.h: Likewise. |
| 22032 |
* chips/bt455.c: Likewise. |
| 22033 |
* chips/bt455.h: Likewise. |
| 22034 |
* chips/bt459.c: Likewise. |
| 22035 |
* chips/bt459.h: Likewise. |
| 22036 |
* chips/bt478.c: Likewise. |
| 22037 |
* chips/bt478.h: Likewise. |
| 22038 |
* chips/build_font.c: Likewise. |
| 22039 |
* chips/cfb_hdw.c: Likewise. |
| 22040 |
* chips/cfb_misc.c: Likewise. |
| 22041 |
* chips/dc503.c: Likewise. |
| 22042 |
* chips/dc503.h: Likewise. |
| 22043 |
* chips/dtop.h: Likewise. |
| 22044 |
* chips/dtop_handlers.c: Likewise. |
| 22045 |
* chips/dtop_hdw.c: Likewise. |
| 22046 |
* chips/dz_7085.h: Likewise. |
| 22047 |
* chips/dz_defs.h: Likewise. |
| 22048 |
* chips/dz_hdw.c: Likewise. |
| 22049 |
* chips/eccreg.h: Likewise. |
| 22050 |
* chips/fb_hdw.c: Likewise. |
| 22051 |
* chips/fb_misc.c: Likewise. |
| 22052 |
* chips/fdc_82077.h: Likewise. |
| 22053 |
* chips/fdc_82077_hdw.c: Likewise. |
| 22054 |
* chips/frc.c: Likewise. |
| 22055 |
* chips/ims332.c: Likewise. |
| 22056 |
* chips/ims332.h: Likewise. |
| 22057 |
* chips/isdn_79c30.h: Likewise. |
| 22058 |
* chips/isdn_79c30_hdw.c: Likewise. |
| 22059 |
* chips/kernel_font.c: Likewise. |
| 22060 |
* chips/kernel_font.data: Likewise. |
| 22061 |
* chips/lance.c: Likewise. |
| 22062 |
* chips/lance.h: Likewise. |
| 22063 |
* chips/lance_mapped.c: Likewise. |
| 22064 |
* chips/lk201.c: Likewise. |
| 22065 |
* chips/lk201.h: Likewise. |
| 22066 |
* chips/mc_clock.c: Likewise. |
| 22067 |
* chips/mc_clock.h: Likewise. |
| 22068 |
* chips/mouse.c: Likewise. |
| 22069 |
* chips/nc.c: Likewise. |
| 22070 |
* chips/nc.h: Likewise. |
| 22071 |
* chips/nw.h: Likewise. |
| 22072 |
* chips/nw_mk.c: Likewise. |
| 22073 |
* chips/nw_mk.h: Likewise. |
| 22074 |
* chips/pm_defs.h: Likewise. |
| 22075 |
* chips/pm_hdw.c: Likewise. |
| 22076 |
* chips/pm_misc.c: Likewise. |
| 22077 |
* chips/scc_8530.h: Likewise. |
| 22078 |
* chips/scc_8530_hdw.c: Likewise. |
| 22079 |
* chips/screen.c: Likewise. |
| 22080 |
* chips/screen.h: Likewise. |
| 22081 |
* chips/screen_defs.h: Likewise. |
| 22082 |
* chips/screen_switch.c: Likewise. |
| 22083 |
* chips/screen_switch.h: Likewise. |
| 22084 |
* chips/serial_console.c: Likewise. |
| 22085 |
* chips/serial_defs.h: Likewise. |
| 22086 |
* chips/sfb_hdw.c: Likewise. |
| 22087 |
* chips/sfb_misc.c: Likewise. |
| 22088 |
* chips/spans.c: Likewise. |
| 22089 |
* chips/spans.h: Likewise. |
| 22090 |
* chips/tca100.c: Likewise. |
| 22091 |
* chips/tca100.h: Likewise. |
| 22092 |
* chips/tca100_if.c: Likewise. |
| 22093 |
* chips/tca100_if.h: Likewise. |
| 22094 |
* chips/vs42x_rb.h: Likewise. |
| 22095 |
* chips/xcfb_hdw.c: Likewise. |
| 22096 |
* chips/xcfb_misc.c: Likewise. |
| 22097 |
* chips/xcfb_monitor.h: Likewise. |
| 22098 |
* Makefile.in (chips-files): Only contain `busses.c' and `busses.h'. |
| 22099 |
* kern/syscall_sw.c: Don't include <chips/nw_mk.h> anymore. |
| 22100 |
|
| 22101 |
* i386/i386at/asm_startup.h: Remove file. |
| 22102 |
* i386/i386at/phys_mem_grab_page.c: Likewise. |
| 22103 |
* i386/Makefile.in (i386at-files): Remove `phys_mem_grab_page.c'. |
| 22104 |
|
| 22105 |
* i386/bogus/evc.h: Remove file. |
| 22106 |
* i386/i386at/kd.c: Don't include <evc.h> anymore and adapt all users |
| 22107 |
of NEVC as if it were always defined to `0'. |
| 22108 |
(evc1init): Remove definition and adapt all users as if it were always |
| 22109 |
defined to `FALSE'. |
| 22110 |
|
| 22111 |
* i386/bogus/nscsi.h: Remove file. |
| 22112 |
* i386/i386at/model_dep.c: Don't include <nscsi.h> anymore and adapt |
| 22113 |
all users of NSCSI as if it were always defined to `0'. |
| 22114 |
(use_all_mem): Don't define anymore and adapt all users as if it were |
| 22115 |
always defined to `1'. |
| 22116 |
(NBBY, NBPW, DMA_MAX): Remove macros. |
| 22117 |
(alloc_dma_mem): Remove function. |
| 22118 |
|
| 22119 |
* i386/bogus/asc.h: Remove file. |
| 22120 |
* i386/bogus/aha.h: Likewise. |
| 22121 |
* i386/bogus/eaha.h: Likewise. |
| 22122 |
* i386/bogus/sbic.h: Likewise. |
| 22123 |
* i386/bogus/sci.h: Likewise. |
| 22124 |
* i386/bogus/sii.h: Likewise. |
| 22125 |
* i386/bogus/siop.h: Likewise. |
| 22126 |
* i386/i386at/eisa.h: Likewise. |
| 22127 |
* scsi/adapters/README: Likewise. |
| 22128 |
* scsi/adapters/scsi_33C93.h: Likewise. |
| 22129 |
* scsi/adapters/scsi_33C93_hdw.c: Likewise. |
| 22130 |
* scsi/adapters/scsi_5380.h: Likewise. |
| 22131 |
* scsi/adapters/scsi_5380_hdw.c: Likewise. |
| 22132 |
* scsi/adapters/scsi_53C700.h: Likewise. |
| 22133 |
* scsi/adapters/scsi_53C700_hdw.c: Likewise. |
| 22134 |
* scsi/adapters/scsi_53C94.h: Likewise. |
| 22135 |
* scsi/adapters/scsi_53C94_hdw.c: Likewise. |
| 22136 |
* scsi/adapters/scsi_7061.h: Likewise. |
| 22137 |
* scsi/adapters/scsi_7061_hdw.c: Likewise. |
| 22138 |
* scsi/adapters/scsi_89352.h: Likewise. |
| 22139 |
* scsi/adapters/scsi_89352_hdw.c: Likewise. |
| 22140 |
* scsi/adapters/scsi_aha15.h: Likewise. |
| 22141 |
* scsi/adapters/scsi_aha15_hdw.c: Likewise. |
| 22142 |
* scsi/adapters/scsi_aha17_hdw.c: Likewise. |
| 22143 |
* scsi/adapters/scsi_dma.h: Likewise. |
| 22144 |
* scsi/adapters/scsi_user_dma.c: Likewise. |
| 22145 |
* scsi/adapters/scsi_user_dma.h: Likewise. |
| 22146 |
* scsi/compat_30.h: Likewise. |
| 22147 |
* scsi/disk_label.c: Likewise. |
| 22148 |
* scsi/mapped_scsi.c: Likewise. |
| 22149 |
* scsi/mapped_scsi.h: Likewise. |
| 22150 |
* scsi/pc_scsi_label.c: Likewise. |
| 22151 |
* scsi/rz.c: Likewise. |
| 22152 |
* scsi/rz.h: Likewise. |
| 22153 |
* scsi/rz_audio.c: Likewise. |
| 22154 |
* scsi/rz_cpu.c: Likewise. |
| 22155 |
* scsi/rz_disk.c: Likewise. |
| 22156 |
* scsi/rz_disk_bbr.c: Likewise. |
| 22157 |
* scsi/rz_host.c: Likewise. |
| 22158 |
* scsi/rz_labels.h: Likewise. |
| 22159 |
* scsi/rz_tape.c: Likewise. |
| 22160 |
* scsi/scsi.c: Likewise. |
| 22161 |
* scsi/scsi.h: Likewise. |
| 22162 |
* scsi/scsi2.h: Likewise. |
| 22163 |
* scsi/scsi_alldevs.c: Likewise. |
| 22164 |
* scsi/scsi_comm.c: Likewise. |
| 22165 |
* scsi/scsi_cpu.c: Likewise. |
| 22166 |
* scsi/scsi_defs.h: Likewise. |
| 22167 |
* scsi/scsi_disk.c: Likewise. |
| 22168 |
* scsi/scsi_endian.h: Likewise. |
| 22169 |
* scsi/scsi_jukebox.c: Likewise. |
| 22170 |
* scsi/scsi_optical.c: Likewise. |
| 22171 |
* scsi/scsi_printer.c: Likewise. |
| 22172 |
* scsi/scsi_rom.c: Likewise. |
| 22173 |
* scsi/scsi_scanner.c: Likewise. |
| 22174 |
* scsi/scsi_tape.c: Likewise. |
| 22175 |
* scsi/scsi_worm.c: Likewise. |
| 22176 |
* i386/i386at/autoconf.c: Don't include <aha.h> and <eaha.h> anymore |
| 22177 |
and adapt all users of NAHA and NEAHA as if it were always defined to |
| 22178 |
`0'. |
| 22179 |
* i386/i386at/conf.c: Likewise. |
| 22180 |
* Makefile.in (scsi-files): Remove variable and all users of it. |
| 22181 |
|
| 22182 |
* i386/bogus/wt.h: Remove file. |
| 22183 |
* i386/i386at/autoconf.c: Don't include <wt.h> anymore and adapt all |
| 22184 |
users of NWT as if it were always defined to `0'. |
| 22185 |
* i386/i386at/conf.c: Likewise. |
| 22186 |
|
| 22187 |
* i386/bogus/hpp.h: Remove file. |
| 22188 |
* i386/bogus/ul.h: Likewise. |
| 22189 |
* i386/bogus/wd.h: Likewise. |
| 22190 |
* i386/i386at/gpl/if_hpp.c: Likewise. |
| 22191 |
* i386/i386at/gpl/if_ns.c: Likewise. |
| 22192 |
* i386/i386at/gpl/if_nsreg.h: Likewise. |
| 22193 |
* i386/i386at/gpl/if_ul.c: Likewise. |
| 22194 |
* i386/i386at/gpl/if_wd.c: Likewise. |
| 22195 |
* i386/i386at/autoconf.c: Don't include <hpp.h>, <ul.h> and <wd.h> |
| 22196 |
anymore and adapt all users of NHPP, NUL and NWD as if they were always |
| 22197 |
defined to `0'. |
| 22198 |
* i386/i386at/conf.c: Likewise. |
| 22199 |
|
| 22200 |
* i386/bogus/at3c501.h: Remove file. |
| 22201 |
* i386/i386at/if_3c501.c: Likewise. |
| 22202 |
* i386/i386at/if_3c501.h: Likewise. |
| 22203 |
* i386/i386at/autoconf.c: Don't include <at3c501.h> anymore and adapt |
| 22204 |
all users of NAT3C501 as if it were always defined to `0'. |
| 22205 |
* i386/i386at/conf.c: Likewise. |
| 22206 |
|
| 22207 |
* i386/bogus/ns8390.h: Remove file. |
| 22208 |
* i386/i386at/ds8390.h: Likewise. |
| 22209 |
* i386/i386at/if_3c503.h: Likewise. |
| 22210 |
* i386/i386at/if_ns8390.c: Likewise. |
| 22211 |
* i386/i386at/if_ns8390.h: Likewise. |
| 22212 |
* i386/i386at/if_wd8003.h: Likewise. |
| 22213 |
* i386/i386at/autoconf.c: Don't include <ns8390.h> anymore and adapt |
| 22214 |
all users of NNS8390 as if it were always defined to `0'. |
| 22215 |
* i386/i386at/conf.c: Likewise. |
| 22216 |
|
| 22217 |
* i386/bogus/ne.h: Remove file. |
| 22218 |
* i386/i386at/if_ne.c: Likewise. |
| 22219 |
* i386/i386at/if_nereg.h: Likewise. |
| 22220 |
* i386/i386at/autoconf.c: Don't include <ne.h> anymore and adapt all |
| 22221 |
users of NNE as if it were always defined to `0'. |
| 22222 |
* i386/i386at/conf.c: Likewise. |
| 22223 |
|
| 22224 |
* i386/bogus/pc586.h: Remove file. |
| 22225 |
* i386/i386at/i82586.h: Likewise. |
| 22226 |
* i386/i386at/if_pc586.c: Likewise. |
| 22227 |
* i386/i386at/if_pc586.h: Likewise. |
| 22228 |
* i386/i386at/autoconf.c: Don't include <pc586.h> anymore and adapt all |
| 22229 |
users of NPC586 as if it were always defined to `0'. |
| 22230 |
* i386/i386at/conf.c: Likewise. |
| 22231 |
|
| 22232 |
* i386/bogus/fd.h: Remove file. |
| 22233 |
* i386/i386at/fd.c: Likewise. |
| 22234 |
* i386/i386at/fdreg.h: Likewise. |
| 22235 |
* i386/i386at/nfd.c: Likewise. |
| 22236 |
* i386/i386at/nfdreg.h: Likewise. |
| 22237 |
* i386/Makefile.in (i386at-files): Remove `fd.c'. |
| 22238 |
* i386/i386at/autoconf.c: Don't include <fd.h> anymore and adapt all |
| 22239 |
users of NFD as if it were always defined to `0'. |
| 22240 |
* i386/i386at/conf.c: Likewise. |
| 22241 |
|
| 22242 |
* i386/bogus/hd.h: Remove file. |
| 22243 |
* i386/i386at/nhd.c: Likewise. |
| 22244 |
* i386/i386at/nhdreg.h: Likewise. |
| 22245 |
* i386/i386at/autoconf.c: Don't include <hd.h> anymore and adapt all |
| 22246 |
users of NHD as if it were always defined to `0'. |
| 22247 |
* i386/i386at/conf.c: Likewise. |
| 22248 |
|
| 22249 |
* DEVELOPMENT: New file. |
| 22250 |
|
| 22251 |
2006-02-05 Thomas Schwinge <[email protected]> |
| 22252 |
|
| 22253 |
* Makerules.in: Don't set no_deps to true if MAKECMDGOALS is empty. |
| 22254 |
|
| 22255 |
2006-02-03 Thomas Schwinge <[email protected]> |
| 22256 |
|
| 22257 |
* Makerules.in: Set no_deps to true if we don't need the dependency |
| 22258 |
files. |
| 22259 |
* i386/linux/Makefile.in: Do care about linux-flags if no_deps is true; |
| 22260 |
reverting the change from 2006-01-31. |
| 22261 |
|
| 22262 |
* Makefile.in: Include Makerules through top_builddir, so that it will |
| 22263 |
automatically be rebuilt if needed. |
| 22264 |
|
| 22265 |
* Makerules.in (CFLAGS): Added -fno-strict-aliasing. |
| 22266 |
* i386/linux/Makefile.in (linux-gen-flags): Likewise. |
| 22267 |
|
| 22268 |
2006-02-02 Sergio Lopez <[email protected]> |
| 22269 |
|
| 22270 |
* linux/src/drivers/scsi/eata_pio.c (eata_pio_detect): Fix a |
| 22271 |
off-by-one error when probing. |
| 22272 |
* linux/src/drivers/scsi/eata_dma.c (eata_detect): Likewise. |
| 22273 |
* linux/dev/drivers/scsi/eata_dma.c (eata_detect): Likewise. |
| 22274 |
|
| 22275 |
* linux/src/drivers/net/apricot.c (apricot_probe): Increase eth_addr |
| 22276 |
size to 8 so we do not trash the stack when reading from the io ports. |
| 22277 |
|
| 22278 |
2006-02-02 Thomas Schwinge <[email protected]> |
| 22279 |
|
| 22280 |
* Makerules.in: Move a comment ... |
| 22281 |
* Makefile.in: ... here. |
| 22282 |
|
| 22283 |
2006-02-01 Thomas Schwinge <[email protected]> |
| 22284 |
|
| 22285 |
* linux/dev/drivers/block/genhd.c (add_bsd_partition): Only define if |
| 22286 |
both MACH and CONFIG_BSD_DISKLABEL are defined. |
| 22287 |
Reported by Matheus Morais <[email protected]>. |
| 22288 |
|
| 22289 |
2006-01-31 Thomas Schwinge <[email protected]> |
| 22290 |
|
| 22291 |
Cleanup of GNU Mach's build system. The system dependent parts are now |
| 22292 |
handled by the respective Makefile and no longer by the top-level one. |
| 22293 |
|
| 22294 |
* configure, i386/configure, i386/linux/configure, linux/configure: |
| 22295 |
Regenerated. |
| 22296 |
|
| 22297 |
* Makefile.in: Various cleanups. |
| 22298 |
(mach/machine, mach_machine): Targets removed. |
| 22299 |
(AWK, CC, CFLAGS, CPPFLAGS, DEFINES, INCLUDES, INSTALL, INSTALL_DATA) |
| 22300 |
(INSTALL_PROGRAM, LD, MIG, MIGFLAGS, NM): Variables moved into |
| 22301 |
Makerules.in. |
| 22302 |
Do not include $(sysdep)/Makefrag anymore. |
| 22303 |
(all, check, clean, distclean, mostlyclean, maintainer-clean, install) |
| 22304 |
(install-headers, install-kernel): Recurse into the system dependent |
| 22305 |
subdirectory. |
| 22306 |
(check): Add a basic test using mbchk. |
| 22307 |
(clean, distclean): Be more explicit in what to delete. |
| 22308 |
($(systype)/%): New target. |
| 22309 |
(kernel.o): Incorporate the system dependent archive. |
| 22310 |
(installed-sysdep-headers-names, $(installed-sysdep-headers-names)): |
| 22311 |
Variable and target moved into the system dependent Makefile.in. |
| 22312 |
(install-headers, mkheaderdirs): Don't care for the system dependent |
| 22313 |
header files. |
| 22314 |
(%.symc, %.symc.o, %.h, %_user.c, %_interface.h, %_server.c): Targets |
| 22315 |
moved into Makerules.in. |
| 22316 |
Inclusion of dependency files: Likewise. |
| 22317 |
(%.migs_d, %.migu_d, %.migsh_d, %.miguh_d, make-deps, %.d): Likewise. |
| 22318 |
Include Makerules. |
| 22319 |
* Makerules.in: New file, mainly based on Makefile.in. |
| 22320 |
* configure.in: Do not substitute cross_compiling and not explicitly |
| 22321 |
substitute LDFLAGS. |
| 22322 |
Check for cpp, ranlib, ar and mbchk. |
| 22323 |
Care for the mach/machine symbolic link. |
| 22324 |
Add Makerules as a config file. |
| 22325 |
* i386/Makefile.in: Various cleanups. |
| 22326 |
Merge i386/Makefrag and the system dependent stuff from Makefile.in |
| 22327 |
into this file. |
| 22328 |
(all, check, install, install-headers, install-kernel): Recurse into |
| 22329 |
the system dependent subdirectory. |
| 22330 |
(sysdep.o): transformed to the new target sysdep.a. |
| 22331 |
(linux/linux.o): Target removed. |
| 22332 |
(clean, distclean): Be more explicit in what to delete. |
| 22333 |
(linux/%): New target. |
| 22334 |
(install-headers): Install the system dependent header files. |
| 22335 |
(mkheaderdirs): New target. |
| 22336 |
Include the top-level Makerules. |
| 22337 |
* i386/Makefrag: File removed. |
| 22338 |
* i386/Makerules.in: New file. |
| 22339 |
* i386/configure.in: Synchronize AC_INIT to the top-level definition. |
| 22340 |
Do not check for ld and make. |
| 22341 |
Add Makerules as a config file. |
| 22342 |
* i386/linux/Makefile.in: Various cleanups. |
| 22343 |
Replace linux-objs with objfiles. |
| 22344 |
(check, install, install-headers, install-kernel): New empty targets. |
| 22345 |
Don't care about linux-flags if no_deps is true. |
| 22346 |
Inclusion of dependency files removed and instead... |
| 22347 |
Include the top-level Makerules. |
| 22348 |
* i386/linux/Makerules.in: New file. |
| 22349 |
* i386/linux/configure.ac: Synchronize AC_INIT to the top-level |
| 22350 |
definition. |
| 22351 |
Do not check for gcc and ld. |
| 22352 |
Do not explicitly substitute LDFLAGS. |
| 22353 |
Add Makerules as a config file. |
| 22354 |
* linux/configure.in: Synchronize AC_INIT to the top-level definition. |
| 22355 |
Do not create directories using a dummy file. |
| 22356 |
* linux/dummy.in: File removed. |
| 22357 |
|
| 22358 |
* ddb/db_access.h: Include <machine/vm_param.h> instead of |
| 22359 |
"vm_param.h". |
| 22360 |
* kern/bootstrap.c: Likewise. |
| 22361 |
* kern/thread.c: Likewise. |
| 22362 |
* vm/vm_kern.c: Likewise. |
| 22363 |
* vm/vm_object.c: Likewise. |
| 22364 |
* vm/vm_resident.c: Likewise. |
| 22365 |
|
| 22366 |
2006-01-26 Thomas Schwinge <[email protected]> |
| 22367 |
|
| 22368 |
* config.guess: Updated from the canonical source. |
| 22369 |
* config.sub: Likewise. |
| 22370 |
|
| 22371 |
2006-01-26 Jeroen Dekkers <[email protected]> |
| 22372 |
|
| 22373 |
* i386/i386/locore.S (trap_push_segs): Switch fs and gs to kernel |
| 22374 |
data segment too. |
| 22375 |
(syscall_entry_2): Likewise. |
| 22376 |
* i386/i386/user_ldt.c (i386_set_ldt): Always copy the master LDT |
| 22377 |
when there is no old user LDT. |
| 22378 |
|
| 22379 |
2006-01-26 Samuel Thibault <[email protected]> |
| 22380 |
|
| 22381 |
* linux/dev/arch/i386/kernel/irq.c (linux_intr): Disable interrupts |
| 22382 |
if the driver requested it through request_irq(). |
| 22383 |
|
| 22384 |
* linux/dev/drivers/block/ide.c (read_intr): Set the IRQ handler before |
| 22385 |
issuing a request. |
| 22386 |
(write_intr): Likewise. |
| 22387 |
(multwrite_intr): Likewise. |
| 22388 |
|
| 22389 |
2006-01-26 Thomas Schwinge <[email protected]> |
| 22390 |
|
| 22391 |
* i386/linux/Makefile.in: Automatically recreate the `Makefile'. |
| 22392 |
|
| 22393 |
2006-01-23 Thomas Schwinge <[email protected]> |
| 22394 |
|
| 22395 |
* i386/linux/configure: Regenerated. |
| 22396 |
|
| 22397 |
* i386/linux/configure.ac: Only add a AC_DRIVER_ALIAS if it really is a |
| 22398 |
alias. |
| 22399 |
|
| 22400 |
2006-01-22 Thomas Schwinge <[email protected]> |
| 22401 |
|
| 22402 |
* doc/mach.texi (Configuration): Document the recently added drivers. |
| 22403 |
* i386/README-Drivers: Likewise. |
| 22404 |
|
| 22405 |
* configure, i386/configure, i386/linux/configure, linux/configure, |
| 22406 |
i386/linux/device-drivers.h.in: Regenerated. |
| 22407 |
|
| 22408 |
* linux/src/drivers/net/ne2k-pci.c: Resolve conflicts. |
| 22409 |
|
| 22410 |
2006-01-22 Guillem Jover <[email protected]> |
| 22411 |
|
| 22412 |
* i386/linux/configure.ac: Renamed winbond-840 driver to winbond_840. |
| 22413 |
Enable the starfire, intel_gige and natsemi network drivers. Remove |
| 22414 |
"CONFIG_" from cb_chim, starfire, sundance, winbond840, hamachi, |
| 22415 |
natsemi, myson803 and ns820 driver declarations. Replace INTER_GIGE |
| 22416 |
with INTEL_GIGE. |
| 22417 |
* linux/dev/drivers/net/Space.c: Add conditional probes for natsemi, |
| 22418 |
ns820, winbond840, hamachi, sundance, starfire, myson803 and intel-gige |
| 22419 |
drivers. |
| 22420 |
|
| 22421 |
* linux/src/include/asm-i386/cache.h: New file from linux 2.2.26. |
| 22422 |
* linux/dev/include/linux/malloc.h: Include <asm/cache.h>. |
| 22423 |
|
| 22424 |
* linux/src/drivers/net/ns820.c (netsami_drv_id): Renamed to ... |
| 22425 |
(ns820_drv_id): ... this. Fix all callers. |
| 22426 |
* linux/src/drivers/net/intel-gige.c |
| 22427 |
(skel_netdev_probe): Renamed to ... |
| 22428 |
(igige_probe): ... this. |
| 22429 |
* linux/dev/drivers/net/eepro100.c: Remove obsoleted file. |
| 22430 |
* linux/src/drivers/net/eepro100.c (pci_id_tbl): Add PCI ID's from |
| 22431 |
linux-2.6.14-rc4. |
| 22432 |
|
| 22433 |
2006-01-22 Alfred M. Szmidt <[email protected]> |
| 22434 |
|
| 22435 |
* i386/linux/configure.ac: Added `pci-scan.o' to the network driver |
| 22436 |
class. (ns820, myson803, sundance, winbond-840, hamachi): New drivers. |
| 22437 |
* i386/linux/Makefile.in (linux-net-files): Added `cb_shim.c', |
| 22438 |
`hamachi.c', `intel-gige.c', `myson803.c', `natsemi.c', `ns820.c', |
| 22439 |
`starfire.c', `sundance.c', `winbond-840.c' and `pci-scan.c'. |
| 22440 |
|
| 22441 |
* linux/dev/include/linux/modversions.h: New file. |
| 22442 |
|
| 22443 |
* linux/src/drivers/net/cb_shim.c, linux/src/drivers/net/hamachi.c, |
| 22444 |
linux/src/drivers/net/intel-gige.c, linux/src/drivers/net/myson803.c, |
| 22445 |
linux/src/drivers/net/natsemi.c, linux/src/drivers/net/ns820.c, |
| 22446 |
linux/src/drivers/net/starfire.c, linux/src/drivers/net/sundance.c, |
| 22447 |
linux/src/drivers/net/winbond-840.c, |
| 22448 |
linux/src/drivers/net/kern_compat.h, linux/src/drivers/net/pci-scan.c, |
| 22449 |
linux/src/drivers/net/pci-scan.h: New files from netdrivers 3.5 package |
| 22450 |
(http://www.scyld.com/network). |
| 22451 |
|
| 22452 |
* linux/src/drivers/net/3c59x.c, linux/src/drivers/net/eepro100.c, |
| 22453 |
linux/src/drivers/net/epic100.c, linux/src/drivers/net/ne2k-pci.c, |
| 22454 |
linux/src/drivers/net/rtl8139.c, linux/src/drivers/net/tulip.c, |
| 22455 |
linux/src/drivers/net/via-rhine.c, linux/src/drivers/net/yellowfin.c: |
| 22456 |
Updated files from netdrivers 3.5 (http://www.scyld.com/network). |
| 22457 |
|
| 22458 |
2006-01-22 Thomas Schwinge <[email protected]> |
| 22459 |
|
| 22460 |
* linux/src/drivers/net/ne2k-pci.c (ne_block_input, ne_block_output): |
| 22461 |
Fix previous patch. |
| 22462 |
|
| 22463 |
2005-07-12 Guillem Jover <[email protected]> |
| 22464 |
|
| 22465 |
* configure: Regenerated. |
| 22466 |
* i386/configure: Regenerated. |
| 22467 |
|
| 22468 |
* Drivers.macros (AC_DRIVER_CLASS): Use AH_TEMPLATE. |
| 22469 |
(AC_DRIVER): Set the value for the AC_DEFINE and AC_DEFINE_UNQUOTED |
| 22470 |
to 1. |
| 22471 |
|
| 22472 |
* aclocal.m4 (AC_PROG_CC_LOCAL, AC_PROG_CC_WORKS_LOCAL): Removed. |
| 22473 |
* version.m4: New file. |
| 22474 |
* Makefile.in: Use PACKAGE_VERSION, not VERSION. |
| 22475 |
* doc/Makefile.in: Likewise. |
| 22476 |
* version.c.in: Likewise. Use PACKAGE_NAME, not "GNUmach". |
| 22477 |
* i386/linux/Makefile.in (configure): Change its source to |
| 22478 |
configure.ac. |
| 22479 |
|
| 22480 |
* aclocal.m4: Add missing quotations. |
| 22481 |
* Drivers.macros: Likewise. |
| 22482 |
* configure.in: Likewise. Include version.m4 and use PACKAGE and |
| 22483 |
VERSION m4 macros from it. |
| 22484 |
* i386/configure.in: Likewise. |
| 22485 |
(AC_INIT): Use new syntax and move source check to AC_CONFIG_SRCDIR. |
| 22486 |
* i386/linux/configure.ac: Likewise. Use m4_sinclude, not sinclude. |
| 22487 |
* linux/configure.in: Likewise. |
| 22488 |
|
| 22489 |
* i386/configure.in: Update AC_DEFINE to the new three argument form. |
| 22490 |
* i386/linux/configure.ac: Move AC_DEFINE inside AC_ARG_ENABLE. |
| 22491 |
|
| 22492 |
* configure.in: Use AC_CONFIG_LINKS, not AC_LINK_FILES. |
| 22493 |
* linux/configure.in: Likewise. |
| 22494 |
|
| 22495 |
* i386/configure.in: Call AC_CONFIG_FILES and use the new form of |
| 22496 |
AC_OUTPUT. |
| 22497 |
* i386/linux/configure.ac: Likewise. |
| 22498 |
* linux/configure.in: Likewise |
| 22499 |
|
| 22500 |
* configure.in: Use AS_HELP_STRING in AC_ARG_ENABLE help strings. |
| 22501 |
* Drivers.macros: Likewise. |
| 22502 |
* i386/configure.in: Likewise. |
| 22503 |
* i386/linux/configure.ac: Likewise. |
| 22504 |
|
| 22505 |
2005-07-12 Neal H. Walfield <[email protected]> |
| 22506 |
|
| 22507 |
* configure.in: Update to use autoconf 2.57. |
| 22508 |
Do not error out if host_os is not GNU. |
| 22509 |
Update AC_DEFINEs to the required three argument form. |
| 22510 |
Don't call AC_CHECK_TOOL(CC, gcc) and AC_PROG_CC_LOCAL, just use |
| 22511 |
AC_PROG_CC. |
| 22512 |
AC_SUBST(LDFLAGS). |
| 22513 |
Refactor AC_CONFIG_SUBDIRS to not do variable substitution. |
| 22514 |
Call AC_CONFIG_FILES and use the new form of AC_OUTPUT. |
| 22515 |
* i386/configure.in: Require autoconf 2.57. |
| 22516 |
* linux/configure.in: Likewise. |
| 22517 |
* i386/linux/Drivers.in: Move from here... |
| 22518 |
* i386/linux/configure.ac: ... to here to conform to the |
| 22519 |
environment autoreconf expects. |
| 22520 |
(hurd_host_CPU): New macro. |
| 22521 |
Call AC_PROG_CC, not AC_PROG_CC_LOCAL. |
| 22522 |
AC_SUBST(LD_FLAGS). |
| 22523 |
(flashpoint): Update AC_DEFINE to the new three argument form. |
| 22524 |
* Drivers.macros (AC_DRIVER): Update AC_DEFINE to the new three |
| 22525 |
argument form. |
| 22526 |
|
| 22527 |
2005-05-24 Alfred M. Szmidt <[email protected]> |
| 22528 |
|
| 22529 |
* i386/include/mach/i386/asm.h (END): New macro. |
| 22530 |
|
| 22531 |
* i386/include/mach/i386/syscall_sw.h (kernel_trap): Call END. |
| 22532 |
|
| 22533 |
2005-05-28 Alfred M. Szmidt <[email protected]> |
| 22534 |
|
| 22535 |
* linux/src/drivers/scsi/u14-34f.c (ihdlr): Silence gcc 4.x |
| 22536 |
errors. |
| 22537 |
* linux/src/drivers/scsi/qlogicisp.h: Likewise. |
| 22538 |
* linux/src/drivers/scsi/advansys.c: Likewise. |
| 22539 |
(advansys_reset, advansys_interrupt, asc_scsi_done_list, |
| 22540 |
(asc_enqueue, asc_dequeue, asc_dequeue_list, asc_rmqueue, |
| 22541 |
(asc_isqueued): Likewise. |
| 22542 |
* linux/src/drivers/scsi/53c78xx.c (NCR53c7xx_queue_command): |
| 22543 |
Likewise. |
| 22544 |
* linux/src/drivers/net/ne2k-pci.c (ne_block_input) |
| 22545 |
(ne_block_output): Likewise. |
| 22546 |
* linux/src/drivers/net/hp100.c (__initfunc): Likewise. |
| 22547 |
* linux/src/drivers/net/3c507.c (el16_interrupt): Likewise. |
| 22548 |
* linux/dev/drivers/scsi/seagate.c (seagate_st0x_queue_command): |
| 22549 |
Likewise. |
| 22550 |
|
| 22551 |
2005-05-26 Alfred M. Szmidt <[email protected]> |
| 22552 |
|
| 22553 |
* device/cons.h (cn_tab) [KERNEL]: Removed extern declaration. |
| 22554 |
|
| 22555 |
* linux/dev/include/linux/fs.h (super_blocks): Declare as an |
| 22556 |
pointer. |
| 22557 |
|
| 22558 |
2005-02-10 Guillem Jover <[email protected]> |
| 22559 |
|
| 22560 |
* linux/dev/glue/block.c (rdwr_partial): Remove leftover assert. |
| 22561 |
|
| 22562 |
2005-01-22 Guillem Jover <[email protected]> |
| 22563 |
|
| 22564 |
* linux/dev/include/linux/skbuff.h (skb_put, skb_push): Fix errors |
| 22565 |
for deprecated use of labels at end of compound statements. |
| 22566 |
* i386/i386/fpe_linkage.c (enable_fpe): Declare prototype. |
| 22567 |
|
| 22568 |
2005-01-22 Guillem Jover <[email protected]> |
| 22569 |
|
| 22570 |
* linux/src/drivers/scsi/qlogicisp_asm.c: Remove file with binary |
| 22571 |
only firmware. |
| 22572 |
* linux/src/drivers/scsi/qlogicisp.c: Do not include "qlogicisp_asm.c". |
| 22573 |
(RELOAD_FIRMWARE): Set to 0. |
| 22574 |
(risc_code_addr01): New variable from qlogicisp_asm.c. |
| 22575 |
* linux/Files: Remove linux/src/drivers/scsi/qlogicisp_asm.c. |
| 22576 |
|
| 22577 |
2004-09-08 Neal H. Walfield <[email protected]> |
| 22578 |
|
| 22579 |
* linux/dev/kernel/printk.c: Include <kern/assert.h>. |
| 22580 |
(printk): Use vsnprintf, not linux_vsprintf to avoid buffer |
| 22581 |
overruns. |
| 22582 |
|
| 22583 |
* kern/printf.c (struct vsnprintf_cookie): New structure. |
| 22584 |
(snputc): New function. |
| 22585 |
(vsnprintf): Likewise. |
| 22586 |
|
| 22587 |
2004-11-22 Guillem Jover <[email protected]> |
| 22588 |
|
| 22589 |
* bogus/mach_assert.h: Change #ifdef DEBUG to #ifndef NDEBUG |
| 22590 |
for assert et al. |
| 22591 |
* kern/assert.h: Likewise. |
| 22592 |
* kern/debug.h: Likewise. |
| 22593 |
* util/debug.h: Likewise. |
| 22594 |
|
| 22595 |
* i386/i386/debug.h: Move dump_ss definition out of [DEBUG]. |
| 22596 |
* linux/dev/glue/block.c (rdwr_full): Remove invalid assert. |
| 22597 |
|
| 22598 |
2004-09-07 Neal H. Walfield <[email protected]> |
| 22599 |
|
| 22600 |
* linux/dev/glue/block.c (__brelse): Unconditionally kfree BH. |
| 22601 |
(getblk): Unconditionally kalloc BH. |
| 22602 |
|
| 22603 |
* kern/kalloc.c [!NDEBUG] (kalloc_init_called): New static |
| 22604 |
variable. |
| 22605 |
(kalloc_init): Assert that kalloc_init_called is zero. |
| 22606 |
[! NDEBUG] Set kalloc_init_called to 1 on success. |
| 22607 |
(kalloc): Assert that kalloc_init_called is non-zero. |
| 22608 |
(kget): Likewise. |
| 22609 |
(kfree): Likewise. |
| 22610 |
|
| 22611 |
2004-11-22 Guillem Jover <[email protected]> |
| 22612 |
|
| 22613 |
* i386/i386/locore.S (discover_x86_cpu_type): Enable function. |
| 22614 |
Enable ID flag for Cyrix CPU. Use %ebp to save the stack pointer. |
| 22615 |
Restore EFLAGS just after its last usage. |
| 22616 |
* i386/i386at/model_dep.c (c_boot_entry): Enable use of |
| 22617 |
discover_x86_cpu_type. Remove hardcoded cpu_type assignment. |
| 22618 |
* i386/include/mach/i386/eflags.h |
| 22619 |
(EFL_VI, EFL_VIP): New bits. |
| 22620 |
(EFL_AC, EFL_ID): Bits finally added. |
| 22621 |
|
| 22622 |
2004-10-26 Guillem Jover <[email protected]> |
| 22623 |
|
| 22624 |
* i386/i386/fpe.b: Remove binary without source. |
| 22625 |
* i386/i386/fpe.b_elf: Likewise. |
| 22626 |
* i386/i386/fpe_linkage.c: Disable the code if [! FPE]. |
| 22627 |
* i386/bogus/fpe.h: Add comment about not having an fpe implementation. |
| 22628 |
* i386/Makefrag (objfiles): Do not add fpe.o. |
| 22629 |
Remove targets to generate fpe.o. |
| 22630 |
|
| 22631 |
2004-02-29 Marcus Brinkmann <[email protected]> |
| 22632 |
|
| 22633 |
* NEWS: Add things that changed so far since 1.3. |
| 22634 |
|
| 22635 |
2004-02-02 Marco Gerards <[email protected]> |
| 22636 |
|
| 22637 |
* i386/i386at/kd.c (kdinit): Initialize the input buffer. |
| 22638 |
|
| 22639 |
* i386/i386at/kd.h (KDSETLEDS): New macro. |
| 22640 |
* i386/i386at/kd_event.c (kbdsetstat): Handle KDSETLEDS here to |
| 22641 |
set the keyboard LEDs state. |
| 22642 |
|
| 22643 |
2004-01-19 Marco Gerards <[email protected]> |
| 22644 |
|
| 22645 |
* linux/dev/glue/block.c (init_partition): Don't check for BSD |
| 22646 |
partitions if the DOS partition is too small. |
| 22647 |
|
| 22648 |
2004-01-16 Marco Gerards <[email protected]> |
| 22649 |
|
| 22650 |
* linux/dev/glue/block.c (device_get_status): Correctly calculate |
| 22651 |
the number of blocks. |
| 22652 |
|
| 22653 |
2004-01-15 Alfred M. Szmidt <[email protected]> |
| 22654 |
|
| 22655 |
* linux/dev/include/asm-i386/string.h (memscan): Don't use |
| 22656 |
multi-line string literals for asm(). |
| 22657 |
* linux/dev/include/asm-i386/segment.h (__generic_memcpy_tofs) |
| 22658 |
(__generic_memcpy_fromfs): Likewise. |
| 22659 |
* linux/src/include/asm-i386/floppy.h (floppy_hardint): Likewise. |
| 22660 |
* i386/i386/proc_reg.h (flush_instr_queue): Likewise. |
| 22661 |
* i386/i386/gdt.c (gdt_init): Likewise. |
| 22662 |
|
| 22663 |
* linux/src/drivers/scsi/aic7xxx.c: Updated from Linux 2.0.39 |
| 22664 |
* linux/src/drivers/scsi/aic7xxx.h: Likewise. |
| 22665 |
* linux/src/drivers/scsi/aic7xxx_proc.c: Likewise. |
| 22666 |
* linux/src/drivers/scsi/scsicam.c: Likewise. |
| 22667 |
* linux/src/include/linux/pci.h: Likewise. |
| 22668 |
|
| 22669 |
* linux/src/drivers/scsi/53c7,8xx.h (patch_dsa_32): Don't use |
| 22670 |
token paste operator (##). |
| 22671 |
|
| 22672 |
* Makefile.in (kernel-undef): Match new output format from |
| 22673 |
nm (binutils) 2.14.x. |
| 22674 |
|
| 22675 |
2002-05-27 Roland McGrath <[email protected]> |
| 22676 |
|
| 22677 |
* Version 1.3 released. |
| 22678 |
|
| 22679 |
2002-05-23 Marcus Brinkmann <[email protected]> |
| 22680 |
|
| 22681 |
* i386/i386at/model_dep.c: Include <kern/cpu_number.h> and |
| 22682 |
<kern/assert.h>. |
| 22683 |
(machine_idle): New function. |
| 22684 |
* bogus/power_save.h (POWER_SAVE): Define to 1. |
| 22685 |
|
| 22686 |
2002-05-22 Roland McGrath <[email protected]> |
| 22687 |
|
| 22688 |
* configure.in (VERSION): New substituted variable: set to 1.3 now. |
| 22689 |
(version.c): Add it to AC_OUTPUT. |
| 22690 |
* configure: Regenerated. |
| 22691 |
* Makefile.in (version): New variable, set from that. |
| 22692 |
Remove vpath directive for version.c, not found in build dir. |
| 22693 |
(topfiles): version.c -> version.c.in |
| 22694 |
* doc/Makefile.in (mach-version): Substituted instead of constant. |
| 22695 |
* version.c: File removed, replaced with ... |
| 22696 |
* version.c.in: ... this new file. |
| 22697 |
(version): Make it const. Use @VERSION@ for the number. |
| 22698 |
|
| 22699 |
* Makefile.in (debian-files): Add postinst and prerm. |
| 22700 |
(dist): Use gzip -9 instead of tar z. |
| 22701 |
|
| 22702 |
* linux/Files: Add missing files to the list: |
| 22703 |
linux/dev/drivers/net/eepro100.c |
| 22704 |
linux/src/include/asm-i386/hardirq.h |
| 22705 |
linux/src/include/asm-i386/spinlock.h |
| 22706 |
linux/src/include/linux/compatmac.h |
| 22707 |
linux/src/include/linux/spinlock.h |
| 22708 |
|
| 22709 |
* linux/src/drivers/net/eth16i.c (eth16i_check_signature): Fix syntax: |
| 22710 |
#ifdef 0 -> #if 0 |
| 22711 |
|
| 22712 |
* Makefile.in (%.migs_d, %.migu_d): Fix sed substitution to match |
| 22713 |
whatever target file name gcc comes up with. |
| 22714 |
(%.migs_d, %.migu_d, %.symc.o, %_user.c, %_server.c): |
| 22715 |
Depend on $(before-compile). |
| 22716 |
|
| 22717 |
2002-04-24 Marcus Brinkmann <[email protected]> |
| 22718 |
|
| 22719 |
* debian/rules (DOCDIR): Move to |
| 22720 |
$(PREFIX)/share/doc/$(package-dev). |
| 22721 |
|
| 22722 |
2002-04-23 Roland McGrath <[email protected]> |
| 22723 |
|
| 22724 |
* i386/i386/ldt.c (ldt_init): Fix fencepost error in segment limits. |
| 22725 |
|
| 22726 |
2002-04-19 Roland McGrath <[email protected]> |
| 22727 |
|
| 22728 |
* gensym.awk: Emit \n\ at the end of lines inside strings. |
| 22729 |
* Makefile.in (%.symc: %.sym): Depend on gensym.awk. |
| 22730 |
|
| 22731 |
2002-03-29 Marcus Brinkmann <[email protected]> |
| 22732 |
|
| 22733 |
* doc/mach.texi: End index entry with full stop. |
| 22734 |
|
| 22735 |
2002-03-05 Roland McGrath <[email protected]> |
| 22736 |
|
| 22737 |
* kern/bootstrap.c: Include <alloca.h>. |
| 22738 |
|
| 22739 |
2002-03-04 Roland McGrath <[email protected]> |
| 22740 |
|
| 22741 |
* Makefile.in (%_interface.h %_server.c: %.srv): Pass -sheader switch |
| 22742 |
to mig, not -header. |
| 22743 |
|
| 22744 |
2001-11-23 Roland McGrath <[email protected]> |
| 22745 |
|
| 22746 |
* i386/i386at/i386at_ds_routines.c (device_deallocate): Do nothing if |
| 22747 |
argument is DEVICE_NULL. |
| 22748 |
|
| 22749 |
2001-10-21 Marcus Brinkmann <[email protected]> |
| 22750 |
|
| 22751 |
* linux/src/arch/i386/lib/delay.c: Convert HTML entities. |
| 22752 |
Reported by John Tobey <[email protected]>. |
| 22753 |
|
| 22754 |
2001-10-13 Marcus Brinkmann <[email protected]> |
| 22755 |
|
| 22756 |
* debian/changelog: Update for next release. |
| 22757 |
|
| 22758 |
2001-10-07 Roland McGrath <[email protected]> |
| 22759 |
|
| 22760 |
* ddb/db_access.c: Fix obsolescent #else/#endif syntax. |
| 22761 |
* device/dev_name.c: Likewise. |
| 22762 |
* device/dev_pager.c: Likewise. |
| 22763 |
* device/ds_routines.c: Likewise. |
| 22764 |
* i386/i386/i386asm.sym: Likewise. |
| 22765 |
* include/device/device_reply.defs: Likewise. |
| 22766 |
* include/mach/memory_object.defs: Likewise. |
| 22767 |
* include/mach/memory_object_default.defs: Likewise. |
| 22768 |
|
| 22769 |
* i386/i386/locore.S: Fix sloppy asm syntax to avoid warnings from |
| 22770 |
newer assembler (%ecx -> %cl in byte insns). |
| 22771 |
|
| 22772 |
* kern/bootstrap.c (bootstrap_create): Fix inverted test logic for |
| 22773 |
compatibility case. Ignore trailing newlines after space for |
| 22774 |
compatibility detection. |
| 22775 |
Reported by Neal H Walfield <[email protected]>. |
| 22776 |
|
| 22777 |
2001-10-06 Marcus Brinkmann <[email protected]> |
| 22778 |
|
| 22779 |
* README: Replace `GNU mach' by `GNU Mach', and remove |
| 22780 |
obsolete paragraph about kmsg device. |
| 22781 |
|
| 22782 |
2001-10-06 Marcus Brinkmann <[email protected]> |
| 22783 |
|
| 22784 |
* doc/mach.texi: Fix direntry. |
| 22785 |
|
| 22786 |
2001-10-05 Marcus Brinkmann <[email protected]> |
| 22787 |
|
| 22788 |
* doc/mach.texi: Replace `path name' by `file name' in one place. |
| 22789 |
Replace `illegal' by `invalid' and `to to' by `to' everwhere. |
| 22790 |
|
| 22791 |
* debian/changelog: Prepare for next release. |
| 22792 |
|
| 22793 |
2001-10-04 Marcus Brinkmann <[email protected]> |
| 22794 |
|
| 22795 |
* doc: New directory. |
| 22796 |
* doc/Makefile.in: New file. |
| 22797 |
* doc/gpl.texi: Likewise. |
| 22798 |
* doc/fdl.texi: Likewise. |
| 22799 |
* doc/mach.texi: Likewise. |
| 22800 |
* configure.in: Add doc/Makefile to AC_OUTPUT call. |
| 22801 |
* configure: Regenerated. |
| 22802 |
|
| 22803 |
* Makefile.in (dist): Create directories doc and debian. |
| 22804 |
(doc-files): New variable with documentation files. |
| 22805 |
(debian-files): New variable with Debian packaging files. |
| 22806 |
|
| 22807 |
* debian/rules (stamp-build): Build documentation. |
| 22808 |
(build-gnumach): Install the documentation into the gnumach |
| 22809 |
package. |
| 22810 |
* debian/postrm: New file to install info document. |
| 22811 |
* debian/prerm: New file to install info document. |
| 22812 |
|
| 22813 |
2001-10-01 Marcus Brinkmann <[email protected]> |
| 22814 |
|
| 22815 |
* i386/i386/locore.S (tenmicrosec): Remove subroutine. |
| 22816 |
* i386/i386/pit.c (delaycount): Remove global variable. |
| 22817 |
(microdata): Likewise. |
| 22818 |
(clkstart): Do not call findspeed() and microfind(). |
| 22819 |
(findspeed): Remove function. |
| 22820 |
(spinwait): Likewise. |
| 22821 |
(microfind): Likewise. This function triggers a division by zero |
| 22822 |
trap on AMD K6 350Mhz+ and Athlon 1.1GHz+ machines (and in general |
| 22823 |
leads to bad results on fast cpus), and nothing uses this code anymore. |
| 22824 |
|
| 22825 |
2001-09-30 Roland McGrath <[email protected]> |
| 22826 |
|
| 22827 |
* kern/bootstrap.c (bootstrap_create): Ignore trailing spaces when |
| 22828 |
checking boot module string for containing none. |
| 22829 |
|
| 22830 |
2001-09-18 Marcus Brinkmann <[email protected]> |
| 22831 |
|
| 22832 |
* linux/dev/glue/misc.c: Do not include <linux/types.h> and |
| 22833 |
<linux/string.h>. |
| 22834 |
Remove global variable ___strtok. |
| 22835 |
Remove implementation of strspn, strpbrk, strtok and strstr. |
| 22836 |
* Makefile.in: Add strpbrk and strtok. |
| 22837 |
|
| 22838 |
2001-08-24 Roland McGrath <[email protected]> |
| 22839 |
|
| 22840 |
* kern/bootstrap.c (bootstrap_create): Make setting of boot-args and |
| 22841 |
root-device no longer conditional on [! OSKIT_MACH]. |
| 22842 |
(bootstrap_create) [! OSKIT_MACH]: Parse FOO=BAR words out of the |
| 22843 |
multiboot command line and turn those into boot script variables. |
| 22844 |
|
| 22845 |
* Makefile.in (clib-routines): Add strsep. |
| 22846 |
* kern/strings.h (strsep, strchr): Declare them. |
| 22847 |
|
| 22848 |
2001-08-23 Roland McGrath <[email protected]> |
| 22849 |
|
| 22850 |
* kern/bootstrap.c (bootstrap_create, user_bootstrap, |
| 22851 |
boot_script_exec_cmd, boot_script_task_resume): Add printfs at |
| 22852 |
various stages of startup. |
| 22853 |
|
| 22854 |
2001-08-21 Roland McGrath <[email protected]> |
| 22855 |
|
| 22856 |
* i386/i386at/model_dep.c (use_all_mem): Turn variable into macro. |
| 22857 |
(init_alloc_aligned): Make this function static. |
| 22858 |
Initially skip memory < 16MB and then wrap around to get it last. |
| 22859 |
|
| 22860 |
2001-08-20 Roland McGrath <[email protected]> |
| 22861 |
|
| 22862 |
Support "boot script" functionality in multiboot module strings. |
| 22863 |
* kern/bootstrap.c: Rewrite merged from oskit-branch. |
| 22864 |
* kern/boot_script.c, kern/boot_script.h: New files, |
| 22865 |
copied from boot/ directory in Hurd sources. |
| 22866 |
* Makefile.in (kern-cfiles): Add boot_script.c here. |
| 22867 |
(kern-files): Add boot_script.h here. |
| 22868 |
* NEWS: Mention the new feature. |
| 22869 |
|
| 22870 |
2001-08-18 Roland McGrath <[email protected]> |
| 22871 |
|
| 22872 |
* i386/i386at/model_dep.c (boot_info): Define a struct, not a pointer. |
| 22873 |
(c_boot_entry): Copy the contents into it rather than setting the ptr. |
| 22874 |
(c_boot_entry, init_alloc_aligned, pmap_valid_page, mem_size_init): |
| 22875 |
Update uses. |
| 22876 |
(init_alloc_aligned): Don't need to skip the boot_info memory. |
| 22877 |
* kern/bootstrap.c (boot_info): Update decl. |
| 22878 |
(bootstrap_create): Update uses. |
| 22879 |
|
| 22880 |
2001-08-18 Marcus Brinkmann <[email protected]> |
| 22881 |
|
| 22882 |
* linux/src/drivers/net/eepro100.c: File updated to version in |
| 22883 |
Linux 2.2.19. This time for real. |
| 22884 |
|
| 22885 |
2001-08-18 Marcus Brinkmann <[email protected]> |
| 22886 |
|
| 22887 |
* debian/changelog: Update for next package upload. |
| 22888 |
* debian/control: Add gnumach-dbg package. |
| 22889 |
* debian/rules: New targets to build gnumach-dbg package. |
| 22890 |
Fix various bugs. |
| 22891 |
|
| 22892 |
2001-08-18 Marcus Brinkmann <[email protected]> |
| 22893 |
|
| 22894 |
* i386/i386at/kd.c (kdintr): In event mode, make it so that |
| 22895 |
0xE0 scancodes are received. |
| 22896 |
From Kalle Olavi Niemitalo <[email protected]>. |
| 22897 |
|
| 22898 |
* i386/i386at/kd.h: New constants KAX_REVERSE, KAX_UNDERLINE, |
| 22899 |
KAX_BLINK, KAX_BOLD, KAX_DIM, KAX_INVISIBLE, KAX_COL_UNDERLINE, |
| 22900 |
KAX_COL_DIM. |
| 22901 |
* i386/i386at/kd.c: Increase K_MAXESC to 32. |
| 22902 |
New global variable color_table to map color values. |
| 22903 |
New globals kd_color and kd_attrflags. |
| 22904 |
(kdinit): Initialize these variables. |
| 22905 |
(kd_update_kd_attr): New function. |
| 22906 |
(kd_parserest): Redone to support more terminal attributes, |
| 22907 |
including colors. |
| 22908 |
|
| 22909 |
2001-08-18 Marcus Brinkmann <[email protected]> |
| 22910 |
|
| 22911 |
* linux/src/drivers/net/eepro100.c: File updated to version in |
| 22912 |
Linux 2.2.19. |
| 22913 |
* linux/src/include/asm-i386/spinlock.h: New file from Linux 2.2.19. |
| 22914 |
* linux/src/include/asm-i386/hardirq.h: Likewise. |
| 22915 |
* linux/src/include/linux/spinlock.h: Likewise. |
| 22916 |
* linux/src/include/linux/compatmac.h: Likewise. |
| 22917 |
* linux/dev/drivers/net/eepro100.c: New file, modified version from |
| 22918 |
the above to glue it in gnumach. |
| 22919 |
Submitted by Kapil H. Paranjape <[email protected]>. |
| 22920 |
|
| 22921 |
2001-08-17 Roland McGrath <[email protected]> |
| 22922 |
|
| 22923 |
* Makefile.in (clib-routines): Add strchr. |
| 22924 |
(kernel-undef-bad): Depend on Makefile. |
| 22925 |
|
| 22926 |
* Makefile.in ($(srcdir)/configure, $(srcdir)/config.h.in): |
| 22927 |
Use $(srcdir) in deps. |
| 22928 |
(Makefile, config.h, config.status): Likewise. |
| 22929 |
|
| 22930 |
2001-07-29 Marcus Brinkmann <[email protected]> |
| 22931 |
|
| 22932 |
* NEWS: Add items for this and other changes. |
| 22933 |
* configure.in: Define MACH_KMSG by default and document this in |
| 22934 |
the help output. |
| 22935 |
* configure: Regenerated. |
| 22936 |
* debian/rules: Do not enable kmsg explicitely. |
| 22937 |
|
| 22938 |
2001-07-18 Marcus Brinkmann <[email protected]> |
| 22939 |
|
| 22940 |
* debian/rules: Add -isp to dpkg-gencontrol invocation. |
| 22941 |
Move documentation to /share/doc. |
| 22942 |
* debian/changelog: Update. |
| 22943 |
|
| 22944 |
2001-06-28 Marcus Brinkmann <[email protected]> |
| 22945 |
|
| 22946 |
* linux/dev/drivers/block/ide.c (lba_capacity_is_ok): Do not |
| 22947 |
attempt to correct id->cyls, it is a short and for large disks the |
| 22948 |
number of cylinders necessary would not fit. Subsequent checks |
| 22949 |
for lba support would fail. |
| 22950 |
(current_capacity): Likewise for drive->cyl. |
| 22951 |
(do_identify): Store value returned by current_capacity in |
| 22952 |
CAPACITY. The check which corrects the number of bios cylinders |
| 22953 |
is not aggressive enough. Update it with the check in linux |
| 22954 |
kernel-2.2.19. |
| 22955 |
|
| 22956 |
2001-06-25 Marcus Brinkmann <[email protected]> |
| 22957 |
|
| 22958 |
* i386/bogus/fpe.h (FPE): Define FPE to 0, as the floating point |
| 22959 |
emulation is broken anyway and blows up plex86. |
| 22960 |
|
| 22961 |
2001-06-17 Marcus Brinkmann <[email protected]> |
| 22962 |
|
| 22963 |
* debian/rules: Update to current version. |
| 22964 |
|
| 22965 |
2001-06-13 Roland McGrath <[email protected]> |
| 22966 |
|
| 22967 |
* linux/dev/glue/block.c (device_get_status: DEV_GET_RECORDS): |
| 22968 |
Always return 512 for DEV_GET_SIZE_RECORD_SIZE as DEV_GET_SIZE does. |
| 22969 |
|
| 22970 |
2001-05-27 Marcus Brinkmann <[email protected]> |
| 22971 |
|
| 22972 |
* debian/rules: Add --enable-ncr53c8xx to configure. |
| 22973 |
|
| 22974 |
1999-10-06 OKUJI Yoshinori <[email protected]> |
| 22975 |
|
| 22976 |
* linux/src/drivers/scsi/tmscsiw.c: Removed. |
| 22977 |
* linux/src/drivers/scsi/tmscsiw.h: Likewise. |
| 22978 |
* linux/src/drivers/scsi/dc390w.h: Likewise. |
| 22979 |
* i386/linux/device-drivers.h.in (CONFIG_SCSI_DC390W): Deleted. |
| 22980 |
* i386/linux/Drivers.in: Remove linux_DRIVER(dc390w, ...). Now |
| 22981 |
dc390w, dc390u, and dc390f are aliases to ncr53c8xx. |
| 22982 |
* i386/linux/configure: Regenerated. |
| 22983 |
* linux/Files: Likewise. |
| 22984 |
* i386/linux/Makefile.in (linux-scsi-files): Delete tmscsiw.c. |
| 22985 |
* linux/dev/drivers/scsi/hosts.c: Do not include dc390w.h. |
| 22986 |
Reported by Andreas Voegele <[email protected]>. |
| 22987 |
|
| 22988 |
2001-05-20 Roland McGrath <[email protected]> |
| 22989 |
|
| 22990 |
* kern/sched_prim.c (state_panic): New function, panic with some |
| 22991 |
info when a thread's state is bogus. |
| 22992 |
(thread_wakeup_prim): Use that instead of uninformative panic. |
| 22993 |
(thread_invoke): Likewise. |
| 22994 |
(thread_dispatch): Likewise. |
| 22995 |
|
| 22996 |
2001-05-12 Marcus Brinkmann <[email protected]> |
| 22997 |
|
| 22998 |
* ipc/ipc_object.c (ipc_object_alloc): Remove initialization of |
| 22999 |
*namep, which was without effect. |
| 23000 |
|
| 23001 |
2001-04-29 Marcus Brinkmann <[email protected]> |
| 23002 |
|
| 23003 |
* debian/changelog: New entries for past Debian uploads. |
| 23004 |
* debian/rules: Disable eatdma driver (breaks AMD K7), do |
| 23005 |
not enable com, lpr (com is redundant, lpr doesn't work), |
| 23006 |
move enabling of kmsg in its own line. |
| 23007 |
* debian/control: Add build dependency on mig and sharutils. |
| 23008 |
|
| 23009 |
2001-04-29 Marcus Brinkmann <[email protected]> |
| 23010 |
|
| 23011 |
* device/chario.c: Set number of elements of tthiwat and ttlowat |
| 23012 |
to NSPEEDS rather than 16. Initialize the two new elements. |
| 23013 |
(chario_init): Initialize pdma_timeouts and pdma_water_mark for |
| 23014 |
B57600 and B115200. |
| 23015 |
|
| 23016 |
2001-04-27 Marcus Brinkmann <[email protected]> |
| 23017 |
|
| 23018 |
* include/device/tty_status.h: New macros B57600 and B115200, |
| 23019 |
increase NSPEED accordingly. |
| 23020 |
* i386/i386at/com.c (divisorreg): New divisor 1. |
| 23021 |
|
| 23022 |
2001-04-04 Roland McGrath <[email protected]> |
| 23023 |
|
| 23024 |
* ddb/db_access.h: Fix obsolescent #else/#endif syntax. |
| 23025 |
* ddb/db_aout.c: Likewise. |
| 23026 |
* ddb/db_break.c: Likewise. |
| 23027 |
* ddb/db_break.h: Likewise. |
| 23028 |
* ddb/db_command.c: Likewise. |
| 23029 |
* ddb/db_command.h: Likewise. |
| 23030 |
* ddb/db_cond.c: Likewise. |
| 23031 |
* ddb/db_examine.c: Likewise. |
| 23032 |
* ddb/db_expr.c: Likewise. |
| 23033 |
* ddb/db_ext_symtab.c: Likewise. |
| 23034 |
* ddb/db_input.c: Likewise. |
| 23035 |
* ddb/db_lex.c: Likewise. |
| 23036 |
* ddb/db_macro.c: Likewise. |
| 23037 |
* ddb/db_mp.c: Likewise. |
| 23038 |
* ddb/db_output.c: Likewise. |
| 23039 |
* ddb/db_print.c: Likewise. |
| 23040 |
* ddb/db_run.c: Likewise. |
| 23041 |
* ddb/db_sym.c: Likewise. |
| 23042 |
* ddb/db_task_thread.c: Likewise. |
| 23043 |
* ddb/db_task_thread.h: Likewise. |
| 23044 |
* ddb/db_trap.c: Likewise. |
| 23045 |
* ddb/db_variables.c: Likewise. |
| 23046 |
* ddb/db_watch.c: Likewise. |
| 23047 |
* ddb/db_watch.h: Likewise. |
| 23048 |
* ddb/db_write_cmd.c: Likewise. |
| 23049 |
* device/dev_pager.c: Likewise. |
| 23050 |
* device/device_port.h: Likewise. |
| 23051 |
* device/device_types_kernel.h: Likewise. |
| 23052 |
* device/ds_routines.h: Likewise. |
| 23053 |
* device/errno.h: Likewise. |
| 23054 |
* device/if_ether.h: Likewise. |
| 23055 |
* device/if_hdr.h: Likewise. |
| 23056 |
* device/io_req.h: Likewise. |
| 23057 |
* device/net_io.c: Likewise. |
| 23058 |
* device/net_io.h: Likewise. |
| 23059 |
* i386/i386/ast_check.c: Likewise. |
| 23060 |
* i386/i386/cswitch.S: Likewise. |
| 23061 |
* i386/i386/db_disasm.c: Likewise. |
| 23062 |
* i386/i386/db_interface.c: Likewise. |
| 23063 |
* i386/i386/db_trace.c: Likewise. |
| 23064 |
* i386/i386/debug.h: Likewise. |
| 23065 |
* i386/i386/debug_i386.c: Likewise. |
| 23066 |
* i386/i386/debug_trace.S: Likewise. |
| 23067 |
* i386/i386/eflags.h: Likewise. |
| 23068 |
* i386/i386/gdt.h: Likewise. |
| 23069 |
* i386/i386/hardclock.c: Likewise. |
| 23070 |
* i386/i386/idt-gen.h: Likewise. |
| 23071 |
* i386/i386/ipl.h: Likewise. |
| 23072 |
* i386/i386/ktss.h: Likewise. |
| 23073 |
* i386/i386/kttd_interface.c: Likewise. |
| 23074 |
* i386/i386/ldt.h: Likewise. |
| 23075 |
* i386/i386/lock.h: Likewise. |
| 23076 |
* i386/i386/locore.S: Likewise. |
| 23077 |
* i386/i386/mp_desc.h: Likewise. |
| 23078 |
* i386/i386/pic.c: Likewise. |
| 23079 |
* i386/i386/pic.h: Likewise. |
| 23080 |
* i386/i386/pio.h: Likewise. |
| 23081 |
* i386/i386/pit.h: Likewise. |
| 23082 |
* i386/i386/seg.h: Likewise. |
| 23083 |
* i386/i386/thread.h: Likewise. |
| 23084 |
* i386/i386/trap.c: Likewise. |
| 23085 |
* i386/i386/trap.h: Likewise. |
| 23086 |
* i386/i386/vm_param.h: Likewise. |
| 23087 |
* i386/i386/vm_tuning.h: Likewise. |
| 23088 |
* i386/i386at/autoconf.c: Likewise. |
| 23089 |
* i386/i386at/blit.c: Likewise. |
| 23090 |
* i386/i386at/conf.c: Likewise. |
| 23091 |
* i386/i386at/fd.c: Likewise. |
| 23092 |
* i386/i386at/idt.h: Likewise. |
| 23093 |
* i386/i386at/immc.c: Likewise. |
| 23094 |
* i386/i386at/kd.c: Likewise. |
| 23095 |
* i386/i386at/kd_event.c: Likewise. |
| 23096 |
* i386/i386at/kd_mouse.c: Likewise. |
| 23097 |
* i386/i386at/model_dep.c: Likewise. |
| 23098 |
* i386/i386at/rtc.c: Likewise. |
| 23099 |
* i386/include/mach/i386/asm.h: Likewise. |
| 23100 |
* i386/include/mach/i386/eflags.h: Likewise. |
| 23101 |
* i386/include/mach/i386/mach_i386.defs: Likewise. |
| 23102 |
* i386/include/mach/i386/multiboot.h: Likewise. |
| 23103 |
* i386/include/mach/i386/trap.h: Likewise. |
| 23104 |
* i386/include/mach/i386/vm_types.h: Likewise. |
| 23105 |
* i386/include/mach/sa/stdarg.h: Likewise. |
| 23106 |
* i386/intel/pmap.c: Likewise. |
| 23107 |
* i386/intel/pmap.h: Likewise. |
| 23108 |
* include/alloca.h: Likewise. |
| 23109 |
* include/device/device_types.defs: Likewise. |
| 23110 |
* include/device/device_types.h: Likewise. |
| 23111 |
* include/device/disk_status.h: Likewise. |
| 23112 |
* include/device/net_status.h: Likewise. |
| 23113 |
* include/mach/mach.defs: Likewise. |
| 23114 |
* include/mach/memory_object.defs: Likewise. |
| 23115 |
* include/mach/std_types.defs: Likewise. |
| 23116 |
* include/mach_debug/hash_info.h: Likewise. |
| 23117 |
* include/mach_debug/ipc_info.h: Likewise. |
| 23118 |
* include/mach_debug/mach_debug.defs: Likewise. |
| 23119 |
* include/mach_debug/mach_debug_types.defs: Likewise. |
| 23120 |
* include/mach_debug/mach_debug_types.h: Likewise. |
| 23121 |
* include/mach_debug/vm_info.h: Likewise. |
| 23122 |
* include/mach_debug/zone_info.h: Likewise. |
| 23123 |
* include/sys/ioctl.h: Likewise. |
| 23124 |
* include/sys/time.h: Likewise. |
| 23125 |
* ipc/ipc_entry.h: Likewise. |
| 23126 |
* ipc/ipc_hash.h: Likewise. |
| 23127 |
* ipc/ipc_init.c: Likewise. |
| 23128 |
* ipc/ipc_kmsg.c: Likewise. |
| 23129 |
* ipc/ipc_kmsg.h: Likewise. |
| 23130 |
* ipc/ipc_marequest.c: Likewise. |
| 23131 |
* ipc/ipc_marequest.h: Likewise. |
| 23132 |
* ipc/ipc_mqueue.c: Likewise. |
| 23133 |
* ipc/ipc_mqueue.h: Likewise. |
| 23134 |
* ipc/ipc_notify.c: Likewise. |
| 23135 |
* ipc/ipc_notify.h: Likewise. |
| 23136 |
* ipc/ipc_object.c: Likewise. |
| 23137 |
* ipc/ipc_object.h: Likewise. |
| 23138 |
* ipc/ipc_port.c: Likewise. |
| 23139 |
* ipc/ipc_port.h: Likewise. |
| 23140 |
* ipc/ipc_pset.c: Likewise. |
| 23141 |
* ipc/ipc_pset.h: Likewise. |
| 23142 |
* ipc/ipc_right.c: Likewise. |
| 23143 |
* ipc/ipc_right.h: Likewise. |
| 23144 |
* ipc/ipc_space.c: Likewise. |
| 23145 |
* ipc/ipc_space.h: Likewise. |
| 23146 |
* ipc/mach_debug.c: Likewise. |
| 23147 |
* ipc/mach_msg.c: Likewise. |
| 23148 |
* ipc/mach_msg.h: Likewise. |
| 23149 |
* ipc/mach_port.c: Likewise. |
| 23150 |
* kern/act.c: Likewise. |
| 23151 |
* kern/assert.h: Likewise. |
| 23152 |
* kern/ast.c: Likewise. |
| 23153 |
* kern/ast.h: Likewise. |
| 23154 |
* kern/bootstrap.c: Likewise. |
| 23155 |
* kern/counters.c: Likewise. |
| 23156 |
* kern/counters.h: Likewise. |
| 23157 |
* kern/debug.h: Likewise. |
| 23158 |
* kern/exception.c: Likewise. |
| 23159 |
* kern/host.h: Likewise. |
| 23160 |
* kern/ipc_host.c: Likewise. |
| 23161 |
* kern/ipc_host.h: Likewise. |
| 23162 |
* kern/ipc_kobject.c: Likewise. |
| 23163 |
* kern/ipc_mig.c: Likewise. |
| 23164 |
* kern/ipc_tt.c: Likewise. |
| 23165 |
* kern/ipc_tt.h: Likewise. |
| 23166 |
* kern/kalloc.h: Likewise. |
| 23167 |
* kern/lock_mon.c: Likewise. |
| 23168 |
* kern/mach_clock.c: Likewise. |
| 23169 |
* kern/mach_factor.c: Likewise. |
| 23170 |
* kern/mach_param.h: Likewise. |
| 23171 |
* kern/machine.c: Likewise. |
| 23172 |
* kern/processor.c: Likewise. |
| 23173 |
* kern/profile.c: Likewise. |
| 23174 |
* kern/queue.h: Likewise. |
| 23175 |
* kern/sched.h: Likewise. |
| 23176 |
* kern/startup.c: Likewise. |
| 23177 |
* kern/syscall_emulation.h: Likewise. |
| 23178 |
* kern/syscall_subr.c: Likewise. |
| 23179 |
* kern/syscall_subr.h: Likewise. |
| 23180 |
* kern/syscall_sw.c: Likewise. |
| 23181 |
* kern/syscall_sw.h: Likewise. |
| 23182 |
* kern/task.h: Likewise. |
| 23183 |
* kern/thread_swap.h: Likewise. |
| 23184 |
* kern/time_out.h: Likewise. |
| 23185 |
* kern/time_stamp.c: Likewise. |
| 23186 |
* kern/time_stamp.h: Likewise. |
| 23187 |
* kern/timer.c: Likewise. |
| 23188 |
* kern/timer.h: Likewise. |
| 23189 |
* kern/xpr.c: Likewise. |
| 23190 |
* kern/xpr.h: Likewise. |
| 23191 |
* kern/zalloc.c: Likewise. |
| 23192 |
* kern/zalloc.h: Likewise. |
| 23193 |
* linux/dev/drivers/block/ide.c: Likewise. |
| 23194 |
* linux/dev/include/linux/blk.h: Likewise. |
| 23195 |
* linux/src/include/linux/cdrom.h: Likewise. |
| 23196 |
* linux/src/include/linux/md.h: Likewise. |
| 23197 |
* util/cpu.h: Likewise. |
| 23198 |
* vm/memory_object.c: Likewise. |
| 23199 |
* vm/memory_object.h: Likewise. |
| 23200 |
* vm/pmap.h: Likewise. |
| 23201 |
* vm/vm_debug.c: Likewise. |
| 23202 |
* vm/vm_external.h: Likewise. |
| 23203 |
* vm/vm_fault.c: Likewise. |
| 23204 |
* vm/vm_fault.h: Likewise. |
| 23205 |
* vm/vm_kern.h: Likewise. |
| 23206 |
* vm/vm_map.c: Likewise. |
| 23207 |
* vm/vm_map.h: Likewise. |
| 23208 |
* vm/vm_object.h: Likewise. |
| 23209 |
* vm/vm_pageout.c: Likewise. |
| 23210 |
* vm/vm_pageout.h: Likewise. |
| 23211 |
* vm/vm_user.h: Likewise. |
| 23212 |
|
| 23213 |
2001-01-28 Roland McGrath <[email protected]> |
| 23214 |
|
| 23215 |
* kern/zalloc.c (zalloc): Change panics for exhausted zone to include |
| 23216 |
the zone name. |
| 23217 |
|
| 23218 |
2001-01-09 Marcus Brinkmann <[email protected]> |
| 23219 |
|
| 23220 |
* include/device/device_types.h: New get_status call |
| 23221 |
DEV_GET_RECORDS to get the number of records of a device (rather |
| 23222 |
than the number of bytes). Accordingly define |
| 23223 |
DEV_GET_RECORDS_DEVICE_RECORDS, DEV_GET_RECORDS_RECORD_SIZE and |
| 23224 |
DEV_GET_RECORDS_COUNT. |
| 23225 |
|
| 23226 |
* linux/dev/glue/block.c (device_get_status): Handle |
| 23227 |
DEV_GET_RECORDS. |
| 23228 |
|
| 23229 |
2000-11-26 David Welch <[email protected]> |
| 23230 |
|
| 23231 |
* i386/Makefrag (i386-installed-headers): Removed dead files |
| 23232 |
from the list of headers to be installed |
| 23233 |
|
| 23234 |
2000-11-26 Marcus Brinkmann <[email protected]> |
| 23235 |
|
| 23236 |
* linux/src/drivers/net/tulip.c: Updated to version |
| 23237 |
from Linux 2.2.17 (I am amazed that 2.2.x drivers work). |
| 23238 |
Suggested by Jason Henry Parker <[email protected]>. |
| 23239 |
|
| 23240 |
2000-10-29 Roland McGrath <[email protected]> |
| 23241 |
|
| 23242 |
Remove numerous dead header files. |
| 23243 |
Suggested by Igor Khavkine <[email protected]>. |
| 23244 |
* i386/include/mach/i386/bios.h: Dead file removed. |
| 23245 |
* i386/include/mach/i386/code16.h: Dead file removed. |
| 23246 |
* i386/include/mach/i386/debug_reg.h: Dead file removed. |
| 23247 |
* i386/include/mach/i386/dpmi.h: Dead file removed. |
| 23248 |
* i386/include/mach/i386/far_ptr.h: Dead file removed. |
| 23249 |
* i386/include/mach/i386/paging.h: Dead file removed. |
| 23250 |
* i386/include/mach/i386/pio.h: Dead file removed. |
| 23251 |
* i386/include/mach/i386/pmode.h: Dead file removed. |
| 23252 |
* i386/include/mach/i386/proc_reg.h: Dead file removed. |
| 23253 |
* i386/include/mach/i386/seg.h: Dead file removed. |
| 23254 |
* i386/include/mach/i386/time_stamp.h: Dead file removed. |
| 23255 |
* i386/include/mach/i386/tss.h: Dead file removed. |
| 23256 |
* i386/include/mach/i386/vcpi.h: Dead file removed. |
| 23257 |
* i386/include/mach/proc_ops.h: Dead file removed. |
| 23258 |
* i386/include/mach/sa/sys/varargs.h: Dead file removed. |
| 23259 |
* i386/include/mach/setjmp.h: Dead file removed. |
| 23260 |
* include/mach/proc_ops.h: Dead file removed. |
| 23261 |
* Makefile.in (mach-headers): Remove proc_ops.h. |
| 23262 |
* i386/Makefrag (i386-installed-headers): Likewise. |
| 23263 |
(installed-headers): Don't touch this any more. |
| 23264 |
* i386/Files: Update for removed files. |
| 23265 |
|
| 23266 |
2000-09-29 Marcus Brinkmann <[email protected]> |
| 23267 |
|
| 23268 |
* i386/i386at/conf.c (dev_name_list): Don't use MACH_COM to check |
| 23269 |
if com support is enabled, but NCOM, as it used to be. |
| 23270 |
|
| 23271 |
2000-09-24 OKUJI Yoshinori <[email protected]> |
| 23272 |
|
| 23273 |
* linux/dev/glue/block.c: Reverted the changes at 2000-08-17. |
| 23274 |
Reported by Brent Fulgham <[email protected]>. |
| 23275 |
|
| 23276 |
2000-09-19 Marcus Brinkmann <[email protected]> |
| 23277 |
|
| 23278 |
* linux/dev/glue/block.c (init_partition): Move initialization |
| 23279 |
of MASK until it is asserted that gd is non-NULL. |
| 23280 |
|
| 23281 |
2000-08-17 OKUJI Yoshinori <[email protected]> |
| 23282 |
|
| 23283 |
* linux/dev/glue/block.c (rdwr_partial): Mask the minor device |
| 23284 |
number with MINOR_SHIFT bits, when indexing the array of |
| 23285 |
partitions. Reported by Marius Vollmer <[email protected]>. |
| 23286 |
(init_partition): Likewise. |
| 23287 |
(check_limit): Likewise. |
| 23288 |
(device_get_status): Likewise. |
| 23289 |
|
| 23290 |
2000-07-27 Marcus Brinkmann <[email protected]> |
| 23291 |
|
| 23292 |
* Fix omissions in last change: |
| 23293 |
* linux/src/arch/i386/lib/delay.S: Now really delete the file. |
| 23294 |
* linux/src/arch/i386/lib/delay.c: Now really add the file. |
| 23295 |
|
| 23296 |
2000-07-04 Marcus Brinkmann <[email protected]> |
| 23297 |
|
| 23298 |
* debian/changelog: Add entry for new Debian upload. |
| 23299 |
* linux/dev/drivers/scsi/seagate.c (WRITE_CONTROL, WRITE_DATA): |
| 23300 |
Added from linux 2.2.15. |
| 23301 |
(__asm__ constructs): Replace with equivalent C code from linux 2.2.15 |
| 23302 |
to support gcc-2.95. |
| 23303 |
* linux/src/drivers/scsi/in2000.h: Update asm code to linux 2.2.15. |
| 23304 |
* linux/src/drivers/scsi/ppa.c: Replace asm code with equivalent |
| 23305 |
C code from linux 2.2.15. |
| 23306 |
|
| 23307 |
2000-02-06 Stefan Weil <[email protected]> |
| 23308 |
|
| 23309 |
* device/subrs.c: Fixed compiler warning. |
| 23310 |
* ddb/db_output.c, kern/bootstrap.c, kern/debug.c, kern/printf.c: |
| 23311 |
Replaced varargs.h by stdarg.h. Fixed prototypes (const char *fmt). |
| 23312 |
* ddb/db_output.h: Use prototype for db_printf. |
| 23313 |
* i386/Files: removed varargs.h. |
| 23314 |
* i386/i386/pit.h: Fixed compiler warning. |
| 23315 |
* i386/i386at/model_dep.c: Tried to fix compiler warning. |
| 23316 |
* i386/include/mach/sa/sys/varargs.h: Removed. |
| 23317 |
* i386/linux/Makefile.in: Removed delay.S, added delay.c. |
| 23318 |
* linux/dev/include/asm-i386/segment.h: Support gcc-2.95. |
| 23319 |
* linux/dev/include/asm-i386/string.h, |
| 23320 |
linux/src/include/asm-i386/string.h: Update from linux-2.2.14. |
| 23321 |
* linux/dev/lib/vsprintf.c: Fixed compiler warning. |
| 23322 |
* linux/src/include/asm-i386/delay.h: Update from linux-2.2.14. |
| 23323 |
* linux/src/arch/i386/lib/delay.c: Copy from linux-2.2.14. |
| 23324 |
* linux/src/include/asm-i386/string.h: Update from linux-2.2.14. |
| 23325 |
|
| 23326 |
1999-10-08 Thomas Bushnell, BSG <[email protected]> |
| 23327 |
|
| 23328 |
* linux/src/drivers/net/3c59x.c: Updated to version 0.99L of the |
| 23329 |
driver from ftp://cesdis.gsfc.nasa.gov/linux/drivers/3c59x.c, in |
| 23330 |
order to support the 3c509c card, as requested by Jeff Bailey |
| 23331 |
<[email protected]>. |
| 23332 |
|
| 23333 |
1999-09-17 Thomas Bushnell, BSG <[email protected]> |
| 23334 |
|
| 23335 |
* linux/dev/drivers/block/ide.c (do_request) [MACH]: In "bad |
| 23336 |
access" printf, actually print the number of sectors of the |
| 23337 |
partition. |
| 23338 |
|
| 23339 |
1999-10-05 Roland McGrath <[email protected]> |
| 23340 |
|
| 23341 |
* i386/intel/pmap.c (pmap_bootstrap): Use _start instead of start. |
| 23342 |
* i386/i386/trap.c (kernel_trap): Likewise. |
| 23343 |
|
| 23344 |
1999-10-04 Roland McGrath <[email protected]> |
| 23345 |
|
| 23346 |
* configure.in: Remove AC_CHECK_TOOL(MAKE,...) check. |
| 23347 |
* Makefile.in (MAKE): Variable removed. We require GNU make anyway, |
| 23348 |
and it always sets MAKE. |
| 23349 |
* configure: Regenerated. |
| 23350 |
|
| 23351 |
* Makefile.in (clib-routines.o, check-clib-routines, clib-routines.d): |
| 23352 |
Remove these rules, replace with: |
| 23353 |
(kernel.o): New target, relocatable object linked from kernel objects. |
| 23354 |
(kernel-undef, kernel-undef-bad): New targets, glean undefined symbols |
| 23355 |
from kernel.o. |
| 23356 |
(clib-routines.o): New target, use those to select symbols from libc. |
| 23357 |
(clib-routines): Add some symbols; move defn to kernel linking page. |
| 23358 |
This variable is now a list of symbols allowed to be undefined, |
| 23359 |
rather than a prescriptive list of symbols always grabbed from libc. |
| 23360 |
(kernel): Rewrite this rules to just link kernel.o and clib-routines.o |
| 23361 |
together to make the kernel image. |
| 23362 |
|
| 23363 |
1999-09-15 Mark Kettenis <[email protected]> |
| 23364 |
|
| 23365 |
* i386/i386/user_ldt.c: Fix user LDT management. |
| 23366 |
(i386_set_ldt): Prevent thrashing the LDT for the current thread. |
| 23367 |
Correctly calculate size of new LDT. Set base adress of the LDT |
| 23368 |
descriptor to the linear address of the LDT instead of the kernel |
| 23369 |
virtual address. Copy descriptors from the default LDT if there |
| 23370 |
is no old LDT for the current thread. Call switch_ktss if we are |
| 23371 |
setting a new LDT for the current thread. |
| 23372 |
(i386_get_ldt): Fix bug in copying out the descriptors. |
| 23373 |
|
| 23374 |
1999-09-09 Thomas Bushnell, BSG <[email protected]> |
| 23375 |
|
| 23376 |
* linux/src/drivers/net/rtl8139.c (RX_BUF_LEN_IDX): Reduce from 3 |
| 23377 |
to 2. (64K exceeds the limits in linux/dev/glue/kmem.c:kmalloc.) |
| 23378 |
(rtl8129_open): If we fail to get the memory we need, then free |
| 23379 |
the IRQ before returning. |
| 23380 |
Reported by Daniel Kobras <[email protected]>. |
| 23381 |
|
| 23382 |
1999-09-07 Thomas Bushnell, BSG <[email protected]> |
| 23383 |
|
| 23384 |
* linux/src/drivers/net/yellowfin.c (yellowfin_probe): Return |
| 23385 |
correct value. Reported by Marcus Brinkmann |
| 23386 |
<[email protected]>. |
| 23387 |
|
| 23388 |
* linux/dev/drivers/net/Space.c: Declare tc515_probe. Reported by |
| 23389 |
Marcus Brinkmann <[email protected]>. |
| 23390 |
|
| 23391 |
1999-09-04 Thomas Bushnell, BSG <[email protected]> |
| 23392 |
|
| 23393 |
* vm/vm_resident.c (vm_page_grab): Only block unprivileged |
| 23394 |
allocations over vm_page_external_limit if they are actually |
| 23395 |
external allocations. Reported by Mark Kettenis |
| 23396 |
([email protected]>. |
| 23397 |
|
| 23398 |
1999-08-10 Thomas Bushnell, BSG <[email protected]> |
| 23399 |
|
| 23400 |
* i386/i386at/model_dep.c (init_alloc_aligned): Revert previous |
| 23401 |
change except for the one to AVAIL_NEXT. All the rest of the |
| 23402 |
previous code was correct. Correction from Momchil Velikov |
| 23403 |
([email protected]). |
| 23404 |
|
| 23405 |
1999-07-23 Roland McGrath <[email protected]> |
| 23406 |
|
| 23407 |
* Drivers.macros (AC_DRIVER): Use `test' instead of `[ ... ]'. |
| 23408 |
Reported by "Momchil 'Velco' Velikov" <[email protected]>. |
| 23409 |
|
| 23410 |
1999-07-20 Roland McGrath <[email protected]> |
| 23411 |
|
| 23412 |
* linux/dev/drivers/block/genhd.c (check_partition): Change message |
| 23413 |
to say these are only the DOS partitions. |
| 23414 |
* i386/linux/dev/include/linux/autoconf.h (CONFIG_BSD_DISKLABEL, |
| 23415 |
CONFIG_SMD_DISKLABEL): #undef these. The dev/glue/block.c code |
| 23416 |
deals with BSD disklabels and expects the Linux genhd.c code to |
| 23417 |
handle only the DOS partitions; having genhd.c do BSD disklabels |
| 23418 |
too just confuses things. |
| 23419 |
|
| 23420 |
Force subdirectory targets so they get recompiled properly. |
| 23421 |
* i386/Makefile.in (linux/linux.o): Depend on FORCE instead of linux. |
| 23422 |
(FORCE): New target. |
| 23423 |
* i386/Makefrag (i386/sysdep.o, FORCE): Likewise. |
| 23424 |
|
| 23425 |
1999-07-11 Thomas Bushnell, BSG <[email protected]> |
| 23426 |
|
| 23427 |
* i386/i386at/model_dep.c (init_alloc_aligned): Make the checks |
| 23428 |
correctly for addresses falling into skip regions. Reported by |
| 23429 |
Momchil Velikov ([email protected]). |
| 23430 |
|
| 23431 |
1999-07-01 Thomas Bushnell, BSG <[email protected]> |
| 23432 |
|
| 23433 |
* i386/linux/Makefile.in: For each .o file in $(linux-objs) |
| 23434 |
include a corresponding .d file, unless `no_deps' is `t'. |
| 23435 |
(make-deps): New function. |
| 23436 |
(%.d): New pattern rules for building %.d from %.c and %.S. |
| 23437 |
|
| 23438 |
1999-06-29 Thomas Bushnell, BSG <[email protected]> |
| 23439 |
|
| 23440 |
* vm/vm_resident.c (vm_page_grab): Don't bounce requests when |
| 23441 |
vm_page_external_count == vm_page_external_limit, so that before |
| 23442 |
initialization is complete we can still allocate memory without |
| 23443 |
relying on current_thread. |
| 23444 |
(vm_page_wait): Also block if we are over the external page |
| 23445 |
limit. |
| 23446 |
* vm/vm_pageout.c (vm_pageout_scan): Rewrite the |
| 23447 |
scan-for-pages-to-pageout loop to not crash when we hit the end of |
| 23448 |
the inactive queue; instead jump back to the |
| 23449 |
pause-for-a-little-while code. |
| 23450 |
|
| 23451 |
1999-06-27 Thomas Bushnell, BSG <[email protected]> |
| 23452 |
|
| 23453 |
* vm/vm_resident.c (vm_page_external_count): Define variable. |
| 23454 |
(vm_page_grab): New argument `external'. All callers changed. |
| 23455 |
Keep track of number of externally managed pages. Don't let |
| 23456 |
non-privileged threads exceed the externally-managed page limit. |
| 23457 |
(vm_page_grab_contiguous_pages): New argument `external'. All |
| 23458 |
callers changed. Keep track of number of externally managed |
| 23459 |
pages. Don't let non-privileged threads exceed the |
| 23460 |
externally-managed page limit. |
| 23461 |
(vm_page_convert): New argument `external', handed off to |
| 23462 |
vm_page_grab. All callers changed. |
| 23463 |
(vm_page_release): New argument `external'. All callers |
| 23464 |
changed. Keep track of number of externally managed pages. |
| 23465 |
(vm_page_bootstrap): Initialize M->external. |
| 23466 |
(vm_page_external_limit): Define new variable. |
| 23467 |
(vm_page_grab_phys_addr, vm_page_alloc): Add new arg for |
| 23468 |
vm_page_grab. |
| 23469 |
(vm_page_free): Provide new arg to vm_page_release. |
| 23470 |
* vm/vm_page.h (vm_page_external_limit, vm_page_external_count): |
| 23471 |
New variables. |
| 23472 |
(struct vm_page): New members `external' and `extcounted'. |
| 23473 |
(vm_page_grab, vm_page_release, vm_page_convert): Specify new |
| 23474 |
argument. |
| 23475 |
* vm/vm_pageout.c (vm_pageout): Initialize vm_page_external_limit |
| 23476 |
and vm_page_external_target. |
| 23477 |
(VM_PAGE_EXTERNAL_LIMIT, VM_PAGE_EXTERNAL_TARGET): New macro. |
| 23478 |
(vm_page_external_target): New variable. |
| 23479 |
(vm_pageout_scan): Regard "too many externally managed pages" as a |
| 23480 |
reason to keep doing work, but if that's the only reason we're |
| 23481 |
doing work, then the only thing we do is schedule cleaning of |
| 23482 |
pages. Help keep track of the number of externally managed pages |
| 23483 |
that we care about. |
| 23484 |
* i386/intel/pmap.c (pmap_page_table_page_alloc): Add new arg for |
| 23485 |
vm_page_grab. |
| 23486 |
* linux/dev/glue/block.c (alloc_buffer, device_read): Likewise. |
| 23487 |
* vm/vm_map.c (vm_map_copy_steal_pages): Likewise. |
| 23488 |
* vm/vm_fault.c (vm_fault_page): Add new args for vm_page_grab and |
| 23489 |
vm_page_convert. |
| 23490 |
|
| 23491 |
* vm/vm_pageout.c (VM_PAGEOUT_BURST_WAIT): Reduce to 10ms/page. |
| 23492 |
(VM_PAGEOUT_EMPTY_WAIT): Reduce to 75 ms. |
| 23493 |
(VM_PAGE_FREE_RESERVED): Increase to 50 pages. |
| 23494 |
(VM_PAGEOUT_RESERVED_INTERNAL): Adjust to `(reserve) - 25'. |
| 23495 |
(VM_PAGEOUT_RESERVED_REALLY): Adjust to `(reserve) - 40'. |
| 23496 |
|
| 23497 |
1999-06-21 Thomas Bushnell, BSG <[email protected]> |
| 23498 |
|
| 23499 |
* i386/Files: Don't mention i386/pc/Makerules, |
| 23500 |
i386/include/Makerules, or i386/util/Makerules. |
| 23501 |
|
| 23502 |
* Makefile.in (all-real-archs): Delete variable. |
| 23503 |
(dist): No longer make `machine' symlink. |
| 23504 |
|
| 23505 |
* Makefile.in (dist): Sanify file permissions before building tar |
| 23506 |
file. |
| 23507 |
|
| 23508 |
* i386/Subdirs: Remove i386/i386at/boot. |
| 23509 |
|
| 23510 |
Sun Jun 20 18:33:59 1999 Thomas Bushnell, BSG <[email protected]> |
| 23511 |
|
| 23512 |
* version.c (version): Updated to version 1.2. |
| 23513 |
|
| 23514 |
* i386/Files: Regenerated. |
| 23515 |
* i386/Subdirs: Regenerated. |
| 23516 |
|
| 23517 |
* linux/Files: New file. |
| 23518 |
* linux/Subdirs: New file. |
| 23519 |
* Makefile.in (all-archs): Add `linux'. |
| 23520 |
(all-real-archs): New variable. |
| 23521 |
(dist): Create `machine' symlink only on |
| 23522 |
$(all-real-archs). |
| 23523 |
|
| 23524 |
* Makefile.in (dist): Use `cp' instead of `ln'. |
| 23525 |
|
| 23526 |
* config.guess: Updated from autoconf 2.13. |
| 23527 |
* config.sub: Likewise. |
| 23528 |
|
| 23529 |
1999-06-16 Thomas Bushnell, BSG <[email protected]> |
| 23530 |
|
| 23531 |
* linux/dev/drivers/net/Space.c (ethif_probe): Probe tc59x_probe |
| 23532 |
(CONFIG_VORTEX) after el3_probe (CONFIG_EL3), because the latter |
| 23533 |
card matches the former probe, but the driver doesn't work with |
| 23534 |
it. Reported by Marcus Brinkmann <[email protected]>. |
| 23535 |
|
| 23536 |
* Drivers.macros (AC_DRIVER): Only turn on driver if $enableval is |
| 23537 |
not `no'. Reported by Kalle Olavi Niemitalo <[email protected]>. |
| 23538 |
|
| 23539 |
1999-06-15 Thomas Bushnell, BSG <[email protected]> |
| 23540 |
|
| 23541 |
* ipc/ipc_init.c (ipc_bootstrap): Don't make the IOT_PORT zone |
| 23542 |
exhaustible, because allocation of ports for internal objects |
| 23543 |
panics if zalloc fails. |
| 23544 |
|
| 23545 |
1999-06-07 OKUJI Yoshinori <[email protected]> |
| 23546 |
|
| 23547 |
* linux/dev/drivers/block/genhd.c [MACH] (mach_minor): New variable. |
| 23548 |
(add_bsd_partition): New function. |
| 23549 |
(bsd_disklabel_partition) [MACH]: Call add_bsd_partition. |
| 23550 |
(msdos_partition) [MACH]: Set mach_minor to MINOR before |
| 23551 |
calling bsd_disklabel_partition. |
| 23552 |
* linux/dev/drivers/block/ide.c (do_request) [MACH]: Fix "bad access" |
| 23553 |
message. |
| 23554 |
|
| 23555 |
1999-06-02 Roland McGrath <[email protected]> |
| 23556 |
|
| 23557 |
* kern/bootstrap.c (build_args_and_stack): If kernel_cmdline is |
| 23558 |
nonempty, give the bootstrap task an environment variable of |
| 23559 |
"MULTIBOOT_CMDLINE=kernel command line" on its stack. |
| 23560 |
|
| 23561 |
1999-05-29 Roland McGrath <[email protected]> |
| 23562 |
|
| 23563 |
* kern/startup.c (start_kernel_threads): Call record_time_stamp to |
| 23564 |
reset the kernel task's creation_time field, so it's not zero. |
| 23565 |
|
| 23566 |
1999-05-24 Mark Kettenis <[email protected]> |
| 23567 |
|
| 23568 |
* i386/i386/fpu.c (fp_free): Clear task switch flag before calling |
| 23569 |
fwait. |
| 23570 |
(fpu_get_state): Only save FPU state info if the live FPU state |
| 23571 |
belongs to our target, i.e. if THREAD is the current thread. |
| 23572 |
(fp_load): Print warning if we try to load an invalid FPU state, |
| 23573 |
and reset the FPU to some sane state instead. |
| 23574 |
|
| 23575 |
1999-05-23 Roland McGrath <[email protected]> |
| 23576 |
|
| 23577 |
* kern/task.c (task_info): Allow count for TASK_BASIC_INFO to be less |
| 23578 |
two words, not just one. The new member creation_time is two words. |
| 23579 |
|
| 23580 |
1999-05-22 Roland McGrath <[email protected]> |
| 23581 |
|
| 23582 |
* linux/configure: Regenerated. |
| 23583 |
|
| 23584 |
1999-05-21 Roland McGrath <[email protected]> |
| 23585 |
|
| 23586 |
* linux/configure.in: Fix names dummy -> dummy.in in AC_OUTPUT call. |
| 23587 |
|
| 23588 |
1999-05-14 Roland McGrath <[email protected]> |
| 23589 |
|
| 23590 |
* i386/linux/Drivers.in (linux_DRIVER): New macro, does AC_DRIVER and |
| 23591 |
defines alias for Linux module name. Use that for all single-module |
| 23592 |
Linux drivers, so we don't forget to define any of the aliases for the |
| 23593 |
Linux module names. |
| 23594 |
* i386/linux/configure: Regenerated. |
| 23595 |
|
| 23596 |
1999-04-28 OKUJI Yoshinori <okuji@localhost> |
| 23597 |
|
| 23598 |
* linux/dev/drivers/block/genhd.c (bsd_disklabel_partition) [MACH]: |
| 23599 |
Print BSD slices, using Mach device syntax instead of Linux extented |
| 23600 |
partition syntax. |
| 23601 |
|
| 23602 |
1999-05-01 Mark Kettenis <[email protected]> |
| 23603 |
|
| 23604 |
* linux/dev/glue/block.c (device_get_status): Always set |
| 23605 |
status_count to DEV_GET_STATUS_COUNT if flavor is DEV_GET_SIZE. |
| 23606 |
|
| 23607 |
1999-04-30 Roland McGrath <[email protected]> |
| 23608 |
|
| 23609 |
* i386/linux/Drivers.in: Don't create asm-${systype} symlinks here. |
| 23610 |
* linux/configure.in: New file. Create them here instead. |
| 23611 |
* linux/dummy.in: New file, used by configure. |
| 23612 |
* linux/configure: New file (generated by autoconf). |
| 23613 |
* configure.in: Configure in linux subdir. |
| 23614 |
* configure: Regenerated. |
| 23615 |
|
| 23616 |
* i386/configure.in: Require only autoconf 2.12, not 2.13. |
| 23617 |
* i386/configure: Regenerated. |
| 23618 |
|
| 23619 |
* aclocal.m4 (hurd_SYSTYPE): New macro. |
| 23620 |
* i386/linux/Drivers.in: Use it. |
| 23621 |
* i386/linux/configure: Regenerated. |
| 23622 |
|
| 23623 |
Wed Apr 28 02:17:51 1999 Thomas Bushnell, BSG <[email protected]> |
| 23624 |
|
| 23625 |
* linux/src/drivers/net/3c59x.c: Upgrade to Linux 2.2.1 version. |
| 23626 |
(vortex_start_xmit): Don't frob VP->stat.tx_bytes. |
| 23627 |
(boomerang_start_xmit): Likewise. |
| 23628 |
(vortex_rx): Don't frob VP->stats.rx_bytes. |
| 23629 |
(boomerang_rx): Likewise. |
| 23630 |
Requested by Jeff Bailey ([email protected]). |
| 23631 |
|
| 23632 |
Mon Apr 26 02:13:02 1999 Thomas Bushnell, BSG <[email protected]> |
| 23633 |
|
| 23634 |
* Makefile.in (objfiles): Don't add $(systype)/sysdep.o here. |
| 23635 |
($(systype)/sysdep.o): Delete rule. |
| 23636 |
(clean, distclean, mostlyclean, maintainerclean, install-headers, |
| 23637 |
install-kernel): Don't do recursive make here. |
| 23638 |
* i386/Makefrag (objfiles): Add i386/sysdep.o to the list. |
| 23639 |
(i386/sysdep.o): New rule. |
| 23640 |
(clean): Depend on i386-clean. |
| 23641 |
(distclean): Depend on i386-distclean. |
| 23642 |
(mostlyclean): Depend on i386-mostlyclean. |
| 23643 |
(maintainerclean): Depend on i386-maintainerclean. |
| 23644 |
(install-headers): Depend on i386-install-headers. |
| 23645 |
(install-kernel): Depend on i386-install-kernel. |
| 23646 |
(i386-clean, i386-distclean, i386-mostlyclean, |
| 23647 |
i386-maintainerclean, i386-install-kernel, i386-install-headers): |
| 23648 |
New rules. |
| 23649 |
|
| 23650 |
1999-04-14 OKUJI Yoshinori <[email protected]> |
| 23651 |
|
| 23652 |
* version.c (version): Update to 1.1.92. |
| 23653 |
|
| 23654 |
Sun Mar 14 18:53:01 1999 Thomas Bushnell, BSG <[email protected]> |
| 23655 |
|
| 23656 |
* device/ds_routines.c (ds_read_done): When touching memory to |
| 23657 |
mark it dirty, make sure we say "volatile" so the compiler doesn't |
| 23658 |
optimize it out. |
| 23659 |
|
| 23660 |
1999-04-12 OKUJI Yoshinori <[email protected]> |
| 23661 |
|
| 23662 |
* i386/linux/Drivers.in: Fix the source paths for `asm' symbolic |
| 23663 |
links. Reported by KONISHI Toru <[email protected]>. |
| 23664 |
|
| 23665 |
* linux/dev/drivers/block/ide.c (init_hwif_data) [MACH]: Print Mach |
| 23666 |
device name instead of Linux one. |
| 23667 |
* linux/dev/drivers/block/genhd.c (disk_name): Likewise. |
| 23668 |
* linux/dev/drivers/scsi/sd.c (sd_init_onedisk): Likewise. |
| 23669 |
(sd_detect): Likewise. |
| 23670 |
* linux/dev/drivers/sr.c (sr_detect): Likewise. |
| 23671 |
(get_sectorsize): Likewise. |
| 23672 |
|
| 23673 |
1999-03-01 OKUJI Yoshinori <[email protected]> |
| 23674 |
|
| 23675 |
Version 1.1.91. |
| 23676 |
|
| 23677 |
* version.c (version): Update to 1.1.91. |
| 23678 |
|
| 23679 |
1999-03-01 OKUJI Yoshinori <[email protected]> |
| 23680 |
|
| 23681 |
* i386/linux/Drivers.in: Fix linking paths. |
| 23682 |
* i386/linux/Makefile.in: Corrent include paths and fix |
| 23683 |
Drivers.macros location. |
| 23684 |
|
| 23685 |
1999-02-28 OKUJI Yoshinori <[email protected]> |
| 23686 |
|
| 23687 |
* Makefile.in (clean): Don't move device-drivers.h, because it is |
| 23688 |
not in the top directory any longer. |
| 23689 |
(distclean): Remove config.cache and config.log. |
| 23690 |
* i386/Makefile.in (distclean): Remove config.status, config.log |
| 23691 |
and Makefile. |
| 23692 |
* i386/linux/Makefile.in (distclean): Remove config.status, |
| 23693 |
config.log, Makefile and device-drivers.h. |
| 23694 |
|
| 23695 |
1999-02-27 OKUJI Yoshinori <[email protected]> |
| 23696 |
|
| 23697 |
* i386/linux/Drivers.in: Don't link dev/include/asm-i386 to |
| 23698 |
dev/include/asm. Check if directories already exist before |
| 23699 |
mkdir_p's. Link directories manually, because AC_LINK_FILES |
| 23700 |
is weak in linking files from non-current directories. |
| 23701 |
|
| 23702 |
* i386/i386at/i386at_ds_routines.c: Include |
| 23703 |
<i386/linux/device-drivers.h> instead of <linux/device-drivers.h>. |
| 23704 |
* device/ds_routines.c [LINUX_DEV]: Likewise. |
| 23705 |
* i386/linux/Makefile.in (linux-gen-flags): Fix an extra slash. |
| 23706 |
(distclean): Remove asm links. |
| 23707 |
* linux/src/COPYING: Copied from linux-2.0.36. |
| 23708 |
|
| 23709 |
1999-02-27 OKUJI Yoshinori <[email protected]> |
| 23710 |
|
| 23711 |
* Makefile.in: Omit to detect if com or lpr is used, and don't use |
| 23712 |
linux.o. |
| 23713 |
(objfiles): Add $(systype)/sysdep.o. |
| 23714 |
(clean): Chain the target to $(systype). |
| 23715 |
(distclean): Likewise. |
| 23716 |
(mostlyclean): Likewise. |
| 23717 |
(maintainer-clean): Likewise. |
| 23718 |
(install-headers): Likewise. |
| 23719 |
(install-kernel): Likewise. |
| 23720 |
* configure.in: AC_CONFIG_SUBDIRS ${systype} instead of linux. |
| 23721 |
(--disable-linuxdev): Deleted. |
| 23722 |
(--disable-com): Likewise. |
| 23723 |
(--enable-lpr): Likewise. |
| 23724 |
* i386/Makefile.in: New file. |
| 23725 |
* i386/configure.in: Likewise. |
| 23726 |
* i386/Makefrag (DEFINES): Add -DLINUX_DEV. |
| 23727 |
(objfiles): Always add com.o. If MACH_LPR is defined, then add lpr.o. |
| 23728 |
* linux/Drivers.in: Moved to ... |
| 23729 |
* i386/linux/Drivers.in: ... here. Include ../../aclocal.m4. |
| 23730 |
(mkdir_p): New function to create the linux include dirs. |
| 23731 |
* linux/Makefile.in: Moved to ... |
| 23732 |
* i386/linux/Makefile.in: ... here, and modify so that paths |
| 23733 |
are valid. |
| 23734 |
(clean): New target. |
| 23735 |
(distclean): Likewise. |
| 23736 |
(mostlyclean): Likewise. |
| 23737 |
(maintainer-clean): Likewise. |
| 23738 |
* linux/src/include/linux/autoconf.h: Removed. |
| 23739 |
* linux/dev/include/linux/autoconf.h: Moved to ... |
| 23740 |
* i386/linux/dev/include/linux/autoconf.h: ... here. |
| 23741 |
* linux/dev/arch/i386/linux_emul.h: Moved to ... |
| 23742 |
* i386/linux/dev/include/linux_emul.h: ... here. |
| 23743 |
* linux/device-drivers.h.in: Moved to ... |
| 23744 |
* i386/linux/device-drivers.h.in: ... here. |
| 23745 |
* linux/aclocal.m4: Removed. |
| 23746 |
* linux/configure: Likewise. |
| 23747 |
|
| 23748 |
1999-02-14 Gordon Matzigkeit <[email protected]> |
| 23749 |
|
| 23750 |
* Makefile.in (install-kernel): Be sure that $(bootdir) is |
| 23751 |
created before installing the kernel. |
| 23752 |
|
| 23753 |
1999-02-06 OKUJI Yoshinori <[email protected]> |
| 23754 |
|
| 23755 |
* configure.in: Enable com by default, because current kbd and |
| 23756 |
mouse can't be linked without com. Reported by M. Meiarashi |
| 23757 |
<[email protected]>. |
| 23758 |
|
| 23759 |
1999-02-05 OKUJI Yoshinori <[email protected]> |
| 23760 |
|
| 23761 |
Version 1.1.90. |
| 23762 |
|
| 23763 |
* version.c (version): Update to 1.1.90. |
| 23764 |
|
| 23765 |
1999-02-04 OKUJI Yoshinori <[email protected]> |
| 23766 |
|
| 23767 |
* device/kmsg.c (kmsginit): Add a missing semicolon. |
| 23768 |
(kmsggetstat): Fix typos, |
| 23769 |
DEV_GET_DEVICE_SIZE -> DEV_GET_SIZE_DEVICE_SIZE and |
| 23770 |
DEV_GET_RECORD_SIZE -> DEV_GET_SIZE_RECORD_SIZE. |
| 23771 |
(kmsg_putchar): Fix a typo kmsg_done_init -> kmsg_init_done. |
| 23772 |
* linux/dev/glue/block.c (device_get_status): Allocate a hd_geometry |
| 23773 |
on the stack. |
| 23774 |
* linux/dev/drivers/block/ide.c: New file. |
| 23775 |
* linux/dev/drivers/scsi/sd_ioctl.c: New file. |
| 23776 |
|
| 23777 |
1999-02-02 OKUJI Yoshinori <[email protected]> |
| 23778 |
|
| 23779 |
* i386/i386at/kd_event.c (kbdgetstat): Fix a typo |
| 23780 |
DEV_GET_SIZES -> DEV_GET_SIZE. |
| 23781 |
* i386/i386at/kd_mouse.c (mousegetstat): Likewise. |
| 23782 |
* device/kmsg.c (kmsggetstat): Likewise. |
| 23783 |
|
| 23784 |
1999-02-01 OKUJI Yoshinori <[email protected]> |
| 23785 |
|
| 23786 |
* linux/dev/glue/block.c (dev_getstat): Fix a missing `struct'. |
| 23787 |
* device/cons.c (cninit): Don't call kmsginit. |
| 23788 |
* kmsg.c (kmsg_buffer): Defined as static. |
| 23789 |
(kmsg_write_offset): Likewise. |
| 23790 |
(kmsg_read_offset): Likewise. |
| 23791 |
(kmsg_read_queue): Likewise. |
| 23792 |
(kmsg_in_use): Likewise. |
| 23793 |
(kmsg_lock): Likewise. |
| 23794 |
(kmsginit): Likewise, and call queue_init instead of setting |
| 23795 |
PREV and NEXT manually. |
| 23796 |
(kmsg_done_init): New variable. |
| 23797 |
(kmsg_putchar): Call kmsginit if not initialized yet. |
| 23798 |
(kmsggetstat): New function. |
| 23799 |
* kmsg.h (kmsggetstat): Add the prototype. |
| 23800 |
* i386/i386at/kd_event.c (kbdgetstat): Handle DEV_GET_SIZE. |
| 23801 |
(kbdread): Check if the amount a user specify is a multiple |
| 23802 |
of sizeof(kd_event). |
| 23803 |
* i386/i386at/kd_mouse.c (mousegetstat): New function. |
| 23804 |
(mouseread): Check if the amount a user specify is a multiple |
| 23805 |
of sizeof(kd_event). |
| 23806 |
* i386/i386at/conf.c (dev_name_list): Set the mouse getstat entry |
| 23807 |
to mousegetstat and the kmsg getstat entry to kmsggetstat. |
| 23808 |
Use MACH_COM instead of NCOM to determine if com is used. |
| 23809 |
Use MACH_LPR instead of NLPR to determine if lpr is used. |
| 23810 |
* configure.in (--enable-com): New option. |
| 23811 |
(--enable-lpr): Likewise. |
| 23812 |
* Makefile.in (enable_com): New variable. |
| 23813 |
(enable_lpr): Likewise. |
| 23814 |
* i386/Makefrag (i386at-files): Remove com.c. |
| 23815 |
(objfiles): Add com.o if enable_com is yes, and lpr.o if enable_lpr |
| 23816 |
is yes. |
| 23817 |
|
| 23818 |
Tue Jan 26 21:36:10 1999 Thomas Bushnell, BSG <[email protected]> |
| 23819 |
|
| 23820 |
* kern/exception.c (exception_no_server): Correctly comment out |
| 23821 |
the suspend code. (This should have happened on 17 April 1997, |
| 23822 |
but apparently I did it backwards.) |
| 23823 |
|
| 23824 |
1999-01-26 OKUJI Yoshinori <[email protected]> |
| 23825 |
|
| 23826 |
* device/kmsg.c (kmsgopen): Added simple_lock and simple_unlock. |
| 23827 |
(ksmgclose): Likewise. |
| 23828 |
|
| 23829 |
1999-01-25 OKUJI Yoshinori <[email protected]> |
| 23830 |
|
| 23831 |
* Makefile.in (install-headers): New target for installing only |
| 23832 |
the headers. |
| 23833 |
(install-kernel): New target for installing only the kernel. |
| 23834 |
(mkheaderdirs): New target for making the headers |
| 23835 |
installation directories. |
| 23836 |
(mkkerneldirs): New target for making the kernel |
| 23837 |
installation directory. |
| 23838 |
(install): Do nothing by itself, but depend on install-kernel |
| 23839 |
and install-headers. |
| 23840 |
|
| 23841 |
1999-01-24 OKUJI Yoshinori <[email protected]> |
| 23842 |
|
| 23843 |
* device/kmsg.h (KMSGBUFSIZE): Deleted. |
| 23844 |
* device/kmsg.c: Rewritten completely to provide stream interface. |
| 23845 |
* linux/dev/glue/block.c (device_getstat): Added V_GETPARMS support. |
| 23846 |
* config.guess: New version from automake-1.4. |
| 23847 |
* config.sub: Likewise. |
| 23848 |
* install-sh: Likewise. |
| 23849 |
|
| 23850 |
Some changes were merged from gnumach-m68k by |
| 23851 |
Aymeric Vincent <[email protected]>. |
| 23852 |
|
| 23853 |
* Makefile.in (clean): Don't hang if device-drivers.h doesn't exist. |
| 23854 |
* linux/Makefile.in (CPPFLAGS): Fix a typo. |
| 23855 |
|
| 23856 |
1999-01-16 OKUJI Yoshinori <[email protected]> |
| 23857 |
|
| 23858 |
* device/kmsg.c: Fixed the copyright notice. |
| 23859 |
(MACH_KMSG): Removed. |
| 23860 |
* Makefile.in (enable_kmsg): New variable. |
| 23861 |
(objfiles): Add kmsg.o, if and only if enable_kmsg is yes. |
| 23862 |
|
| 23863 |
1999-01-10 OKUJI Yoshinori <[email protected]> |
| 23864 |
|
| 23865 |
* i386/i386at/kd.c: Applied a keymap patch. Reported by |
| 23866 |
Marcus Brinkmann <[email protected]>. |
| 23867 |
* i386/i386at/kd.h: Likewise. |
| 23868 |
|
| 23869 |
1998-12-30 OKUJI Yoshinori <[email protected]> |
| 23870 |
|
| 23871 |
* linux/dev/glue/net.c (dev_alloc_skb): Change the skb arragement. |
| 23872 |
(dev_kfree_skb): Free only skb. |
| 23873 |
(device_write): Keep skb elements up-to-date. |
| 23874 |
|
| 23875 |
1998-12-18 OKUJI Yoshinori <[email protected]> |
| 23876 |
|
| 23877 |
* Makefile.in (objfiles): Add kmsg.o. |
| 23878 |
* device/cons.c: Include <device/io_req.h>. |
| 23879 |
* device/kmsg.c: Rewritten almost entirely. |
| 23880 |
|
| 23881 |
1998-12-06 OKUJI Yoshinori <[email protected]> |
| 23882 |
|
| 23883 |
Add kmsg device. |
| 23884 |
|
| 23885 |
* Makefile.in (device-files): Add kmsg.c and kmsg.h. |
| 23886 |
* configure.in (--enable-kmsg): New option. |
| 23887 |
* device/cons.c: Include kmsg.h. |
| 23888 |
(cninit): Call kmsginit if MACH_KMSG is defined. |
| 23889 |
(cnputc): Call kmsg_putchar if MACH_KMSG is defined. |
| 23890 |
* device/kmsg.c: New file. |
| 23891 |
* device/kmsg.h: Likewise. |
| 23892 |
* i386/i386at/conf.c (dev_name_list): Add kmsg entry. |
| 23893 |
|
| 23894 |
1998-12-02 OKUJI Yoshinori <[email protected]> |
| 23895 |
|
| 23896 |
* configure.in: Fix linuxdev option handling. |
| 23897 |
* linux/Drivers.in: Remove linuxdev option and fix linking files. |
| 23898 |
* linux/Makefile.in: Replace @DEFS@ with -DLINUX_DEV. |
| 23899 |
* linux/dev/arch/i386/kernel/irq.c: Include missing header files. |
| 23900 |
* linux/dev/arch/i386/kernel/setup.c: Include <device-drivers.h>. |
| 23901 |
* linux/dev/glue/kmem.c: Add printf declaration. |
| 23902 |
* linux/dev/glue/misc.c: Include <linux/types.h>. |
| 23903 |
* linux/dev/init/main.c: Call linux_sched_init instead of sched_init. |
| 23904 |
* linux/dev/kernel/sched.c: Add timer_bh declaration. |
| 23905 |
(tqueue_bh): Fix the argument. |
| 23906 |
(linux_sched_init): Renamed from sched_init. |
| 23907 |
|
| 23908 |
1998-12-01 OKUJI Yoshinori <[email protected]> |
| 23909 |
|
| 23910 |
* i386/i386at/i386at_ds_routines.c: Include <linux/device-drivers.h> |
| 23911 |
only if LINUX_DEV is defined. Reported by UCHIYAMA Yasushi |
| 23912 |
<[email protected]>. |
| 23913 |
* device/ds_routines.c: Likewise. |
| 23914 |
* configure.in: AC_CONFIG_SUBDIRS(linux) instead of linuxdev. |
| 23915 |
(--disable-linuxdev): New option. |
| 23916 |
* linux/Makefile.in (CPPFLAGS): Remove -DLINUX_DEV, and add @DEFS@. |
| 23917 |
(objfiles): Add linux.o only if LINUX_DEV is defined. |
| 23918 |
* linux/Drivers.in (--disable-linuxdev): New option. |
| 23919 |
* i386/Makefrag (DEFINES): Remove -DLINUX_DEV. |
| 23920 |
|
| 23921 |
1998-11-30 OKUJI Yoshinori <[email protected]> |
| 23922 |
|
| 23923 |
Clean up linux emulation code to make it architecture-independent |
| 23924 |
as much as possible. |
| 23925 |
|
| 23926 |
* linux: Renamed from linuxdev. |
| 23927 |
* Makefile.in (objfiles): Add linux.o instead of linuxdev.o. |
| 23928 |
(MAKE): New variable. Used for the linux.o target. |
| 23929 |
* configure.in: Add AC_CHECK_TOOL(MAKE, make). |
| 23930 |
* i386/i386/spl.h: Include <i386/ipl.h>, for compatibility with |
| 23931 |
OSF Mach 3.0. Suggested by Elgin Lee <[email protected]>. |
| 23932 |
* linux/src: Renamed from linux/linux. |
| 23933 |
* linux/dev: Renamed from linux/mach. |
| 23934 |
* linux/Drivers.in (AC_INIT): Use dev/include/linux/autoconf.h, |
| 23935 |
instead of mach/include/linux/autoconf.h. |
| 23936 |
* Makefile.in (all): Target ../linux.o instead of ../linuxdev.o. |
| 23937 |
* linux/dev/drivers/block/genhd.c: Include <machine/spl.h> instead |
| 23938 |
of <i386/ipl.h>. |
| 23939 |
* linux/dev/drivers/net/auto_irq.c: Remove unneeded header files, |
| 23940 |
<i386/ipl.h> and <i386/pic.h>. |
| 23941 |
* linux/dev/init/main.c: Many i386-dependent codes moved to ... |
| 23942 |
* linux/dev/arch/i386/irq.c: ... here. |
| 23943 |
* linux/dev/arch/i386/setup.c: New file. |
| 23944 |
* linux/dev/arch/i386/linux_emul.h: Likewise. |
| 23945 |
* linux/dev/arch/i386/glue/timer.c: Merged into sched.c. |
| 23946 |
* linux/dev/arch/i386/glue/sched.c: Include <machine/spl.h> instead |
| 23947 |
of <i386/ipl.h>, and moved to ... |
| 23948 |
* linux/dev/kernel/sched.c: ... here. |
| 23949 |
* linux/dev/arch/i386/glue/block.c: Include <machine/spl.h> and |
| 23950 |
<linux_emul.h>, instead of i386-dependent header files, and |
| 23951 |
moved to ... |
| 23952 |
* linux/dev/glue/blocl.c: ... here. |
| 23953 |
* linux/dev/arch/i386/glue/net.c: Include <machine/spl.h> and |
| 23954 |
<linux_emul.h>, instead of i386-dependent header files, and |
| 23955 |
moved to ... |
| 23956 |
* linux/dev/glue/net.c: ... here. |
| 23957 |
* linux/dev/arch/i386/glue/misc.c: Remove `x86' and moved to ... |
| 23958 |
* linux/dev/glue/misc.c: ... here. |
| 23959 |
* linux/dev/arch/i386/glue/kmem.c: Moved to ... |
| 23960 |
* linux/dev/glue/kmem.c: ... here. |
| 23961 |
|
| 23962 |
1998-11-25 OKUJI Yoshinori <[email protected]> |
| 23963 |
|
| 23964 |
* linuxdev/mach/init/main.c (linux_init): Call reserve_mach_irqs. |
| 23965 |
* linuxdev/mach/arch/i386/kernel/irq.c (probe_irq_on): Fix ivect |
| 23966 |
mishandling. |
| 23967 |
(probe_irq_off): Disable unnecessary IRQs. Reported by |
| 23968 |
UCHIYAMA Yasushi <[email protected]>. |
| 23969 |
(reserve_mach_irqs): New function. |
| 23970 |
|
| 23971 |
1998-11-24 OKUJI Yoshinori <[email protected]> |
| 23972 |
|
| 23973 |
* linuxdev/arch/i386/linux_init.c (linux_init): Check ivect |
| 23974 |
before set linux_bad_intr. |
| 23975 |
* linuxdev/arch/i386/linux_irq.c (probe_irq_on): Allocate only |
| 23976 |
if ivect is null, and set linux_intr_pri to intpri. |
| 23977 |
|
| 23978 |
* linuxdev: Heavily changed. It becomes more Linux-like file |
| 23979 |
hierarchy as suggested by Roland McGrath <[email protected]>. |
| 23980 |
* linuxdev/linux: Contain original Linux source files. |
| 23981 |
* linuxdev/mach: Contain modified source files for Mach. |
| 23982 |
* linuxdev/mach/arch/i386/glue: XXX Contain files that are |
| 23983 |
not easy to segregate. |
| 23984 |
* Makefile.in: Call `make -C linuxdev all', instead of include |
| 23985 |
linuxdev/Makefrag. |
| 23986 |
|
| 23987 |
1998-11-23 OKUJI Yoshinori <[email protected]> |
| 23988 |
|
| 23989 |
* linuxdev/arch/i386/linux_irq.c (linux_bad_intr): New function. |
| 23990 |
(free_irq): Set linux_bad_intr into ivect[irq]. |
| 23991 |
* linuxdev/arch/i386/linux_init.c (linux_init): |
| 23992 |
Set linux_bad_intr as the default interrupt handler. |
| 23993 |
|
| 23994 |
* linuxdev/include/asm-i386/string.h (strstr): Fix the |
| 23995 |
egcs/gcc 2.8.x bug and a linkage problem. Reported by |
| 23996 |
Roland McGrath <[email protected]>. |
| 23997 |
|
| 23998 |
1998-11-18 OKUJI Yoshinori <[email protected]> |
| 23999 |
|
| 24000 |
* linuxdev/Drivers.in: Fix a typo. |
| 24001 |
* linuxdev/Makefrag: Likewise. |
| 24002 |
* linuxdev/arch/i386/linux_block.c (set_blocksize): Likewise. |
| 24003 |
|
| 24004 |
* linuxdev/arch/i386/linux_kmem.c (vfree): Cast void * to |
| 24005 |
vm_offset_t. |
| 24006 |
* linuxdev/drivers/net/wavelan.p.h: Include |
| 24007 |
<linuxdev/drivers/net/i82586.h>, instead of <drivers/net/i82586.h>. |
| 24008 |
* linuxdev/drivers/scsi/aha152x.c: Define AUTOCONF. |
| 24009 |
* linuxdev/configure: Regenerate. |
| 24010 |
|
| 24011 |
1998-11-17 OKUJI Yoshinori <[email protected]> |
| 24012 |
|
| 24013 |
* linuxdev/arch/i386/linux_misc.c (strstr): New function. |
| 24014 |
Because inline version strstr is not used when use |
| 24015 |
egcs/gcc 2.8.x. Reported by UCHIYAMA Yasushi <[email protected]>. |
| 24016 |
|
| 24017 |
* linuxdev/arch/i386/linux_irq.c (unmask_irq): Fix a typo. |
| 24018 |
|
| 24019 |
1998-11-17 OKUJI Yoshinori <[email protected]> |
| 24020 |
|
| 24021 |
* i386/README-Drivers: Update to Linux 2.0.36 device drivers. |
| 24022 |
* linuxdev/Drivers.in: Likewise. |
| 24023 |
* linuxdev/Makefrag: Likewise. |
| 24024 |
* linuxdev/arch/i386/linux_lib.S: Likewise. |
| 24025 |
* linuxdev/device-drivers.h.in: Likewise. |
| 24026 |
* linuxdev/drivers/block/floppy.c: Likewise. |
| 24027 |
* linuxdev/drivers/block/ide.c: Likewise. |
| 24028 |
* linuxdev/drivers/block/ide.h: Likewise. |
| 24029 |
* linuxdev/drivers/net/3c505.h: Likewise. |
| 24030 |
* linuxdev/drivers/net/3c509.c: Likewise. |
| 24031 |
* linuxdev/drivers/net/3c515.c: Likewise. |
| 24032 |
* linuxdev/drivers/net/3c59x.c: Likewise. |
| 24033 |
* linuxdev/drivers/net/Space.c: Likewise. |
| 24034 |
* linuxdev/drivers/net/apricot.c: Likewise. |
| 24035 |
* linuxdev/drivers/net/de4x5.c: Likewise. |
| 24036 |
* linuxdev/drivers/net/eepro.c: Likewise. |
| 24037 |
* linuxdev/drivers/net/eepro100.c: Likewise. |
| 24038 |
* linuxdev/drivers/net/eexpress.c: Likewise. |
| 24039 |
* linuxdev/drivers/net/epic100.c: Likewise. |
| 24040 |
* linuxdev/drivers/net/eth16i.c: Likewise. |
| 24041 |
* linuxdev/drivers/net/hp100.c: Likewise. |
| 24042 |
* linuxdev/drivers/net/lance.c: Likewise. |
| 24043 |
* linuxdev/drivers/net/ne2k-pci.c: Likewise. |
| 24044 |
* linuxdev/drivers/net/pcnet32.c: Likewise. |
| 24045 |
* linuxdev/drivers/net/rtl8139.c: Likewise. |
| 24046 |
* linuxdev/drivers/net/tlan.c: Likewise. |
| 24047 |
* linuxdev/drivers/net/tulip.c: Likewise. |
| 24048 |
* linuxdev/drivers/net/wavelan.c: Likewise. |
| 24049 |
* linuxdev/drivers/pci/pci.c: Likewise. |
| 24050 |
* linuxdev/drivers/scsi/BusLogic.c: Likewise. |
| 24051 |
* linuxdev/drivers/scsi/FlashPoint.c: Likewise. |
| 24052 |
* linuxdev/drivers/scsi/aha152x.c: Likewise. |
| 24053 |
* linuxdev/drivers/scsi/aha1542.c: Likewise. |
| 24054 |
* linuxdev/drivers/scsi/aic7xxx/sequencer.h: Likewise. |
| 24055 |
* linuxdev/drivers/scsi/aic7xxx.c: Likewise. |
| 24056 |
* linuxdev/drivers/scsi/aic7xxx_proc.c: Likewise. |
| 24057 |
* linuxdev/drivers/scsi/aic7xxx_reg.h: Likewise. |
| 24058 |
* linuxdev/drivers/scsi/dtc.c: Likewise. |
| 24059 |
* linuxdev/drivers/scsi/eata.c: Likewise. |
| 24060 |
* linuxdev/drivers/scsi/eata.h: Likewise. |
| 24061 |
* linuxdev/drivers/scsi/eata_dma.c: Likewise. |
| 24062 |
* linuxdev/drivers/scsi/gdth.c: Likewise. |
| 24063 |
* linuxdev/drivers/scsi/gdth.h: Likewise. |
| 24064 |
* linuxdev/drivers/scsi/gdth_proc.c: Likewise. |
| 24065 |
* linuxdev/drivers/scsi/gdth_proc.h: Likewise. |
| 24066 |
* linuxdev/drivers/scsi/hosts.c: Likewise. |
| 24067 |
* linuxdev/drivers/scsi/in2000.c: Likewise. |
| 24068 |
* linuxdev/drivers/scsi/in2000.h: Likewise. |
| 24069 |
* linuxdev/drivers/scsi/ncr53c8xx.c: Likewise. |
| 24070 |
* linuxdev/drivers/scsi/ppa.h: Likewise. |
| 24071 |
* linuxdev/drivers/scsi/scsi.c: Likewise. |
| 24072 |
* linuxdev/drivers/scsi/scsicam.c: Likewise. |
| 24073 |
* linuxdev/drivers/scsi/sd.c: Likewise. |
| 24074 |
* linuxdev/drivers/scsi/seagate.c: Likewise. |
| 24075 |
* linuxdev/drivers/scsi/u14-34f.c: Likewise. |
| 24076 |
* linuxdev/drivers/scsi/u14-34f.h: Likewise. |
| 24077 |
* linuxdev/drivers/scsi/wd7000.c: Likewise. |
| 24078 |
* linuxdev/drivers/scsi/wd7000.h: Likewise. |
| 24079 |
* linuxdev/include/asm-i386/irq.h: Likewise. |
| 24080 |
* linuxdev/include/asm-i386/processor.h: Likewise. |
| 24081 |
* linuxdev/include/asm-i386/ptrace.h: Likewise. |
| 24082 |
* linuxdev/include/asm-i386/system.h: Likewise. |
| 24083 |
* linuxdev/include/asm-i386/unistd.h: Likewise. |
| 24084 |
* linuxdev/include/linux/fs.h: Likewise. |
| 24085 |
* linuxdev/include/linux/genhd.h: Likewise. |
| 24086 |
* linuxdev/include/linux/interrupt.h: Likewise. |
| 24087 |
* linuxdev/include/linux/ip.h: Likewise. |
| 24088 |
* linuxdev/include/linux/pci.h: Likewise. |
| 24089 |
* linuxdev/include/linux/version.h: Likewise. |
| 24090 |
* linuxdev/include/linux/wireless.h: Likewise. |
| 24091 |
|
| 24092 |
* linuxdev/drivers/net/via-rhine.c: New file. |
| 24093 |
* linuxdev/drivers/scsi/aic7xxx_seq.c: Likewise. |
| 24094 |
* linuxdev/include/linux/rose.h: Likewise. |
| 24095 |
|
| 24096 |
* linuxdev/drivers/scsi/aic7xxx_seq.h: Removed. |
| 24097 |
* linuxdev/configure: Regenerate. |
| 24098 |
* linuxdev/include/asm-i386/string.h: Fix the egcs/gcc 2.8.x problem, |
| 24099 |
according to http://www.suse.de/~florian/kernel+egcs.html. |
| 24100 |
|
| 24101 |
1998-11-14 OKUJI Yoshinori <[email protected]> |
| 24102 |
|
| 24103 |
* Makefile.in (clib-routines.o): Add -L option to search libc.a. |
| 24104 |
Reported by TAKEUCHI Yoji <[email protected]>. |
| 24105 |
|
| 24106 |
* linuxdev/drivers/pci/bios32.c: Moved to ... |
| 24107 |
* linuxdev/arch/i386/linux_bios32.c: ... here. Because it is |
| 24108 |
i386-specific code. |
| 24109 |
* linuxdev/include/asm: Moved to ... |
| 24110 |
* linuxdev/include/asm-i386: ... here. |
| 24111 |
|
| 24112 |
* i386/README-Drivers: Update to Linux 2.0.35 device drivers. |
| 24113 |
* linuxdev/Drivers.in: Likewise. |
| 24114 |
* linuxdev/configure: Likewise. |
| 24115 |
* linuxdev/device-drivers.h.in: Likewise. |
| 24116 |
* linuxdev/Makefrag: Likewise. |
| 24117 |
* linuxdev/arch/i386/linux_autoirq.c: Likewise. |
| 24118 |
* linuxdev/arch/i386/linux_block.c: Likewise. |
| 24119 |
* linuxdev/arch/i386/linux_dma.c: Likewise. |
| 24120 |
* linuxdev/arch/i386/linux_init.c: Likewise. |
| 24121 |
* linuxdev/arch/i386/linux_irq.c: Likewise. |
| 24122 |
* linuxdev/arch/i386/linux_kmem.c: Likewise. |
| 24123 |
* linuxdev/arch/i386/linux_misc.c: Likewise. |
| 24124 |
* linuxdev/arch/i386/linux_net.c: Likewise. |
| 24125 |
* linuxdev/arch/i386/linux_port.c: Likewise. |
| 24126 |
* linuxdev/arch/i386/linux_printk.c: Likewise. |
| 24127 |
* linuxdev/arch/i386/linux_sched.c: Likewise. |
| 24128 |
* linuxdev/arch/i386/linux_timer.c: Likewise. |
| 24129 |
* linuxdev/arch/i386/linux_version.c: Likewise. |
| 24130 |
* linuxdev/arch/i386/linux_vsprintf.c: Likewise. |
| 24131 |
* linuxdev/drivers/block/cmd640.c: Likewise. |
| 24132 |
* linuxdev/drivers/block/floppy.c: Likewise. |
| 24133 |
* linuxdev/drivers/block/genhd.c: Likewise. |
| 24134 |
* linuxdev/drivers/block/ide-cd.c: Likewise. |
| 24135 |
* linuxdev/drivers/block/ide.c: Likewise. |
| 24136 |
* linuxdev/drivers/block/ide.h: Likewise. |
| 24137 |
* linuxdev/drivers/block/ide_modes.h: Likewise. |
| 24138 |
* linuxdev/drivers/block/rz1000.c: Likewise. |
| 24139 |
* linuxdev/drivers/block/triton.c: Likewise. |
| 24140 |
* linuxdev/drivers/net/3c501.c: Likewise. |
| 24141 |
* linuxdev/drivers/net/3c503.c: Likewise. |
| 24142 |
* linuxdev/drivers/net/3c505.c: Likewise. |
| 24143 |
* linuxdev/drivers/net/3c507.c: Likewise. |
| 24144 |
* linuxdev/drivers/net/3c509.c: Likewise. |
| 24145 |
* linuxdev/drivers/net/3c59x.c: Likewise. |
| 24146 |
* linuxdev/drivers/net/8390.c: Likewise. |
| 24147 |
* linuxdev/drivers/net/8390.h: Likewise. |
| 24148 |
* linuxdev/drivers/net/Space.c: Likewise. |
| 24149 |
* linuxdev/drivers/net/ac3200.c: Likewise. |
| 24150 |
* linuxdev/drivers/net/apricot.c: Likewise. |
| 24151 |
* linuxdev/drivers/net/at1700.c: Likewise. |
| 24152 |
* linuxdev/drivers/net/atp.c: Likewise. |
| 24153 |
* linuxdev/drivers/net/atp.h: Likewise. |
| 24154 |
* linuxdev/drivers/net/de4x5.c: Likewise. |
| 24155 |
* linuxdev/drivers/net/de4x5.h: Likewise. |
| 24156 |
* linuxdev/drivers/net/de600.c: Likewise. |
| 24157 |
* linuxdev/drivers/net/de620.c: Likewise. |
| 24158 |
* linuxdev/drivers/net/depca.c: Likewise. |
| 24159 |
* linuxdev/drivers/net/dev.c: Likewise. |
| 24160 |
* linuxdev/drivers/net/e2100.c: Likewise. |
| 24161 |
* linuxdev/drivers/net/eepro.c: Likewise. |
| 24162 |
* linuxdev/drivers/net/eepro100.c: Likewise. |
| 24163 |
* linuxdev/drivers/net/eexpress.c: Likewise. |
| 24164 |
* linuxdev/drivers/net/eth16i.c: Likewise. |
| 24165 |
* linuxdev/drivers/net/ewrk3.c: Likewise. |
| 24166 |
* linuxdev/drivers/net/ewrk3.h: Likewise. |
| 24167 |
* linuxdev/drivers/net/hp-plus.c: Likewise. |
| 24168 |
* linuxdev/drivers/net/hp.c: Likewise. |
| 24169 |
* linuxdev/drivers/net/hp100.c: Likewise. |
| 24170 |
* linuxdev/drivers/net/hp100.h: Likewise. |
| 24171 |
* linuxdev/drivers/net/i82586.h: Likewise. |
| 24172 |
* linuxdev/drivers/net/lance.c: Likewise. |
| 24173 |
* linuxdev/drivers/net/ne.c: Likewise. |
| 24174 |
* linuxdev/drivers/net/net_init.c: Likewise. |
| 24175 |
* linuxdev/drivers/net/ni52.c: Likewise. |
| 24176 |
* linuxdev/drivers/net/ni52.h: Likewise. |
| 24177 |
* linuxdev/drivers/net/ni65.c: Likewise. |
| 24178 |
* linuxdev/drivers/net/ni65.h: Likewise. |
| 24179 |
* linuxdev/drivers/net/seeq8005.c: Likewise. |
| 24180 |
* linuxdev/drivers/net/seeq8005.h: Likewise. |
| 24181 |
* linuxdev/drivers/net/sk_g16.c: Likewise. |
| 24182 |
* linuxdev/drivers/net/sk_g16.h: Likewise. |
| 24183 |
* linuxdev/drivers/net/smc-ultra.c: Likewise. |
| 24184 |
* linuxdev/drivers/net/tulip.c: Likewise. |
| 24185 |
* linuxdev/drivers/net/wavelan.c: Likewise. |
| 24186 |
* linuxdev/drivers/net/wavelan.h: Likewise. |
| 24187 |
* linuxdev/drivers/net/wd.c: Likewise. |
| 24188 |
* linuxdev/drivers/net/znet.c: Likewise. |
| 24189 |
* linuxdev/drivers/pci/pci.c: Likewise. |
| 24190 |
* linuxdev/drivers/scsi/53c7,8xx.h: Likewise. |
| 24191 |
* linuxdev/drivers/scsi/53c78xx.c: Likewise. |
| 24192 |
* linuxdev/drivers/scsi/53c8xx_d.h: Likewise. |
| 24193 |
* linuxdev/drivers/scsi/AM53C974.c: Likewise. |
| 24194 |
* linuxdev/drivers/scsi/AM53C974.h: Likewise. |
| 24195 |
* linuxdev/drivers/scsi/BusLogic.c: Likewise. |
| 24196 |
* linuxdev/drivers/scsi/BusLogic.h: Likewise. |
| 24197 |
* linuxdev/drivers/scsi/NCR53c406a.c: Likewise. |
| 24198 |
* linuxdev/drivers/scsi/NCR53c406a.h: Likewise. |
| 24199 |
* linuxdev/drivers/scsi/advansys.c: Likewise. |
| 24200 |
* linuxdev/drivers/scsi/advansys.h: Likewise. |
| 24201 |
* linuxdev/drivers/scsi/aha152x.c: Likewise. |
| 24202 |
* linuxdev/drivers/scsi/aha152x.h: Likewise. |
| 24203 |
* linuxdev/drivers/scsi/aha1542.c: Likewise. |
| 24204 |
* linuxdev/drivers/scsi/aha1542.h: Likewise. |
| 24205 |
* linuxdev/drivers/scsi/aha1740.c: Likewise. |
| 24206 |
* linuxdev/drivers/scsi/aha1740.h: Likewise. |
| 24207 |
* linuxdev/drivers/scsi/aic7xxx.c: Likewise. |
| 24208 |
* linuxdev/drivers/scsi/aic7xxx.h: Likewise. |
| 24209 |
* linuxdev/drivers/scsi/aic7xxx_seq.h: Likewise. |
| 24210 |
* linuxdev/drivers/scsi/constants.h: Likewise. |
| 24211 |
* linuxdev/drivers/scsi/eata.c: Likewise. |
| 24212 |
* linuxdev/drivers/scsi/eata.h: Likewise. |
| 24213 |
* linuxdev/drivers/scsi/eata_dma.c: Likewise. |
| 24214 |
* linuxdev/drivers/scsi/eata_dma.h: Likewise. |
| 24215 |
* linuxdev/drivers/scsi/eata_generic.h: Likewise. |
| 24216 |
* linuxdev/drivers/scsi/eata_pio.c: Likewise. |
| 24217 |
* linuxdev/drivers/scsi/eata_pio.h: Likewise. |
| 24218 |
* linuxdev/drivers/scsi/fdomain.c: Likewise. |
| 24219 |
* linuxdev/drivers/scsi/fdomain.h: Likewise. |
| 24220 |
* linuxdev/drivers/scsi/g_NCR5380.c: Likewise. |
| 24221 |
* linuxdev/drivers/scsi/g_NCR5380.h: Likewise. |
| 24222 |
* linuxdev/drivers/scsi/hosts.c: Likewise. |
| 24223 |
* linuxdev/drivers/scsi/hosts.h: Likewise. |
| 24224 |
* linuxdev/drivers/scsi/in2000.c: Likewise. |
| 24225 |
* linuxdev/drivers/scsi/in2000.h: Likewise. |
| 24226 |
* linuxdev/drivers/scsi/pas16.c: Likewise. |
| 24227 |
* linuxdev/drivers/scsi/pas16.h: Likewise. |
| 24228 |
* linuxdev/drivers/scsi/scsi.c: Likewise. |
| 24229 |
* linuxdev/drivers/scsi/scsi.h: Likewise. |
| 24230 |
* linuxdev/drivers/scsi/scsi_ioctl.c: Likewise. |
| 24231 |
* linuxdev/drivers/scsi/scsi_proc.c: Likewise. |
| 24232 |
* linuxdev/drivers/scsi/scsicam.c: Likewise. |
| 24233 |
* linuxdev/drivers/scsi/sd.c: Likewise. |
| 24234 |
* linuxdev/drivers/scsi/sd.h: Likewise. |
| 24235 |
* linuxdev/drivers/scsi/sd_ioctl.c: Likewise. |
| 24236 |
* linuxdev/drivers/scsi/seagate.c: Likewise. |
| 24237 |
* linuxdev/drivers/scsi/seagate.h: Likewise. |
| 24238 |
* linuxdev/drivers/scsi/sr.c: Likewise. |
| 24239 |
* linuxdev/drivers/scsi/sr_ioctl.c: Likewise. |
| 24240 |
* linuxdev/drivers/scsi/t128.c: Likewise. |
| 24241 |
* linuxdev/drivers/scsi/t128.h: Likewise. |
| 24242 |
* linuxdev/drivers/scsi/u14-34f.c: Likewise. |
| 24243 |
* linuxdev/drivers/scsi/u14-34f.h: Likewise. |
| 24244 |
* linuxdev/drivers/scsi/ultrastor.c: Likewise. |
| 24245 |
* linuxdev/drivers/scsi/ultrastor.h: Likewise. |
| 24246 |
* linuxdev/drivers/scsi/wd7000.c: Likewise. |
| 24247 |
* linuxdev/drivers/scsi/wd7000.h: Likewise. |
| 24248 |
* linuxdev/include/asm-i386/bitops.h: Likewise. |
| 24249 |
* linuxdev/include/asm-i386/delay.h: Likewise. |
| 24250 |
* linuxdev/include/asm-i386/dma.h: Likewise. |
| 24251 |
* linuxdev/include/asm-i386/errno.h: Likewise. |
| 24252 |
* linuxdev/include/asm-i386/fcntl.h: Likewise. |
| 24253 |
* linuxdev/include/asm-i386/floppy.h: Likewise. |
| 24254 |
* linuxdev/include/asm-i386/ioctl.h: Likewise. |
| 24255 |
* linuxdev/include/asm-i386/floppy.h: Likewise. |
| 24256 |
* linuxdev/include/asm-i386/irq.h: Likewise. |
| 24257 |
* linuxdev/include/asm-i386/processor.h: Likewise. |
| 24258 |
* linuxdev/include/asm-i386/ptrace.h: Likewise. |
| 24259 |
* linuxdev/include/asm-i386/resource.h: Likewise. |
| 24260 |
* linuxdev/include/asm-i386/segment.h: Likewise. |
| 24261 |
* linuxdev/include/asm-i386/sigcontext.h: Likewise. |
| 24262 |
* linuxdev/include/asm-i386/signal.h: Likewise. |
| 24263 |
* linuxdev/include/asm-i386/socket.h: Likewise. |
| 24264 |
* linuxdev/include/asm-i386/statfs.h: Likewise. |
| 24265 |
* linuxdev/include/asm-i386/string.h: Likewise. |
| 24266 |
* linuxdev/include/asm-i386/system.h: Likewise. |
| 24267 |
* linuxdev/include/asm-i386/termios.h: Likewise. |
| 24268 |
* linuxdev/include/asm-i386/types.h: Likewise. |
| 24269 |
* linuxdev/include/asm-i386/unistd.h: Likewise. |
| 24270 |
* linuxdev/include/linux/autoconf.h: Likewise. |
| 24271 |
* linuxdev/include/linux/binfmts.h: Likewise. |
| 24272 |
* linuxdev/include/linux/bios32.h: Likewise. |
| 24273 |
* linuxdev/include/linux/blk.h: Likewise. |
| 24274 |
* linuxdev/include/linux/blkdev.h: Likewise. |
| 24275 |
* linuxdev/include/linux/cdrom.h: Likewise. |
| 24276 |
* linuxdev/include/linux/config.h: Likewise. |
| 24277 |
* linuxdev/include/linux/etherdevice.h: Likewise. |
| 24278 |
* linuxdev/include/linux/fd.h: Likewise. |
| 24279 |
* linuxdev/include/linux/fdreg.h: Likewise. |
| 24280 |
* linuxdev/include/linux/fs.h: Likewise. |
| 24281 |
* linuxdev/include/linux/genhd.h: Likewise. |
| 24282 |
* linuxdev/include/linux/hdreg.h: Likewise. |
| 24283 |
* linuxdev/include/linux/if.h: Likewise. |
| 24284 |
* linuxdev/include/linux/if_arp.h: Likewise. |
| 24285 |
* linuxdev/include/linux/if_ether.h: Likewise. |
| 24286 |
* linuxdev/include/linux/if_tr.h: Likewise. |
| 24287 |
* linuxdev/include/linux/igmp.h: Likewise. |
| 24288 |
* linuxdev/include/linux/in.h: Likewise. |
| 24289 |
* linuxdev/include/linux/inet.h: Likewise. |
| 24290 |
* linuxdev/include/linux/interrupt.h: Likewise. |
| 24291 |
* linuxdev/include/linux/ioport.h: Likewise. |
| 24292 |
* linuxdev/include/linux/ip.h: Likewise. |
| 24293 |
* linuxdev/include/linux/kernel.h: Likewise. |
| 24294 |
* linuxdev/include/linux/locks.h: Likewise. |
| 24295 |
* linuxdev/include/linux/major.h: Likewise. |
| 24296 |
* linuxdev/include/linux/malloc.h: Likewise. |
| 24297 |
* linuxdev/include/linux/mc146818rtc.h: Likewise. |
| 24298 |
* linuxdev/include/linux/mm.h: Likewise. |
| 24299 |
* linuxdev/include/linux/module.h: Likewise. |
| 24300 |
* linuxdev/include/linux/mount.h: Likewise. |
| 24301 |
* linuxdev/include/linux/net.h: Likewise. |
| 24302 |
* linuxdev/include/linux/netdevice.h: Likewise. |
| 24303 |
* linuxdev/include/linux/nfs.h: Likewise. |
| 24304 |
* linuxdev/include/linux/notifier.h: Likewise. |
| 24305 |
* linuxdev/include/linux/pagemap.h: Likewise. |
| 24306 |
* linuxdev/include/linux/pci.h: Likewise. |
| 24307 |
* linuxdev/include/linux/personality.h: Likewise. |
| 24308 |
* linuxdev/include/linux/proc_fs.h: Likewise. |
| 24309 |
* linuxdev/include/linux/quota.h: Likewise. |
| 24310 |
* linuxdev/include/linux/route.h: Likewise. |
| 24311 |
* linuxdev/include/linux/sched.h: Likewise. |
| 24312 |
* linuxdev/include/linux/skbuff.h: Likewise. |
| 24313 |
* linuxdev/include/linux/socket.h: Likewise. |
| 24314 |
* linuxdev/include/linux/sockios.h: Likewise. |
| 24315 |
* linuxdev/include/linux/string.h: Likewise. |
| 24316 |
* linuxdev/include/linux/time.h: Likewise. |
| 24317 |
* linuxdev/include/linux/timer.h: Likewise. |
| 24318 |
* linuxdev/include/linux/tqueue.h: Likewise. |
| 24319 |
* linuxdev/include/linux/tty.h: Likewise. |
| 24320 |
* linuxdev/include/linux/types.h: Likewise. |
| 24321 |
* linuxdev/include/linux/uio.h: Likewise. |
| 24322 |
* linuxdev/include/linux/version.h: Likewise. |
| 24323 |
* linuxdev/include/linux/wait.h: Likewise. |
| 24324 |
* linuxdev/include/net/af_unix.h: Likewise. |
| 24325 |
* linuxdev/include/net/ax25.h: Likewise. |
| 24326 |
* linuxdev/include/net/ax25call.h: Likewise. |
| 24327 |
* linuxdev/include/net/icmp.h: Likewise. |
| 24328 |
* linuxdev/include/net/ip.h: Likewise. |
| 24329 |
* linuxdev/include/net/ip_alias.h: Likewise. |
| 24330 |
* linuxdev/include/net/ip_forward.h: Likewise. |
| 24331 |
* linuxdev/include/net/ipx.h: Likewise. |
| 24332 |
* linuxdev/include/net/netlink.h: Likewise. |
| 24333 |
* linuxdev/include/net/netrom.h: Likewise. |
| 24334 |
* linuxdev/include/net/nrcall.h: Likewise. |
| 24335 |
* linuxdev/include/net/p8022.h: Likewise. |
| 24336 |
* linuxdev/include/net/protocol.h: Likewise. |
| 24337 |
* linuxdev/include/net/psnap.h: Likewise. |
| 24338 |
* linuxdev/include/net/raw.h: Likewise. |
| 24339 |
* linuxdev/include/net/route.h: Likewise. |
| 24340 |
* linuxdev/include/net/sock.h: Likewise. |
| 24341 |
* linuxdev/include/net/tcp.h: Likewise. |
| 24342 |
* linuxdev/include/net/udp.h: Likewise. |
| 24343 |
|
| 24344 |
* linuxdev/arch/i386/linux_soft.c: Removed. |
| 24345 |
* linuxdev/drivers/scsi/NCR5380.src: Likewise. |
| 24346 |
* linuxdev/drivers/scsi/aic7xxx_proc.src: Likewise. |
| 24347 |
* linuxdev/drivers/scsi/aic7xxx_reg.h: Likewise. |
| 24348 |
* linuxdev/drivers/scsi/eata_dma_proc.src: Likewise. |
| 24349 |
* linuxdev/drivers/scsi/eata_pio_proc.src: Likewise. |
| 24350 |
* linuxdev/drivers/scsi/qlogic.c: Likewise. |
| 24351 |
* linuxdev/drivers/scsi/qlogic.h: Likewise. |
| 24352 |
* linuxdev/drivers/scsi/scsi_debug.c: Likewise. |
| 24353 |
* linuxdev/drivers/scsi/scsi_debug.h: Likewise. |
| 24354 |
* linuxdev/drivers/scsi/scsi_ioctl.h: Likewise. |
| 24355 |
* linuxdev/include/linux/math_emu.h: Likewise. |
| 24356 |
* linuxdev/include/linux/minix_fs.h: Likewise. |
| 24357 |
* linuxdev/include/linux/minix_fs_sb.h: Likewise. |
| 24358 |
* linuxdev/include/linux/scsi.h: Likewise. |
| 24359 |
* linuxdev/include/linux/scsicam.h: Likewise. |
| 24360 |
* linuxdev/include/linux/vm86.h: Likewise. |
| 24361 |
|
| 24362 |
* linuxdev/arch/i386/linux_ctype.c: New file. |
| 24363 |
* linuxdev/arch/i386/linux_lib.S: Likewise. |
| 24364 |
* linuxdev/arch/i386/linux_softirq.c: Likewise. |
| 24365 |
* linuxdev/drivers/net/3c515.c: Likewise. |
| 24366 |
* linuxdev/drivers/net/epic100.c: Likewise. |
| 24367 |
* linuxdev/drivers/net/eth82586.h: Likewise. |
| 24368 |
* linuxdev/drivers/net/fmv18x.c: Likewise. |
| 24369 |
* linuxdev/drivers/net/ne2k-pci.c: Likewise. |
| 24370 |
* linuxdev/drivers/net/pcnet32.c: Likewise. |
| 24371 |
* linuxdev/drivers/net/rtl8139.c: Likewise. |
| 24372 |
* linuxdev/drivers/net/smc-ultra32.c: Likewise. |
| 24373 |
* linuxdev/drivers/net/smc9194.c: Likewise. |
| 24374 |
* linuxdev/drivers/net/smc9194.h: Likewise. |
| 24375 |
* linuxdev/drivers/net/tlan.c: Likewise. |
| 24376 |
* linuxdev/drivers/net/tlan.h: Likewise. |
| 24377 |
* linuxdev/drivers/net/wavelan.p.h: Likewise. |
| 24378 |
* linuxdev/drivers/net/yellowfin.c: Likewise. |
| 24379 |
* linuxdev/drivers/scsi/FlashPoint.c: Likewise. |
| 24380 |
* linuxdev/drivers/scsi/NCR5380.c: Likewise. |
| 24381 |
* linuxdev/drivers/scsi/NCR5380.h: Likewise. |
| 24382 |
* linuxdev/drivers/scsi/aic7xxx/scsi_message.h: Likewise. |
| 24383 |
* linuxdev/drivers/scsi/aic7xxx/sequencer.h: Likewise. |
| 24384 |
* linuxdev/drivers/scsi/aic7xxx_proc.c: Likewise. |
| 24385 |
* linuxdev/drivers/scsi/dc390.h: Likewise. |
| 24386 |
* linuxdev/drivers/scsi/dc390w.h: Likewise. |
| 24387 |
* linuxdev/drivers/scsi/dtc.c: Likewise. |
| 24388 |
* linuxdev/drivers/scsi/dtc.h: Likewise. |
| 24389 |
* linuxdev/drivers/scsi/eata_dma_proc.c: Likewise. |
| 24390 |
* linuxdev/drivers/scsi/eata_pio_proc.c: Likewise. |
| 24391 |
* linuxdev/drivers/scsi/gdth.c: Likewise. |
| 24392 |
* linuxdev/drivers/scsi/gdth.h: Likewise. |
| 24393 |
* linuxdev/drivers/scsi/gdth_ioctl.h: Likewise. |
| 24394 |
* linuxdev/drivers/scsi/gdth_proc.c: Likewise. |
| 24395 |
* linuxdev/drivers/scsi/gdth_proc.h: Likewise. |
| 24396 |
* linuxdev/drivers/scsi/ncr53c8xx.c: Likewise. |
| 24397 |
* linuxdev/drivers/scsi/ncr53c8xx.h: Likewise. |
| 24398 |
* linuxdev/drivers/scsi/ppa.c: Likewise. |
| 24399 |
* linuxdev/drivers/scsi/ppa.h: Likewise. |
| 24400 |
* linuxdev/drivers/scsi/qlogicfas.c: Likewise. |
| 24401 |
* linuxdev/drivers/scsi/qlogicfas.h: Likewise. |
| 24402 |
* linuxdev/drivers/scsi/qlogicisp.c: Likewise. |
| 24403 |
* linuxdev/drivers/scsi/qlogicisp.h: Likewise. |
| 24404 |
* linuxdev/drivers/scsi/qlogicisp_asm.c: Likewise. |
| 24405 |
* linuxdev/drivers/scsi/scripts.h: Likewise. |
| 24406 |
* linuxdev/drivers/scsi/scsiio.c: Likewise. |
| 24407 |
* linuxdev/drivers/scsi/scsiiom.c: Likewise. |
| 24408 |
* linuxdev/drivers/scsi/tmscsim.c: Likewise. |
| 24409 |
* linuxdev/drivers/scsi/tmscsim.h: Likewise. |
| 24410 |
* linuxdev/drivers/scsi/tmscsiw.c: Likewise. |
| 24411 |
* linuxdev/drivers/scsi/tmscsiw.h: Likewise. |
| 24412 |
* linuxdev/include/asm-i386/atomic.h: Likewise. |
| 24413 |
* linuxdev/include/asm-i386/checksum.h: Likewise. |
| 24414 |
* linuxdev/include/asm-i386/ioctls.h: Likewise. |
| 24415 |
* linuxdev/include/asm-i386/math_emu.h: Likewise. |
| 24416 |
* linuxdev/include/asm-i386/posix_types.h: Likewise. |
| 24417 |
* linuxdev/include/asm-i386/semaphore.h: Likewise. |
| 24418 |
* linuxdev/include/asm-i386/sockios.h: Likewise. |
| 24419 |
* linuxdev/include/asm-i386/string-486.h: Likewise. |
| 24420 |
* linuxdev/include/asm-i386/termbits.h: Likewise. |
| 24421 |
* linuxdev/include/asm-i386/unaligned.h: Likewise. |
| 24422 |
* linuxdev/include/asm-i386/vm86.h: Likewise. |
| 24423 |
* linuxdev/include/linux/affs_hardblocks.h: Likewise. |
| 24424 |
* linuxdev/include/linux/atalk.h: Likewise. |
| 24425 |
* linuxdev/include/linux/ax25.h: Likewise. |
| 24426 |
* linuxdev/include/linux/compile.h: Likewise. |
| 24427 |
* linuxdev/include/linux/ctype.h: Likewise. |
| 24428 |
* linuxdev/include/linux/fddidevice.h: Likewise. |
| 24429 |
* linuxdev/include/linux/icmp.h: Likewise. |
| 24430 |
* linuxdev/include/linux/if_fddi.h: Likewise. |
| 24431 |
* linuxdev/include/linux/ipx.h: Likewise. |
| 24432 |
* linuxdev/include/linux/md.h: Likewise. |
| 24433 |
* linuxdev/include/linux/netrom.h: Likewise. |
| 24434 |
* linuxdev/include/linux/posix_types.h: Likewise. |
| 24435 |
* linuxdev/include/linux/random.h: Likewise. |
| 24436 |
* linuxdev/include/linux/ucdrom.h: Likewise. |
| 24437 |
* linuxdev/include/linux/udp.h: Likewise. |
| 24438 |
* linuxdev/include/linux/wireless.h: Likewise. |
| 24439 |
* linuxdev/include/net/br.h: Likewise. |
| 24440 |
* linuxdev/include/net/gc.h: Likewise. |
| 24441 |
* linuxdev/include/net/ip_masq.h: Likewise. |
| 24442 |
* linuxdev/include/net/p8022tr.h: Likewise. |
| 24443 |
* linuxdev/include/net/p8022trcall.h: Likewise. |
| 24444 |
* linuxdev/include/net/rose.h: Likewise. |
| 24445 |
* linuxdev/include/net/rosecall.h: Likewise. |
| 24446 |
* linuxdev/include/net/slhc_vj.h: Likewise. |
| 24447 |
* linuxdev/include/net/spx.h: Likewise. |
| 24448 |
* linuxdev/include/scsi/scsi.h: Likewise. |
| 24449 |
* linuxdev/include/scsi/scsi_ioctl.h: Likewise. |
| 24450 |
* linuxdev/include/scsi/scsicam.h: Likewise. |
| 24451 |
|
| 24452 |
1998-11-06 OKUJI Yoshinori <[email protected]> |
| 24453 |
|
| 24454 |
* i386/i386at/gpl/linux: Moved to ... |
| 24455 |
* linuxdev: ... here. |
| 24456 |
* i386/Makefrag: Linux drivers specific code moved to ... |
| 24457 |
* linuxdev/Makefrag: ... here. |
| 24458 |
* i386/Files: Recreated. |
| 24459 |
* i386/Subdirs: Likewise. |
| 24460 |
* linuxdev/drivers: New directory. |
| 24461 |
* linuxdev/arch: Likewise. |
| 24462 |
* linuxdev/arch/i386: Likewise. |
| 24463 |
* linuxdev/{block,scsi,net,pci}: Moved to ... |
| 24464 |
* linuxdev/drivers/{block,scsi,net,pci}: ... here. |
| 24465 |
* i386/{Drivers.in,device-drivers.h.in,driverlist.in}: Moved to ... |
| 24466 |
* linuxdev/{Drivers.in,device-drivers.h.in,driverlist.in}: ... here. |
| 24467 |
* linuxdev/{linux_emul.h,linux_*.c}: Moved to ... |
| 24468 |
* linuxdev/arch/i386/{linux_emul.h,linux_*.c}: ... here. |
| 24469 |
* linuxdev/arch/i386/linux_block.c: Include <linux_emul.h>, instead |
| 24470 |
of <i386at/gpl/linux/linux_emul.h>. |
| 24471 |
* linuxdev/arch/i386/linux_init.c: Likewise. |
| 24472 |
* linuxdev/arch/i386/linux_kmem.c: Likewise. |
| 24473 |
* linuxdev/arch/i386/linux_misc.c: Likewise. |
| 24474 |
* linuxdev/arch/i386/linux_net.c: Likewise. |
| 24475 |
* linuxdev/arch/i386/linux_sched.c: Likewise. |
| 24476 |
* device/ds_routines.c: Include <linuxdev/device-drivers.h>, instead |
| 24477 |
of <i386/device-drivers.h>. |
| 24478 |
* linuxdev/arch/i386/linux_init.c: Likewise. |
| 24479 |
* linuxdev/include/linux/autoconf.h: Likewise. |
| 24480 |
* Makefile.in: Include $(srcdir)/linuxdev/Makefrag. |
| 24481 |
* linuxdev/Drivers.in (AC_INIT): Use include/linux/autoconf.h, |
| 24482 |
instead of i386/i386asm.sym. |
| 24483 |
|
| 24484 |
1998-10-28 Roland McGrath <[email protected]> |
| 24485 |
|
| 24486 |
* include/mach/multiboot.h: Contents were doubled. |
| 24487 |
|
| 24488 |
1998-10-24 Roland McGrath <[email protected]> |
| 24489 |
|
| 24490 |
* Makefile.in (mach_machine): Don't depend on config.status, since it |
| 24491 |
is always newer than the symlink target. |
| 24492 |
|
| 24493 |
* i386/Makefrag ($(systype)/device-drivers.h): Depend on |
| 24494 |
$(systype)/driverlist, and have no commands. |
| 24495 |
|
| 24496 |
* configure.in (--enable-kdb): Fix help text; handle --disable-kdb. |
| 24497 |
Remove BUILD_CC checks and lex/yacc checks (which were for mig). |
| 24498 |
(installed_clib): Remove these checks. |
| 24499 |
(LD, NM, MIG): Use AC_CHECK_TOOL for these. |
| 24500 |
|
| 24501 |
* Makefile.in (all, clean, mostlyclean, install, dist, |
| 24502 |
%_interface.h rule, all *mig* rules): Remove all commands, deps, |
| 24503 |
and rules related to mig, which is now in a separate distribution. |
| 24504 |
|
| 24505 |
* Makefile.in (before-compile): Add mach/machine. |
| 24506 |
(mach/machine, mach_machine): New rules to make symlink so |
| 24507 |
#include <mach/machine/foo.h> works. |
| 24508 |
|
| 24509 |
* Makefile.in (NM): New variable, substituted by configure. |
| 24510 |
(check-clib-routines): Use $(NM) instead of literal "nm". |
| 24511 |
Fix awk script to grok __ defns and weak defns of desired symbols. |
| 24512 |
(clib-routines.o): Use $(CC) -r -nostartfiles -nostdlib -static |
| 24513 |
instead of $(LD) -r. Use -lc instead of $(installed-clib). |
| 24514 |
(installed-clib): Variable removed. |
| 24515 |
|
| 24516 |
* i386/Makefrag: Use -include for linux-flags, so no warning. |
| 24517 |
|
| 24518 |
* device/chario.c: Add forward decl for ttstart. |
| 24519 |
|
| 24520 |
* i386/i386/db_trace.c: Use explicit int in decl. |
| 24521 |
|
| 24522 |
* device/ds_routines.c (device_write_trap, device_writev_trap, |
| 24523 |
ds_trap_write_done): Cast arg to zfree. |
| 24524 |
|
| 24525 |
* kern/ipc_tt.c (mach_ports_lookup): Remove unnecessary cast. |
| 24526 |
|
| 24527 |
1998-10-04 Roland McGrath <[email protected]> |
| 24528 |
|
| 24529 |
* include/mach/message.h: Use __typeof instead of typeof. |
| 24530 |
|
| 24531 |
1998-09-06 Roland McGrath <[email protected]> |
| 24532 |
|
| 24533 |
* kern/time_out.h: Include <mach/time_value.h> for time_value_t defn. |
| 24534 |
|
| 24535 |
1998-07-19 Roland McGrath <[email protected]> |
| 24536 |
|
| 24537 |
* mig: Subdirectory removed, now in separate dist. |
| 24538 |
|
| 24539 |
Fri Apr 24 14:24:15 1998 Thomas Bushnell, n/BSG <[email protected]> |
| 24540 |
|
| 24541 |
* i386/i386/pcb.c (thread_setstatus): Set STATE before validating |
| 24542 |
segment registers. Reported by UCHIYAMA Fasushi ([email protected]). |
| 24543 |
|
| 24544 |
Fri Apr 24 13:19:40 1998 Thomas Bushnell n/BSG <[email protected]> |
| 24545 |
|
| 24546 |
* kern/debug.c (panic): Increase "seconds" in delay to 1000; machines |
| 24547 |
are faster now. |
| 24548 |
|
| 24549 |
* i386/i386at/gpl/linux/linux_kmem.c: Increase MEM_CHUNKS to 7. |
| 24550 |
|
| 24551 |
Wed Aug 20 16:05:19 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24552 |
|
| 24553 |
* kern/thread.h (struct thread): New member `creation_time'. |
| 24554 |
* include/mach/thread_info.h: New member `creation_time'. |
| 24555 |
* kern/thread.c (thread_create): Set creation time stamp. |
| 24556 |
(thread_info) [THREAD_BASIC_INFO]: Fill in new creation time |
| 24557 |
field. Carefully preserve compatibility with old callers. |
| 24558 |
|
| 24559 |
* kern/task.h (struct task): New member `creation_time'. |
| 24560 |
* include/mach/task_info.h: New member `creation_time'. |
| 24561 |
* kern/task.c (task_create): Set creation time stamp. |
| 24562 |
(task_info) [TASK_BASIC_INFO]: Fill in new creation time field. |
| 24563 |
Carefully preserve compatibility with old callers. |
| 24564 |
|
| 24565 |
* kern/mach_clock.c (record_time_stamp): New function. |
| 24566 |
* kern/time_out.h (record_time_stamp): Add prototype. |
| 24567 |
|
| 24568 |
Sun Aug 3 18:25:38 1997 Shantanu Goel <[email protected]> |
| 24569 |
|
| 24570 |
* i386/i386/thread.h (struct pcb): Added new field `data' used |
| 24571 |
by Linux driver emulation. |
| 24572 |
|
| 24573 |
* i386/i386at/gpl/linux/include/linux/blk.h (end_request): |
| 24574 |
Revamped Mach specific code. Don't use `errors' field in request. |
| 24575 |
Don't call driver's request function. |
| 24576 |
|
| 24577 |
* i386/i386at/gpl/linux/include/linux/fs.h (struct buffer_head): |
| 24578 |
Deleted old Mach-specific definition. Use original Linux defintion. |
| 24579 |
|
| 24580 |
* i386/i386at/gpl/linux/linux_block.c: Rewritten extensively. |
| 24581 |
(collect_buffer_pages): Deleted. |
| 24582 |
(alloc_buffer, free_buffer): Rewritten to use Mach page allocator. |
| 24583 |
(getblk, __brelse): Use Mach kernel allocator. |
| 24584 |
(check_for_error): Deleted. |
| 24585 |
(ll_rw_block): Allocate request structure on stack. |
| 24586 |
(rdwr_partial, rdwr_full, do_rdwr) New routines. |
| 24587 |
(block_read, block_write): Rewritten to use new routine do_rdwr. |
| 24588 |
(find_name): New routine. |
| 24589 |
(read_bsd_label, read_vtoc): New routines. |
| 24590 |
(init_partition): New routine. |
| 24591 |
(device_open): Rewritten for modularity. Allocate Linux block |
| 24592 |
variables on the stack. |
| 24593 |
(check_limit): New routine. |
| 24594 |
(device_read, device_write): Rewritten extensively. Map user |
| 24595 |
pages into kernel buffer before passing to driver. This is in |
| 24596 |
preparation for general Linux block driver support. Allocate |
| 24597 |
Linux block variables on the stack. |
| 24598 |
|
| 24599 |
* i386/i386at/gpl/linux/linux_kmem.c: |
| 24600 |
(collect_buffer_pages): Deleted. |
| 24601 |
|
| 24602 |
Fri Aug 1 16:15:33 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24603 |
|
| 24604 |
* kern/mach_clock.c (clock_interrupt): Test correct macro to see |
| 24605 |
if PC sampling is configured: MACH_PCSAMPLE, not MACH_SAMPLE. |
| 24606 |
|
| 24607 |
* i386/i386/locore.S (discover_x86_cpu_type): Comment out routine |
| 24608 |
for now. |
| 24609 |
* i386/i386at/model_dep.c (c_boot_entry): Comment out use of |
| 24610 |
discover_x86_cpu_type for now. |
| 24611 |
|
| 24612 |
* i386/include/mach/i386/eflags.h (EFL_AC, EFL_ID): New bits. |
| 24613 |
|
| 24614 |
* i386/i386/locore.S (discover_x86_cpu_type): Use correct opcode |
| 24615 |
for right shift. Use ENTRY macro correctly. |
| 24616 |
|
| 24617 |
Mon Jul 28 17:01:19 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24618 |
|
| 24619 |
* COPYING: New file. |
| 24620 |
* Makefile.in (topfiles): Add COPYING. |
| 24621 |
|
| 24622 |
Mon Jul 21 14:20:39 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24623 |
|
| 24624 |
* kern/mach4.srv: Include <mach_pcsample.h> so the value of |
| 24625 |
MACH_PCSAMPLE is made available for mach4.defs. |
| 24626 |
|
| 24627 |
Thu Jul 10 13:51:20 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24628 |
|
| 24629 |
* Makefile.in (install): Use `ln -sf' instead of `-ln -s'. |
| 24630 |
Suggested by Marcus G. Daniels ([email protected]). |
| 24631 |
|
| 24632 |
Thu Jun 26 13:48:31 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24633 |
|
| 24634 |
* i386/i386/locore.S (discover_x86_cpu_type): New function. |
| 24635 |
* i386/i386at/model_dep.c (c_boot_entry): Fill in cpu type in |
| 24636 |
MACHINE_SLOT using new function. |
| 24637 |
|
| 24638 |
* include/mach/machine.h (CPU_TYPE_I486, CPU_TYPE_PENTIUM, |
| 24639 |
CPU_TYPE_PENTIUMPRO, CPU_TYPE_POWERPC): New CPU types. These |
| 24640 |
conform to current OSF Mach values, but note that some of the |
| 24641 |
various subtypes are different. |
| 24642 |
|
| 24643 |
Mon Jun 16 12:14:17 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24644 |
|
| 24645 |
* i386/i386/loose_ends.c (ovbcopy): Delete function. Suggested by |
| 24646 |
Matthew Wilcox ([email protected].) |
| 24647 |
|
| 24648 |
Thu Jun 12 18:08:29 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24649 |
|
| 24650 |
Version 1.1.3 released. |
| 24651 |
|
| 24652 |
* version.c (version): Update to 1.1.3. |
| 24653 |
|
| 24654 |
Wed Jun 11 20:16:47 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24655 |
|
| 24656 |
* i386/Drivers.in: Add el3. How did this escape notice? |
| 24657 |
* i386/device-drivers.h.in: Add CONFIG_EL3. |
| 24658 |
|
| 24659 |
Tue Jun 10 13:33:37 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24660 |
|
| 24661 |
Version 1.1.2 released. |
| 24662 |
|
| 24663 |
* Makefile.in (install): Install cross-migcom as `migcom', not as |
| 24664 |
`mig'. |
| 24665 |
|
| 24666 |
* i386/Makefrag (objfiles += $(device_drivers)): Sort |
| 24667 |
$(device_drivers) before adding to objfiles in order to remove |
| 24668 |
duplicates. |
| 24669 |
|
| 24670 |
Mon Jun 9 22:14:09 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24671 |
|
| 24672 |
* i386/Drivers.in: Fix typos apt.o -> atp.o; 3c403.o -> 3c503.o. |
| 24673 |
|
| 24674 |
* Drivers.macros (AC_DRIVER): Test the class selected flag |
| 24675 |
correctly. |
| 24676 |
|
| 24677 |
Mon May 26 14:33:19 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24678 |
|
| 24679 |
* version.c (version): Update to version 1.1.2. |
| 24680 |
|
| 24681 |
Fri May 23 10:08:48 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24682 |
|
| 24683 |
* kern/thread.c (thread_info): Set flags word correctly; |
| 24684 |
TH_FLAGS_SWAPPED and TH_FLAGS_IDLE are not exclusive. |
| 24685 |
|
| 24686 |
* Makefile.in (topfiles): Add aclocal.m4. |
| 24687 |
Reported by Marcus G. Daniels ([email protected]). |
| 24688 |
|
| 24689 |
Mon May 12 11:25:38 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24690 |
|
| 24691 |
Version 1.1.1 released. |
| 24692 |
|
| 24693 |
* version.c (version): Update to version 1.1.1. |
| 24694 |
|
| 24695 |
* bogus/mach_kdb.h: Make sure MACH_KDB is always defined, to zero |
| 24696 |
if necessary. Bug report from Marcus Daniels |
| 24697 |
([email protected]). |
| 24698 |
|
| 24699 |
Fri May 9 13:06:25 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24700 |
|
| 24701 |
* i386/Files: Fix typo for _setjmp.S. |
| 24702 |
Reflect 53c7,8xx.c -> 53c78xx.c change. |
| 24703 |
|
| 24704 |
Wed May 7 15:32:08 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24705 |
|
| 24706 |
* version.c (version): Update to version 1.1. |
| 24707 |
* NEWS: New file. |
| 24708 |
* Makefile.in (topfiles): Add NEWS. |
| 24709 |
|
| 24710 |
Mon May 5 11:34:01 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24711 |
|
| 24712 |
* Makefile.in (enable_kdb): Use findstring instead of filter. |
| 24713 |
Reported by Marcus Daniels ([email protected]). |
| 24714 |
|
| 24715 |
Fri May 2 12:43:46 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24716 |
|
| 24717 |
* Makefile.in (enable_kdb): New variable. |
| 24718 |
(clib-routines): If enable_kdb, then add strstr. |
| 24719 |
* i386/i386/_setjmp.S: New file, from UK22 libmach. |
| 24720 |
* i386/Files: Add i386/i386/_setjmp.S. |
| 24721 |
* i386/Makefrag (objfiles): Add _setjmp.o if enable_kdb. |
| 24722 |
|
| 24723 |
1997-04-30 Marcus G. Daniels <[email protected]> |
| 24724 |
|
| 24725 |
* Makefile.in (clib-routines): Add htons not because it is necessary, |
| 24726 |
but because libc5 systems will bring it in. |
| 24727 |
(check-clib-routines): Tolerate extra weak symbols. |
| 24728 |
|
| 24729 |
Wed Apr 30 14:12:12 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24730 |
|
| 24731 |
* Makefile.in: Delete duplicate rule for cross-mig. |
| 24732 |
|
| 24733 |
Mon Apr 28 12:09:53 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24734 |
|
| 24735 |
* Makefile.in (check): New target. Reported by |
| 24736 |
[email protected]. |
| 24737 |
|
| 24738 |
* i386/Drivers.in (ncr53c7xx): Change file name to 53c78xx.o. |
| 24739 |
* i386/i386at/gpl/linux/scsi/53c7,8xx.c: Moved to ... |
| 24740 |
* i386/i386at/gpl/linux/scsi/53c78xx.c: ... here. |
| 24741 |
* i386/Makefrag (linux-scsi-files): Change file name here too. |
| 24742 |
Reported by [email protected]. |
| 24743 |
|
| 24744 |
Wed Apr 23 14:35:44 1997 Miles Bader <[email protected]> |
| 24745 |
|
| 24746 |
* ipc/ipc_entry.c [MACH_KDB]: Add include of <kern/task.h>. |
| 24747 |
|
| 24748 |
Wed Apr 23 13:21:23 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24749 |
|
| 24750 |
* configure.in (BUILD_CC): Use AC_CHECK_PROGS, not AC_CHECK_PROG, |
| 24751 |
since we are checking multiple names. |
| 24752 |
|
| 24753 |
* configure.in (kdb): New --enable option. |
| 24754 |
* Makefile.in (DEFINES): Add @DEFS@. |
| 24755 |
* bogus/mach_kdb.h: Make this file zero length; we get MACH_KDB |
| 24756 |
from configure now. |
| 24757 |
|
| 24758 |
* Makefile.in (clean, distclean, mostlyclean, maintainter-clean): |
| 24759 |
New targets. |
| 24760 |
(all-archs-configures): New variable. |
| 24761 |
(MIG): Change to ./local-mig. |
| 24762 |
(./local-mig): Change to build this instead of ./mig |
| 24763 |
(check-clib-routines): Use nm -g in case there are local symbols. |
| 24764 |
Suggested by Matthew Wilcox ([email protected]). |
| 24765 |
|
| 24766 |
Fri Apr 18 15:25:10 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24767 |
|
| 24768 |
* configure.in: Add AC_PREREQ for version 2.12. |
| 24769 |
* i386/Drivers.in: Likewise. |
| 24770 |
|
| 24771 |
Wed Apr 16 16:55:36 1997 Marcus G. Daniels <[email protected]> |
| 24772 |
|
| 24773 |
* configure.in: Replace AC_PROG_CC with AC_PROG_CC_LOCAL. |
| 24774 |
If cross compiling do Lex/Yacc checks with BUILD_CC. |
| 24775 |
Check CC and BUILD_CC for libraries having the needed support, |
| 24776 |
and substitute discovery in installed_clib. |
| 24777 |
|
| 24778 |
* aclocal.m4: New file. These replacement macros are to handle |
| 24779 |
the case where there is a cross compiler but no supporting files. |
| 24780 |
|
| 24781 |
* Makefile.in (installed-clib): Don't hardwire a Hurd libcrt.a. |
| 24782 |
(cross_linkable): Only define cross-migcom variable when it will |
| 24783 |
be possible to build it. |
| 24784 |
(all, install): Use $(cross-migcom). |
| 24785 |
(install): Install cross-migcom only if was to be built. |
| 24786 |
(mkinstalldirs): Add $(bindir), $(includedir)/mach/exec |
| 24787 |
(cross-lexxer.o lexxer.o): lexxer.o needs cpu.h. |
| 24788 |
(./cross-migcom): Prevent dependency generation for cross-* MiG files |
| 24789 |
unless they can actually be built. |
| 24790 |
|
| 24791 |
Thu Apr 17 15:55:40 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24792 |
|
| 24793 |
* kern/exception.c (exception_no_server): Comment out the suspend |
| 24794 |
code; it's useful for special case debugging, but causes problems |
| 24795 |
in general. |
| 24796 |
|
| 24797 |
Wed Apr 16 12:52:25 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24798 |
|
| 24799 |
* Makefile.in (cross-lexxer.o lexxer.o): Add pump-priming |
| 24800 |
dependency on cpu.h. Reported by Marcus G. Daniels |
| 24801 |
([email protected]). |
| 24802 |
|
| 24803 |
* configure.in: Fail if configure target is not for GNU os. |
| 24804 |
|
| 24805 |
* i386/Drivers.in (com): Delete option. It's required by |
| 24806 |
kd_mouse.c. |
| 24807 |
* i386/Makefrag (i386at-files): Add com.c. |
| 24808 |
(driver-files): Delete variable. |
| 24809 |
* i386/bogus/com.h: Revert change of March 10. |
| 24810 |
* i386/device-drivers.h.in (CONFIG_MACH_COM): Delete option. |
| 24811 |
Bug report from Marcus G. Daniels ([email protected]). |
| 24812 |
|
| 24813 |
* Makefile.in (./cross-mig): New rule. |
| 24814 |
(mkinstalldirs): Add $(libexecdir). |
| 24815 |
* configure.in: Recognize i686. |
| 24816 |
Reported by Marcus G. Daniels ([email protected]). |
| 24817 |
|
| 24818 |
Mon Apr 14 11:50:45 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24819 |
|
| 24820 |
* Released version 1.0. |
| 24821 |
|
| 24822 |
* kern/exception.c (exception_no_server): Try and suspend the |
| 24823 |
failing thread before killing the task. Then a debugger can be |
| 24824 |
used. |
| 24825 |
|
| 24826 |
* i386/Makefrag: Add rebuilding rules for configure subscript. |
| 24827 |
|
| 24828 |
* i386/Makefrag: Fix up copyright notice. |
| 24829 |
* i386/Drivers.in: Likewise. |
| 24830 |
* Makefile.in: Likewise. |
| 24831 |
* Drivers.macros: Likewise. |
| 24832 |
* configure.in: Likewise. |
| 24833 |
|
| 24834 |
* include/sys/time.h: New file, from include/mach/sa/sys/time.h. |
| 24835 |
* include/sys/reboot.h: New file, from include/mach/sa/sys/reboot.h. |
| 24836 |
* include/sys/ioctl.h: New file, from include/mach/sa/sys/ioctl.h. |
| 24837 |
* include/alloca.h: New file, from include/mach/sa/alloca.h. |
| 24838 |
* Makefile.in (other-sys-headers): Add time.h, ioctl.h, and reboot.h. |
| 24839 |
(other-mach-headers): New variable. |
| 24840 |
(mach-exec-headers): New variable. |
| 24841 |
(other-headers): New variable. |
| 24842 |
(installed-headers): Add mach-exec-headers. |
| 24843 |
(dist): Distribute other-mach-headers, other-sys-headers, |
| 24844 |
mach-exec-headers, and other-headers. |
| 24845 |
(device-files): Add device.srv. |
| 24846 |
|
| 24847 |
* Makefile.in (check-clib-routines): Use more efficient rule. |
| 24848 |
|
| 24849 |
Fri Apr 11 15:18:09 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24850 |
|
| 24851 |
* Makefile.in (dist): Repair rule. |
| 24852 |
(other-sys-headers): New variable. |
| 24853 |
(dist): Install $(other-sys-headers). |
| 24854 |
(INCLUDES): Remove -I$(srcdir)/include/mach/sa. |
| 24855 |
(rules for mig-related .d files): Include MiG-specific -I flags. |
| 24856 |
(mach-headers): Add inline.h. |
| 24857 |
* include/sys/types.h: New file, from include/mach/sa/sys/types.h. |
| 24858 |
|
| 24859 |
Mon Mar 24 16:23:21 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24860 |
|
| 24861 |
* version.c (version): Make that 1.0. Whee. |
| 24862 |
|
| 24863 |
Fri Mar 21 15:50:09 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24864 |
|
| 24865 |
* i386/i386at/gpl/linux/scsi/aha1740.c (aha1740_test_port): Try |
| 24866 |
and turn on PORTADDR_ENH before checking it. |
| 24867 |
|
| 24868 |
* vm/vm_object.c (vm_object_cached_max): Increase to 200. |
| 24869 |
|
| 24870 |
Thu Mar 20 12:33:06 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24871 |
|
| 24872 |
* Makefile.in (dist): New target. Reorganized some vars |
| 24873 |
describing source. |
| 24874 |
* i386/Subdirs: New file. |
| 24875 |
* i386/Files: New file. |
| 24876 |
|
| 24877 |
* version.c (version): Push back to 0.1. |
| 24878 |
|
| 24879 |
* Makefile.in (cross_compiling, bindir, libexecdir): New |
| 24880 |
variable. |
| 24881 |
|
| 24882 |
* Makefile.in (install): Depend on cross-mig and cross-migcom; |
| 24883 |
install them. New rules added to build mig, migcom, cross-mig, |
| 24884 |
and cross-migcom. |
| 24885 |
|
| 24886 |
* configure.in (AC_PROG_LEX, AC_PROG_YACC): New tests. |
| 24887 |
(BUILD_CC): New test to set these. |
| 24888 |
|
| 24889 |
* Makefile.in (%.h %_user.c): Depend on $(MIG) too. |
| 24890 |
(%_interface.h %_server.c): Likewise. |
| 24891 |
(MIG): Don't use @MIG@; hard code it to the one we build. |
| 24892 |
(BUILD_CC, BUILD_CFLAGS, MIGCOM, LEX, YACC, LEXLIB): New variables. |
| 24893 |
|
| 24894 |
Wed Mar 19 16:47:28 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24895 |
|
| 24896 |
* i386/i386at/kd.c (BROKEN_KEYBOARD_RESET): Turn off this so that |
| 24897 |
we attempt the keyboard resets. |
| 24898 |
* i386/i386/locore.S (cpu_shutdown): Attempt to provide a more |
| 24899 |
`robust' null_idtr. |
| 24900 |
|
| 24901 |
Mon Mar 17 13:47:14 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24902 |
|
| 24903 |
* i386/i386at/gpl/linux/scsi/hosts.c (scsi_init): Don't print out |
| 24904 |
gratuitious obnoxiousness. |
| 24905 |
* i386/i386at/gpl/linux/scsi/scsi.c (scsi_dev_init): Likewise. |
| 24906 |
* i386/i386at/gpl/linux/block/triton.c (ide_init_triton): |
| 24907 |
Likewise. |
| 24908 |
(init_triton_dma): Likewise. |
| 24909 |
* i386/i386at/gpl/linux/pci/pci.c (pci_init): Likewise. |
| 24910 |
* i386/i386at/gpl/linux/pci/bios32.c (check_pcibios): Likewise. |
| 24911 |
(pcibios_init): Likewise. |
| 24912 |
* i386/i386at/gpl/linux/block/genhd.c (add_partition): Likewise. |
| 24913 |
|
| 24914 |
* i386/i386at/gpl/linux/net/8390.c (ei_debug): Make default value |
| 24915 |
zero. |
| 24916 |
|
| 24917 |
Wed Mar 12 14:50:46 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24918 |
|
| 24919 |
* i386/i386at/com.c (comprobe): Turn off noisiness. |
| 24920 |
|
| 24921 |
* i386/i386at/gpl/linux/linux_block.c (check_disk_change): Don't |
| 24922 |
print out gratuitous obnoxiousness. |
| 24923 |
(device_open): Likewise. |
| 24924 |
* kern/bootstrap.c (copy_bootstrap): Likewise. |
| 24925 |
(user_bootstrap): Likewise. |
| 24926 |
* i386/i386at/gpl/linux/block/genhd.c (msdos_partition): Likewise. |
| 24927 |
(osf_partition): Likewise. |
| 24928 |
(sun_partition): Likewise. |
| 24929 |
(check_partition): Likewise. |
| 24930 |
* i386/i386/pit.c (findspeed): Likewise. |
| 24931 |
* vm/vm_resident.c (vm_page_bootstrap): Likewise. |
| 24932 |
|
| 24933 |
Mon Mar 10 15:04:47 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24934 |
|
| 24935 |
* i386/i386at/gpl/linux/linux_init.c (calibrate_delay): Don't |
| 24936 |
print out gratuitous obnoxiousness. |
| 24937 |
|
| 24938 |
* i386/i386at/gpl/linux/linux_init.c (linux_init): Only call |
| 24939 |
linux_net_emulation_init if CONFIG_INET. Include |
| 24940 |
<i386/device-drivers.h>. |
| 24941 |
|
| 24942 |
* i386/i386at/i386at_ds_routines.c: Include |
| 24943 |
<i386/device-drivers.h>. Don't mention linux_net_emulation_ops |
| 24944 |
unless CONFIG_INET. |
| 24945 |
|
| 24946 |
* device/ds_routines.c (io_done_thread_continue): [i386] |
| 24947 |
Conditionalize free_skbuffs also on CONFIG_INET. Include |
| 24948 |
<i386/device-drivers.h>. |
| 24949 |
|
| 24950 |
* i386/Drivers.in, i386/device-drivers.h.in, i386/driverlist.in: |
| 24951 |
New files. |
| 24952 |
* i386/Makefrag: Include i386/driverlist; don't include all device |
| 24953 |
drivers in kernel image; instead use list from driverlist. |
| 24954 |
* configure.in: Configure in $systype subdir too. |
| 24955 |
|
| 24956 |
* i386/i386at/gpl/linux/include/linux/autoconf.h: Damage severly |
| 24957 |
to conform to device-drivers.h model. |
| 24958 |
|
| 24959 |
* i386/bogus/com.h: Include <i386/device-drivers.h>. |
| 24960 |
Only turn on NCOM if CONFIG_MACH_COM is present. |
| 24961 |
|
| 24962 |
Mon Mar 3 16:26:58 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24963 |
|
| 24964 |
* include/mach/message.h (__mach_msg, __mach_msg_trap): Add decls. |
| 24965 |
|
| 24966 |
Tue Feb 25 15:42:23 1997 Thomas Bushnell, n/BSG <[email protected]> |
| 24967 |
|
| 24968 |
* i386/Makefrag (INCLUDES): Find `include' directory in new |
| 24969 |
location. |
| 24970 |
* Makefile (INCLUDES): Find `include' directory in new location. |
| 24971 |
(%.symc): Find gensym.awk in new location. |
| 24972 |
|
| 24973 |
* Reorganized directories into new layout and unified mach4 and |
| 24974 |
mach4-i386 into a single tree. |
| 24975 |
|
| 24976 |
|
| 24977 |
Older changes in ChangeLog.00 (for i386 directory) and ChangeLog.0 (for |
| 24978 |
all other files). |