summaryrefslogtreecommitdiff
path: root/i386
AgeCommit message (Collapse)Author
2013-11-17Remove dead codeSamuel Thibault
Thanks Marin Ramesa for the report. * i386/i386/user_ldt.c (selector_check): Remove function. * i386/i386/user_ldt.h (S_CODE, S_STACK, S_DATA): Remove macros. (selector_check): Remove declaration.
2013-11-15i386/intel/read_fault.c: remove register qualifierMarin Ramesa
* i386/intel/read_fault.c: Remove register qualifier.
2013-11-15i386/intel/pmap.h: remove register qualifiersMarin Ramesa
* i386/intel/pmap.h: Remove register qualifiers.
2013-11-15i386/intel/pmap.c: remove register qualifiersMarin Ramesa
* i386/intel/pmap.c: Remove register qualifiers.
2013-11-15i386/i386at/rtc.h: remove register qualifiersMarin Ramesa
* i386/i386at/rtc.h: Remove register qualifiers.
2013-11-15i386/i386at/rtc.c: remove register qualifierMarin Ramesa
* i386/i386at/rtc.c: Remove register qualifier.
2013-11-15i386/i386at/lpr.c: remove register qualifierMarin Ramesa
* i386/i386at/lpr.c: Remove register qualifier.
2013-11-15i386/i386at/kd_mouse.c: remove register qualifiersMarin Ramesa
* i386/i386at/kd_mouse.c: Remove register qualifiers.
2013-11-15i386/i386at/kd.c: remove register qualifiersMarin Ramesa
* i386/i386at/kd.c: Remove register qualifiers.
2013-11-15i386/i386at/kd_event.c: remove register qualifiersMarin Ramesa
* i386/i386at/kd_event.c: Remove register qualifiers.
2013-11-15i386/i386at/int_init.h: add comment after endifMarin Ramesa
* i386/i386at/int_init.h (__ASSEMBLER__): Add comment after endif.
2013-11-15i386/i386at/idt.h: add comment after endifMarin Ramesa
* i386/i386at/idt.h (__ASSEMBLER__): Add comment after endif.
2013-11-15i386/i386at/com.c: remove register qualifiersMarin Ramesa
* i386/i386at/com.c: Remove register qualifiers.
2013-11-15i386/i386at/com.c: trivial stylistic fix for consistencyMarin Ramesa
* i386/i386at/com.c: Trivial stylistic fix for consistency.
2013-11-15i386/i386at/autoconf.c: remove register qualifiersMarin Ramesa
* i386/i386at/autoconf.c: Remove register qualifiers.
2013-11-15i386/i386/trap.c: remove register qualifiersMarin Ramesa
* i386/i386/trap.c: Remove register qualifiers.
2013-11-15i386/i386/thread.h: add comment after endifMarin Ramesa
* i386/i386/thread.h (LINUX_DEV): Add comment after endif.
2013-11-15i386/i386/pic.h: add comment after endifMarin Ramesa
* i386/i386/pic.h (__ASSEMBLER__): Add comment after endif.
2013-11-15i386/i386/pcb.c: remove register qualifiersMarin Ramesa
* i386/i386/pcb.c: Remove register qualifiers.
2013-11-15i386/i386/mp_desc.c: remove register qualifiersMarin Ramesa
* i386/i386/mp_desc.c: Remove register qualifiers.
2013-11-15i386/i386/machine_routines.h: add comment after endifMarin Ramesa
* i386/i386/machine_routines.h (_I386_MACHINE_ROUTINES_H_): Add comment after endif.
2013-11-15i386/i386/loose_ends.c: remove unused variableMarin Ramesa
* i386/i386/loose_ends.c (boothowto): Remove unused variable.
2013-11-15i386/i386/loose_ends.c: add comment after endifMarin Ramesa
* i386/i386/loose_ends.c (NDEBUG): Add comment after endif.
2013-11-15i386/i386/lock.h: remove register quaalifierMarin Ramesa
* i386/i386/lock.h: Remove register qualifier.
2013-11-15i386/i386/kttd_interface.c: trivial stylistic fix for consistencyMarin Ramesa
* i386/i386/kttd_interface.c: Trivial stylistic fix for consistency.
2013-11-15i386/i386/hardclock.c: add comment after endifMarin Ramesa
* i386/i386/hardclock.c (LINUX_DEV): Add comment after endif.
2013-11-15i386/i386/fpu.h: remove register qualifiersMarin Ramesa
* i386/i386/fpu.h: Remove register qualifiers.
2013-11-15i386/i386/fpu.c: remove register qualifiersMarin Ramesa
* i386/i386/fpu.c: Remove register qualifiers.
2013-11-15i386/i386/db_trace.c: qualify constants with constMarin Ramesa
* i386/i386/db_trace.c: Qualify constants with const.
2013-11-15i386/i386/db_trace.c: remove register qualifiersMarin Ramesa
* i386/i386/db_trace.c: Remove register qualifiers.
2013-11-15i386/i386/db_interface.c: remove register qualifiersMarin Ramesa
* i386/i386/db_interface.c: Remove register qualifiers.
2013-11-15Fix typoMarin Ramesa
2013-11-15i386/i386/vm_tuning.h: remove fileMarin Ramesa
* i386/Makefrag.am: Remove i386/i386/vm_tuning.h. * i386/i386/vm_tuning.h: Remove file. * vm/vm_pageout.c: Don't include i386/i386/vm_tuning.h.
2013-11-15i386/i386at: add ifndefsMarin Ramesa
* i386/i386at/kd_queue.h: Add ifndef. * i386/i386at/kdsoft.h: Likewise. * i386/i386at/lprreg.h: Likewise. * i386/i386at/rtc.h: Likewise.
2013-11-09Remove lint codeMarin Ramesa
2013-08-28Drop FXSR initialization messageSamuel Thibault
* i386/i386/fpu.c (init_fpu): Drop FXSR initialization message
2013-07-18ddb: cleanup db_command.cMarin Ramesa
* ddb/db_command.c (_longjmp): Remove prototype. (vm_map_print): Likewise. (vm_object_print): Likewise. (vm_page_print): Likewise. (vm_map_copy_print): Likewise. (ipc_port_print): Likewise. (ipc_pset_print): Likewise. (db_show_all_slocks): Likewise. (ipc_kmsg_print): Likewise. (ipc_msg_print): Likewise. Include <vm/vm_print.h>. Include <ipc/ipc_print.h>. Include <kern/lock.h>. * i386/i386/setjmp.h [__GNUC__] (_longjmp): Add prototype.
2013-07-07fix implicit declarationsMarin Ramesa
* ddb/db_trap.c: Include <machine/setjmp.h>. * i386/i386/setjmp.h (_setjmp): Add prototype.
2013-06-10Add missing 4KiB memorySamuel Thibault
* i386/i386at/model_dep.c (init_alloc_aligned): Let allocated area last until end of memory map.
2013-06-10Add non-contiguous mmap supportSamuel Thibault
* i386/include/mach/i386/multiboot.h (multiboot_mmap): New structure * i386/i386at/model_dep.c (mem_size_init): Parse boot_info.mmap_addr if available. (init_alloc_aligned): Likewise.
2013-03-11Fix build without kdbSamuel Thibault
* i386/i386/db_interface.h [! MACH_KBD] (db_set_hw_watchpoint, db_clear_hw_watchpoint, db_dr): Do not declare functions.
2013-02-04Plug hw debug register support into kdbSamuel Thibault
Make the `watch' command use hw debug registers whenever possible. * ddb/db_watch.c (db_set_hw_watchpoint, db_clear_hw_watchpoint): Add functions prototypes. (db_set_watchpoints): Try to call db_set_hw_watchpoint. (db_clear_watchpoints): Call db_clear_hw_watchpoint. * i386/i386/db_interface.c: Include <ddb/db_watch.h> (db_set_hw_watchpoint): Take a db_watchpoint_t WATCH parameter instead of its content. Remove support for clearing a debug register. (db_clear_hw_watchpoint): Add function. * i386/i386/db_interface.h: Include <ddb/db_watch.h>. (db_set_hw_watchpoint): Fix function prototype. (db_clear_hw_watchpoint): Add function prototype. * i386/i386/db_machdep.h: Do not include <machine/db_interface.h>
2013-02-04Add x86 hardware debugging register supportSamuel Thibault
This adds using the x86 hardware debugging registers, either from the kernel through db_set_hw_watchpoint, or from userland through i386_DEBUG_STATE. While the kernel is using the registers, the userland values are ignored. * i386/i386/db_interface.c (kernel_dr, ids): New variables. (db_load_context, db_get_debug_state, db_set_debug_state, db_dr, db_set_hw_watchpoint): New functions. (kdb_trap): Use get_dr* instead of dr_addr[]. * i386/i386/db_interface.h (db_user_to_kernel_address, db_set_hw_watchpoint) (db_dr, db_get_debug_state, db_set_debug_state, db_load_context): Add functions prototypes. (dr0, dr1, dr2, dr3): Remove functions prototypes. * i386/i386/locore.S (dr6, dr0, dr1, dr2, dr3): Remove functions. (dr_msk, dr_addr): Remove variables. * i386/include/mach/i386/thread_status.h (i386_DEBUG_STATE): Add macro. (i386_debug_state): Add structure. (i386_DEBUG_STATE_COUNT): Add macro. * i386/i386/thread.h: Include <mach/machine/thread_status.h>. (i386_machine_state): Add `struct i386_debug_state ids' field. * i386/i386/pcb.c: Include <i386/db_interface.h>. (switch_ktss): Call db_load_context. (thread_setstatus, thread_getstatus): Add I386_DEBUG_STATE case. * i386/i386/proc_reg.h (get_dr0, set_dr0, get_dr1, set_dr1, get_dr2, set_dr2, get_dr3, set_dr3, get_dr6, set_dr6, get_dr7, set_dr7): Add macros.
2013-02-03Prevent the kernel from making any FPU useSamuel Thibault
* i386/Makefrag.am (AM_CFLAGS): Add -mno-3dnow -mno-mmx -mno-sse -mno-sse2.
2013-01-31Implement pmap_map_mfn for the PVH caseSamuel Thibault
* i386/intel/pmap.c (pmap_map_mfn) [MACH_XEN && !MACH_PV_PAGETABLES]: Implement.
2013-01-31Make the PVH variant get sure that the support is available in the hypervisorSamuel Thibault
* i386/xen/xen_boothdr.S (FEATURES): Mark PVH features as required.
2013-01-30Add comment for TODOSamuel Thibault
2013-01-30Do not use 4gb segment assistance in PVHSamuel Thibault
* i386/i386/gdt.c (gdt_init) [MACH_PV_DESCRIPTORS && !MACH_PV_PAGETABLES]: Do not enable VMASST_TYPE_4gb_segments. * i386/i386/trap.c (user_trap): Do not handle trap 15, 4gb segment assist notification.
2013-01-30Drop spurious inclusionSamuel Thibault
* i386/i386/vm_param.h [MACH_XEN && !MACH_PV_PAGETABLES]: Do not include <xen/public/xen.h>.
2013-01-30Increase VM_MAX_KERNEL_ADDRESS for PVH caseSamuel Thibault
* i386/i386/vm_param.h (VM_MAX_KERNEL_ADDRESS) [MACH_XEN && !MACH_PV_PAGETABLES]: Remove hypervisor area from VM_MAX_KERNEL_ADDRESS restriction.