summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-11-22Avoid confusion between global and local ldt varsSamuel Thibault
* i386/i386/pcb.c (switch_ktss): Rename ldt variable into tldt.
2009-11-22Do not assume that VM_MIN_KERNEL_ADDRESS is 0Samuel Thibault
* i386/i386/vm_param.h (VM_MAX_KERNEL_ADDRESS): Add VM_MIN_KERNEL_ADDRESS. (kvtolin): Subtract VM_MIN_KERNEL_ADDRESS. (lintokv): Add VM_MIN_KERNEL_ADDRESS. * i386/i386at/model_dep.c (mem_size_init): Subtract VM_MIN_KERNEL_ADDRESS in computation of phys_last_addr. (i386at_init): Use VM_MIN_KERNEL_ADDRESS instead of 0 as argument of lin2pdenum.
2009-11-22Rewamp spl.hSamuel Thibault
* i386/i386/spl.h (splnet, splbio, spl7, splx_cli): Add prototypes.
2009-11-22Do not assume that VM_MIN_KERNEL_ADDRESS is 0Samuel Thibault
* i386/i386/gdt.c (gdt_init): Subtract VM_MIN_KERNEL_ADDRESS from LINEAR_MIN_KERNEL_ADDRESS to avoid assuming the former being 0.
2009-11-22Fix db_search_null loopSamuel Thibault
* i386/i386/db_interface.c (db_search_null): Do not decrease vaddr twice.
2009-11-22Introduce KERNEL_RINGSamuel Thibault
* i386/i386/seg.h (KERNEL_RING): New macro, set to 0. (ACC_PL_K, SEL_PL_K): Use KERNEL_RING instead of assuming 0. * i386/i386/gdt.h (KERNEL_CS, KERNEL_DS): Likewise. * i386/i386/db_interface.c (kdb_trap, kdb_kentry): Likewise. * i386/i386/kttd_interface.c (kttd_trap, kttd_netentry): Likewise. * i386/i386/i386asm.sym: Add KERNEL_RING expression.
2009-11-22Rename kd_atoi into mach_atoiSamuel Thibault
* i386/i386at/kd.c: Include <util/atoi.h> (DEFAULT): Remove, replaced by MACH_ATOI_DEFAULT. (kd_parserest): Use mach_atoi instead of kd_atoi and MACH_ATOI_DEFAULT instead of DEFAULT. (kd_atoi): Move and rename function to... * util/atoi.c: ... mach_atoi in new file. * i386/i386at/kd.h (kd_atoi): Move and rename declaration to... * util/atoi.h: ... mach_atoi in new file. * Makefrag.am (libkernel_a_SOURCES): Add util/atoi.c
2009-11-16Update dependency patch for Automake 1.10.2, 1.11, and thereabouts.Guillem Jover
* config.status.dep.patch: Refresh.
2009-11-11Fix a bug in vm_page_grab_contiguous_pages.Zheng Da
* vm/vm_resident.c (vm_page_grab_contiguous_pages): Maintain the free vm page queue correctly.
2009-11-01Show EATA probing progressionSamuel Thibault
* linux/src/drivers/scsi/eata.c (port_detect): Print the port being probed.
2009-10-26Fix VM_MAX_ADDRESS defaultSamuel Thibault
* i386/include/mach/i386/vm_param.h (VM_MAX_ADDRESS): Set back to 0xc0000000 by default.
2009-10-26Make tuning VM_MAX_ADDRESS trivialSamuel Thibault
* i386/i386/vm_param.h (LINEAR_MIN_KERNEL_ADDRESS): Set to VM_MAX_ADDRESS instead of hardcoding to 0xc0000000. (VM_MAX_KERNEL_ADDRESS): Set to LINEAR_MAX_KERNEL_ADDRESS - LINEAR_MIN_KERNEL_ADDRESS instead of hardcoding to 0x40000000. * i386/include/mach/i386/vm_param.h: Document how it may be tuned.
2009-10-26Fix buildSamuel Thibault
* i386/i386at/com.h (comtimer): Fix prototype of comtimer.
2009-10-25Fix warningSamuel Thibault
* i386/i386at/autoconf.c: Include <i386/pic.h> even when [!LINUX_DEV].
2009-10-25Fix warningSamuel Thibault
* i386/i386/trap.h: Include <mach/mach_types.h>
2009-10-25Fix warningSamuel Thibault
* i386/i386/pcb.c (thread_setstatus): Comment out state variable declaration.
2009-10-25Fix warningSamuel Thibault
* device/net_io.c (net_set_filter): Cast filter into bpf_insn_t for bpf_eq call.
2009-10-25Fix warningSamuel Thibault
* i386/i386/locore.S (TIME_INT_ENTRY): Fix comment.
2009-10-25Fix warningSamuel Thibault
* i386/intel/pmap.c (i): Declare only when [NCPUS > 1].
2009-10-20Fix warningsSamuel Thibault
* devices/io_reqs.h (io_req): Set type of io_alloc_size field to vm_size_t. * device/ds_routines.c (device_write_dealloc): Remove cast of io_alloc_size field. * device/subrs.c (brelse): Likewise.
2009-10-20Fix warningsSamuel Thibault
* device/chario.c (ttypush): Set parameter type to void * instead of struct tty *, and implicitly cast the former into the latter instead. * i386/i386at/com.c: Include <kern/mach_clock.h>. (timeout, ttrstrt): Remove declarations. (comtimer): Add unused void * parameter. (comopen): Pass NULL to comtimer function. * i386/i386at/kd.h (kd_belloff): Add unused void * parameter. * i386/i386at/kd.c (timeout): Remove declaration. (kd_belloff): Add unused void * parameter. (feep, kdsetbell): Pass NULL to kd_belloff function. * i386/i386at/lpr.c: Include <mach_clock.h>. (timeout, ttrstrt): Remove declarations. * kern/mach_clock.c (softclock, timeout, untimeout): Set parameter type of fcn function pointer to void * instead of char *. Set type of param to void * instead of char *. * kern/mach_clock.h (timer_elt): Set parameter type of fcn member to void * instead of char *. Set time of param member to void * instead of char *. (timeout): Set parameter type of fcn function pointer parameter to void * instead of char *. (untimeout): Likewise, set type of param parameter to void * instead of char *. * kern/sched_prim.c (sched_init): Remove cast of recompute_priorities. Replace (char *)0 with NULL. (thread_timeout): Set parameter type to void * instead of thread_t, and implicitly cast the former into the latter instead. (thread_timeout_setup): Remove cast of thread_timeout, cast thread_depress_timeout into (void (*) (void*)). Remove cast of thread. (thread_recompute_priorities): Add unused void * parameter.
2009-10-20Fix warningsSamuel Thibault
* device/tty.h (tty): Set type of t_ispeed and t_ospeed members to unsigned char instead of (potentially signed) char.
2009-10-20Fix warningsSamuel Thibault
* vm/vm_resident.c (vm_page_grab_contiguous_pages): Remove unused count_zeroes and not_found_em labels.
2009-10-20Fix warningSamuel Thibault
* vm/vm_pageout.c (vm_pageout_scan): Remove unused Restart label.
2009-10-20Fix warningSamuel Thibault
* vm/vm_map.c (vm_map_lookup): Add braces to fix readability.
2009-10-20Fix warningSamuel Thibault
* kern/thread.c (_s_): Remove unused variable.
2009-10-20Fix warningsSamuel Thibault
* kern/bootstrap.c (task_insert_send_right): Remove spurious cast of port into ipc_object_t. (load_protect_text, load_fault_in_text, boot_map, load_bootstrap_symbols): Comment out unused variables and function. (read_exec): Comment out unused user_map variable.
2009-10-20Fix boot from grub2 with more than 800MiB memorySamuel Thibault
* i386/i386at/model_dep.c (init_alloc_aligned): Add declaration. (i386at_init): Use init_alloc_aligned to allocate memory to save the content pointed by boot_info: cmdline, mods_addr, mod_start, and string. Set kernel_cmdline to the newly allocated string. (c_boot_entry): Do not set kernel_cmdline.
2009-10-20Better estimate avail_remainingSamuel Thibault
* i386/i386at/model_dep.c (mem_size_init): Move avail_remaining computation to after all phys_last_addr corrections.
2009-10-18Revert "Fix multiboot compliancy concerning x86 D flag"Samuel Thibault
This reverts commit de00e82b8c4491a4ff3320c0ddd80ac91ed0977b. Flags already get cleared using push/pop a few instructions later.
2009-10-17Fix multiboot compliancy concerning x86 D flagSamuel Thibault
i386/i386at/boothdr.S (boot_entry): Clear D flag.
2009-10-14Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/gnumachSamuel Thibault
2009-10-14Update constants to nowadays standardsSamuel Thibault
kern/zalloc.c (zone_map_size): Increase to 64MiB. i386/i386at/model_dep.c (mem_size_init): Reduce cap to 1/6 of memory space to save room for zalloc area. linux/src/drivers/block/ide.h (INITIAL_MULT_COUNT): Set to 16. vm/vm_map.h (VM_MAP_COPY_PAGE_LIST_MAX): Set to 64. vm/vm_object.c (vm_object_cached_max): Set to 4000.
2009-10-14Merge branch 'master-zhengda'Thomas Schwinge
2009-10-14Apply patch #6851: fix a bug in BPFZheng Da
* net_io.c (net_filter): Correct the amount of data of a packet accepted by BPF.
2009-10-14Fix yet more allocation failures during gcSamuel Thibault
kern/zalloc.c (zone_gc): Allocate and free two vm_map_kentry_zone elements to make sure the gc will be able to allocate two in vm_map_delete.
2009-10-14Revert spurious part of 909c941dSamuel Thibault
2009-10-14Fix db kernel memory accessSamuel Thibault
i386/i386/db_interface.c (db_read_bytes): Also check addr against VM_MAX_KERNEL_ADDRESS.
2009-10-14Fix macro escapesSamuel Thibault
i386/intel/pmap.c (INVALIDATE_TLB): Fix macro escapes
2009-10-14Fix allocation failure during gcSamuel Thibault
kern/zalloc.c (zone_gc): Allocate and free a vm_map_kentry_zone element to make sure the gc will be able to allocate one for vm_map_delete.
2009-10-14More restrictive requirements on zone alignmentSamuel Thibault
kern/zalloc.c (zinit): Panic if requested alignment doesn't match page size and list elements.
2009-10-14Fix return with lock heldSamuel Thibault
vm/vm_map.c (vm_map_copy_overwrite): Unlock dst_map before returning.
2009-10-14Fix return with lock heldSamuel Thibault
vm/vm_map.c (vm_map_enter): Use RETURN instead of return to unlock the map before returning.
2009-10-14Make local variable staticSamuel Thibault
kern/lock.c (lock_wait_time): Add static qualifier.
2009-10-14Advertise memory size truncationsSamuel Thibault
i386/i386at/model_dep.c (mem_size_init): Advertise memory size truncations.
2009-09-27Disable CMD-640 supportSamuel Thibault
It messes too much with probing and brings hang issue. * i386/linux/dev/include/linux/autoconf.h (CONFIG_BLK_DEV_CMD640, CONFIG_BLK_DEV_CMD640_ENHANCED): Undefine macros.
2009-07-11Switch to the new ChangeLog style.Thomas Schwinge
* ChangeLog: Wipe out content, and add instructions about how to get it back. * ChangeLog.0: Remove file. * ChangeLog.00: Likewise.
2009-06-182009-02-26 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault
* i386/i386/prog_reg.h (invlpg_linear): Rename macro into... (invlpg_linear_range): ... this. (invlpg_linear): New macro. * i386/intel/pmap.c (INVALIDATE_TLB): Call invlpg_linear instead of flush_tlb when e - S is compile-time known to be PAGE_SIZE, instead of run-time known to be less than 32 * PAGE_SIZE.
2009-06-182009-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault
* i386/intel/pmap.c (INVALIDATE_TLB): For now, disable use of invlpg.
2009-06-182009-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault
* i386/i386/gdt.h (LINEAR_DS): New macro. * i386/i386/gdt.c (gdt_init): Initialize LINEAR_DS descriptor. * i386/i386/proc_reg.h (invlpg_user): Rename macro into... (invlpg_linear): ... this. Use movw instead of movl to set KERNEL_DS selector. Use LINEAR_DS selector instead of USER_DS selector. * i386/intel/pmap.c (INVALIDATE_TLB): Call invlpg_linear instead of invlpg_user.