aboutsummaryrefslogtreecommitdiff
path: root/i386
Commit message (Collapse)AuthorAgeFilesLines
* Remove dead codeSamuel Thibault2013-11-172-49/+0
| | | | | | | | 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.
* i386/intel/read_fault.c: remove register qualifierMarin Ramesa2013-11-151-1/+1
| | | | * i386/intel/read_fault.c: Remove register qualifier.
* i386/intel/pmap.h: remove register qualifiersMarin Ramesa2013-11-151-3/+3
| | | | * i386/intel/pmap.h: Remove register qualifiers.
* i386/intel/pmap.c: remove register qualifiersMarin Ramesa2013-11-151-79/+79
| | | | * i386/intel/pmap.c: Remove register qualifiers.
* i386/i386at/rtc.h: remove register qualifiersMarin Ramesa2013-11-151-2/+2
| | | | * i386/i386at/rtc.h: Remove register qualifiers.
* i386/i386at/rtc.c: remove register qualifierMarin Ramesa2013-11-151-1/+1
| | | | * i386/i386at/rtc.c: Remove register qualifier.
* i386/i386at/lpr.c: remove register qualifierMarin Ramesa2013-11-151-1/+1
| | | | * i386/i386at/lpr.c: Remove register qualifier.
* i386/i386at/kd_mouse.c: remove register qualifiersMarin Ramesa2013-11-151-10/+10
| | | | * i386/i386at/kd_mouse.c: Remove register qualifiers.
* i386/i386at/kd.c: remove register qualifiersMarin Ramesa2013-11-151-12/+12
| | | | * i386/i386at/kd.c: Remove register qualifiers.
* i386/i386at/kd_event.c: remove register qualifiersMarin Ramesa2013-11-151-13/+13
| | | | * i386/i386at/kd_event.c: Remove register qualifiers.
* i386/i386at/int_init.h: add comment after endifMarin Ramesa2013-11-151-1/+1
| | | | * i386/i386at/int_init.h (__ASSEMBLER__): Add comment after endif.
* i386/i386at/idt.h: add comment after endifMarin Ramesa2013-11-151-1/+1
| | | | * i386/i386at/idt.h (__ASSEMBLER__): Add comment after endif.
* i386/i386at/com.c: remove register qualifiersMarin Ramesa2013-11-151-6/+6
| | | | * i386/i386at/com.c: Remove register qualifiers.
* i386/i386at/com.c: trivial stylistic fix for consistencyMarin Ramesa2013-11-151-1/+1
| | | | * i386/i386at/com.c: Trivial stylistic fix for consistency.
* i386/i386at/autoconf.c: remove register qualifiersMarin Ramesa2013-11-151-3/+3
| | | | * i386/i386at/autoconf.c: Remove register qualifiers.
* i386/i386/trap.c: remove register qualifiersMarin Ramesa2013-11-151-15/+15
| | | | * i386/i386/trap.c: Remove register qualifiers.
* i386/i386/thread.h: add comment after endifMarin Ramesa2013-11-151-1/+1
| | | | * i386/i386/thread.h (LINUX_DEV): Add comment after endif.
* i386/i386/pic.h: add comment after endifMarin Ramesa2013-11-151-1/+1
| | | | * i386/i386/pic.h (__ASSEMBLER__): Add comment after endif.
* i386/i386/pcb.c: remove register qualifiersMarin Ramesa2013-11-151-27/+27
| | | | * i386/i386/pcb.c: Remove register qualifiers.
* i386/i386/mp_desc.c: remove register qualifiersMarin Ramesa2013-11-151-3/+3
| | | | * i386/i386/mp_desc.c: Remove register qualifiers.
* i386/i386/machine_routines.h: add comment after endifMarin Ramesa2013-11-151-1/+1
| | | | * i386/i386/machine_routines.h (_I386_MACHINE_ROUTINES_H_): Add comment after endif.
* i386/i386/loose_ends.c: remove unused variableMarin Ramesa2013-11-151-1/+0
| | | | * i386/i386/loose_ends.c (boothowto): Remove unused variable.
* i386/i386/loose_ends.c: add comment after endifMarin Ramesa2013-11-151-1/+1
| | | | * i386/i386/loose_ends.c (NDEBUG): Add comment after endif.
* i386/i386/lock.h: remove register quaalifierMarin Ramesa2013-11-151-1/+1
| | | | * i386/i386/lock.h: Remove register qualifier.
* i386/i386/kttd_interface.c: trivial stylistic fix for consistencyMarin Ramesa2013-11-151-1/+1
| | | | * i386/i386/kttd_interface.c: Trivial stylistic fix for consistency.
* i386/i386/hardclock.c: add comment after endifMarin Ramesa2013-11-151-1/+1
| | | | * i386/i386/hardclock.c (LINUX_DEV): Add comment after endif.
* i386/i386/fpu.h: remove register qualifiersMarin Ramesa2013-11-151-1/+1
| | | | * i386/i386/fpu.h: Remove register qualifiers.
* i386/i386/fpu.c: remove register qualifiersMarin Ramesa2013-11-151-22/+22
| | | | * i386/i386/fpu.c: Remove register qualifiers.
* i386/i386/db_trace.c: qualify constants with constMarin Ramesa2013-11-151-11/+11
| | | | * i386/i386/db_trace.c: Qualify constants with const.
* i386/i386/db_trace.c: remove register qualifiersMarin Ramesa2013-11-151-7/+7
| | | | * i386/i386/db_trace.c: Remove register qualifiers.
* i386/i386/db_interface.c: remove register qualifiersMarin Ramesa2013-11-151-20/+20
| | | | * i386/i386/db_interface.c: Remove register qualifiers.
* Fix typoMarin Ramesa2013-11-151-1/+1
|
* i386/i386/vm_tuning.h: remove fileMarin Ramesa2013-11-152-36/+0
| | | | | | * 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.
* i386/i386at: add ifndefsMarin Ramesa2013-11-154-0/+20
| | | | | | | * i386/i386at/kd_queue.h: Add ifndef. * i386/i386at/kdsoft.h: Likewise. * i386/i386at/lprreg.h: Likewise. * i386/i386at/rtc.h: Likewise.
* Remove lint codeMarin Ramesa2013-11-093-19/+0
|
* Drop FXSR initialization messageSamuel Thibault2013-08-281-1/+0
| | | | * i386/i386/fpu.c (init_fpu): Drop FXSR initialization message
* ddb: cleanup db_command.cMarin Ramesa2013-07-181-0/+4
| | | | | | | | | | | | | | | | | * 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.
* fix implicit declarationsMarin Ramesa2013-07-071-0/+2
| | | | | * ddb/db_trap.c: Include <machine/setjmp.h>. * i386/i386/setjmp.h (_setjmp): Add prototype.
* Add missing 4KiB memorySamuel Thibault2013-06-101-1/+1
| | | | | * i386/i386at/model_dep.c (init_alloc_aligned): Let allocated area last until end of memory map.
* Add non-contiguous mmap supportSamuel Thibault2013-06-102-10/+99
| | | | | | | * 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.
* Fix build without kdbSamuel Thibault2013-03-111-0/+2
| | | | | * i386/i386/db_interface.h [! MACH_KBD] (db_set_hw_watchpoint, db_clear_hw_watchpoint, db_dr): Do not declare functions.
* Plug hw debug register support into kdbSamuel Thibault2013-02-043-22/+34
| | | | | | | | | | | | | | | | | 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>
* Add x86 hardware debugging register supportSamuel Thibault2013-02-047-134/+336
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Prevent the kernel from making any FPU useSamuel Thibault2013-02-031-0/+6
| | | | * i386/Makefrag.am (AM_CFLAGS): Add -mno-3dnow -mno-mmx -mno-sse -mno-sse2.
* Implement pmap_map_mfn for the PVH caseSamuel Thibault2013-01-311-5/+15
| | | | | * i386/intel/pmap.c (pmap_map_mfn) [MACH_XEN && !MACH_PV_PAGETABLES]: Implement.
* Make the PVH variant get sure that the support is available in the hypervisorSamuel Thibault2013-01-311-6/+6
| | | | * i386/xen/xen_boothdr.S (FEATURES): Mark PVH features as required.
* Add comment for TODOSamuel Thibault2013-01-301-0/+1
|
* Do not use 4gb segment assistance in PVHSamuel Thibault2013-01-302-2/+6
| | | | | | | * 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.
* Drop spurious inclusionSamuel Thibault2013-01-301-1/+1
| | | | | * i386/i386/vm_param.h [MACH_XEN && !MACH_PV_PAGETABLES]: Do not include <xen/public/xen.h>.
* Increase VM_MAX_KERNEL_ADDRESS for PVH caseSamuel Thibault2013-01-301-7/+8
| | | | | | * i386/i386/vm_param.h (VM_MAX_KERNEL_ADDRESS) [MACH_XEN && !MACH_PV_PAGETABLES]: Remove hypervisor area from VM_MAX_KERNEL_ADDRESS restriction.