ia64/xen-unstable

changeset 3212:f65b65977b19

bitkeeper revision 1.1159.170.55 (41ab5c23QYvtqtjdNhgpIdW_c5ibrA)

sync w/ head.
author cl349@arcadians.cl.cam.ac.uk
date Mon Nov 29 17:28:03 2004 +0000 (2004-11-29)
parents 13728122c78d 513e44ca9f64
children e9ae5958b2be
files .rootkeys BitKeeper/etc/ignore Makefile buildconfigs/Rules.mk docs/src/user.tex linux-2.4.27-xen-sparse/Makefile linux-2.4.27-xen-sparse/arch/xen/Makefile linux-2.4.27-xen-sparse/arch/xen/boot/Makefile linux-2.4.27-xen-sparse/arch/xen/config.in linux-2.4.27-xen-sparse/arch/xen/defconfig-xen0 linux-2.4.27-xen-sparse/arch/xen/defconfig-xenU linux-2.4.27-xen-sparse/arch/xen/drivers/balloon/Makefile linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/Makefile linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/backend/Makefile linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/frontend/Makefile linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/frontend/common.h linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/frontend/vbd.c linux-2.4.27-xen-sparse/arch/xen/drivers/console/Makefile linux-2.4.27-xen-sparse/arch/xen/drivers/dom0/Makefile linux-2.4.27-xen-sparse/arch/xen/drivers/evtchn/Makefile linux-2.4.27-xen-sparse/arch/xen/drivers/netif/Makefile linux-2.4.27-xen-sparse/arch/xen/drivers/netif/backend/Makefile linux-2.4.27-xen-sparse/arch/xen/drivers/netif/frontend/Makefile linux-2.4.27-xen-sparse/arch/xen/kernel/Makefile linux-2.4.27-xen-sparse/arch/xen/kernel/entry.S linux-2.4.27-xen-sparse/arch/xen/kernel/head.S linux-2.4.27-xen-sparse/arch/xen/kernel/i386_ksyms.c linux-2.4.27-xen-sparse/arch/xen/kernel/irq.c linux-2.4.27-xen-sparse/arch/xen/kernel/ldt.c linux-2.4.27-xen-sparse/arch/xen/kernel/pci-pc.c linux-2.4.27-xen-sparse/arch/xen/kernel/process.c linux-2.4.27-xen-sparse/arch/xen/kernel/setup.c linux-2.4.27-xen-sparse/arch/xen/kernel/signal.c linux-2.4.27-xen-sparse/arch/xen/kernel/time.c linux-2.4.27-xen-sparse/arch/xen/kernel/traps.c linux-2.4.27-xen-sparse/arch/xen/lib/Makefile linux-2.4.27-xen-sparse/arch/xen/lib/delay.c linux-2.4.27-xen-sparse/arch/xen/mm/Makefile linux-2.4.27-xen-sparse/arch/xen/mm/fault.c linux-2.4.27-xen-sparse/arch/xen/mm/init.c linux-2.4.27-xen-sparse/arch/xen/mm/ioremap.c linux-2.4.27-xen-sparse/arch/xen/vmlinux.lds linux-2.4.27-xen-sparse/drivers/block/ll_rw_blk.c linux-2.4.27-xen-sparse/drivers/char/Makefile linux-2.4.27-xen-sparse/drivers/char/mem.c linux-2.4.27-xen-sparse/drivers/char/tty_io.c linux-2.4.27-xen-sparse/drivers/scsi/aic7xxx/Makefile linux-2.4.27-xen-sparse/fs/exec.c linux-2.4.27-xen-sparse/include/asm-xen/bugs.h linux-2.4.27-xen-sparse/include/asm-xen/desc.h linux-2.4.27-xen-sparse/include/asm-xen/fixmap.h linux-2.4.27-xen-sparse/include/asm-xen/highmem.h linux-2.4.27-xen-sparse/include/asm-xen/hw_irq.h linux-2.4.27-xen-sparse/include/asm-xen/io.h linux-2.4.27-xen-sparse/include/asm-xen/irq.h linux-2.4.27-xen-sparse/include/asm-xen/keyboard.h linux-2.4.27-xen-sparse/include/asm-xen/mmu_context.h linux-2.4.27-xen-sparse/include/asm-xen/module.h linux-2.4.27-xen-sparse/include/asm-xen/msr.h linux-2.4.27-xen-sparse/include/asm-xen/page.h linux-2.4.27-xen-sparse/include/asm-xen/pci.h linux-2.4.27-xen-sparse/include/asm-xen/pgalloc.h linux-2.4.27-xen-sparse/include/asm-xen/pgtable-2level.h linux-2.4.27-xen-sparse/include/asm-xen/pgtable.h linux-2.4.27-xen-sparse/include/asm-xen/processor.h linux-2.4.27-xen-sparse/include/asm-xen/queues.h linux-2.4.27-xen-sparse/include/asm-xen/segment.h linux-2.4.27-xen-sparse/include/asm-xen/smp.h linux-2.4.27-xen-sparse/include/asm-xen/synch_bitops.h linux-2.4.27-xen-sparse/include/asm-xen/system.h linux-2.4.27-xen-sparse/include/asm-xen/vga.h linux-2.4.27-xen-sparse/include/asm-xen/xor.h linux-2.4.27-xen-sparse/include/linux/blk.h linux-2.4.27-xen-sparse/include/linux/mm.h linux-2.4.27-xen-sparse/include/linux/sched.h linux-2.4.27-xen-sparse/include/linux/skbuff.h linux-2.4.27-xen-sparse/include/linux/timer.h linux-2.4.27-xen-sparse/kernel/time.c linux-2.4.27-xen-sparse/kernel/timer.c linux-2.4.27-xen-sparse/mkbuildtree linux-2.4.27-xen-sparse/mm/highmem.c linux-2.4.27-xen-sparse/mm/memory.c linux-2.4.27-xen-sparse/mm/mprotect.c linux-2.4.27-xen-sparse/mm/mremap.c linux-2.4.27-xen-sparse/mm/page_alloc.c linux-2.4.27-xen-sparse/mm/swapfile.c linux-2.4.27-xen-sparse/mm/vmalloc.c linux-2.4.27-xen-sparse/net/core/skbuff.c linux-2.4.28-xen-sparse/Makefile linux-2.4.28-xen-sparse/arch/xen/Makefile linux-2.4.28-xen-sparse/arch/xen/boot/Makefile linux-2.4.28-xen-sparse/arch/xen/config.in linux-2.4.28-xen-sparse/arch/xen/defconfig-xen0 linux-2.4.28-xen-sparse/arch/xen/defconfig-xenU linux-2.4.28-xen-sparse/arch/xen/drivers/balloon/Makefile linux-2.4.28-xen-sparse/arch/xen/drivers/blkif/Makefile linux-2.4.28-xen-sparse/arch/xen/drivers/blkif/backend/Makefile linux-2.4.28-xen-sparse/arch/xen/drivers/blkif/frontend/Makefile linux-2.4.28-xen-sparse/arch/xen/drivers/blkif/frontend/common.h linux-2.4.28-xen-sparse/arch/xen/drivers/blkif/frontend/vbd.c linux-2.4.28-xen-sparse/arch/xen/drivers/console/Makefile linux-2.4.28-xen-sparse/arch/xen/drivers/dom0/Makefile linux-2.4.28-xen-sparse/arch/xen/drivers/evtchn/Makefile linux-2.4.28-xen-sparse/arch/xen/drivers/netif/Makefile linux-2.4.28-xen-sparse/arch/xen/drivers/netif/backend/Makefile linux-2.4.28-xen-sparse/arch/xen/drivers/netif/frontend/Makefile linux-2.4.28-xen-sparse/arch/xen/kernel/Makefile linux-2.4.28-xen-sparse/arch/xen/kernel/entry.S linux-2.4.28-xen-sparse/arch/xen/kernel/head.S linux-2.4.28-xen-sparse/arch/xen/kernel/i386_ksyms.c linux-2.4.28-xen-sparse/arch/xen/kernel/irq.c linux-2.4.28-xen-sparse/arch/xen/kernel/ldt.c linux-2.4.28-xen-sparse/arch/xen/kernel/pci-pc.c linux-2.4.28-xen-sparse/arch/xen/kernel/process.c linux-2.4.28-xen-sparse/arch/xen/kernel/setup.c linux-2.4.28-xen-sparse/arch/xen/kernel/signal.c linux-2.4.28-xen-sparse/arch/xen/kernel/time.c linux-2.4.28-xen-sparse/arch/xen/kernel/traps.c linux-2.4.28-xen-sparse/arch/xen/lib/Makefile linux-2.4.28-xen-sparse/arch/xen/lib/delay.c linux-2.4.28-xen-sparse/arch/xen/mm/Makefile linux-2.4.28-xen-sparse/arch/xen/mm/fault.c linux-2.4.28-xen-sparse/arch/xen/mm/init.c linux-2.4.28-xen-sparse/arch/xen/mm/ioremap.c linux-2.4.28-xen-sparse/arch/xen/vmlinux.lds linux-2.4.28-xen-sparse/drivers/block/ll_rw_blk.c linux-2.4.28-xen-sparse/drivers/char/Makefile linux-2.4.28-xen-sparse/drivers/char/mem.c linux-2.4.28-xen-sparse/drivers/char/tty_io.c linux-2.4.28-xen-sparse/drivers/scsi/aic7xxx/Makefile linux-2.4.28-xen-sparse/fs/exec.c linux-2.4.28-xen-sparse/include/asm-xen/bugs.h linux-2.4.28-xen-sparse/include/asm-xen/desc.h linux-2.4.28-xen-sparse/include/asm-xen/fixmap.h linux-2.4.28-xen-sparse/include/asm-xen/highmem.h linux-2.4.28-xen-sparse/include/asm-xen/hw_irq.h linux-2.4.28-xen-sparse/include/asm-xen/io.h linux-2.4.28-xen-sparse/include/asm-xen/irq.h linux-2.4.28-xen-sparse/include/asm-xen/keyboard.h linux-2.4.28-xen-sparse/include/asm-xen/mmu_context.h linux-2.4.28-xen-sparse/include/asm-xen/module.h linux-2.4.28-xen-sparse/include/asm-xen/msr.h linux-2.4.28-xen-sparse/include/asm-xen/page.h linux-2.4.28-xen-sparse/include/asm-xen/pci.h linux-2.4.28-xen-sparse/include/asm-xen/pgalloc.h linux-2.4.28-xen-sparse/include/asm-xen/pgtable-2level.h linux-2.4.28-xen-sparse/include/asm-xen/pgtable.h linux-2.4.28-xen-sparse/include/asm-xen/processor.h linux-2.4.28-xen-sparse/include/asm-xen/queues.h linux-2.4.28-xen-sparse/include/asm-xen/segment.h linux-2.4.28-xen-sparse/include/asm-xen/smp.h linux-2.4.28-xen-sparse/include/asm-xen/synch_bitops.h linux-2.4.28-xen-sparse/include/asm-xen/system.h linux-2.4.28-xen-sparse/include/asm-xen/vga.h linux-2.4.28-xen-sparse/include/asm-xen/xor.h linux-2.4.28-xen-sparse/include/linux/blk.h linux-2.4.28-xen-sparse/include/linux/mm.h linux-2.4.28-xen-sparse/include/linux/sched.h linux-2.4.28-xen-sparse/include/linux/skbuff.h linux-2.4.28-xen-sparse/include/linux/timer.h linux-2.4.28-xen-sparse/kernel/time.c linux-2.4.28-xen-sparse/kernel/timer.c linux-2.4.28-xen-sparse/mkbuildtree linux-2.4.28-xen-sparse/mm/highmem.c linux-2.4.28-xen-sparse/mm/memory.c linux-2.4.28-xen-sparse/mm/mprotect.c linux-2.4.28-xen-sparse/mm/mremap.c linux-2.4.28-xen-sparse/mm/page_alloc.c linux-2.4.28-xen-sparse/mm/swapfile.c linux-2.4.28-xen-sparse/mm/vmalloc.c linux-2.4.28-xen-sparse/net/core/skbuff.c linux-2.6.10-rc2-xen-sparse/arch/xen/configs/xen0_defconfig linux-2.6.10-rc2-xen-sparse/arch/xen/i386/Kconfig linux-2.6.10-rc2-xen-sparse/arch/xen/i386/kernel/cpu/Makefile linux-2.6.10-rc2-xen-sparse/arch/xen/i386/kernel/entry.S linux-2.6.10-rc2-xen-sparse/arch/xen/i386/kernel/ldt.c linux-2.6.10-rc2-xen-sparse/arch/xen/i386/kernel/process.c linux-2.6.10-rc2-xen-sparse/arch/xen/i386/kernel/setup.c linux-2.6.10-rc2-xen-sparse/arch/xen/i386/kernel/traps.c linux-2.6.10-rc2-xen-sparse/arch/xen/i386/mm/hypervisor.c linux-2.6.10-rc2-xen-sparse/arch/xen/i386/mm/init.c linux-2.6.10-rc2-xen-sparse/arch/xen/i386/mm/ioremap.c linux-2.6.10-rc2-xen-sparse/arch/xen/i386/mm/pgtable.c linux-2.6.10-rc2-xen-sparse/drivers/xen/blkfront/blkfront.c linux-2.6.10-rc2-xen-sparse/drivers/xen/blkfront/block.h linux-2.6.10-rc2-xen-sparse/drivers/xen/blkfront/vbd.c linux-2.6.10-rc2-xen-sparse/drivers/xen/console/console.c linux-2.6.10-rc2-xen-sparse/drivers/xen/netfront/netfront.c linux-2.6.10-rc2-xen-sparse/include/asm-xen/asm-i386/fixmap.h linux-2.6.10-rc2-xen-sparse/include/asm-xen/asm-i386/io.h linux-2.6.10-rc2-xen-sparse/include/asm-xen/asm-i386/mach-xen/setup_arch_post.h linux-2.6.10-rc2-xen-sparse/include/asm-xen/asm-i386/page.h linux-2.6.10-rc2-xen-sparse/include/asm-xen/asm-i386/pgtable.h linux-2.6.10-rc2-xen-sparse/include/asm-xen/hypervisor.h linux-2.6.9-xen-sparse/arch/xen/i386/kernel/cpu/mtrr/Makefile linux-2.6.9-xen-sparse/arch/xen/i386/kernel/cpu/mtrr/main.c netbsd-2.0-xen-sparse/nbconfig-xen netbsd-2.0-xen-sparse/nbmake-xen patches/linux-2.6.9/agpgart.patch patches/linux-2.6.9/drm.patch patches/linux-2.6.9/nettel.patch tools/libxutil/Makefile tools/libxutil/debug.h tools/libxutil/enum.c tools/libxutil/enum.h tools/libxutil/hash_table.c tools/libxutil/hash_table.h tools/libxutil/iostream.c tools/libxutil/iostream.h tools/libxutil/kernel_stream.c tools/libxutil/lexis.c tools/libxutil/lexis.h tools/libxutil/socket_stream.c tools/libxutil/socket_stream.h tools/libxutil/string_stream.c tools/libxutil/string_stream.h tools/libxutil/sxpr.c tools/libxutil/sxpr.h tools/libxutil/sxpr_parser.c tools/libxutil/sxpr_parser.h tools/libxutil/sys_net.c tools/libxutil/util.c tools/libxutil/util.h tools/python/xen/xend/XendDomainInfo.py tools/vnet/00README tools/vnet/Makefile tools/vnet/doc/vnet-module.txt tools/vnet/doc/vnet-xend.txt tools/vnet/examples/Makefile tools/vnet/examples/network-vnet tools/vnet/examples/vnet97.sxp tools/vnet/examples/vnet98.sxp tools/vnet/examples/vnet99.sxp tools/vnet/vnet-module/00README tools/vnet/vnet-module/Makefile tools/vnet/vnet-module/Makefile-2.4 tools/vnet/vnet-module/Makefile-2.6 tools/vnet/vnet-module/Makefile.ver tools/vnet/vnet-module/Makefile.vnet tools/vnet/vnet-module/esp.c tools/vnet/vnet-module/esp.h tools/vnet/vnet-module/etherip.c tools/vnet/vnet-module/etherip.h tools/vnet/vnet-module/if_etherip.h tools/vnet/vnet-module/if_varp.h tools/vnet/vnet-module/linux/pfkeyv2.h tools/vnet/vnet-module/random.c tools/vnet/vnet-module/random.h tools/vnet/vnet-module/sa.c tools/vnet/vnet-module/sa.h tools/vnet/vnet-module/sa_algorithm.c tools/vnet/vnet-module/sa_algorithm.h tools/vnet/vnet-module/skb_context.c tools/vnet/vnet-module/skb_context.h tools/vnet/vnet-module/skb_util.c tools/vnet/vnet-module/skb_util.h tools/vnet/vnet-module/tunnel.c tools/vnet/vnet-module/tunnel.h tools/vnet/vnet-module/varp.c tools/vnet/vnet-module/varp.h tools/vnet/vnet-module/varp_socket.c tools/vnet/vnet-module/vif.c tools/vnet/vnet-module/vif.h tools/vnet/vnet-module/vnet.c tools/vnet/vnet-module/vnet.h tools/vnet/vnet-module/vnet_dev.c tools/vnet/vnet-module/vnet_dev.h tools/vnet/vnet-module/vnet_ioctl.c tools/vnet/vnet-module/vnet_ioctl.h tools/vnet/vnetd/Makefile tools/vnet/vnetd/connection.c tools/vnet/vnetd/connection.h tools/vnet/vnetd/marshal.c tools/vnet/vnetd/marshal.h tools/vnet/vnetd/select.c tools/vnet/vnetd/select.h tools/vnet/vnetd/timer.c tools/vnet/vnetd/timer.h tools/vnet/vnetd/vcache.c tools/vnet/vnetd/vcache.h tools/vnet/vnetd/vnetd.c tools/vnet/vnetd/vnetd.h tools/xfrd/Make.xfrd tools/xfrd/Makefile tools/xfrd/debug.h tools/xfrd/enum.c tools/xfrd/enum.h tools/xfrd/hash_table.c tools/xfrd/hash_table.h tools/xfrd/lexis.c tools/xfrd/lexis.h tools/xfrd/sxpr.c tools/xfrd/sxpr.h tools/xfrd/sxpr_parser.c tools/xfrd/sxpr_parser.h tools/xfrd/xen_domain.c tools/xfrd/xfrd.c xen/arch/ia64/privop.c xen/arch/ia64/process.c xen/arch/ia64/regionreg.c xen/arch/ia64/vcpu.c xen/arch/ia64/xenasm.S xen/arch/x86/Makefile xen/arch/x86/dom0_ops.c xen/arch/x86/domain.c xen/arch/x86/extable.c xen/arch/x86/i8259.c xen/arch/x86/idle0_task.c xen/arch/x86/irq.c xen/arch/x86/memory.c xen/arch/x86/mtrr/amd.c xen/arch/x86/mtrr/centaur.c xen/arch/x86/mtrr/cyrix.c xen/arch/x86/mtrr/generic.c xen/arch/x86/mtrr/main.c xen/arch/x86/mtrr/mtrr.h xen/arch/x86/mtrr/state.c xen/arch/x86/nmi.c xen/arch/x86/pdb-stub.c xen/arch/x86/setup.c xen/arch/x86/smp.c xen/arch/x86/smpboot.c xen/arch/x86/traps.c xen/arch/x86/x86_32/asm-offsets.c xen/arch/x86/x86_32/entry.S xen/arch/x86/x86_32/mm.c xen/arch/x86/x86_32/seg_fixup.c xen/arch/x86/x86_32/xen.lds xen/arch/x86/x86_64/xen.lds xen/common/dom_mem_ops.c xen/common/domain.c xen/common/grant_table.c xen/common/multicall.c xen/common/softirq.c xen/include/asm-x86/config.h xen/include/asm-x86/debugger.h xen/include/asm-x86/desc.h xen/include/asm-x86/hardirq.h xen/include/asm-x86/irq.h xen/include/asm-x86/mm.h xen/include/asm-x86/mtrr.h xen/include/asm-x86/multicall.h xen/include/asm-x86/pda.h xen/include/asm-x86/processor.h xen/include/asm-x86/x86_32/asm_defns.h xen/include/asm-x86/x86_32/regs.h xen/include/asm-x86/x86_32/uaccess.h xen/include/asm-x86/x86_64/desc.h xen/include/public/dom0_ops.h xen/include/public/xen.h xen/include/xen/cache.h xen/include/xen/irq.h xen/include/xen/irq_cpustat.h xen/include/xen/keyhandler.h xen/include/xen/multicall.h xen/include/xen/sched.h
line diff
     1.1 --- a/.rootkeys	Fri Nov 19 23:17:26 2004 +0000
     1.2 +++ b/.rootkeys	Mon Nov 29 17:28:03 2004 +0000
     1.3 @@ -44,90 +44,90 @@ 3f815145CB8XdPUqsmhAjSDFuwOoqA extras/mi
     1.4  3f815145vGYx1WY79voKkZB9yKwJKQ extras/mini-os/time.c
     1.5  3f815145xlKBAQmal9oces3G_Mvxqw extras/mini-os/traps.c
     1.6  4187ca95_eQN62ugV1zliQcfzXrHnw install.sh
     1.7 -3e5a4e6589G-U42lFKs43plskXoFxQ linux-2.4.27-xen-sparse/Makefile
     1.8 -3e5a4e65IEPjnWPZ5w3TxS5scV8Ewg linux-2.4.27-xen-sparse/arch/xen/Makefile
     1.9 -3e5a4e65n-KhsEAs-A4ULiStBp-r6w linux-2.4.27-xen-sparse/arch/xen/boot/Makefile
    1.10 -3e5a4e65OV_j_DBtjzt5vej771AJsA linux-2.4.27-xen-sparse/arch/xen/config.in
    1.11 -40648526SxcA4lGIHB_k7ID8VlRSzw linux-2.4.27-xen-sparse/arch/xen/defconfig-xen0
    1.12 -40c73c77QesbL7eIvG-fJGAtVwhGRg linux-2.4.27-xen-sparse/arch/xen/defconfig-xenU
    1.13 -3e6377f5xwPfYZkPHPrDbEq1PRN7uQ linux-2.4.27-xen-sparse/arch/xen/drivers/balloon/Makefile
    1.14 -4083dc16z0jvZEH4PiVDbDRreaNp6w linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/Makefile
    1.15 -4083dc16KQus88a4U3uCV6qVCA6_8Q linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/backend/Makefile
    1.16 -4075806dI5kfeMD5RV-DA0PYoThx_w linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/frontend/Makefile
    1.17 -4075806d4-j7vN0Mn0bklI1cRUX1vQ linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/frontend/common.h
    1.18 -4075806dibjCcfuXv6CINMhxWTw3jQ linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/frontend/vbd.c
    1.19 -3e5a4e65G3e2s0ghPMgiJ-gBTUJ0uQ linux-2.4.27-xen-sparse/arch/xen/drivers/console/Makefile
    1.20 -3e5a4e656nfFISThfbyXQOA6HN6YHw linux-2.4.27-xen-sparse/arch/xen/drivers/dom0/Makefile
    1.21 -40420a6ebRqDjufoN1WSJvolEW2Wjw linux-2.4.27-xen-sparse/arch/xen/drivers/evtchn/Makefile
    1.22 -4083dc16-Kd5y9psK_yk161sme5j5Q linux-2.4.27-xen-sparse/arch/xen/drivers/netif/Makefile
    1.23 -4083dc16UmHXxS9g_UFVnkUpN-oP2Q linux-2.4.27-xen-sparse/arch/xen/drivers/netif/backend/Makefile
    1.24 -405853f2wg7JXZJNltspMwOZJklxgw linux-2.4.27-xen-sparse/arch/xen/drivers/netif/frontend/Makefile
    1.25 -3e5a4e65lWzkiPXsZdzPt2RNnJGG1g linux-2.4.27-xen-sparse/arch/xen/kernel/Makefile
    1.26 -3e5a4e65_hqfuxtGG8IUy6wRM86Ecg linux-2.4.27-xen-sparse/arch/xen/kernel/entry.S
    1.27 -3e5a4e65Hy_1iUvMTPsNqGNXd9uFpg linux-2.4.27-xen-sparse/arch/xen/kernel/head.S
    1.28 -3e5a4e65RMGcuA-HCn3-wNx3fFQwdg linux-2.4.27-xen-sparse/arch/xen/kernel/i386_ksyms.c
    1.29 -3e5a4e653U6cELGv528IxOLHvCq8iA linux-2.4.27-xen-sparse/arch/xen/kernel/irq.c
    1.30 -3e5a4e65muT6SU3ck47IP87Q7Ti5hA linux-2.4.27-xen-sparse/arch/xen/kernel/ldt.c
    1.31 -4051db95N9N99FjsRwi49YKUNHWI8A linux-2.4.27-xen-sparse/arch/xen/kernel/pci-pc.c
    1.32 -3e5a4e65IGt3WwQDNiL4h-gYWgNTWQ linux-2.4.27-xen-sparse/arch/xen/kernel/process.c
    1.33 -3e5a4e66tR-qJMLj3MppcKqmvuI2XQ linux-2.4.27-xen-sparse/arch/xen/kernel/setup.c
    1.34 -3e5a4e66fWSTagLGU2P8BGFGRjhDiw linux-2.4.27-xen-sparse/arch/xen/kernel/signal.c
    1.35 -3e5a4e66N__lUXNwzQ-eADRzK9LXuQ linux-2.4.27-xen-sparse/arch/xen/kernel/time.c
    1.36 -3e5a4e66aHCbQ_F5QZ8VeyikLmuRZQ linux-2.4.27-xen-sparse/arch/xen/kernel/traps.c
    1.37 -3e5a4e66-9_NczrVMbuQkoSLyXckIw linux-2.4.27-xen-sparse/arch/xen/lib/Makefile
    1.38 -3e5a4e6637ZDk0BvFEC-aFQs599-ng linux-2.4.27-xen-sparse/arch/xen/lib/delay.c
    1.39 -3e5a4e66croVgpcJyJuF2ycQw0HuJw linux-2.4.27-xen-sparse/arch/xen/mm/Makefile
    1.40 -3e5a4e66l8Q5Tv-6B3lQIRmaVbFPzg linux-2.4.27-xen-sparse/arch/xen/mm/fault.c
    1.41 -3e5a4e661gLzzff25pJooKIIWe7IWg linux-2.4.27-xen-sparse/arch/xen/mm/init.c
    1.42 -3f0bed43UUdQichXAiVNrjV-y2Kzcg linux-2.4.27-xen-sparse/arch/xen/mm/ioremap.c
    1.43 -3e5a4e66qRlSTcjafidMB6ulECADvg linux-2.4.27-xen-sparse/arch/xen/vmlinux.lds
    1.44 -3e5a4e66mrtlmV75L1tjKDg8RaM5gA linux-2.4.27-xen-sparse/drivers/block/ll_rw_blk.c
    1.45 -40d70c24-Dy2HUMrwSZagfXvAPnI4w linux-2.4.27-xen-sparse/drivers/char/Makefile
    1.46 -3f108aeaLcGDgQdFAANLTUEid0a05w linux-2.4.27-xen-sparse/drivers/char/mem.c
    1.47 -3e5a4e66rw65CxyolW9PKz4GG42RcA linux-2.4.27-xen-sparse/drivers/char/tty_io.c
    1.48 -40c9c0c1pPwYE3-4i-oI3ubUu7UgvQ linux-2.4.27-xen-sparse/drivers/scsi/aic7xxx/Makefile
    1.49 -3e5a4e669uzIE54VwucPYtGwXLAbzA linux-2.4.27-xen-sparse/fs/exec.c
    1.50 -3e5a4e66wbeCpsJgVf_U8Jde-CNcsA linux-2.4.27-xen-sparse/include/asm-xen/bugs.h
    1.51 -3e5a4e66HdSkvIV6SJ1evG_xmTmXHA linux-2.4.27-xen-sparse/include/asm-xen/desc.h
    1.52 -3e5a4e66SYp_UpAVcF8Lc1wa3Qtgzw linux-2.4.27-xen-sparse/include/asm-xen/fixmap.h
    1.53 -406aeeaaQvl4RNtmd9hDEugBURbFpQ linux-2.4.27-xen-sparse/include/asm-xen/highmem.h
    1.54 -3e5a4e67YtcyDLQsShhCfQwPSELfvA linux-2.4.27-xen-sparse/include/asm-xen/hw_irq.h
    1.55 -4060044fVx7-tokvNLKBf_6qBB4lqQ linux-2.4.27-xen-sparse/include/asm-xen/io.h
    1.56 -3e5a4e673p7PEOyHFm3nHkYX6HQYBg linux-2.4.27-xen-sparse/include/asm-xen/irq.h
    1.57 -40d70c240tW7TWArl1VUgIFH2nVO1A linux-2.4.27-xen-sparse/include/asm-xen/keyboard.h
    1.58 -3e5a4e678ddsQOpbSiRdy1GRcDc9WA linux-2.4.27-xen-sparse/include/asm-xen/mmu_context.h
    1.59 -40d06e5b2YWInUX1Xv9amVANwd_2Xg linux-2.4.27-xen-sparse/include/asm-xen/module.h
    1.60 -3f8707e7ZmZ6TxyX0ZUEfvhA2Pb_xQ linux-2.4.27-xen-sparse/include/asm-xen/msr.h
    1.61 -3e5a4e67mnQfh-R8KcQCaVo2Oho6yg linux-2.4.27-xen-sparse/include/asm-xen/page.h
    1.62 -409ba2e7ZfV5hqTvIzxLtpClnxtIzg linux-2.4.27-xen-sparse/include/asm-xen/pci.h
    1.63 -3e5a4e67uTYU5oEnIDjxuaez8njjqg linux-2.4.27-xen-sparse/include/asm-xen/pgalloc.h
    1.64 -3e5a4e67X7JyupgdYkgDX19Huj2sAw linux-2.4.27-xen-sparse/include/asm-xen/pgtable-2level.h
    1.65 -3e5a4e67gr4NLGtQ5CvSLimMYZlkOA linux-2.4.27-xen-sparse/include/asm-xen/pgtable.h
    1.66 -3e5a4e676uK4xErTBDH6XJREn9LSyg linux-2.4.27-xen-sparse/include/asm-xen/processor.h
    1.67 -41224663YBCUMX1kVo_HRUtgaHTi7w linux-2.4.27-xen-sparse/include/asm-xen/queues.h
    1.68 -3e5a4e68uJz-xI0IBVMD7xRLQKJDFg linux-2.4.27-xen-sparse/include/asm-xen/segment.h
    1.69 -3e5a4e68Nfdh6QcOKUTGCaYkf2LmYA linux-2.4.27-xen-sparse/include/asm-xen/smp.h
    1.70 -4062f7e2PzFOUGT0PaE7A0VprTU3JQ linux-2.4.27-xen-sparse/include/asm-xen/synch_bitops.h
    1.71 -3e5a4e68mTr0zcp9SXDbnd-XLrrfxw linux-2.4.27-xen-sparse/include/asm-xen/system.h
    1.72 -3f1056a9L_kqHcFheV00KbKBzv9j5w linux-2.4.27-xen-sparse/include/asm-xen/vga.h
    1.73 -40659defgWA92arexpMGn8X3QMDj3w linux-2.4.27-xen-sparse/include/asm-xen/xor.h
    1.74 -3f056927gMHl7mWB89rb73JahbhQIA linux-2.4.27-xen-sparse/include/linux/blk.h
    1.75  419e0488SBzS3mdUhwgsES5a5e3abA linux-2.4.27-xen-sparse/include/linux/irq.h
    1.76 -4124f66fPHG6yvB_vXmesjvzrJ3yMg linux-2.4.27-xen-sparse/include/linux/mm.h
    1.77 -401c0590D_kwJDU59X8NyvqSv_Cl2A linux-2.4.27-xen-sparse/include/linux/sched.h
    1.78 -40a248afgI0_JKthdYAe8beVfXSTpQ linux-2.4.27-xen-sparse/include/linux/skbuff.h
    1.79 -401c0592pLrp_aCbQRo9GXiYQQaVVA linux-2.4.27-xen-sparse/include/linux/timer.h
    1.80 -3f9d4b44247udoqWEgFkaHiWv6Uvyg linux-2.4.27-xen-sparse/kernel/time.c
    1.81 -401c059bjLBFYHRD4Py2uM3eA1D4zQ linux-2.4.27-xen-sparse/kernel/timer.c
    1.82 -3e6e7c1efbQe93xCvOpOVCnXTMmQ5w linux-2.4.27-xen-sparse/mkbuildtree
    1.83 -406aeeafkrnCuIVWLFv3kfn4uAD5Eg linux-2.4.27-xen-sparse/mm/highmem.c
    1.84 -3e5a4e68GxCIaFH4sy01v1wjapetaA linux-2.4.27-xen-sparse/mm/memory.c
    1.85 -3f108af5VxPkLv13tXpXgoRKALQtXQ linux-2.4.27-xen-sparse/mm/mprotect.c
    1.86 -3e5a4e681xMPdF9xCMwpyfuYMySU5g linux-2.4.27-xen-sparse/mm/mremap.c
    1.87 -409ba2e7akOFqQUg6Qyg2s28xcXiMg linux-2.4.27-xen-sparse/mm/page_alloc.c
    1.88 -3e5a4e683HKVU-sxtagrDasRB8eBVw linux-2.4.27-xen-sparse/mm/swapfile.c
    1.89 -41180721bNns9Na7w1nJ0ZVt8bhUNA linux-2.4.27-xen-sparse/mm/vmalloc.c
    1.90 -41505c57WAd5l1rlfCLNSCpx9J13vA linux-2.4.27-xen-sparse/net/core/skbuff.c
    1.91 +3e5a4e6589G-U42lFKs43plskXoFxQ linux-2.4.28-xen-sparse/Makefile
    1.92 +3e5a4e65IEPjnWPZ5w3TxS5scV8Ewg linux-2.4.28-xen-sparse/arch/xen/Makefile
    1.93 +3e5a4e65n-KhsEAs-A4ULiStBp-r6w linux-2.4.28-xen-sparse/arch/xen/boot/Makefile
    1.94 +3e5a4e65OV_j_DBtjzt5vej771AJsA linux-2.4.28-xen-sparse/arch/xen/config.in
    1.95 +40648526SxcA4lGIHB_k7ID8VlRSzw linux-2.4.28-xen-sparse/arch/xen/defconfig-xen0
    1.96 +40c73c77QesbL7eIvG-fJGAtVwhGRg linux-2.4.28-xen-sparse/arch/xen/defconfig-xenU
    1.97 +3e6377f5xwPfYZkPHPrDbEq1PRN7uQ linux-2.4.28-xen-sparse/arch/xen/drivers/balloon/Makefile
    1.98 +4083dc16z0jvZEH4PiVDbDRreaNp6w linux-2.4.28-xen-sparse/arch/xen/drivers/blkif/Makefile
    1.99 +4083dc16KQus88a4U3uCV6qVCA6_8Q linux-2.4.28-xen-sparse/arch/xen/drivers/blkif/backend/Makefile
   1.100 +4075806dI5kfeMD5RV-DA0PYoThx_w linux-2.4.28-xen-sparse/arch/xen/drivers/blkif/frontend/Makefile
   1.101 +4075806d4-j7vN0Mn0bklI1cRUX1vQ linux-2.4.28-xen-sparse/arch/xen/drivers/blkif/frontend/common.h
   1.102 +4075806dibjCcfuXv6CINMhxWTw3jQ linux-2.4.28-xen-sparse/arch/xen/drivers/blkif/frontend/vbd.c
   1.103 +3e5a4e65G3e2s0ghPMgiJ-gBTUJ0uQ linux-2.4.28-xen-sparse/arch/xen/drivers/console/Makefile
   1.104 +3e5a4e656nfFISThfbyXQOA6HN6YHw linux-2.4.28-xen-sparse/arch/xen/drivers/dom0/Makefile
   1.105 +40420a6ebRqDjufoN1WSJvolEW2Wjw linux-2.4.28-xen-sparse/arch/xen/drivers/evtchn/Makefile
   1.106 +4083dc16-Kd5y9psK_yk161sme5j5Q linux-2.4.28-xen-sparse/arch/xen/drivers/netif/Makefile
   1.107 +4083dc16UmHXxS9g_UFVnkUpN-oP2Q linux-2.4.28-xen-sparse/arch/xen/drivers/netif/backend/Makefile
   1.108 +405853f2wg7JXZJNltspMwOZJklxgw linux-2.4.28-xen-sparse/arch/xen/drivers/netif/frontend/Makefile
   1.109 +3e5a4e65lWzkiPXsZdzPt2RNnJGG1g linux-2.4.28-xen-sparse/arch/xen/kernel/Makefile
   1.110 +3e5a4e65_hqfuxtGG8IUy6wRM86Ecg linux-2.4.28-xen-sparse/arch/xen/kernel/entry.S
   1.111 +3e5a4e65Hy_1iUvMTPsNqGNXd9uFpg linux-2.4.28-xen-sparse/arch/xen/kernel/head.S
   1.112 +3e5a4e65RMGcuA-HCn3-wNx3fFQwdg linux-2.4.28-xen-sparse/arch/xen/kernel/i386_ksyms.c
   1.113 +3e5a4e653U6cELGv528IxOLHvCq8iA linux-2.4.28-xen-sparse/arch/xen/kernel/irq.c
   1.114 +3e5a4e65muT6SU3ck47IP87Q7Ti5hA linux-2.4.28-xen-sparse/arch/xen/kernel/ldt.c
   1.115 +4051db95N9N99FjsRwi49YKUNHWI8A linux-2.4.28-xen-sparse/arch/xen/kernel/pci-pc.c
   1.116 +3e5a4e65IGt3WwQDNiL4h-gYWgNTWQ linux-2.4.28-xen-sparse/arch/xen/kernel/process.c
   1.117 +3e5a4e66tR-qJMLj3MppcKqmvuI2XQ linux-2.4.28-xen-sparse/arch/xen/kernel/setup.c
   1.118 +3e5a4e66fWSTagLGU2P8BGFGRjhDiw linux-2.4.28-xen-sparse/arch/xen/kernel/signal.c
   1.119 +3e5a4e66N__lUXNwzQ-eADRzK9LXuQ linux-2.4.28-xen-sparse/arch/xen/kernel/time.c
   1.120 +3e5a4e66aHCbQ_F5QZ8VeyikLmuRZQ linux-2.4.28-xen-sparse/arch/xen/kernel/traps.c
   1.121 +3e5a4e66-9_NczrVMbuQkoSLyXckIw linux-2.4.28-xen-sparse/arch/xen/lib/Makefile
   1.122 +3e5a4e6637ZDk0BvFEC-aFQs599-ng linux-2.4.28-xen-sparse/arch/xen/lib/delay.c
   1.123 +3e5a4e66croVgpcJyJuF2ycQw0HuJw linux-2.4.28-xen-sparse/arch/xen/mm/Makefile
   1.124 +3e5a4e66l8Q5Tv-6B3lQIRmaVbFPzg linux-2.4.28-xen-sparse/arch/xen/mm/fault.c
   1.125 +3e5a4e661gLzzff25pJooKIIWe7IWg linux-2.4.28-xen-sparse/arch/xen/mm/init.c
   1.126 +3f0bed43UUdQichXAiVNrjV-y2Kzcg linux-2.4.28-xen-sparse/arch/xen/mm/ioremap.c
   1.127 +3e5a4e66qRlSTcjafidMB6ulECADvg linux-2.4.28-xen-sparse/arch/xen/vmlinux.lds
   1.128 +3e5a4e66mrtlmV75L1tjKDg8RaM5gA linux-2.4.28-xen-sparse/drivers/block/ll_rw_blk.c
   1.129 +40d70c24-Dy2HUMrwSZagfXvAPnI4w linux-2.4.28-xen-sparse/drivers/char/Makefile
   1.130 +3f108aeaLcGDgQdFAANLTUEid0a05w linux-2.4.28-xen-sparse/drivers/char/mem.c
   1.131 +3e5a4e66rw65CxyolW9PKz4GG42RcA linux-2.4.28-xen-sparse/drivers/char/tty_io.c
   1.132 +40c9c0c1pPwYE3-4i-oI3ubUu7UgvQ linux-2.4.28-xen-sparse/drivers/scsi/aic7xxx/Makefile
   1.133 +3e5a4e669uzIE54VwucPYtGwXLAbzA linux-2.4.28-xen-sparse/fs/exec.c
   1.134 +3e5a4e66wbeCpsJgVf_U8Jde-CNcsA linux-2.4.28-xen-sparse/include/asm-xen/bugs.h
   1.135 +3e5a4e66HdSkvIV6SJ1evG_xmTmXHA linux-2.4.28-xen-sparse/include/asm-xen/desc.h
   1.136 +3e5a4e66SYp_UpAVcF8Lc1wa3Qtgzw linux-2.4.28-xen-sparse/include/asm-xen/fixmap.h
   1.137 +406aeeaaQvl4RNtmd9hDEugBURbFpQ linux-2.4.28-xen-sparse/include/asm-xen/highmem.h
   1.138 +3e5a4e67YtcyDLQsShhCfQwPSELfvA linux-2.4.28-xen-sparse/include/asm-xen/hw_irq.h
   1.139 +4060044fVx7-tokvNLKBf_6qBB4lqQ linux-2.4.28-xen-sparse/include/asm-xen/io.h
   1.140 +3e5a4e673p7PEOyHFm3nHkYX6HQYBg linux-2.4.28-xen-sparse/include/asm-xen/irq.h
   1.141 +40d70c240tW7TWArl1VUgIFH2nVO1A linux-2.4.28-xen-sparse/include/asm-xen/keyboard.h
   1.142 +3e5a4e678ddsQOpbSiRdy1GRcDc9WA linux-2.4.28-xen-sparse/include/asm-xen/mmu_context.h
   1.143 +40d06e5b2YWInUX1Xv9amVANwd_2Xg linux-2.4.28-xen-sparse/include/asm-xen/module.h
   1.144 +3f8707e7ZmZ6TxyX0ZUEfvhA2Pb_xQ linux-2.4.28-xen-sparse/include/asm-xen/msr.h
   1.145 +3e5a4e67mnQfh-R8KcQCaVo2Oho6yg linux-2.4.28-xen-sparse/include/asm-xen/page.h
   1.146 +409ba2e7ZfV5hqTvIzxLtpClnxtIzg linux-2.4.28-xen-sparse/include/asm-xen/pci.h
   1.147 +3e5a4e67uTYU5oEnIDjxuaez8njjqg linux-2.4.28-xen-sparse/include/asm-xen/pgalloc.h
   1.148 +3e5a4e67X7JyupgdYkgDX19Huj2sAw linux-2.4.28-xen-sparse/include/asm-xen/pgtable-2level.h
   1.149 +3e5a4e67gr4NLGtQ5CvSLimMYZlkOA linux-2.4.28-xen-sparse/include/asm-xen/pgtable.h
   1.150 +3e5a4e676uK4xErTBDH6XJREn9LSyg linux-2.4.28-xen-sparse/include/asm-xen/processor.h
   1.151 +41224663YBCUMX1kVo_HRUtgaHTi7w linux-2.4.28-xen-sparse/include/asm-xen/queues.h
   1.152 +3e5a4e68uJz-xI0IBVMD7xRLQKJDFg linux-2.4.28-xen-sparse/include/asm-xen/segment.h
   1.153 +3e5a4e68Nfdh6QcOKUTGCaYkf2LmYA linux-2.4.28-xen-sparse/include/asm-xen/smp.h
   1.154 +4062f7e2PzFOUGT0PaE7A0VprTU3JQ linux-2.4.28-xen-sparse/include/asm-xen/synch_bitops.h
   1.155 +3e5a4e68mTr0zcp9SXDbnd-XLrrfxw linux-2.4.28-xen-sparse/include/asm-xen/system.h
   1.156 +3f1056a9L_kqHcFheV00KbKBzv9j5w linux-2.4.28-xen-sparse/include/asm-xen/vga.h
   1.157 +40659defgWA92arexpMGn8X3QMDj3w linux-2.4.28-xen-sparse/include/asm-xen/xor.h
   1.158 +3f056927gMHl7mWB89rb73JahbhQIA linux-2.4.28-xen-sparse/include/linux/blk.h
   1.159 +4124f66fPHG6yvB_vXmesjvzrJ3yMg linux-2.4.28-xen-sparse/include/linux/mm.h
   1.160 +401c0590D_kwJDU59X8NyvqSv_Cl2A linux-2.4.28-xen-sparse/include/linux/sched.h
   1.161 +40a248afgI0_JKthdYAe8beVfXSTpQ linux-2.4.28-xen-sparse/include/linux/skbuff.h
   1.162 +401c0592pLrp_aCbQRo9GXiYQQaVVA linux-2.4.28-xen-sparse/include/linux/timer.h
   1.163 +3f9d4b44247udoqWEgFkaHiWv6Uvyg linux-2.4.28-xen-sparse/kernel/time.c
   1.164 +401c059bjLBFYHRD4Py2uM3eA1D4zQ linux-2.4.28-xen-sparse/kernel/timer.c
   1.165 +3e6e7c1efbQe93xCvOpOVCnXTMmQ5w linux-2.4.28-xen-sparse/mkbuildtree
   1.166 +406aeeafkrnCuIVWLFv3kfn4uAD5Eg linux-2.4.28-xen-sparse/mm/highmem.c
   1.167 +3e5a4e68GxCIaFH4sy01v1wjapetaA linux-2.4.28-xen-sparse/mm/memory.c
   1.168 +3f108af5VxPkLv13tXpXgoRKALQtXQ linux-2.4.28-xen-sparse/mm/mprotect.c
   1.169 +3e5a4e681xMPdF9xCMwpyfuYMySU5g linux-2.4.28-xen-sparse/mm/mremap.c
   1.170 +409ba2e7akOFqQUg6Qyg2s28xcXiMg linux-2.4.28-xen-sparse/mm/page_alloc.c
   1.171 +3e5a4e683HKVU-sxtagrDasRB8eBVw linux-2.4.28-xen-sparse/mm/swapfile.c
   1.172 +41180721bNns9Na7w1nJ0ZVt8bhUNA linux-2.4.28-xen-sparse/mm/vmalloc.c
   1.173 +41505c57WAd5l1rlfCLNSCpx9J13vA linux-2.4.28-xen-sparse/net/core/skbuff.c
   1.174  40f562372u3A7_kfbYYixPHJJxYUxA linux-2.6.10-rc2-xen-sparse/arch/xen/Kconfig
   1.175  40f56237utH41NPukqHksuNf29IC9A linux-2.6.10-rc2-xen-sparse/arch/xen/Kconfig.drivers
   1.176  40f56237penAAlWVBVDpeQZNFIg8CA linux-2.6.10-rc2-xen-sparse/arch/xen/Makefile
   1.177 @@ -251,6 +251,8 @@ 412f46c0LJuKAgSPGoC0Z1DEkLfuLA linux-2.6
   1.178  410a94a4KT6I6X0LVc7djB39tRDp4g linux-2.6.10-rc2-xen-sparse/mm/page_alloc.c
   1.179  41505c572m-s9ATiO1LiD1GPznTTIg linux-2.6.10-rc2-xen-sparse/net/core/skbuff.c
   1.180  4149ec79wMpIHdvbntxqVGLRZZjPxw linux-2.6.10-rc2-xen-sparse/net/ipv4/raw.c
   1.181 +41ab440bnpxZdWShZrGgM9pPaz5rmA linux-2.6.9-xen-sparse/arch/xen/i386/kernel/cpu/mtrr/Makefile
   1.182 +41ab440bBKWz-aEOEojU4PAMXe3Ppg linux-2.6.9-xen-sparse/arch/xen/i386/kernel/cpu/mtrr/main.c
   1.183  413cb1e4zst25MDYjg63Y-NGC5_pLg netbsd-2.0-xen-sparse/Makefile
   1.184  413cb1e5c_Mkxf_X0zimEhTKI_l4DA netbsd-2.0-xen-sparse/mkbuildtree
   1.185  413cb1e5kY_Zil7-b0kI6hvCIxBEYg netbsd-2.0-xen-sparse/nbconfig-xen
   1.186 @@ -335,20 +337,35 @@ 40589968UQFnJeOMn8UIFLbXBuwXjw tools/lib
   1.187  40e1b09dMYB4ItGCqcMIzirdMd9I-w tools/libxutil/Makefile
   1.188  40e033325Sjqs-_4TuzeUEprP_gYFg tools/libxutil/allocate.c
   1.189  40e03332KYz7o1bn2MG_KPbBlyoIMA tools/libxutil/allocate.h
   1.190 +41a216cav5JJbtDQnusfuMa_1x_Xpw tools/libxutil/debug.h
   1.191 +40e9808eyjiahG5uF6AMelNVujBzCg tools/libxutil/enum.c
   1.192 +40e9808eZpbdn9q2KSSMGCNvY_ZgpQ tools/libxutil/enum.h
   1.193  40e03332p5Dc_owJQRuN72ymJZddFQ tools/libxutil/file_stream.c
   1.194  40e03332jWfB2viAhLSkq1WK0r_iDQ tools/libxutil/file_stream.h
   1.195  40e03332rUjNMGg11n2rN6V4DCrvOg tools/libxutil/gzip_stream.c
   1.196  40e033321O5Qg22haLoq5lpmk4tooQ tools/libxutil/gzip_stream.h
   1.197 +40e9808easXCzzAZQodEfKAhgUXSPA tools/libxutil/hash_table.c
   1.198 +40e9808e94BNXIVVKBFHC3rnkvwtJg tools/libxutil/hash_table.h
   1.199  40e03332ihnBGzHykVwZnFmkAppb4g tools/libxutil/iostream.c
   1.200  40e03332UGwbLR4wsw4ft14p0Yw5pg tools/libxutil/iostream.h
   1.201  40e0333245DLDzJemeSVBLuutHtzEQ tools/libxutil/kernel_stream.c
   1.202  40e03332aK0GkgpDdc-PVTkWKTeOBg tools/libxutil/kernel_stream.h
   1.203 +40e9808epW9iHcLXuO3QfUfLzB7onw tools/libxutil/lexis.c
   1.204 +40e9808egccMhCizayQRGtpBA3L5MQ tools/libxutil/lexis.h
   1.205 +41a216caM4z39Fzjb91rv9Ed_4By1A tools/libxutil/socket_stream.c
   1.206 +41a216caqinvF1I5FQMHA4HTRz8MSA tools/libxutil/socket_stream.h
   1.207  40e03332KT_tnnoAMbPVAZBB7kSOAQ tools/libxutil/string_stream.c
   1.208  40e03332-VtK6_OZa1vMHXFil8uq6w tools/libxutil/string_stream.h
   1.209 +40e9808e5_PLdodqVOSx0b4T_f5aeg tools/libxutil/sxpr.c
   1.210 +40e9808e0O4sHZtkDv5hlSqjYcdQAQ tools/libxutil/sxpr.h
   1.211 +40ec1cc6SIiGbynOi-1NtPesOlzF-Q tools/libxutil/sxpr_parser.c
   1.212 +40ec1cc6wpvvGxZiq4EFvNOcw0tUFg tools/libxutil/sxpr_parser.h
   1.213  40e03332Rkvq6nn_UNjzAAK_Tk9v1g tools/libxutil/sys_net.c
   1.214  40e03332lQHvQHw4Rh7VsT1_sui29A tools/libxutil/sys_net.h
   1.215  40e033321smklZd7bDSdWvQCeIshtg tools/libxutil/sys_string.c
   1.216  40e03332h5V611rRWURRLqb1Ekatxg tools/libxutil/sys_string.h
   1.217 +41a216cayFe2FQroFuzvNPw1AvNiqQ tools/libxutil/util.c
   1.218 +41a216ca7mgVSnCBHPCLkGOIqPS1CQ tools/libxutil/util.h
   1.219  3f776bd2Xd-dUcPKlPN2vG89VGtfvQ tools/misc/Makefile
   1.220  40ab2cfawIw8tsYo0dQKtp83h4qfTQ tools/misc/fakei386xen
   1.221  3f6dc136ZKOjd8PIqLbFBl_v-rnkGg tools/misc/miniterm/Makefile
   1.222 @@ -527,6 +544,64 @@ 4104ffca-jPHLVOrW0n0VghEXXtKxg tools/sv/
   1.223  40fcefb3yMSrZvApO9ToIi-iQwnchA tools/sv/images/xen.png
   1.224  41013a83z27rKvWIxAfUBMVZ1eDCDg tools/sv/inc/script.js
   1.225  40fcefb3zGC9XNBkSwTEobCoq8YClA tools/sv/inc/style.css
   1.226 +41a21888_WlknVWjSxb32Fo13_ujsw tools/vnet/00README
   1.227 +41a21888bOiOJc7blzRbe4MNJoaYTw tools/vnet/Makefile
   1.228 +41a21888mg2k5HeiVjlQYEtJBZT4Qg tools/vnet/doc/vnet-module.txt
   1.229 +41a21888cuxfT8wjCdRR6V1lqf5NtA tools/vnet/doc/vnet-xend.txt
   1.230 +41a21888xEQJAIGktS6XQ4xz2TyA5g tools/vnet/examples/Makefile
   1.231 +41a21888FGQhPR5LJ1GRtOSIIN3QEw tools/vnet/examples/network-vnet
   1.232 +41a21888QPgKrulCfR9SY_pxZKU0KA tools/vnet/examples/vnet97.sxp
   1.233 +41a21888Gm0UBs1i7HqveT7Yz0u8DQ tools/vnet/examples/vnet98.sxp
   1.234 +41a21888r4oGPuGv2Lxl-thgV3H54w tools/vnet/examples/vnet99.sxp
   1.235 +41a21888c9TCRlUwJS9WBjB3e9aWgg tools/vnet/vnet-module/00README
   1.236 +41a21888K2ItolEkksc1MUqyTDI_Kg tools/vnet/vnet-module/Makefile
   1.237 +41a21888mJsFJD7bVMm-nrnWnalGBw tools/vnet/vnet-module/Makefile-2.4
   1.238 +41a21888Znze3-UCCBZ-Nxpj-bNeHA tools/vnet/vnet-module/Makefile-2.6
   1.239 +41a21889fwc1judJ7DYvyEviSJ3TPg tools/vnet/vnet-module/Makefile.ver
   1.240 +41a21889m_sYkdODF3j5uhMP-Guy9Q tools/vnet/vnet-module/Makefile.vnet
   1.241 +41a21889bXW2lC28U6KS_s5tOJ_W9Q tools/vnet/vnet-module/esp.c
   1.242 +41a21889L2MfLDsUFQxstt-0frIVmw tools/vnet/vnet-module/esp.h
   1.243 +41a21889V1jOsB2JExI-XQl720WHwg tools/vnet/vnet-module/etherip.c
   1.244 +41a21889IpMYbNufHMDXe2ndNw4JxA tools/vnet/vnet-module/etherip.h
   1.245 +41a21889LT9TNqO2EvTFIUTujrkX9w tools/vnet/vnet-module/if_etherip.h
   1.246 +41a21889PESythGZFG6kmSoOkkN2Nw tools/vnet/vnet-module/if_varp.h
   1.247 +41a21889nCPEomHqOyQ4vnhEm4II4g tools/vnet/vnet-module/linux/pfkeyv2.h
   1.248 +41a21889A_fw4pRmCbBfZdtRunM5Eg tools/vnet/vnet-module/random.c
   1.249 +41a218899Xy2dPKSu3pkuqaqkfKMTA tools/vnet/vnet-module/random.h
   1.250 +41a21889rIH5S1dv8ygdSsTGNlg0JA tools/vnet/vnet-module/sa.c
   1.251 +41a218896Z4vxy6gnV9h0fWRWu0lKQ tools/vnet/vnet-module/sa.h
   1.252 +41a21889qFD8BTbDpB55uVmSVDEsgw tools/vnet/vnet-module/sa_algorithm.c
   1.253 +41a21889r2AwTe-OCSSVMxBzz8uDtw tools/vnet/vnet-module/sa_algorithm.h
   1.254 +41a21889tvjtL7O8tMveVB8MdSKPnQ tools/vnet/vnet-module/skb_context.c
   1.255 +41a21889lD_QOUz2Msd7fB5rJQzfxA tools/vnet/vnet-module/skb_context.h
   1.256 +41a21889F1r1xnJamzdeuClR8MNwQg tools/vnet/vnet-module/skb_util.c
   1.257 +41a21889sS4bjVqEna24sS8NpV7SRA tools/vnet/vnet-module/skb_util.h
   1.258 +41a21889MDawEK3J_f_oAGnZznhG2w tools/vnet/vnet-module/tunnel.c
   1.259 +41a218896TlHXpVVqF50uz_u_WMXRw tools/vnet/vnet-module/tunnel.h
   1.260 +41a21889nQYbJbqrOApg_RbkwPtXGg tools/vnet/vnet-module/varp.c
   1.261 +41a21889Pev5MJlqqass6CxN4mmvPw tools/vnet/vnet-module/varp.h
   1.262 +41a21889GbsHHfkpA-PkOvltfEwpMA tools/vnet/vnet-module/varp_socket.c
   1.263 +41a21889sknn8zd5xCJlpQbs7MvxKg tools/vnet/vnet-module/vif.c
   1.264 +41a21889VsKKWpe6rcXOSLPy2FuNWQ tools/vnet/vnet-module/vif.h
   1.265 +41a21889dgkOyuSTVqy7D8TPIzrUyw tools/vnet/vnet-module/vnet.c
   1.266 +41a21889ocAdwk7V1nNt4iBpmYW-Mw tools/vnet/vnet-module/vnet.h
   1.267 +41a21889YrTiC0ArJSGFtiaHz2j1qQ tools/vnet/vnet-module/vnet_dev.c
   1.268 +41a21889rHT4vrC4VAfk7-xP_K5aBg tools/vnet/vnet-module/vnet_dev.h
   1.269 +41a21889qJj6GjT2f5hMHRvPS1AW4w tools/vnet/vnet-module/vnet_ioctl.c
   1.270 +41a2188a8W4xYB0LYm512agtoEv52g tools/vnet/vnet-module/vnet_ioctl.h
   1.271 +41a2188aFF_1T9OgpqUjjjaCqKB8lw tools/vnet/vnetd/Makefile
   1.272 +41a2188a9j84qS4CxqMLVCvyGpA93w tools/vnet/vnetd/connection.c
   1.273 +41a2188atexNEami9TNVYNkRSb7Bqg tools/vnet/vnetd/connection.h
   1.274 +41a2188abgYpITSrWoMGHHrM56nklw tools/vnet/vnetd/marshal.c
   1.275 +41a2188aUbOi5tAYwOS4aPixo1EGwQ tools/vnet/vnetd/marshal.h
   1.276 +41a2188aDJlSVB1s_st2MSWxW8kMwg tools/vnet/vnetd/select.c
   1.277 +41a2188aE9LUDdSSwNT3BWVWCvGSnQ tools/vnet/vnetd/select.h
   1.278 +41a2188aTbMKv_Eig12dSrBUEBl1Jg tools/vnet/vnetd/timer.c
   1.279 +41a2188aIzBGqQ6DUVzCxfBsN0Q6Ww tools/vnet/vnetd/timer.h
   1.280 +41a2188aIf3Xk6uvk7KzjdpOsflAEw tools/vnet/vnetd/vcache.c
   1.281 +41a2188ar6_vOO3_tEJQjmFVU3409A tools/vnet/vnetd/vcache.h
   1.282 +41a2188aETrGU60X9WtGhYVfU7z0Pw tools/vnet/vnetd/vnetd.c
   1.283 +41a2188ahYjemudGyB7078AWMFR-0w tools/vnet/vnetd/vnetd.h
   1.284  4194e861IgTabTt8HOuh143QIJFD1Q tools/x2d2/Makefile
   1.285  4194e861M2gcBz4i94cQYpqzi8n6UA tools/x2d2/cntrl_con.c
   1.286  4194e8612TrrMvC8ZlA4h2ZYCPWz4g tools/x2d2/minixend.c
   1.287 @@ -543,23 +618,13 @@ 40e9808epTR4zWrYjGUnaaynK20Q5A tools/xfr
   1.288  40e9808eysqT4VNDlJFqsZB2rdg4Qw tools/xfrd/connection.c
   1.289  40e9808eyXfJUi4E0C3WSgrEXqQ1sQ tools/xfrd/connection.h
   1.290  40e9808eULGwffNOE4kBrAfZ9YAVMA tools/xfrd/debug.h
   1.291 -40e9808eyjiahG5uF6AMelNVujBzCg tools/xfrd/enum.c
   1.292 -40e9808eZpbdn9q2KSSMGCNvY_ZgpQ tools/xfrd/enum.h
   1.293 -40e9808easXCzzAZQodEfKAhgUXSPA tools/xfrd/hash_table.c
   1.294 -40e9808e94BNXIVVKBFHC3rnkvwtJg tools/xfrd/hash_table.h
   1.295  411b5139tfKZfWs1LQHmwDR_wjKoxQ tools/xfrd/http.h
   1.296 -40e9808epW9iHcLXuO3QfUfLzB7onw tools/xfrd/lexis.c
   1.297 -40e9808egccMhCizayQRGtpBA3L5MQ tools/xfrd/lexis.h
   1.298  40e9808ePADCSKL1YgGCt2TbYPnYkw tools/xfrd/lzi_stream.c
   1.299  40e9808eDNAdpF71o5teYb9DTT-PRw tools/xfrd/lzi_stream.h
   1.300  40e9808eQxi0EzTcPJtosrzxEIjA-Q tools/xfrd/marshal.c
   1.301  40e9808etg13xfRm0Lqd8vY-jHOoTg tools/xfrd/marshal.h
   1.302  40e9808eCsmywryb036TdtRMJHDMmQ tools/xfrd/select.c
   1.303  40e9808e99OcM547cKMTfmCVSoWVAw tools/xfrd/select.h
   1.304 -40e9808e5_PLdodqVOSx0b4T_f5aeg tools/xfrd/sxpr.c
   1.305 -40e9808e0O4sHZtkDv5hlSqjYcdQAQ tools/xfrd/sxpr.h
   1.306 -40ec1cc6SIiGbynOi-1NtPesOlzF-Q tools/xfrd/sxpr_parser.c
   1.307 -40ec1cc6wpvvGxZiq4EFvNOcw0tUFg tools/xfrd/sxpr_parser.h
   1.308  40e9808eF3NVldqRNS5IHM8gbFAvpw tools/xfrd/xdr.c
   1.309  40e9808ezXzoRHm7pybXU69NtnjimA tools/xfrd/xdr.h
   1.310  40e9808edpUtf4bJ8IbqClPJj_OvbA tools/xfrd/xen_domain.c
   1.311 @@ -570,6 +635,11 @@ 40e9808eHXvs_5eggj9McD_J90mhNw tools/xfr
   1.312  3f72f1bdJPsV3JCnBqs9ddL9tr6D2g xen/COPYING
   1.313  3ddb79bcbOVHh38VJzc97-JEGD4dJQ xen/Makefile
   1.314  3ddb79bcWnTwYsQRWl_PaneJfa6p0w xen/Rules.mk
   1.315 +41a26ebcqaSGVQ8qTMwpPwOJSJ7qSw xen/arch/ia64/privop.c
   1.316 +41a26ebc4BOHDUsT0TSnryPeV2xfRA xen/arch/ia64/process.c
   1.317 +41a26ebcJ30TFl1v2kR8rqpEBvOtVw xen/arch/ia64/regionreg.c
   1.318 +41a26ebc--sjlYZQxmIxyCx3jw70qA xen/arch/ia64/vcpu.c
   1.319 +41a26ebc4jSBGQOuyNIPDST58mNbBw xen/arch/ia64/xenasm.S
   1.320  3ddb79bcZbRBzT3elFWSX7u6NtMagQ xen/arch/x86/Makefile
   1.321  3ddb79bcBQF85CfLS4i1WGZ4oLLaCA xen/arch/x86/Rules.mk
   1.322  3e5636e5FAYZ5_vQnmgwFJfSdmO5Mw xen/arch/x86/acpi.c
   1.323 @@ -589,6 +659,13 @@ 3ddb79bcKIkRR0kqWaJhe5VUDkMdxg xen/arch/
   1.324  3ddb79bdqfIcjkz_h9Hvtp8Tk_19Zw xen/arch/x86/irq.c
   1.325  40ec29ffuOa1ZvmJHzFKyZn4k_RcXg xen/arch/x86/memory.c
   1.326  3ddb79bdS4UeWWXDH-FaBKqcpMFcnw xen/arch/x86/mpparse.c
   1.327 +41aaf566Z4sTDgJ77eEg0TzzQ1ka6Q xen/arch/x86/mtrr/amd.c
   1.328 +41aaf566TOpOBXT00wwQGUh20f1rlA xen/arch/x86/mtrr/centaur.c
   1.329 +41aaf566yhr0zKYnGVSOQpkWMM0Kiw xen/arch/x86/mtrr/cyrix.c
   1.330 +41aaf567t3hFKsyfEFoy3KAnB-bj8w xen/arch/x86/mtrr/generic.c
   1.331 +41aaf567tqrKGSTDK8OVeAbpeoccPw xen/arch/x86/mtrr/main.c
   1.332 +41aaf567a36esU-rUK7twPiv-yTFyw xen/arch/x86/mtrr/mtrr.h
   1.333 +41aaf567DcTL6pqVtLZJI5cSryyA1A xen/arch/x86/mtrr/state.c
   1.334  3f12cff65EV3qOG2j37Qm0ShgvXGRw xen/arch/x86/nmi.c
   1.335  3ddb79bdHe6_Uij4-glW91vInNtBYQ xen/arch/x86/pci-irq.c
   1.336  3ddb79bcZ_2FxINljqNSkqa17ISyJw xen/arch/x86/pci-pc.c
   1.337 @@ -628,6 +705,7 @@ 3ddb79bd9drcFPVxd4w2GPOIjLlXpA xen/commo
   1.338  3e4cd9d8LAAghUY0hNIK72uc2ch_Nw xen/common/keyhandler.c
   1.339  3ddb79bduhSEZI8xa7IbGQCpap5y2A xen/common/lib.c
   1.340  3ddb79bdS39UXxUtZnaScie83-7VTQ xen/common/memory.c
   1.341 +41a61536SZbR6cj1ukWTb0DYU-vz9w xen/common/multicall.c
   1.342  3ddb79bdD4SLmmdMD7yLW5HcUWucXw xen/common/page_alloc.c
   1.343  3e54c38dkHAev597bPr71-hGzTdocg xen/common/perfc.c
   1.344  4051bcecFeq4DE70p4zGO5setf47CA xen/common/physdev.c
   1.345 @@ -723,6 +801,8 @@ 3ddb79c3I98vWcQR8xEo34JMJ4Ahyw xen/inclu
   1.346  40ec25fd7cSvbP7Biw91zaU_g0xsEQ xen/include/asm-x86/mm.h
   1.347  3ddb79c3n_UbPuxlkNxvvLycClIkxA xen/include/asm-x86/mpspec.h
   1.348  3ddb79c2wa0dA_LGigxOelSGbJ284Q xen/include/asm-x86/msr.h
   1.349 +41aaf567Mi3OishhvrCtET1y-mxQBg xen/include/asm-x86/mtrr.h
   1.350 +41a61536MFhNalgbVmYGXAhQsPTZNw xen/include/asm-x86/multicall.h
   1.351  3ddb79c3xjYnrv5t3VqYlR4tNEOl4Q xen/include/asm-x86/page.h
   1.352  3ddb79c3ysKUbxZuwKBRK3WXU2TlEg xen/include/asm-x86/pci.h
   1.353  404f1bb41Yl-5ZjIWnG66HDCj6OIWA xen/include/asm-x86/pda.h
   1.354 @@ -784,6 +864,7 @@ 3ddb79c1NfYlOrWNqgZkj9EwtFfJow xen/inclu
   1.355  3ddb79c18Ajy7micDGQQfJ0zWgEHtA xen/include/xen/list.h
   1.356  3ddb79c1gs2VbLbQlw0dcDUXYIepDA xen/include/xen/mm.h
   1.357  3ddb79c1ieLZfGSFwfvvSQ2NK1BMSg xen/include/xen/multiboot.h
   1.358 +41a61536ii6j2lJ2rXwMOLaG1CHPvw xen/include/xen/multicall.h
   1.359  3ddb79c2Fg44_PBPVxHSC0gTOMq4Ow xen/include/xen/pci.h
   1.360  3ddb79c0MOVXq8qZDQRGb6z64_xAwg xen/include/xen/pci_ids.h
   1.361  3e54c38dlSCVdyVM4PKcrSfzLLxWUQ xen/include/xen/perfc.h
     2.1 --- a/BitKeeper/etc/ignore	Fri Nov 19 23:17:26 2004 +0000
     2.2 +++ b/BitKeeper/etc/ignore	Mon Nov 29 17:28:03 2004 +0000
     2.3 @@ -59,6 +59,13 @@ tools/check/.*
     2.4  tools/libxc/xen/*
     2.5  tools/misc/miniterm/miniterm
     2.6  tools/misc/xen_cpuperf
     2.7 +tools/vnet/gc
     2.8 +tools/vnet/gc*/*
     2.9 +tools/vnet/vnet-module/.tmp_versions/*
    2.10 +tools/vnet/vnet-module/.*.cmd
    2.11 +tools/vnet/vnet-module/*.ko
    2.12 +tools/vnet/vnet-module/vnet_module.mod.*
    2.13 +tools/vnetd/vnetd
    2.14  tools/web-shutdown.tap
    2.15  tools/xentrace/xentrace
    2.16  tools/xfrd/xfrd
     3.1 --- a/Makefile	Fri Nov 19 23:17:26 2004 +0000
     3.2 +++ b/Makefile	Mon Nov 29 17:28:03 2004 +0000
     3.3 @@ -7,9 +7,12 @@ INSTALL_DIR ?= $(DIST_DIR)/install
     3.4  
     3.5  KERNELS ?= linux-2.6-xen0 linux-2.6-xenU
     3.6  # linux-2.4-xen0 linux-2.4-xenU netbsd-2.0-xenU
     3.7 +# You may use wildcards in the above e.g. KERNELS=*2.4*
     3.8  
     3.9  ALLKERNELS = $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.*))
    3.10  ALLSPARSETREES = $(patsubst %-xen-sparse,%,$(wildcard *-xen-sparse))
    3.11 +XKERNELS := $(foreach kernel, $(KERNELS), $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.$(kernel))) )
    3.12 +
    3.13  
    3.14  export INSTALL_DIR
    3.15  
    3.16 @@ -46,7 +49,7 @@ tools:
    3.17  	$(MAKE) prefix=$(INSTALL_DIR) dist=yes -C tools install
    3.18  
    3.19  kernels:
    3.20 -	for i in $(KERNELS) ; do $(MAKE) $$i-build ; done
    3.21 +	for i in $(XKERNELS) ; do $(MAKE) $$i-build ; done
    3.22  
    3.23  docs:
    3.24  	sh ./docs/check_pkgs && \
    3.25 @@ -57,11 +60,11 @@ kbuild: kernels
    3.26  
    3.27  # Delete the kernel build trees entirely
    3.28  kdelete:
    3.29 -	for i in $(KERNELS) ; do $(MAKE) $$i-delete ; done
    3.30 +	for i in $(XKERNELS) ; do $(MAKE) $$i-delete ; done
    3.31  
    3.32  # Clean the kernel build trees
    3.33  kclean:
    3.34 -	for i in $(KERNELS) ; do $(MAKE) $$i-clean ; done
    3.35 +	for i in $(XKERNELS) ; do $(MAKE) $$i-clean ; done
    3.36  
    3.37  # Make patches from kernel sparse trees
    3.38  mkpatches:
     4.1 --- a/buildconfigs/Rules.mk	Fri Nov 19 23:17:26 2004 +0000
     4.2 +++ b/buildconfigs/Rules.mk	Mon Nov 29 17:28:03 2004 +0000
     4.3 @@ -48,6 +48,9 @@ pristine-%: %.tar.bz2
     4.4  	mv tmp-$(@F)/* $@
     4.5  	touch $@ # update timestamp to avoid rebuild
     4.6  	@rm -rf tmp-$(@F)
     4.7 +	[ -d patches/$* ] && \
     4.8 +	  for i in patches/$*/*.patch ; do ( cd $@ ; patch -p1 <../$$i ) ; done || \
     4.9 +	  true
    4.10  
    4.11  %-build:
    4.12  	$(MAKE) -f buildconfigs/mk.$* build
     5.1 --- a/docs/src/user.tex	Fri Nov 19 23:17:26 2004 +0000
     5.2 +++ b/docs/src/user.tex	Mon Nov 29 17:28:03 2004 +0000
     5.3 @@ -707,7 +707,9 @@ culminating in a login prompt.
     5.4  Ttylinux is a very small Linux distribution, designed to require very
     5.5  few resources.  We will use it as a concrete example of how to start a
     5.6  Xen domain.  Most users will probably want to install a full-featured
     5.7 -distribution once they have mastered the basics.
     5.8 +distribution once they have mastered the basics\footnote{ttylinux is
     5.9 +maintained by Pascal Schmidt. You can download source packages from
    5.10 +the distribution's home page: {\tt http://www.minimalinux.org/ttylinux/}}.
    5.11  
    5.12  \begin{enumerate}
    5.13  \item Download and extract the ttylinux disk image from the Files
     6.1 --- a/linux-2.4.27-xen-sparse/Makefile	Fri Nov 19 23:17:26 2004 +0000
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,592 +0,0 @@
     6.4 -VERSION = 2
     6.5 -PATCHLEVEL = 4
     6.6 -SUBLEVEL = 27
     6.7 -EXTRAVERSION =
     6.8 -
     6.9 -KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
    6.10 -
    6.11 -# SUBARCH always tells us the underlying machine architecture.
    6.12 -# Unless overridden, by default ARCH is equivalent to SUBARCH.
    6.13 -# This will be overriden for Xen and UML builds.
    6.14 -SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
    6.15 -ARCH ?= $(SUBARCH)
    6.16 -
    6.17 -## XXX The following hack can be discarded after users have adjusted to the
    6.18 -## architectural name change 'xeno' -> 'xen'.
    6.19 -ifeq ($(ARCH),xeno)
    6.20 -  ARCH := xen
    6.21 -endif
    6.22 -
    6.23 -KERNELPATH=kernel-$(shell echo $(KERNELRELEASE) | sed -e "s/-//g")
    6.24 -
    6.25 -CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
    6.26 -	  else if [ -x /bin/bash ]; then echo /bin/bash; \
    6.27 -	  else echo sh; fi ; fi)
    6.28 -TOPDIR	:= $(shell /bin/pwd)
    6.29 -
    6.30 -HPATH   	= $(TOPDIR)/include
    6.31 -FINDHPATH	= $(HPATH)/asm $(HPATH)/linux $(HPATH)/scsi $(HPATH)/net $(HPATH)/math-emu
    6.32 -
    6.33 -HOSTCC  	= gcc
    6.34 -HOSTCFLAGS	= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
    6.35 -
    6.36 -CROSS_COMPILE 	=
    6.37 -
    6.38 -#
    6.39 -# Include the make variables (CC, etc...)
    6.40 -#
    6.41 -
    6.42 -AS		= $(CROSS_COMPILE)as
    6.43 -LD		= $(CROSS_COMPILE)ld
    6.44 -CC		= $(CROSS_COMPILE)gcc
    6.45 -CPP		= $(CC) -E
    6.46 -AR		= $(CROSS_COMPILE)ar
    6.47 -NM		= $(CROSS_COMPILE)nm
    6.48 -STRIP		= $(CROSS_COMPILE)strip
    6.49 -OBJCOPY		= $(CROSS_COMPILE)objcopy
    6.50 -OBJDUMP		= $(CROSS_COMPILE)objdump
    6.51 -MAKEFILES	= $(TOPDIR)/.config
    6.52 -GENKSYMS	= /sbin/genksyms
    6.53 -DEPMOD		= /sbin/depmod
    6.54 -MODFLAGS	= -DMODULE
    6.55 -CFLAGS_KERNEL	=
    6.56 -PERL		= perl
    6.57 -AWK		= awk
    6.58 -RPM 		:= $(shell if [ -x "/usr/bin/rpmbuild" ]; then echo rpmbuild; \
    6.59 -		    	else echo rpm; fi)
    6.60 -
    6.61 -export	VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION KERNELRELEASE ARCH \
    6.62 -	CONFIG_SHELL TOPDIR HPATH HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC \
    6.63 -	CPP AR NM STRIP OBJCOPY OBJDUMP MAKE MAKEFILES GENKSYMS MODFLAGS PERL AWK
    6.64 -
    6.65 -all:	do-it-all
    6.66 -
    6.67 -#
    6.68 -# Make "config" the default target if there is no configuration file or
    6.69 -# "depend" the target if there is no top-level dependency information.
    6.70 -#
    6.71 -
    6.72 -ifeq (.config,$(wildcard .config))
    6.73 -include .config
    6.74 -ifeq (.depend,$(wildcard .depend))
    6.75 -include .depend
    6.76 -do-it-all:	Version vmlinux
    6.77 -else
    6.78 -CONFIGURATION = depend
    6.79 -do-it-all:	depend
    6.80 -endif
    6.81 -else
    6.82 -CONFIGURATION = config
    6.83 -do-it-all:	config
    6.84 -endif
    6.85 -
    6.86 -#
    6.87 -# INSTALL_PATH specifies where to place the updated kernel and system map
    6.88 -# images.  Uncomment if you want to place them anywhere other than root.
    6.89 -#
    6.90 -
    6.91 -#export	INSTALL_PATH=/boot
    6.92 -
    6.93 -#
    6.94 -# INSTALL_MOD_PATH specifies a prefix to MODLIB for module directory
    6.95 -# relocations required by build roots.  This is not defined in the
    6.96 -# makefile but the arguement can be passed to make if needed.
    6.97 -#
    6.98 -
    6.99 -MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
   6.100 -export MODLIB
   6.101 -
   6.102 -#
   6.103 -# standard CFLAGS
   6.104 -#
   6.105 -
   6.106 -CPPFLAGS := -D__KERNEL__ -I$(HPATH)
   6.107 -
   6.108 -CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
   6.109 -	  -fno-strict-aliasing -fno-common
   6.110 -ifndef CONFIG_FRAME_POINTER
   6.111 -CFLAGS += -fomit-frame-pointer
   6.112 -endif
   6.113 -AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS)
   6.114 -
   6.115 -#
   6.116 -# ROOT_DEV specifies the default root-device when making the image.
   6.117 -# This can be either FLOPPY, CURRENT, /dev/xxxx or empty, in which case
   6.118 -# the default of FLOPPY is used by 'build'.
   6.119 -# This is i386 specific.
   6.120 -#
   6.121 -
   6.122 -export ROOT_DEV = CURRENT
   6.123 -
   6.124 -#
   6.125 -# If you want to preset the SVGA mode, uncomment the next line and
   6.126 -# set SVGA_MODE to whatever number you want.
   6.127 -# Set it to -DSVGA_MODE=NORMAL_VGA if you just want the EGA/VGA mode.
   6.128 -# The number is the same as you would ordinarily press at bootup.
   6.129 -# This is i386 specific.
   6.130 -#
   6.131 -
   6.132 -export SVGA_MODE = -DSVGA_MODE=NORMAL_VGA
   6.133 -
   6.134 -#
   6.135 -# If you want the RAM disk device, define this to be the size in blocks.
   6.136 -# This is i386 specific.
   6.137 -#
   6.138 -
   6.139 -#export RAMDISK = -DRAMDISK=512
   6.140 -
   6.141 -CORE_FILES	=kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
   6.142 -NETWORKS	=net/network.o
   6.143 -
   6.144 -LIBS		=$(TOPDIR)/lib/lib.a
   6.145 -SUBDIRS		=kernel drivers mm fs net ipc lib crypto
   6.146 -
   6.147 -DRIVERS-n :=
   6.148 -DRIVERS-y :=
   6.149 -DRIVERS-m :=
   6.150 -DRIVERS-  :=
   6.151 -
   6.152 -DRIVERS-$(CONFIG_ACPI_BOOT) += drivers/acpi/acpi.o
   6.153 -DRIVERS-$(CONFIG_PARPORT) += drivers/parport/driver.o
   6.154 -DRIVERS-y += drivers/char/char.o \
   6.155 -	drivers/block/block.o \
   6.156 -	drivers/misc/misc.o \
   6.157 -	drivers/net/net.o
   6.158 -DRIVERS-$(CONFIG_AGP) += drivers/char/agp/agp.o
   6.159 -DRIVERS-$(CONFIG_DRM_NEW) += drivers/char/drm/drm.o
   6.160 -DRIVERS-$(CONFIG_DRM_OLD) += drivers/char/drm-4.0/drm.o
   6.161 -DRIVERS-$(CONFIG_NUBUS) += drivers/nubus/nubus.a
   6.162 -DRIVERS-$(CONFIG_NET_FC) += drivers/net/fc/fc.o
   6.163 -DRIVERS-$(CONFIG_DEV_APPLETALK) += drivers/net/appletalk/appletalk.o
   6.164 -DRIVERS-$(CONFIG_TR) += drivers/net/tokenring/tr.o
   6.165 -DRIVERS-$(CONFIG_WAN) += drivers/net/wan/wan.o
   6.166 -DRIVERS-$(CONFIG_ARCNET) += drivers/net/arcnet/arcnetdrv.o
   6.167 -DRIVERS-$(CONFIG_ATM) += drivers/atm/atm.o
   6.168 -DRIVERS-$(CONFIG_IDE) += drivers/ide/idedriver.o
   6.169 -DRIVERS-$(CONFIG_FC4) += drivers/fc4/fc4.a
   6.170 -DRIVERS-$(CONFIG_SCSI) += drivers/scsi/scsidrv.o
   6.171 -DRIVERS-$(CONFIG_FUSION_BOOT) += drivers/message/fusion/fusion.o
   6.172 -DRIVERS-$(CONFIG_IEEE1394) += drivers/ieee1394/ieee1394drv.o
   6.173 -
   6.174 -ifneq ($(CONFIG_CD_NO_IDESCSI)$(CONFIG_BLK_DEV_IDECD)$(CONFIG_BLK_DEV_SR)$(CONFIG_PARIDE_PCD),)
   6.175 -DRIVERS-y += drivers/cdrom/driver.o
   6.176 -endif
   6.177 -
   6.178 -DRIVERS-$(CONFIG_SOUND) += drivers/sound/sounddrivers.o
   6.179 -DRIVERS-$(CONFIG_PCI) += drivers/pci/driver.o
   6.180 -DRIVERS-$(CONFIG_MTD) += drivers/mtd/mtdlink.o
   6.181 -DRIVERS-$(CONFIG_PCMCIA) += drivers/pcmcia/pcmcia.o
   6.182 -DRIVERS-$(CONFIG_NET_PCMCIA) += drivers/net/pcmcia/pcmcia_net.o
   6.183 -DRIVERS-$(CONFIG_NET_WIRELESS) += drivers/net/wireless/wireless_net.o
   6.184 -DRIVERS-$(CONFIG_PCMCIA_CHRDEV) += drivers/char/pcmcia/pcmcia_char.o
   6.185 -DRIVERS-$(CONFIG_DIO) += drivers/dio/dio.a
   6.186 -DRIVERS-$(CONFIG_SBUS) += drivers/sbus/sbus_all.o
   6.187 -DRIVERS-$(CONFIG_ZORRO) += drivers/zorro/driver.o
   6.188 -DRIVERS-$(CONFIG_FC4) += drivers/fc4/fc4.a
   6.189 -DRIVERS-$(CONFIG_PPC32) += drivers/macintosh/macintosh.o
   6.190 -DRIVERS-$(CONFIG_MAC) += drivers/macintosh/macintosh.o
   6.191 -DRIVERS-$(CONFIG_ISAPNP) += drivers/pnp/pnp.o
   6.192 -DRIVERS-$(CONFIG_I2C) += drivers/i2c/i2c.o
   6.193 -DRIVERS-$(CONFIG_VT) += drivers/video/video.o
   6.194 -DRIVERS-$(CONFIG_PARIDE) += drivers/block/paride/paride.a
   6.195 -DRIVERS-$(CONFIG_HAMRADIO) += drivers/net/hamradio/hamradio.o
   6.196 -DRIVERS-$(CONFIG_TC) += drivers/tc/tc.a
   6.197 -DRIVERS-$(CONFIG_USB) += drivers/usb/usbdrv.o
   6.198 -DRIVERS-$(CONFIG_USB_GADGET) += drivers/usb/gadget/built-in.o
   6.199 -DRIVERS-y +=drivers/media/media.o
   6.200 -DRIVERS-$(CONFIG_INPUT) += drivers/input/inputdrv.o
   6.201 -DRIVERS-$(CONFIG_HIL) += drivers/hil/hil.o
   6.202 -DRIVERS-$(CONFIG_I2O) += drivers/message/i2o/i2o.o
   6.203 -DRIVERS-$(CONFIG_IRDA) += drivers/net/irda/irda.o
   6.204 -DRIVERS-$(CONFIG_PHONE) += drivers/telephony/telephony.o
   6.205 -DRIVERS-$(CONFIG_MD) += drivers/md/mddev.o
   6.206 -DRIVERS-$(CONFIG_GSC) += drivers/gsc/gscbus.o
   6.207 -DRIVERS-$(CONFIG_BLUEZ) += drivers/bluetooth/bluetooth.o
   6.208 -DRIVERS-$(CONFIG_HOTPLUG_PCI) += drivers/hotplug/vmlinux-obj.o
   6.209 -DRIVERS-$(CONFIG_ISDN_BOOL) += drivers/isdn/vmlinux-obj.o
   6.210 -DRIVERS-$(CONFIG_CRYPTO) += crypto/crypto.o
   6.211 -
   6.212 -DRIVERS := $(DRIVERS-y)
   6.213 -
   6.214 -
   6.215 -# files removed with 'make clean'
   6.216 -CLEAN_FILES = \
   6.217 -	kernel/ksyms.lst include/linux/compile.h \
   6.218 -	vmlinux System.map \
   6.219 -	.tmp* \
   6.220 -	drivers/char/consolemap_deftbl.c drivers/video/promcon_tbl.c \
   6.221 -	drivers/char/conmakehash \
   6.222 -	drivers/char/drm/*-mod.c \
   6.223 -	drivers/pci/devlist.h drivers/pci/classlist.h drivers/pci/gen-devlist \
   6.224 -	drivers/zorro/devlist.h drivers/zorro/gen-devlist \
   6.225 -	drivers/sound/bin2hex drivers/sound/hex2hex \
   6.226 -	drivers/atm/fore200e_mkfirm drivers/atm/{pca,sba}*{.bin,.bin1,.bin2} \
   6.227 -	drivers/scsi/aic7xxx/aicasm/aicasm \
   6.228 -	drivers/scsi/aic7xxx/aicasm/aicasm_gram.c \
   6.229 -	drivers/scsi/aic7xxx/aicasm/aicasm_gram.h \
   6.230 -	drivers/scsi/aic7xxx/aicasm/aicasm_macro_gram.c \
   6.231 -	drivers/scsi/aic7xxx/aicasm/aicasm_macro_gram.h \
   6.232 -	drivers/scsi/aic7xxx/aicasm/aicasm_macro_scan.c \
   6.233 -	drivers/scsi/aic7xxx/aicasm/aicasm_scan.c \
   6.234 -	drivers/scsi/aic7xxx/aicasm/aicdb.h \
   6.235 -	drivers/scsi/aic7xxx/aicasm/y.tab.h \
   6.236 -	drivers/scsi/53c700_d.h \
   6.237 -	drivers/tc/lk201-map.c \
   6.238 -	net/khttpd/make_times_h \
   6.239 -	net/khttpd/times.h \
   6.240 -	submenu* \
   6.241 -	drivers/ieee1394/oui.c
   6.242 -# directories removed with 'make clean'
   6.243 -CLEAN_DIRS = \
   6.244 -	modules
   6.245 -
   6.246 -# files removed with 'make mrproper'
   6.247 -MRPROPER_FILES = \
   6.248 -	include/linux/autoconf.h include/linux/version.h \
   6.249 -	lib/crc32table.h lib/gen_crc32table \
   6.250 -	drivers/net/hamradio/soundmodem/sm_tbl_{afsk1200,afsk2666,fsk9600}.h \
   6.251 -	drivers/net/hamradio/soundmodem/sm_tbl_{hapn4800,psk4800}.h \
   6.252 -	drivers/net/hamradio/soundmodem/sm_tbl_{afsk2400_7,afsk2400_8}.h \
   6.253 -	drivers/net/hamradio/soundmodem/gentbl \
   6.254 -	drivers/sound/*_boot.h drivers/sound/.*.boot \
   6.255 -	drivers/sound/msndinit.c \
   6.256 -	drivers/sound/msndperm.c \
   6.257 -	drivers/sound/pndsperm.c \
   6.258 -	drivers/sound/pndspini.c \
   6.259 -	drivers/atm/fore200e_*_fw.c drivers/atm/.fore200e_*.fw \
   6.260 -	.version .config* config.in config.old \
   6.261 -	scripts/tkparse scripts/kconfig.tk scripts/kconfig.tmp \
   6.262 -	scripts/lxdialog/*.o scripts/lxdialog/lxdialog \
   6.263 -	.menuconfig.log \
   6.264 -	include/asm \
   6.265 -	.hdepend scripts/mkdep scripts/split-include scripts/docproc \
   6.266 -	$(TOPDIR)/include/linux/modversions.h \
   6.267 -	kernel.spec
   6.268 -
   6.269 -# directories removed with 'make mrproper'
   6.270 -MRPROPER_DIRS = \
   6.271 -	include/config \
   6.272 -	$(TOPDIR)/include/linux/modules
   6.273 -
   6.274 -
   6.275 -include arch/$(ARCH)/Makefile
   6.276 -
   6.277 -# Extra cflags for kbuild 2.4.  The default is to forbid includes by kernel code
   6.278 -# from user space headers.  Some UML code requires user space headers, in the
   6.279 -# UML Makefiles add 'kbuild_2_4_nostdinc :=' before include Rules.make.  No
   6.280 -# other kernel code should include user space headers, if you need
   6.281 -# 'kbuild_2_4_nostdinc :=' or -I/usr/include for kernel code and you are not UML
   6.282 -# then your code is broken!  KAO.
   6.283 -
   6.284 -kbuild_2_4_nostdinc	:= -nostdinc -iwithprefix include
   6.285 -export kbuild_2_4_nostdinc
   6.286 -
   6.287 -export	CPPFLAGS CFLAGS CFLAGS_KERNEL AFLAGS AFLAGS_KERNEL
   6.288 -
   6.289 -export	NETWORKS DRIVERS LIBS HEAD LDFLAGS LINKFLAGS MAKEBOOT ASFLAGS
   6.290 -
   6.291 -.S.s:
   6.292 -	$(CPP) $(AFLAGS) $(AFLAGS_KERNEL) -traditional -o $*.s $<
   6.293 -.S.o:
   6.294 -	$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -traditional -c -o $*.o $<
   6.295 -
   6.296 -Version: dummy
   6.297 -	@rm -f include/linux/compile.h
   6.298 -
   6.299 -boot: vmlinux
   6.300 -	@$(MAKE) CFLAGS="$(CFLAGS) $(CFLAGS_KERNEL)" -C arch/$(ARCH)/boot
   6.301 -
   6.302 -vmlinux: include/linux/version.h $(CONFIGURATION) init/main.o init/version.o init/do_mounts.o linuxsubdirs
   6.303 -	$(LD) $(LINKFLAGS) $(HEAD) init/main.o init/version.o init/do_mounts.o \
   6.304 -		--start-group \
   6.305 -		$(CORE_FILES) \
   6.306 -		$(DRIVERS) \
   6.307 -		$(NETWORKS) \
   6.308 -		$(LIBS) \
   6.309 -		--end-group \
   6.310 -		-o vmlinux
   6.311 -	$(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map
   6.312 -
   6.313 -symlinks:
   6.314 -	rm -f include/asm
   6.315 -	( cd include ; ln -sf asm-$(ARCH) asm)
   6.316 -	@if [ ! -d include/linux/modules ]; then \
   6.317 -		mkdir include/linux/modules; \
   6.318 -	fi
   6.319 -
   6.320 -oldconfig: symlinks
   6.321 -	$(CONFIG_SHELL) scripts/Configure -d arch/$(ARCH)/config.in
   6.322 -
   6.323 -xconfig: symlinks
   6.324 -	$(MAKE) -C scripts kconfig.tk
   6.325 -	wish -f scripts/kconfig.tk
   6.326 -
   6.327 -menuconfig: include/linux/version.h symlinks
   6.328 -	$(MAKE) -C scripts/lxdialog all
   6.329 -	$(CONFIG_SHELL) scripts/Menuconfig arch/$(ARCH)/config.in
   6.330 -
   6.331 -config: symlinks
   6.332 -	$(CONFIG_SHELL) scripts/Configure arch/$(ARCH)/config.in
   6.333 -
   6.334 -include/config/MARKER: scripts/split-include include/linux/autoconf.h
   6.335 -	scripts/split-include include/linux/autoconf.h include/config
   6.336 -	@ touch include/config/MARKER
   6.337 -
   6.338 -linuxsubdirs: $(patsubst %, _dir_%, $(SUBDIRS))
   6.339 -
   6.340 -$(patsubst %, _dir_%, $(SUBDIRS)) : dummy include/linux/version.h include/config/MARKER
   6.341 -	$(MAKE) CFLAGS="$(CFLAGS) $(CFLAGS_KERNEL)" -C $(patsubst _dir_%, %, $@)
   6.342 -
   6.343 -$(TOPDIR)/include/linux/version.h: include/linux/version.h
   6.344 -$(TOPDIR)/include/linux/compile.h: include/linux/compile.h
   6.345 -
   6.346 -newversion:
   6.347 -	. scripts/mkversion > .tmpversion
   6.348 -	@mv -f .tmpversion .version
   6.349 -
   6.350 -uts_len		:= 64
   6.351 -uts_truncate	:= sed -e 's/\(.\{1,$(uts_len)\}\).*/\1/'
   6.352 -
   6.353 -include/linux/compile.h: $(CONFIGURATION) include/linux/version.h newversion
   6.354 -	@echo -n \#`cat .version` > .ver1
   6.355 -	@if [ -n "$(CONFIG_SMP)" ] ; then echo -n " SMP" >> .ver1; fi
   6.356 -	@if [ -f .name ]; then  echo -n \-`cat .name` >> .ver1; fi
   6.357 -	@LANG=C echo ' '`date` >> .ver1
   6.358 -	@echo \#define UTS_VERSION \"`cat .ver1 | $(uts_truncate)`\" > .ver
   6.359 -	@LANG=C echo \#define LINUX_COMPILE_TIME \"`date +%T`\" >> .ver
   6.360 -	@echo \#define LINUX_COMPILE_BY \"`whoami`\" >> .ver
   6.361 -	@echo \#define LINUX_COMPILE_HOST \"`hostname | $(uts_truncate)`\" >> .ver
   6.362 -	@([ -x /bin/dnsdomainname ] && /bin/dnsdomainname > .ver1) || \
   6.363 -	 ([ -x /bin/domainname ] && /bin/domainname > .ver1) || \
   6.364 -	 echo > .ver1
   6.365 -	@echo \#define LINUX_COMPILE_DOMAIN \"`cat .ver1 | $(uts_truncate)`\" >> .ver
   6.366 -	@echo \#define LINUX_COMPILER \"`$(CC) $(CFLAGS) -v 2>&1 | tail -n 1`\" >> .ver
   6.367 -	@mv -f .ver $@
   6.368 -	@rm -f .ver1
   6.369 -
   6.370 -include/linux/version.h: ./Makefile
   6.371 -	@expr length "$(KERNELRELEASE)" \<= $(uts_len) > /dev/null || \
   6.372 -	  (echo KERNELRELEASE \"$(KERNELRELEASE)\" exceeds $(uts_len) characters >&2; false)
   6.373 -	@echo \#define UTS_RELEASE \"$(KERNELRELEASE)\" > .ver
   6.374 -	@echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver
   6.375 -	@echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))' >>.ver
   6.376 -	@mv -f .ver $@
   6.377 -
   6.378 -comma	:= ,
   6.379 -
   6.380 -init/version.o: init/version.c include/linux/compile.h include/config/MARKER
   6.381 -	$(CC) $(CFLAGS) $(CFLAGS_KERNEL) -DUTS_MACHINE='"$(SUBARCH)"' -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -c -o init/version.o init/version.c
   6.382 -
   6.383 -init/main.o: init/main.c include/config/MARKER
   6.384 -	$(CC) $(CFLAGS) $(CFLAGS_KERNEL) $(PROFILING) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -c -o $@ $<
   6.385 -
   6.386 -init/do_mounts.o: init/do_mounts.c include/config/MARKER
   6.387 -	$(CC) $(CFLAGS) $(CFLAGS_KERNEL) $(PROFILING) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -c -o $@ $<
   6.388 -
   6.389 -fs lib mm ipc kernel drivers net: dummy
   6.390 -	$(MAKE) CFLAGS="$(CFLAGS) $(CFLAGS_KERNEL)" $(subst $@, _dir_$@, $@)
   6.391 -
   6.392 -TAGS: dummy
   6.393 -	{ find include/asm-${ARCH} -name '*.h' -print ; \
   6.394 -	find include -type d \( -name "asm-*" -o -name config \) -prune -o -name '*.h' -print ; \
   6.395 -	find $(SUBDIRS) init arch/${ARCH} -name '*.[chS]' ; } | grep -v SCCS | grep -v '\.svn' | etags -
   6.396 -
   6.397 -# Exuberant ctags works better with -I
   6.398 -tags: dummy
   6.399 -	CTAGSF=`ctags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_NOVERS"`; \
   6.400 -	ctags $$CTAGSF `find include/asm-$(ARCH) -name '*.h'` && \
   6.401 -	find include -type d \( -name "asm-*" -o -name config \) -prune -o -name '*.h' -print | xargs ctags $$CTAGSF -a && \
   6.402 -	find $(SUBDIRS) init -name '*.[ch]' | xargs ctags $$CTAGSF -a
   6.403 -
   6.404 -ifdef CONFIG_MODULES
   6.405 -ifdef CONFIG_MODVERSIONS
   6.406 -MODFLAGS += -DMODVERSIONS -include $(HPATH)/linux/modversions.h
   6.407 -endif
   6.408 -
   6.409 -.PHONY: modules
   6.410 -modules: $(patsubst %, _mod_%, $(SUBDIRS))
   6.411 -
   6.412 -.PHONY: $(patsubst %, _mod_%, $(SUBDIRS))
   6.413 -$(patsubst %, _mod_%, $(SUBDIRS)) : include/linux/version.h include/config/MARKER
   6.414 -	$(MAKE) -C $(patsubst _mod_%, %, $@) CFLAGS="$(CFLAGS) $(MODFLAGS)" MAKING_MODULES=1 modules
   6.415 -
   6.416 -.PHONY: modules_install
   6.417 -modules_install: _modinst_ $(patsubst %, _modinst_%, $(SUBDIRS)) _modinst_post
   6.418 -
   6.419 -.PHONY: _modinst_
   6.420 -_modinst_:
   6.421 -	@rm -rf $(MODLIB)/kernel
   6.422 -	@rm -f $(MODLIB)/build
   6.423 -	@mkdir -p $(MODLIB)/kernel
   6.424 -	@ln -s $(TOPDIR) $(MODLIB)/build
   6.425 -
   6.426 -# If System.map exists, run depmod.  This deliberately does not have a
   6.427 -# dependency on System.map since that would run the dependency tree on
   6.428 -# vmlinux.  This depmod is only for convenience to give the initial
   6.429 -# boot a modules.dep even before / is mounted read-write.  However the
   6.430 -# boot script depmod is the master version.
   6.431 -ifeq "$(strip $(INSTALL_MOD_PATH))" ""
   6.432 -depmod_opts	:=
   6.433 -else
   6.434 -depmod_opts	:= -b $(INSTALL_MOD_PATH) -r
   6.435 -endif
   6.436 -.PHONY: _modinst_post
   6.437 -_modinst_post: _modinst_post_pcmcia
   6.438 -	if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi
   6.439 -
   6.440 -# Backwards compatibilty symlinks for people still using old versions
   6.441 -# of pcmcia-cs with hard coded pathnames on insmod.  Remove
   6.442 -# _modinst_post_pcmcia for kernel 2.4.1.
   6.443 -.PHONY: _modinst_post_pcmcia
   6.444 -_modinst_post_pcmcia:
   6.445 -	cd $(MODLIB); \
   6.446 -	mkdir -p pcmcia; \
   6.447 -	find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
   6.448 -
   6.449 -.PHONY: $(patsubst %, _modinst_%, $(SUBDIRS))
   6.450 -$(patsubst %, _modinst_%, $(SUBDIRS)) :
   6.451 -	$(MAKE) -C $(patsubst _modinst_%, %, $@) modules_install
   6.452 -
   6.453 -# modules disabled....
   6.454 -
   6.455 -else
   6.456 -modules modules_install: dummy
   6.457 -	@echo
   6.458 -	@echo "The present kernel configuration has modules disabled."
   6.459 -	@echo "Type 'make config' and enable loadable module support."
   6.460 -	@echo "Then build a kernel with module support enabled."
   6.461 -	@echo
   6.462 -	@exit 1
   6.463 -endif
   6.464 -
   6.465 -clean:	archclean
   6.466 -	find . \( -name '*.[oas]' -o -name core -o -name '.*.flags' \) -type f -print \
   6.467 -		| grep -v lxdialog/ | xargs rm -f
   6.468 -	rm -f $(CLEAN_FILES)
   6.469 -	rm -rf $(CLEAN_DIRS)
   6.470 -	$(MAKE) -C Documentation/DocBook clean
   6.471 -
   6.472 -mrproper: clean archmrproper
   6.473 -	find . \( -size 0 -o -name .depend \) -type f -print | xargs rm -f
   6.474 -	rm -f $(MRPROPER_FILES)
   6.475 -	rm -rf $(MRPROPER_DIRS)
   6.476 -	$(MAKE) -C Documentation/DocBook mrproper
   6.477 -
   6.478 -distclean: mrproper
   6.479 -	rm -f core `find . \( -not -type d \) -and \
   6.480 -		\( -name '*.orig' -o -name '*.rej' -o -name '*~' \
   6.481 -		-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
   6.482 -		-o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -type f -print` TAGS tags
   6.483 -
   6.484 -backup: mrproper
   6.485 -	cd .. && tar cf - linux/ | gzip -9 > backup.gz
   6.486 -	sync
   6.487 -
   6.488 -sgmldocs: 
   6.489 -	chmod 755 $(TOPDIR)/scripts/docgen
   6.490 -	chmod 755 $(TOPDIR)/scripts/gen-all-syms
   6.491 -	chmod 755 $(TOPDIR)/scripts/kernel-doc
   6.492 -	$(MAKE) -C $(TOPDIR)/Documentation/DocBook books
   6.493 -
   6.494 -psdocs: sgmldocs
   6.495 -	$(MAKE) -C Documentation/DocBook ps
   6.496 -
   6.497 -pdfdocs: sgmldocs
   6.498 -	$(MAKE) -C Documentation/DocBook pdf
   6.499 -
   6.500 -htmldocs: sgmldocs
   6.501 -	$(MAKE) -C Documentation/DocBook html
   6.502 -
   6.503 -mandocs:
   6.504 -	chmod 755 $(TOPDIR)/scripts/kernel-doc
   6.505 -	chmod 755 $(TOPDIR)/scripts/split-man
   6.506 -	$(MAKE) -C Documentation/DocBook man
   6.507 -
   6.508 -sums:
   6.509 -	find . -type f -print | sort | xargs sum > .SUMS
   6.510 -
   6.511 -dep-files: scripts/mkdep archdep include/linux/version.h
   6.512 -	rm -f .depend .hdepend
   6.513 -	$(MAKE) $(patsubst %,_sfdep_%,$(SUBDIRS)) _FASTDEP_ALL_SUB_DIRS="$(SUBDIRS)"
   6.514 -ifdef CONFIG_MODVERSIONS
   6.515 -	$(MAKE) update-modverfile
   6.516 -endif
   6.517 -	scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
   6.518 -	scripts/mkdep -- init/*.c > .depend
   6.519 -
   6.520 -ifdef CONFIG_MODVERSIONS
   6.521 -MODVERFILE := $(TOPDIR)/include/linux/modversions.h
   6.522 -else
   6.523 -MODVERFILE :=
   6.524 -endif
   6.525 -export	MODVERFILE
   6.526 -
   6.527 -depend dep: dep-files
   6.528 -
   6.529 -checkconfig:
   6.530 -	find * -name '*.[hcS]' -type f -print | sort | xargs $(PERL) -w scripts/checkconfig.pl
   6.531 -
   6.532 -checkhelp:
   6.533 -	find * -name [cC]onfig.in -print | sort | xargs $(PERL) -w scripts/checkhelp.pl
   6.534 -
   6.535 -checkincludes:
   6.536 -	find * -name '*.[hcS]' -type f -print | sort | xargs $(PERL) -w scripts/checkincludes.pl
   6.537 -
   6.538 -ifdef CONFIGURATION
   6.539 -..$(CONFIGURATION):
   6.540 -	@echo
   6.541 -	@echo "You have a bad or nonexistent" .$(CONFIGURATION) ": running 'make" $(CONFIGURATION)"'"
   6.542 -	@echo
   6.543 -	$(MAKE) $(CONFIGURATION)
   6.544 -	@echo
   6.545 -	@echo "Successful. Try re-making (ignore the error that follows)"
   6.546 -	@echo
   6.547 -	exit 1
   6.548 -
   6.549 -#dummy: ..$(CONFIGURATION)
   6.550 -dummy:
   6.551 -
   6.552 -else
   6.553 -
   6.554 -dummy:
   6.555 -
   6.556 -endif
   6.557 -
   6.558 -include Rules.make
   6.559 -
   6.560 -#
   6.561 -# This generates dependencies for the .h files.
   6.562 -#
   6.563 -
   6.564 -scripts/mkdep: scripts/mkdep.c
   6.565 -	$(HOSTCC) $(HOSTCFLAGS) -o scripts/mkdep scripts/mkdep.c
   6.566 -
   6.567 -scripts/split-include: scripts/split-include.c
   6.568 -	$(HOSTCC) $(HOSTCFLAGS) -o scripts/split-include scripts/split-include.c
   6.569 -
   6.570 -#
   6.571 -# RPM target
   6.572 -#
   6.573 -#	If you do a make spec before packing the tarball you can rpm -ta it
   6.574 -#
   6.575 -spec:
   6.576 -	. scripts/mkspec >kernel.spec
   6.577 -
   6.578 -#
   6.579 -#	Build a tar ball, generate an rpm from it and pack the result
   6.580 -#	There arw two bits of magic here
   6.581 -#	1) The use of /. to avoid tar packing just the symlink
   6.582 -#	2) Removing the .dep files as they have source paths in them that
   6.583 -#	   will become invalid
   6.584 -#
   6.585 -rpm:	clean spec
   6.586 -	find . \( -size 0 -o -name .depend -o -name .hdepend \) -type f -print | xargs rm -f
   6.587 -	set -e; \
   6.588 -	cd $(TOPDIR)/.. ; \
   6.589 -	ln -sf $(TOPDIR) $(KERNELPATH) ; \
   6.590 -	tar -cvz --exclude CVS -f $(KERNELPATH).tar.gz $(KERNELPATH)/. ; \
   6.591 -	rm $(KERNELPATH) ; \
   6.592 -	cd $(TOPDIR) ; \
   6.593 -	. scripts/mkversion > .version ; \
   6.594 -	$(RPM) -ta $(TOPDIR)/../$(KERNELPATH).tar.gz ; \
   6.595 -	rm $(TOPDIR)/../$(KERNELPATH).tar.gz
     7.1 --- a/linux-2.4.27-xen-sparse/arch/xen/Makefile	Fri Nov 19 23:17:26 2004 +0000
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,133 +0,0 @@
     7.4 -#
     7.5 -# xen/Makefile
     7.6 -#
     7.7 -# This file is included by the global makefile so that you can add your own
     7.8 -# architecture-specific flags and dependencies. Remember to do have actions
     7.9 -# for "archclean" and "archdep" for cleaning up and making dependencies for
    7.10 -# this architecture
    7.11 -#
    7.12 -# This file is subject to the terms and conditions of the GNU General Public
    7.13 -# License.  See the file "COPYING" in the main directory of this archive
    7.14 -# for more details.
    7.15 -#
    7.16 -# Copyright (C) 1994 by Linus Torvalds
    7.17 -#
    7.18 -# 19990713  Artur Skawina <skawina@geocities.com>
    7.19 -#           Added '-march' and '-mpreferred-stack-boundary' support
    7.20 -#
    7.21 -
    7.22 -# If no .config file exists then use the appropriate defconfig-* file
    7.23 -ifneq (.config,$(wildcard .config))
    7.24 -DUMMYX:=$(shell cp $(TOPDIR)/arch/xen/defconfig$(EXTRAVERSION) $(TOPDIR)/.config)
    7.25 --include $(TOPDIR)/.config
    7.26 -endif
    7.27 -
    7.28 -LD=$(CROSS_COMPILE)ld -m elf_i386
    7.29 -OBJCOPY=$(CROSS_COMPILE)objcopy -R .note -R .comment -S
    7.30 -LDFLAGS=-e stext
    7.31 -LINKFLAGS =-T $(TOPDIR)/arch/xen/vmlinux.lds $(LDFLAGS)
    7.32 -
    7.33 -CFLAGS += -pipe
    7.34 -
    7.35 -check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi)
    7.36 -
    7.37 -# prevent gcc from keeping the stack 16 byte aligned
    7.38 -CFLAGS += $(call check_gcc,-mpreferred-stack-boundary=2,)
    7.39 -
    7.40 -ifdef CONFIG_M686
    7.41 -CFLAGS += -march=i686
    7.42 -endif
    7.43 -
    7.44 -ifdef CONFIG_MPENTIUMIII
    7.45 -CFLAGS += -march=i686
    7.46 -endif
    7.47 -
    7.48 -ifdef CONFIG_MPENTIUM4
    7.49 -CFLAGS += -march=i686
    7.50 -endif
    7.51 -
    7.52 -ifdef CONFIG_MK7
    7.53 -CFLAGS += $(call check_gcc,-march=athlon,-march=i686 -malign-functions=4)
    7.54 -endif
    7.55 -
    7.56 -HEAD := arch/xen/kernel/head.o arch/xen/kernel/init_task.o
    7.57 -
    7.58 -SUBDIRS += arch/xen/kernel arch/xen/mm arch/xen/lib
    7.59 -SUBDIRS += arch/xen/drivers/console 
    7.60 -SUBDIRS += arch/xen/drivers/evtchn
    7.61 -SUBDIRS += arch/xen/drivers/blkif
    7.62 -SUBDIRS += arch/xen/drivers/netif
    7.63 -SUBDIRS += arch/xen/drivers/balloon
    7.64 -ifdef CONFIG_XEN_PRIVILEGED_GUEST
    7.65 -SUBDIRS += arch/xen/drivers/dom0 
    7.66 -endif
    7.67 -
    7.68 -CORE_FILES += arch/xen/kernel/kernel.o arch/xen/mm/mm.o
    7.69 -CORE_FILES += arch/xen/drivers/evtchn/drv.o
    7.70 -CORE_FILES += arch/xen/drivers/console/drv.o
    7.71 -DRIVERS += arch/xen/drivers/blkif/drv.o
    7.72 -DRIVERS += arch/xen/drivers/netif/drv.o
    7.73 -ifdef CONFIG_XEN_PRIVILEGED_GUEST
    7.74 -CORE_FILES += arch/xen/drivers/dom0/drv.o
    7.75 -endif
    7.76 -CORE_FILES += arch/xen/drivers/balloon/drv.o
    7.77 -LIBS := $(TOPDIR)/arch/xen/lib/lib.a $(LIBS) $(TOPDIR)/arch/xen/lib/lib.a
    7.78 -
    7.79 -arch/xen/kernel: dummy
    7.80 -	$(MAKE) linuxsubdirs SUBDIRS=arch/xen/kernel
    7.81 -
    7.82 -arch/xen/mm: dummy
    7.83 -	$(MAKE) linuxsubdirs SUBDIRS=arch/xen/mm
    7.84 -
    7.85 -arch/xen/drivers/console: dummy
    7.86 -	$(MAKE) linuxsubdirs SUBDIRS=arch/xen/drivers/console
    7.87 -
    7.88 -arch/xen/drivers/network: dummy
    7.89 -	$(MAKE) linuxsubdirs SUBDIRS=arch/xen/drivers/network
    7.90 -
    7.91 -arch/xen/drivers/block: dummy
    7.92 -	$(MAKE) linuxsubdirs SUBDIRS=arch/xen/drivers/block
    7.93 -
    7.94 -arch/xen/drivers/dom0: dummy
    7.95 -	$(MAKE) linuxsubdirs SUBDIRS=arch/xen/drivers/dom0
    7.96 -
    7.97 -arch/xen/drivers/balloon: dummy
    7.98 -	$(MAKE) linuxsubdirs SUBDIRS=arch/xen/drivers/balloon
    7.99 -
   7.100 -MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
   7.101 -
   7.102 -vmlinux: arch/xen/vmlinux.lds
   7.103 -
   7.104 -FORCE: ;
   7.105 -
   7.106 -.PHONY: bzImage compressed clean archclean archmrproper archdep
   7.107 -
   7.108 -
   7.109 -bzImage: vmlinux
   7.110 -	@$(MAKEBOOT) bzImage
   7.111 -
   7.112 -INSTALL_NAME ?= $(KERNELRELEASE)
   7.113 -install: bzImage
   7.114 -	mkdir -p $(INSTALL_PATH)/boot
   7.115 -	install -m0644 arch/$(ARCH)/boot/bzImage $(INSTALL_PATH)/boot/vmlinuz-$(INSTALL_NAME)$(INSTALL_SUFFIX)
   7.116 -	install -m0644 vmlinux $(INSTALL_PATH)/boot/vmlinux-syms-$(INSTALL_NAME)$(INSTALL_SUFFIX)
   7.117 -	install -m0664 .config $(INSTALL_PATH)/boot/config-$(INSTALL_NAME)$(INSTALL_SUFFIX)
   7.118 -	install -m0664 System.map $(INSTALL_PATH)/boot/System.map-$(INSTALL_NAME)$(INSTALL_SUFFIX)
   7.119 -
   7.120 -dist: 
   7.121 -	$(MAKE) INSTALL_PATH=../dist/install install
   7.122 -
   7.123 -%_config: arch/xen/defconfig-%
   7.124 -	rm -f .config arch/xen/defconfig
   7.125 -	cp -f arch/xen/defconfig-$(@:_config=) arch/xen/defconfig
   7.126 -	cp -f arch/xen/defconfig-$(@:_config=) .config
   7.127 -
   7.128 -
   7.129 -archclean:
   7.130 -	@$(MAKEBOOT) clean
   7.131 -
   7.132 -archmrproper:
   7.133 -	rm -f include/asm-xen/xen-public/arch
   7.134 -
   7.135 -archdep:
   7.136 -	@$(MAKEBOOT) dep
     8.1 --- a/linux-2.4.27-xen-sparse/arch/xen/boot/Makefile	Fri Nov 19 23:17:26 2004 +0000
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,13 +0,0 @@
     8.4 -#
     8.5 -# arch/xen/boot/Makefile
     8.6 -#
     8.7 -
     8.8 -bzImage: $(TOPDIR)/vmlinux
     8.9 -	$(OBJCOPY) $< Image
    8.10 -	gzip -f -9 < Image > $@
    8.11 -	rm -f Image
    8.12 -
    8.13 -dep:
    8.14 -
    8.15 -clean:
    8.16 -	rm -f bzImage Image
     9.1 --- a/linux-2.4.27-xen-sparse/arch/xen/config.in	Fri Nov 19 23:17:26 2004 +0000
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,325 +0,0 @@
     9.4 -#
     9.5 -# For a description of the syntax of this configuration file,
     9.6 -# see Documentation/kbuild/config-language.txt.
     9.7 -#
     9.8 -mainmenu_name "Linux Kernel Configuration"
     9.9 -
    9.10 -define_bool CONFIG_XEN y
    9.11 -
    9.12 -define_bool CONFIG_X86 y
    9.13 -define_bool CONFIG_ISA y
    9.14 -define_bool CONFIG_SBUS n
    9.15 -
    9.16 -define_bool CONFIG_UID16 y
    9.17 -
    9.18 -mainmenu_option next_comment
    9.19 -comment 'Xen'
    9.20 -bool 'Support for privileged operations (domain 0)' CONFIG_XEN_PRIVILEGED_GUEST
    9.21 -bool 'Device-driver domain (physical device access)' CONFIG_XEN_PHYSDEV_ACCESS
    9.22 -bool 'Scrub memory before freeing it to Xen' CONFIG_XEN_SCRUB_PAGES
    9.23 -bool 'Network-device frontend driver' CONFIG_XEN_NETDEV_FRONTEND
    9.24 -bool 'Block-device frontend driver' CONFIG_XEN_BLKDEV_FRONTEND
    9.25 -endmenu
    9.26 -# The IBM S/390 patch needs this.
    9.27 -define_bool CONFIG_NO_IDLE_HZ y
    9.28 -
    9.29 -if [ "$CONFIG_XEN_PHYSDEV_ACCESS" == "y" ]; then
    9.30 -   define_bool CONFIG_FOREIGN_PAGES y
    9.31 -else
    9.32 -   define_bool CONFIG_FOREIGN_PAGES n
    9.33 -   define_bool CONFIG_NETDEVICES y
    9.34 -   define_bool CONFIG_VT n
    9.35 -fi
    9.36 -
    9.37 -mainmenu_option next_comment
    9.38 -comment 'Code maturity level options'
    9.39 -bool 'Prompt for development and/or incomplete code/drivers' CONFIG_EXPERIMENTAL
    9.40 -endmenu
    9.41 -
    9.42 -mainmenu_option next_comment
    9.43 -comment 'Loadable module support'
    9.44 -bool 'Enable loadable module support' CONFIG_MODULES
    9.45 -if [ "$CONFIG_MODULES" = "y" ]; then
    9.46 -   bool '  Set version information on all module symbols' CONFIG_MODVERSIONS
    9.47 -   bool '  Kernel module loader' CONFIG_KMOD
    9.48 -fi
    9.49 -endmenu
    9.50 -
    9.51 -mainmenu_option next_comment
    9.52 -comment 'Processor type and features'
    9.53 -choice 'Processor family' \
    9.54 -	"Pentium-Pro/Celeron/Pentium-II		CONFIG_M686 \
    9.55 -	 Pentium-III/Celeron(Coppermine)	CONFIG_MPENTIUMIII \
    9.56 -	 Pentium-4				CONFIG_MPENTIUM4 \
    9.57 -	 Athlon/Duron/K7			CONFIG_MK7 \
    9.58 -	 Opteron/Athlon64/Hammer/K8             CONFIG_MK8 \
    9.59 -	 VIA-C3-2                               CONFIG_MVIAC3_2" Pentium-Pro
    9.60 -
    9.61 -   define_bool CONFIG_X86_WP_WORKS_OK y
    9.62 -   define_bool CONFIG_X86_INVLPG y
    9.63 -   define_bool CONFIG_X86_CMPXCHG y
    9.64 -   define_bool CONFIG_X86_XADD y
    9.65 -   define_bool CONFIG_X86_BSWAP y
    9.66 -   define_bool CONFIG_X86_POPAD_OK y
    9.67 -   define_bool CONFIG_RWSEM_GENERIC_SPINLOCK n
    9.68 -   define_bool CONFIG_RWSEM_XCHGADD_ALGORITHM y
    9.69 -
    9.70 -   define_bool CONFIG_X86_GOOD_APIC y
    9.71 -   define_bool CONFIG_X86_PGE y
    9.72 -   define_bool CONFIG_X86_USE_PPRO_CHECKSUM y
    9.73 -   define_bool CONFIG_X86_TSC y
    9.74 -
    9.75 -if [ "$CONFIG_M686" = "y" ]; then
    9.76 -   define_int  CONFIG_X86_L1_CACHE_SHIFT 5
    9.77 -fi
    9.78 -if [ "$CONFIG_MPENTIUMIII" = "y" ]; then
    9.79 -   define_int  CONFIG_X86_L1_CACHE_SHIFT 5
    9.80 -fi
    9.81 -if [ "$CONFIG_MPENTIUM4" = "y" ]; then
    9.82 -   define_int  CONFIG_X86_L1_CACHE_SHIFT 7
    9.83 -fi
    9.84 -if [ "$CONFIG_MK8" = "y" ]; then
    9.85 -   define_bool CONFIG_MK7 y
    9.86 -fi
    9.87 -if [ "$CONFIG_MK7" = "y" ]; then
    9.88 -   define_int  CONFIG_X86_L1_CACHE_SHIFT 6
    9.89 -   define_bool CONFIG_X86_USE_3DNOW y
    9.90 -fi
    9.91 -if [ "$CONFIG_MVIAC3_2" = "y" ]; then
    9.92 -   define_int  CONFIG_X86_L1_CACHE_SHIFT 5
    9.93 -fi
    9.94 -
    9.95 -#if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
    9.96 -#   tristate 'BIOS Enhanced Disk Drive calls determine boot disk (EXPERIMENTAL)' CONFIG_EDD
    9.97 -#fi
    9.98 -
    9.99 -choice 'High Memory Support' \
   9.100 -	"off    CONFIG_NOHIGHMEM \
   9.101 -	 4GB    CONFIG_HIGHMEM4G" off
   9.102 -#	 64GB   CONFIG_HIGHMEM64G" off
   9.103 -if [ "$CONFIG_HIGHMEM4G" = "y" ]; then
   9.104 -   define_bool CONFIG_HIGHMEM y
   9.105 -fi
   9.106 -if [ "$CONFIG_HIGHMEM64G" = "y" ]; then
   9.107 -   define_bool CONFIG_HIGHMEM y
   9.108 -   define_bool CONFIG_X86_PAE y
   9.109 -fi
   9.110 -
   9.111 -if [ "$CONFIG_HIGHMEM" = "y" ]; then
   9.112 -   bool 'HIGHMEM I/O support' CONFIG_HIGHIO
   9.113 -fi
   9.114 -
   9.115 -define_int CONFIG_FORCE_MAX_ZONEORDER 11
   9.116 -
   9.117 -#bool 'Symmetric multi-processing support' CONFIG_SMP
   9.118 -#if [ "$CONFIG_SMP" = "y" -a "$CONFIG_X86_CMPXCHG" = "y" ]; then
   9.119 -#   define_bool CONFIG_HAVE_DEC_LOCK y
   9.120 -#fi
   9.121 -endmenu
   9.122 -
   9.123 -mainmenu_option next_comment
   9.124 -comment 'General setup'
   9.125 -
   9.126 -bool 'Networking support' CONFIG_NET
   9.127 -
   9.128 -if [ "$CONFIG_XEN_PHYSDEV_ACCESS" = "y" ]; then
   9.129 -   bool 'PCI support' CONFIG_PCI
   9.130 -   source drivers/pci/Config.in
   9.131 -
   9.132 -   bool 'Support for hot-pluggable devices' CONFIG_HOTPLUG
   9.133 -
   9.134 -   if [ "$CONFIG_HOTPLUG" = "y" ] ; then
   9.135 -      source drivers/pcmcia/Config.in
   9.136 -      source drivers/hotplug/Config.in
   9.137 -   else
   9.138 -      define_bool CONFIG_PCMCIA n
   9.139 -      define_bool CONFIG_HOTPLUG_PCI n
   9.140 -   fi
   9.141 -fi
   9.142 -
   9.143 -bool 'System V IPC' CONFIG_SYSVIPC
   9.144 -bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT
   9.145 -bool 'Sysctl support' CONFIG_SYSCTL
   9.146 -if [ "$CONFIG_PROC_FS" = "y" ]; then
   9.147 -   choice 'Kernel core (/proc/kcore) format' \
   9.148 -	"ELF		CONFIG_KCORE_ELF	\
   9.149 -	 A.OUT		CONFIG_KCORE_AOUT" ELF
   9.150 -fi
   9.151 -tristate 'Kernel support for a.out binaries' CONFIG_BINFMT_AOUT
   9.152 -tristate 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
   9.153 -tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
   9.154 -bool 'Select task to kill on out of memory condition' CONFIG_OOM_KILLER
   9.155 -
   9.156 -endmenu
   9.157 -
   9.158 -if [ "$CONFIG_XEN_PHYSDEV_ACCESS" = "y" ]; then
   9.159 -   source drivers/mtd/Config.in
   9.160 -
   9.161 -   source drivers/parport/Config.in
   9.162 -
   9.163 -   source drivers/pnp/Config.in
   9.164 -
   9.165 -   source drivers/block/Config.in
   9.166 -
   9.167 -   source drivers/md/Config.in
   9.168 -fi
   9.169 -
   9.170 -if [ "$CONFIG_NET" = "y" ]; then
   9.171 -   source net/Config.in
   9.172 -fi
   9.173 -
   9.174 -if [ "$CONFIG_XEN_PHYSDEV_ACCESS" = "y" ]; then
   9.175 -   mainmenu_option next_comment
   9.176 -   comment 'ATA/IDE/MFM/RLL support'
   9.177 -
   9.178 -   tristate 'ATA/IDE/MFM/RLL support' CONFIG_IDE
   9.179 -
   9.180 -   if [ "$CONFIG_IDE" != "n" ]; then
   9.181 -      source drivers/ide/Config.in
   9.182 -   else
   9.183 -      define_bool CONFIG_BLK_DEV_HD n
   9.184 -   fi
   9.185 -   endmenu
   9.186 -fi
   9.187 -
   9.188 -mainmenu_option next_comment
   9.189 -comment 'SCSI support'
   9.190 -
   9.191 -tristate 'SCSI support' CONFIG_SCSI
   9.192 -
   9.193 -if [ "$CONFIG_SCSI" != "n" ]; then
   9.194 -   source drivers/scsi/Config.in
   9.195 -fi
   9.196 -endmenu
   9.197 -
   9.198 -if [ "$CONFIG_XEN_PHYSDEV_ACCESS" = "y" ]; then
   9.199 -   source drivers/message/fusion/Config.in
   9.200 -
   9.201 -   source drivers/ieee1394/Config.in
   9.202 -
   9.203 -   source drivers/message/i2o/Config.in
   9.204 -
   9.205 -   if [ "$CONFIG_NET" = "y" ]; then
   9.206 -      mainmenu_option next_comment
   9.207 -      comment 'Network device support'
   9.208 -
   9.209 -      bool 'Network device support' CONFIG_NETDEVICES
   9.210 -      if [ "$CONFIG_NETDEVICES" = "y" ]; then
   9.211 -         source drivers/net/Config.in
   9.212 -         if [ "$CONFIG_ATM" = "y" -o "$CONFIG_ATM" = "m" ]; then
   9.213 -            source drivers/atm/Config.in
   9.214 -         fi
   9.215 -      fi
   9.216 -      endmenu
   9.217 -   fi
   9.218 -
   9.219 -   source net/ax25/Config.in
   9.220 -
   9.221 -   source net/irda/Config.in
   9.222 -
   9.223 -   mainmenu_option next_comment
   9.224 -   comment 'ISDN subsystem'
   9.225 -   if [ "$CONFIG_NET" != "n" ]; then
   9.226 -      tristate 'ISDN support' CONFIG_ISDN
   9.227 -      if [ "$CONFIG_ISDN" != "n" ]; then
   9.228 -         source drivers/isdn/Config.in
   9.229 -      fi
   9.230 -   fi
   9.231 -   endmenu
   9.232 -
   9.233 -   if [ "$CONFIG_ISA" = "y" ]; then
   9.234 -       mainmenu_option next_comment
   9.235 -       comment 'Old CD-ROM drivers (not SCSI, not IDE)'
   9.236 -   
   9.237 -       bool 'Support non-SCSI/IDE/ATAPI CDROM drives' CONFIG_CD_NO_IDESCSI
   9.238 -       if [ "$CONFIG_CD_NO_IDESCSI" != "n" ]; then
   9.239 -          source drivers/cdrom/Config.in
   9.240 -       fi
   9.241 -       endmenu
   9.242 -   fi
   9.243 -
   9.244 -   #
   9.245 -   # input before char - char/joystick depends on it. As does USB.
   9.246 -   #
   9.247 -   source drivers/input/Config.in
   9.248 -else
   9.249 -   #
   9.250 -   # Block device driver configuration
   9.251 -   #
   9.252 -   mainmenu_option next_comment
   9.253 -   comment 'Block devices'
   9.254 -   tristate 'Loopback device support' CONFIG_BLK_DEV_LOOP
   9.255 -   dep_tristate 'Network block device support' CONFIG_BLK_DEV_NBD $CONFIG_NET
   9.256 -   tristate 'RAM disk support' CONFIG_BLK_DEV_RAM
   9.257 -   if [ "$CONFIG_BLK_DEV_RAM" = "y" -o "$CONFIG_BLK_DEV_RAM" = "m" ]; then
   9.258 -      int '  Default RAM disk size' CONFIG_BLK_DEV_RAM_SIZE 4096
   9.259 -   fi
   9.260 -   dep_bool '  Initial RAM disk (initrd) support' CONFIG_BLK_DEV_INITRD $CONFIG_BLK_DEV_RAM
   9.261 -   bool 'Per partition statistics in /proc/partitions' CONFIG_BLK_STATS
   9.262 -   define_bool CONFIG_BLK_DEV_HD n
   9.263 -   endmenu
   9.264 -fi
   9.265 -
   9.266 -source drivers/char/Config.in
   9.267 -
   9.268 -if [ "$CONFIG_XEN_PHYSDEV_ACCESS" = "y" ]; then
   9.269 -   source drivers/media/Config.in
   9.270 -fi
   9.271 -
   9.272 -source fs/Config.in
   9.273 -
   9.274 -mainmenu_option next_comment
   9.275 -comment 'Console drivers'
   9.276 -
   9.277 -define_bool CONFIG_XEN_CONSOLE y
   9.278 -
   9.279 -if [ "$CONFIG_VT" = "y" ]; then
   9.280 -   bool 'VGA text console' CONFIG_VGA_CONSOLE
   9.281 -   bool 'Dummy console' CONFIG_DUMMY_CONSOLE 
   9.282 -   if [ "$CONFIG_XEN_PHYSDEV_ACCESS" = "y" ]; then
   9.283 -      bool 'Video mode selection support' CONFIG_VIDEO_SELECT
   9.284 -      if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
   9.285 -         tristate 'MDA text console (dual-headed) (EXPERIMENTAL)' CONFIG_MDA_CONSOLE
   9.286 -         source drivers/video/Config.in
   9.287 -      fi
   9.288 -   fi
   9.289 -fi
   9.290 -endmenu
   9.291 -
   9.292 -if [ "$CONFIG_XEN_PHYSDEV_ACCESS" = "y" ]; then
   9.293 -   mainmenu_option next_comment
   9.294 -   comment 'Sound'
   9.295 -
   9.296 -   tristate 'Sound card support' CONFIG_SOUND
   9.297 -   if [ "$CONFIG_SOUND" != "n" ]; then
   9.298 -      source drivers/sound/Config.in
   9.299 -   fi
   9.300 -   endmenu
   9.301 -
   9.302 -   source drivers/usb/Config.in
   9.303 -
   9.304 -   source net/bluetooth/Config.in
   9.305 -fi
   9.306 -
   9.307 -mainmenu_option next_comment
   9.308 -comment 'Kernel hacking'
   9.309 -
   9.310 -bool 'Kernel debugging' CONFIG_DEBUG_KERNEL
   9.311 -if [ "$CONFIG_DEBUG_KERNEL" != "n" ]; then
   9.312 -   bool '  Check for stack overflows' CONFIG_DEBUG_STACKOVERFLOW
   9.313 -   bool '  Debug high memory support' CONFIG_DEBUG_HIGHMEM
   9.314 -   bool '  Debug memory allocations' CONFIG_DEBUG_SLAB
   9.315 -   bool '  Memory mapped I/O debugging' CONFIG_DEBUG_IOVIRT
   9.316 -   bool '  Magic SysRq key' CONFIG_MAGIC_SYSRQ
   9.317 -   bool '  Spinlock debugging' CONFIG_DEBUG_SPINLOCK
   9.318 -   bool '  Verbose BUG() reporting (adds 70K)' CONFIG_DEBUG_BUGVERBOSE
   9.319 -   bool '  Load all symbols for debugging' CONFIG_KALLSYMS
   9.320 -   bool '  Compile the kernel with frame pointers' CONFIG_FRAME_POINTER
   9.321 -fi
   9.322 -
   9.323 -int 'Kernel messages buffer length shift (0 = default)' CONFIG_LOG_BUF_SHIFT 0
   9.324 -
   9.325 -endmenu
   9.326 -
   9.327 -source crypto/Config.in
   9.328 -source lib/Config.in
    10.1 --- a/linux-2.4.27-xen-sparse/arch/xen/defconfig-xen0	Fri Nov 19 23:17:26 2004 +0000
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,920 +0,0 @@
    10.4 -#
    10.5 -# Automatically generated by make menuconfig: don't edit
    10.6 -#
    10.7 -CONFIG_XEN=y
    10.8 -CONFIG_X86=y
    10.9 -CONFIG_ISA=y
   10.10 -# CONFIG_SBUS is not set
   10.11 -CONFIG_UID16=y
   10.12 -
   10.13 -#
   10.14 -# Xen
   10.15 -#
   10.16 -CONFIG_XEN_PRIVILEGED_GUEST=y
   10.17 -CONFIG_XEN_PHYSDEV_ACCESS=y
   10.18 -CONFIG_XEN_SCRUB_PAGES=y
   10.19 -CONFIG_XEN_NETDEV_FRONTEND=y
   10.20 -CONFIG_XEN_BLKDEV_FRONTEND=y
   10.21 -CONFIG_NO_IDLE_HZ=y
   10.22 -CONFIG_FOREIGN_PAGES=y
   10.23 -
   10.24 -#
   10.25 -# Code maturity level options
   10.26 -#
   10.27 -CONFIG_EXPERIMENTAL=y
   10.28 -
   10.29 -#
   10.30 -# Loadable module support
   10.31 -#
   10.32 -CONFIG_MODULES=y
   10.33 -CONFIG_MODVERSIONS=y
   10.34 -CONFIG_KMOD=y
   10.35 -
   10.36 -#
   10.37 -# Processor type and features
   10.38 -#
   10.39 -CONFIG_M686=y
   10.40 -# CONFIG_MPENTIUMIII is not set
   10.41 -# CONFIG_MPENTIUM4 is not set
   10.42 -# CONFIG_MK7 is not set
   10.43 -# CONFIG_MK8 is not set
   10.44 -# CONFIG_MVIAC3_2 is not set
   10.45 -CONFIG_X86_WP_WORKS_OK=y
   10.46 -CONFIG_X86_INVLPG=y
   10.47 -CONFIG_X86_CMPXCHG=y
   10.48 -CONFIG_X86_XADD=y
   10.49 -CONFIG_X86_BSWAP=y
   10.50 -CONFIG_X86_POPAD_OK=y
   10.51 -# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
   10.52 -CONFIG_RWSEM_XCHGADD_ALGORITHM=y
   10.53 -CONFIG_X86_GOOD_APIC=y
   10.54 -CONFIG_X86_PGE=y
   10.55 -CONFIG_X86_USE_PPRO_CHECKSUM=y
   10.56 -CONFIG_X86_TSC=y
   10.57 -CONFIG_X86_L1_CACHE_SHIFT=5
   10.58 -CONFIG_NOHIGHMEM=y
   10.59 -# CONFIG_HIGHMEM4G is not set
   10.60 -CONFIG_FORCE_MAX_ZONEORDER=11
   10.61 -
   10.62 -#
   10.63 -# General setup
   10.64 -#
   10.65 -CONFIG_NET=y
   10.66 -CONFIG_PCI=y
   10.67 -CONFIG_PCI_NAMES=y
   10.68 -CONFIG_HOTPLUG=y
   10.69 -
   10.70 -#
   10.71 -# PCMCIA/CardBus support
   10.72 -#
   10.73 -# CONFIG_PCMCIA is not set
   10.74 -
   10.75 -#
   10.76 -# PCI Hotplug Support
   10.77 -#
   10.78 -# CONFIG_HOTPLUG_PCI is not set
   10.79 -# CONFIG_HOTPLUG_PCI_COMPAQ is not set
   10.80 -# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
   10.81 -# CONFIG_HOTPLUG_PCI_SHPC is not set
   10.82 -# CONFIG_HOTPLUG_PCI_SHPC_POLL_EVENT_MODE is not set
   10.83 -# CONFIG_HOTPLUG_PCI_PCIE is not set
   10.84 -# CONFIG_HOTPLUG_PCI_PCIE_POLL_EVENT_MODE is not set
   10.85 -CONFIG_SYSVIPC=y
   10.86 -# CONFIG_BSD_PROCESS_ACCT is not set
   10.87 -CONFIG_SYSCTL=y
   10.88 -CONFIG_KCORE_ELF=y
   10.89 -# CONFIG_KCORE_AOUT is not set
   10.90 -CONFIG_BINFMT_AOUT=y
   10.91 -CONFIG_BINFMT_ELF=y
   10.92 -# CONFIG_BINFMT_MISC is not set
   10.93 -# CONFIG_OOM_KILLER is not set
   10.94 -
   10.95 -#
   10.96 -# Memory Technology Devices (MTD)
   10.97 -#
   10.98 -# CONFIG_MTD is not set
   10.99 -
  10.100 -#
  10.101 -# Parallel port support
  10.102 -#
  10.103 -# CONFIG_PARPORT is not set
  10.104 -
  10.105 -#
  10.106 -# Plug and Play configuration
  10.107 -#
  10.108 -CONFIG_PNP=y
  10.109 -# CONFIG_ISAPNP is not set
  10.110 -
  10.111 -#
  10.112 -# Block devices
  10.113 -#
  10.114 -# CONFIG_BLK_DEV_FD is not set
  10.115 -# CONFIG_BLK_DEV_XD is not set
  10.116 -# CONFIG_PARIDE is not set
  10.117 -# CONFIG_BLK_CPQ_DA is not set
  10.118 -# CONFIG_BLK_CPQ_CISS_DA is not set
  10.119 -# CONFIG_CISS_SCSI_TAPE is not set
  10.120 -# CONFIG_CISS_MONITOR_THREAD is not set
  10.121 -# CONFIG_BLK_DEV_DAC960 is not set
  10.122 -# CONFIG_BLK_DEV_UMEM is not set
  10.123 -# CONFIG_BLK_DEV_SX8 is not set
  10.124 -CONFIG_BLK_DEV_LOOP=y
  10.125 -CONFIG_BLK_DEV_NBD=y
  10.126 -CONFIG_BLK_DEV_RAM=y
  10.127 -CONFIG_BLK_DEV_RAM_SIZE=4096
  10.128 -CONFIG_BLK_DEV_INITRD=y
  10.129 -# CONFIG_BLK_STATS is not set
  10.130 -
  10.131 -#
  10.132 -# Multi-device support (RAID and LVM)
  10.133 -#
  10.134 -# CONFIG_MD is not set
  10.135 -# CONFIG_BLK_DEV_MD is not set
  10.136 -# CONFIG_MD_LINEAR is not set
  10.137 -# CONFIG_MD_RAID0 is not set
  10.138 -# CONFIG_MD_RAID1 is not set
  10.139 -# CONFIG_MD_RAID5 is not set
  10.140 -# CONFIG_MD_MULTIPATH is not set
  10.141 -# CONFIG_BLK_DEV_LVM is not set
  10.142 -
  10.143 -#
  10.144 -# Networking options
  10.145 -#
  10.146 -CONFIG_PACKET=y
  10.147 -CONFIG_PACKET_MMAP=y
  10.148 -# CONFIG_NETLINK_DEV is not set
  10.149 -CONFIG_NETFILTER=y
  10.150 -# CONFIG_NETFILTER_DEBUG is not set
  10.151 -CONFIG_FILTER=y
  10.152 -CONFIG_UNIX=y
  10.153 -CONFIG_INET=y
  10.154 -# CONFIG_IP_MULTICAST is not set
  10.155 -# CONFIG_IP_ADVANCED_ROUTER is not set
  10.156 -CONFIG_IP_PNP=y
  10.157 -CONFIG_IP_PNP_DHCP=y
  10.158 -# CONFIG_IP_PNP_BOOTP is not set
  10.159 -# CONFIG_IP_PNP_RARP is not set
  10.160 -# CONFIG_NET_IPIP is not set
  10.161 -# CONFIG_NET_IPGRE is not set
  10.162 -# CONFIG_ARPD is not set
  10.163 -# CONFIG_INET_ECN is not set
  10.164 -# CONFIG_SYN_COOKIES is not set
  10.165 -
  10.166 -#
  10.167 -#   IP: Netfilter Configuration
  10.168 -#
  10.169 -CONFIG_IP_NF_CONNTRACK=m
  10.170 -CONFIG_IP_NF_FTP=m
  10.171 -# CONFIG_IP_NF_AMANDA is not set
  10.172 -CONFIG_IP_NF_TFTP=m
  10.173 -CONFIG_IP_NF_IRC=m
  10.174 -# CONFIG_IP_NF_QUEUE is not set
  10.175 -CONFIG_IP_NF_IPTABLES=y
  10.176 -# CONFIG_IP_NF_MATCH_LIMIT is not set
  10.177 -# CONFIG_IP_NF_MATCH_MAC is not set
  10.178 -# CONFIG_IP_NF_MATCH_PKTTYPE is not set
  10.179 -# CONFIG_IP_NF_MATCH_MARK is not set
  10.180 -# CONFIG_IP_NF_MATCH_MULTIPORT is not set
  10.181 -# CONFIG_IP_NF_MATCH_TOS is not set
  10.182 -# CONFIG_IP_NF_MATCH_RECENT is not set
  10.183 -# CONFIG_IP_NF_MATCH_ECN is not set
  10.184 -# CONFIG_IP_NF_MATCH_DSCP is not set
  10.185 -# CONFIG_IP_NF_MATCH_AH_ESP is not set
  10.186 -# CONFIG_IP_NF_MATCH_LENGTH is not set
  10.187 -# CONFIG_IP_NF_MATCH_TTL is not set
  10.188 -# CONFIG_IP_NF_MATCH_TCPMSS is not set
  10.189 -# CONFIG_IP_NF_MATCH_HELPER is not set
  10.190 -CONFIG_IP_NF_MATCH_STATE=m
  10.191 -CONFIG_IP_NF_MATCH_CONNTRACK=m
  10.192 -# CONFIG_IP_NF_MATCH_UNCLEAN is not set
  10.193 -# CONFIG_IP_NF_MATCH_OWNER is not set
  10.194 -CONFIG_IP_NF_MATCH_PHYSDEV=y
  10.195 -CONFIG_IP_NF_FILTER=y
  10.196 -CONFIG_IP_NF_TARGET_REJECT=y
  10.197 -# CONFIG_IP_NF_TARGET_MIRROR is not set
  10.198 -CONFIG_IP_NF_NAT=m
  10.199 -CONFIG_IP_NF_NAT_NEEDED=y
  10.200 -CONFIG_IP_NF_TARGET_MASQUERADE=m
  10.201 -CONFIG_IP_NF_TARGET_REDIRECT=m
  10.202 -# CONFIG_IP_NF_NAT_LOCAL is not set
  10.203 -# CONFIG_IP_NF_NAT_SNMP_BASIC is not set
  10.204 -CONFIG_IP_NF_NAT_IRC=m
  10.205 -CONFIG_IP_NF_NAT_FTP=m
  10.206 -CONFIG_IP_NF_NAT_TFTP=m
  10.207 -# CONFIG_IP_NF_MANGLE is not set
  10.208 -CONFIG_IP_NF_TARGET_LOG=y
  10.209 -CONFIG_IP_NF_TARGET_ULOG=y
  10.210 -# CONFIG_IP_NF_TARGET_TCPMSS is not set
  10.211 -# CONFIG_IP_NF_ARPTABLES is not set
  10.212 -
  10.213 -#
  10.214 -#   IP: Virtual Server Configuration
  10.215 -#
  10.216 -# CONFIG_IP_VS is not set
  10.217 -# CONFIG_IPV6 is not set
  10.218 -# CONFIG_KHTTPD is not set
  10.219 -
  10.220 -#
  10.221 -#    SCTP Configuration (EXPERIMENTAL)
  10.222 -#
  10.223 -# CONFIG_IP_SCTP is not set
  10.224 -# CONFIG_ATM is not set
  10.225 -CONFIG_VLAN_8021Q=y
  10.226 -# CONFIG_IPX is not set
  10.227 -# CONFIG_ATALK is not set
  10.228 -
  10.229 -#
  10.230 -# Appletalk devices
  10.231 -#
  10.232 -# CONFIG_DEV_APPLETALK is not set
  10.233 -# CONFIG_DECNET is not set
  10.234 -CONFIG_BRIDGE=y
  10.235 -CONFIG_BRIDGE_NF_EBTABLES=m
  10.236 -CONFIG_BRIDGE_EBT_T_FILTER=m
  10.237 -CONFIG_BRIDGE_EBT_T_NAT=m
  10.238 -CONFIG_BRIDGE_EBT_BROUTE=m
  10.239 -CONFIG_BRIDGE_EBT_LOG=m
  10.240 -CONFIG_BRIDGE_EBT_IPF=m
  10.241 -CONFIG_BRIDGE_EBT_ARPF=m
  10.242 -CONFIG_BRIDGE_EBT_AMONG=m
  10.243 -CONFIG_BRIDGE_EBT_LIMIT=m
  10.244 -CONFIG_BRIDGE_EBT_VLANF=m
  10.245 -CONFIG_BRIDGE_EBT_802_3=m
  10.246 -CONFIG_BRIDGE_EBT_PKTTYPE=m
  10.247 -CONFIG_BRIDGE_EBT_STP=m
  10.248 -CONFIG_BRIDGE_EBT_MARKF=m
  10.249 -CONFIG_BRIDGE_EBT_ARPREPLY=m
  10.250 -CONFIG_BRIDGE_EBT_SNAT=m
  10.251 -CONFIG_BRIDGE_EBT_DNAT=m
  10.252 -CONFIG_BRIDGE_EBT_REDIRECT=m
  10.253 -CONFIG_BRIDGE_EBT_MARK_T=m
  10.254 -# CONFIG_X25 is not set
  10.255 -# CONFIG_LAPB is not set
  10.256 -# CONFIG_LLC is not set
  10.257 -# CONFIG_NET_DIVERT is not set
  10.258 -# CONFIG_ECONET is not set
  10.259 -# CONFIG_WAN_ROUTER is not set
  10.260 -# CONFIG_NET_FASTROUTE is not set
  10.261 -# CONFIG_NET_HW_FLOWCONTROL is not set
  10.262 -
  10.263 -#
  10.264 -# QoS and/or fair queueing
  10.265 -#
  10.266 -# CONFIG_NET_SCHED is not set
  10.267 -
  10.268 -#
  10.269 -# Network testing
  10.270 -#
  10.271 -# CONFIG_NET_PKTGEN is not set
  10.272 -
  10.273 -#
  10.274 -# ATA/IDE/MFM/RLL support
  10.275 -#
  10.276 -CONFIG_IDE=y
  10.277 -
  10.278 -#
  10.279 -# IDE, ATA and ATAPI Block devices
  10.280 -#
  10.281 -CONFIG_BLK_DEV_IDE=y
  10.282 -# CONFIG_BLK_DEV_HD_IDE is not set
  10.283 -# CONFIG_BLK_DEV_HD is not set
  10.284 -CONFIG_BLK_DEV_IDEDISK=y
  10.285 -CONFIG_IDEDISK_MULTI_MODE=y
  10.286 -CONFIG_IDEDISK_STROKE=y
  10.287 -# CONFIG_BLK_DEV_IDECS is not set
  10.288 -CONFIG_BLK_DEV_IDECD=y
  10.289 -CONFIG_BLK_DEV_IDETAPE=y
  10.290 -CONFIG_BLK_DEV_IDEFLOPPY=y
  10.291 -CONFIG_BLK_DEV_IDESCSI=y
  10.292 -CONFIG_IDE_TASK_IOCTL=y
  10.293 -CONFIG_BLK_DEV_CMD640=y
  10.294 -CONFIG_BLK_DEV_CMD640_ENHANCED=y
  10.295 -# CONFIG_BLK_DEV_ISAPNP is not set
  10.296 -CONFIG_BLK_DEV_IDEPCI=y
  10.297 -CONFIG_BLK_DEV_GENERIC=y
  10.298 -CONFIG_IDEPCI_SHARE_IRQ=y
  10.299 -CONFIG_BLK_DEV_IDEDMA_PCI=y
  10.300 -CONFIG_BLK_DEV_OFFBOARD=y
  10.301 -# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
  10.302 -CONFIG_IDEDMA_PCI_AUTO=y
  10.303 -# CONFIG_IDEDMA_ONLYDISK is not set
  10.304 -CONFIG_BLK_DEV_IDEDMA=y
  10.305 -# CONFIG_IDEDMA_PCI_WIP is not set
  10.306 -CONFIG_BLK_DEV_ADMA100=y
  10.307 -CONFIG_BLK_DEV_AEC62XX=y
  10.308 -CONFIG_BLK_DEV_ALI15X3=y
  10.309 -CONFIG_WDC_ALI15X3=y
  10.310 -CONFIG_BLK_DEV_AMD74XX=y
  10.311 -CONFIG_AMD74XX_OVERRIDE=y
  10.312 -# CONFIG_BLK_DEV_ATIIXP is not set
  10.313 -CONFIG_BLK_DEV_CMD64X=y
  10.314 -CONFIG_BLK_DEV_TRIFLEX=y
  10.315 -CONFIG_BLK_DEV_CY82C693=y
  10.316 -CONFIG_BLK_DEV_CS5530=y
  10.317 -CONFIG_BLK_DEV_HPT34X=y
  10.318 -# CONFIG_HPT34X_AUTODMA is not set
  10.319 -CONFIG_BLK_DEV_HPT366=y
  10.320 -CONFIG_BLK_DEV_PIIX=y
  10.321 -CONFIG_BLK_DEV_NS87415=y
  10.322 -# CONFIG_BLK_DEV_OPTI621 is not set
  10.323 -CONFIG_BLK_DEV_PDC202XX_OLD=y
  10.324 -CONFIG_PDC202XX_BURST=y
  10.325 -CONFIG_BLK_DEV_PDC202XX_NEW=y
  10.326 -CONFIG_PDC202XX_FORCE=y
  10.327 -CONFIG_BLK_DEV_RZ1000=y
  10.328 -CONFIG_BLK_DEV_SC1200=y
  10.329 -CONFIG_BLK_DEV_SVWKS=y
  10.330 -CONFIG_BLK_DEV_SIIMAGE=y
  10.331 -CONFIG_BLK_DEV_SIS5513=y
  10.332 -CONFIG_BLK_DEV_SLC90E66=y
  10.333 -CONFIG_BLK_DEV_TRM290=y
  10.334 -CONFIG_BLK_DEV_VIA82CXXX=y
  10.335 -CONFIG_IDE_CHIPSETS=y
  10.336 -# CONFIG_BLK_DEV_4DRIVES is not set
  10.337 -# CONFIG_BLK_DEV_ALI14XX is not set
  10.338 -# CONFIG_BLK_DEV_DTC2278 is not set
  10.339 -# CONFIG_BLK_DEV_HT6560B is not set
  10.340 -# CONFIG_BLK_DEV_PDC4030 is not set
  10.341 -# CONFIG_BLK_DEV_QD65XX is not set
  10.342 -# CONFIG_BLK_DEV_UMC8672 is not set
  10.343 -CONFIG_IDEDMA_AUTO=y
  10.344 -# CONFIG_IDEDMA_IVB is not set
  10.345 -# CONFIG_DMA_NONPCI is not set
  10.346 -CONFIG_BLK_DEV_PDC202XX=y
  10.347 -# CONFIG_BLK_DEV_ATARAID is not set
  10.348 -# CONFIG_BLK_DEV_ATARAID_PDC is not set
  10.349 -# CONFIG_BLK_DEV_ATARAID_HPT is not set
  10.350 -# CONFIG_BLK_DEV_ATARAID_MEDLEY is not set
  10.351 -# CONFIG_BLK_DEV_ATARAID_SII is not set
  10.352 -
  10.353 -#
  10.354 -# SCSI support
  10.355 -#
  10.356 -CONFIG_SCSI=y
  10.357 -CONFIG_BLK_DEV_SD=y
  10.358 -CONFIG_SD_EXTRA_DEVS=40
  10.359 -# CONFIG_CHR_DEV_ST is not set
  10.360 -# CONFIG_CHR_DEV_OSST is not set
  10.361 -# CONFIG_BLK_DEV_SR is not set
  10.362 -CONFIG_CHR_DEV_SG=y
  10.363 -# CONFIG_SCSI_DEBUG_QUEUES is not set
  10.364 -# CONFIG_SCSI_MULTI_LUN is not set
  10.365 -# CONFIG_SCSI_CONSTANTS is not set
  10.366 -# CONFIG_SCSI_LOGGING is not set
  10.367 -
  10.368 -#
  10.369 -# SCSI low-level drivers
  10.370 -#
  10.371 -# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
  10.372 -# CONFIG_SCSI_7000FASST is not set
  10.373 -# CONFIG_SCSI_ACARD is not set
  10.374 -# CONFIG_SCSI_AHA152X is not set
  10.375 -# CONFIG_SCSI_AHA1542 is not set
  10.376 -# CONFIG_SCSI_AHA1740 is not set
  10.377 -CONFIG_SCSI_AACRAID=y
  10.378 -CONFIG_SCSI_AIC7XXX=y
  10.379 -CONFIG_AIC7XXX_CMDS_PER_DEVICE=32
  10.380 -CONFIG_AIC7XXX_RESET_DELAY_MS=15000
  10.381 -# CONFIG_AIC7XXX_PROBE_EISA_VL is not set
  10.382 -# CONFIG_AIC7XXX_BUILD_FIRMWARE is not set
  10.383 -# CONFIG_AIC7XXX_DEBUG_ENABLE is not set
  10.384 -CONFIG_AIC7XXX_DEBUG_MASK=0
  10.385 -# CONFIG_AIC7XXX_REG_PRETTY_PRINT is not set
  10.386 -CONFIG_SCSI_AIC79XX=y
  10.387 -CONFIG_AIC79XX_CMDS_PER_DEVICE=32
  10.388 -CONFIG_AIC79XX_RESET_DELAY_MS=15000
  10.389 -# CONFIG_AIC79XX_BUILD_FIRMWARE is not set
  10.390 -# CONFIG_AIC79XX_ENABLE_RD_STRM is not set
  10.391 -# CONFIG_AIC79XX_DEBUG_ENABLE is not set
  10.392 -CONFIG_AIC79XX_DEBUG_MASK=0
  10.393 -# CONFIG_AIC79XX_REG_PRETTY_PRINT is not set
  10.394 -# CONFIG_SCSI_DPT_I2O is not set
  10.395 -# CONFIG_SCSI_ADVANSYS is not set
  10.396 -# CONFIG_SCSI_IN2000 is not set
  10.397 -# CONFIG_SCSI_AM53C974 is not set
  10.398 -CONFIG_SCSI_MEGARAID=y
  10.399 -# CONFIG_SCSI_MEGARAID2 is not set
  10.400 -CONFIG_SCSI_SATA=y
  10.401 -# CONFIG_SCSI_SATA_SVW is not set
  10.402 -CONFIG_SCSI_SATA_PROMISE=y
  10.403 -CONFIG_SCSI_SATA_SX4=y
  10.404 -CONFIG_SCSI_SATA_SIL=y
  10.405 -CONFIG_SCSI_SATA_SIS=y
  10.406 -CONFIG_SCSI_SATA_VIA=y
  10.407 -CONFIG_SCSI_SATA_VITESSE=y
  10.408 -CONFIG_SCSI_BUSLOGIC=y
  10.409 -# CONFIG_SCSI_OMIT_FLASHPOINT is not set
  10.410 -# CONFIG_SCSI_CPQFCTS is not set
  10.411 -# CONFIG_SCSI_DMX3191D is not set
  10.412 -# CONFIG_SCSI_DTC3280 is not set
  10.413 -# CONFIG_SCSI_EATA is not set
  10.414 -# CONFIG_SCSI_EATA_DMA is not set
  10.415 -# CONFIG_SCSI_EATA_PIO is not set
  10.416 -# CONFIG_SCSI_FUTURE_DOMAIN is not set
  10.417 -# CONFIG_SCSI_GDTH is not set
  10.418 -# CONFIG_SCSI_GENERIC_NCR5380 is not set
  10.419 -# CONFIG_SCSI_IPS is not set
  10.420 -# CONFIG_SCSI_INITIO is not set
  10.421 -# CONFIG_SCSI_INIA100 is not set
  10.422 -# CONFIG_SCSI_NCR53C406A is not set
  10.423 -# CONFIG_SCSI_NCR53C7xx is not set
  10.424 -CONFIG_SCSI_SYM53C8XX_2=y
  10.425 -CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
  10.426 -CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16
  10.427 -CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
  10.428 -# CONFIG_SCSI_SYM53C8XX_IOMAPPED is not set
  10.429 -# CONFIG_SCSI_PAS16 is not set
  10.430 -# CONFIG_SCSI_PCI2000 is not set
  10.431 -# CONFIG_SCSI_PCI2220I is not set
  10.432 -# CONFIG_SCSI_PSI240I is not set
  10.433 -# CONFIG_SCSI_QLOGIC_FAS is not set
  10.434 -# CONFIG_SCSI_QLOGIC_ISP is not set
  10.435 -# CONFIG_SCSI_QLOGIC_FC is not set
  10.436 -# CONFIG_SCSI_QLOGIC_1280 is not set
  10.437 -# CONFIG_SCSI_SEAGATE is not set
  10.438 -# CONFIG_SCSI_SIM710 is not set
  10.439 -# CONFIG_SCSI_SYM53C416 is not set
  10.440 -# CONFIG_SCSI_DC390T is not set
  10.441 -# CONFIG_SCSI_T128 is not set
  10.442 -# CONFIG_SCSI_U14_34F is not set
  10.443 -# CONFIG_SCSI_ULTRASTOR is not set
  10.444 -# CONFIG_SCSI_NSP32 is not set
  10.445 -# CONFIG_SCSI_DEBUG is not set
  10.446 -
  10.447 -#
  10.448 -# Fusion MPT device support
  10.449 -#
  10.450 -# CONFIG_FUSION is not set
  10.451 -# CONFIG_FUSION_BOOT is not set
  10.452 -# CONFIG_FUSION_ISENSE is not set
  10.453 -# CONFIG_FUSION_CTL is not set
  10.454 -# CONFIG_FUSION_LAN is not set
  10.455 -
  10.456 -#
  10.457 -# IEEE 1394 (FireWire) support (EXPERIMENTAL)
  10.458 -#
  10.459 -# CONFIG_IEEE1394 is not set
  10.460 -
  10.461 -#
  10.462 -# I2O device support
  10.463 -#
  10.464 -# CONFIG_I2O is not set
  10.465 -# CONFIG_I2O_PCI is not set
  10.466 -# CONFIG_I2O_BLOCK is not set
  10.467 -# CONFIG_I2O_LAN is not set
  10.468 -# CONFIG_I2O_SCSI is not set
  10.469 -# CONFIG_I2O_PROC is not set
  10.470 -
  10.471 -#
  10.472 -# Network device support
  10.473 -#
  10.474 -CONFIG_NETDEVICES=y
  10.475 -
  10.476 -#
  10.477 -# ARCnet devices
  10.478 -#
  10.479 -# CONFIG_ARCNET is not set
  10.480 -# CONFIG_DUMMY is not set
  10.481 -# CONFIG_BONDING is not set
  10.482 -# CONFIG_EQUALIZER is not set
  10.483 -# CONFIG_TUN is not set
  10.484 -# CONFIG_ETHERTAP is not set
  10.485 -
  10.486 -#
  10.487 -# Ethernet (10 or 100Mbit)
  10.488 -#
  10.489 -CONFIG_NET_ETHERNET=y
  10.490 -# CONFIG_SUNLANCE is not set
  10.491 -# CONFIG_HAPPYMEAL is not set
  10.492 -# CONFIG_SUNBMAC is not set
  10.493 -# CONFIG_SUNQE is not set
  10.494 -# CONFIG_SUNGEM is not set
  10.495 -CONFIG_NET_VENDOR_3COM=y
  10.496 -# CONFIG_EL1 is not set
  10.497 -# CONFIG_EL2 is not set
  10.498 -# CONFIG_ELPLUS is not set
  10.499 -# CONFIG_EL16 is not set
  10.500 -# CONFIG_EL3 is not set
  10.501 -# CONFIG_3C515 is not set
  10.502 -# CONFIG_ELMC is not set
  10.503 -# CONFIG_ELMC_II is not set
  10.504 -CONFIG_VORTEX=y
  10.505 -# CONFIG_TYPHOON is not set
  10.506 -# CONFIG_LANCE is not set
  10.507 -# CONFIG_NET_VENDOR_SMC is not set
  10.508 -# CONFIG_NET_VENDOR_RACAL is not set
  10.509 -# CONFIG_AT1700 is not set
  10.510 -# CONFIG_DEPCA is not set
  10.511 -# CONFIG_HP100 is not set
  10.512 -# CONFIG_NET_ISA is not set
  10.513 -CONFIG_NET_PCI=y
  10.514 -CONFIG_PCNET32=y
  10.515 -# CONFIG_AMD8111_ETH is not set
  10.516 -# CONFIG_ADAPTEC_STARFIRE is not set
  10.517 -# CONFIG_AC3200 is not set
  10.518 -# CONFIG_APRICOT is not set
  10.519 -# CONFIG_B44 is not set
  10.520 -# CONFIG_CS89x0 is not set
  10.521 -# CONFIG_TULIP is not set
  10.522 -# CONFIG_DE4X5 is not set
  10.523 -# CONFIG_DGRS is not set
  10.524 -# CONFIG_DM9102 is not set
  10.525 -# CONFIG_EEPRO100 is not set
  10.526 -# CONFIG_EEPRO100_PIO is not set
  10.527 -CONFIG_E100=y
  10.528 -# CONFIG_LNE390 is not set
  10.529 -# CONFIG_FEALNX is not set
  10.530 -# CONFIG_NATSEMI is not set
  10.531 -# CONFIG_NE2K_PCI is not set
  10.532 -# CONFIG_FORCEDETH is not set
  10.533 -# CONFIG_NE3210 is not set
  10.534 -# CONFIG_ES3210 is not set
  10.535 -# CONFIG_8139CP is not set
  10.536 -# CONFIG_8139TOO is not set
  10.537 -# CONFIG_8139TOO_PIO is not set
  10.538 -# CONFIG_8139TOO_TUNE_TWISTER is not set
  10.539 -# CONFIG_8139TOO_8129 is not set
  10.540 -# CONFIG_8139_OLD_RX_RESET is not set
  10.541 -# CONFIG_SIS900 is not set
  10.542 -# CONFIG_EPIC100 is not set
  10.543 -# CONFIG_SUNDANCE is not set
  10.544 -# CONFIG_SUNDANCE_MMIO is not set
  10.545 -# CONFIG_TLAN is not set
  10.546 -# CONFIG_VIA_RHINE is not set
  10.547 -# CONFIG_VIA_RHINE_MMIO is not set
  10.548 -# CONFIG_WINBOND_840 is not set
  10.549 -# CONFIG_NET_POCKET is not set
  10.550 -
  10.551 -#
  10.552 -# Ethernet (1000 Mbit)
  10.553 -#
  10.554 -# CONFIG_ACENIC is not set
  10.555 -# CONFIG_DL2K is not set
  10.556 -CONFIG_E1000=y
  10.557 -# CONFIG_E1000_NAPI is not set
  10.558 -# CONFIG_MYRI_SBUS is not set
  10.559 -# CONFIG_NS83820 is not set
  10.560 -# CONFIG_HAMACHI is not set
  10.561 -# CONFIG_YELLOWFIN is not set
  10.562 -# CONFIG_R8169 is not set
  10.563 -# CONFIG_SK98LIN is not set
  10.564 -CONFIG_TIGON3=y
  10.565 -# CONFIG_FDDI is not set
  10.566 -# CONFIG_HIPPI is not set
  10.567 -# CONFIG_PLIP is not set
  10.568 -# CONFIG_PPP is not set
  10.569 -# CONFIG_SLIP is not set
  10.570 -
  10.571 -#
  10.572 -# Wireless LAN (non-hamradio)
  10.573 -#
  10.574 -# CONFIG_NET_RADIO is not set
  10.575 -
  10.576 -#
  10.577 -# Token Ring devices
  10.578 -#
  10.579 -# CONFIG_TR is not set
  10.580 -# CONFIG_NET_FC is not set
  10.581 -# CONFIG_RCPCI is not set
  10.582 -# CONFIG_SHAPER is not set
  10.583 -
  10.584 -#
  10.585 -# Wan interfaces
  10.586 -#
  10.587 -# CONFIG_WAN is not set
  10.588 -
  10.589 -#
  10.590 -# Amateur Radio support
  10.591 -#
  10.592 -# CONFIG_HAMRADIO is not set
  10.593 -
  10.594 -#
  10.595 -# IrDA (infrared) support
  10.596 -#
  10.597 -# CONFIG_IRDA is not set
  10.598 -
  10.599 -#
  10.600 -# ISDN subsystem
  10.601 -#
  10.602 -# CONFIG_ISDN is not set
  10.603 -
  10.604 -#
  10.605 -# Old CD-ROM drivers (not SCSI, not IDE)
  10.606 -#
  10.607 -# CONFIG_CD_NO_IDESCSI is not set
  10.608 -
  10.609 -#
  10.610 -# Input core support
  10.611 -#
  10.612 -# CONFIG_INPUT is not set
  10.613 -# CONFIG_INPUT_KEYBDEV is not set
  10.614 -# CONFIG_INPUT_MOUSEDEV is not set
  10.615 -# CONFIG_INPUT_JOYDEV is not set
  10.616 -# CONFIG_INPUT_EVDEV is not set
  10.617 -# CONFIG_INPUT_UINPUT is not set
  10.618 -
  10.619 -#
  10.620 -# Character devices
  10.621 -#
  10.622 -CONFIG_VT=y
  10.623 -CONFIG_VT_CONSOLE=y
  10.624 -# CONFIG_SERIAL is not set
  10.625 -# CONFIG_SERIAL_EXTENDED is not set
  10.626 -# CONFIG_SERIAL_NONSTANDARD is not set
  10.627 -CONFIG_UNIX98_PTYS=y
  10.628 -CONFIG_UNIX98_PTY_COUNT=256
  10.629 -
  10.630 -#
  10.631 -# I2C support
  10.632 -#
  10.633 -# CONFIG_I2C is not set
  10.634 -
  10.635 -#
  10.636 -# Mice
  10.637 -#
  10.638 -# CONFIG_BUSMOUSE is not set
  10.639 -CONFIG_MOUSE=y
  10.640 -CONFIG_PSMOUSE=y
  10.641 -# CONFIG_82C710_MOUSE is not set
  10.642 -# CONFIG_PC110_PAD is not set
  10.643 -# CONFIG_MK712_MOUSE is not set
  10.644 -
  10.645 -#
  10.646 -# Joysticks
  10.647 -#
  10.648 -# CONFIG_INPUT_GAMEPORT is not set
  10.649 -# CONFIG_QIC02_TAPE is not set
  10.650 -# CONFIG_IPMI_HANDLER is not set
  10.651 -# CONFIG_IPMI_PANIC_EVENT is not set
  10.652 -# CONFIG_IPMI_DEVICE_INTERFACE is not set
  10.653 -# CONFIG_IPMI_KCS is not set
  10.654 -# CONFIG_IPMI_WATCHDOG is not set
  10.655 -
  10.656 -#
  10.657 -# Watchdog Cards
  10.658 -#
  10.659 -# CONFIG_WATCHDOG is not set
  10.660 -# CONFIG_SCx200 is not set
  10.661 -# CONFIG_SCx200_GPIO is not set
  10.662 -# CONFIG_AMD_RNG is not set
  10.663 -# CONFIG_INTEL_RNG is not set
  10.664 -# CONFIG_HW_RANDOM is not set
  10.665 -# CONFIG_AMD_PM768 is not set
  10.666 -# CONFIG_NVRAM is not set
  10.667 -# CONFIG_RTC is not set
  10.668 -# CONFIG_DTLK is not set
  10.669 -# CONFIG_R3964 is not set
  10.670 -# CONFIG_APPLICOM is not set
  10.671 -# CONFIG_SONYPI is not set
  10.672 -
  10.673 -#
  10.674 -# Ftape, the floppy tape device driver
  10.675 -#
  10.676 -# CONFIG_FTAPE is not set
  10.677 -# CONFIG_AGP is not set
  10.678 -
  10.679 -#
  10.680 -# Direct Rendering Manager (XFree86 DRI support)
  10.681 -#
  10.682 -# CONFIG_DRM is not set
  10.683 -# CONFIG_MWAVE is not set
  10.684 -# CONFIG_OBMOUSE is not set
  10.685 -
  10.686 -#
  10.687 -# Multimedia devices
  10.688 -#
  10.689 -# CONFIG_VIDEO_DEV is not set
  10.690 -
  10.691 -#
  10.692 -# File systems
  10.693 -#
  10.694 -# CONFIG_QUOTA is not set
  10.695 -# CONFIG_QFMT_V2 is not set
  10.696 -CONFIG_AUTOFS_FS=y
  10.697 -CONFIG_AUTOFS4_FS=y
  10.698 -# CONFIG_REISERFS_FS is not set
  10.699 -# CONFIG_REISERFS_CHECK is not set
  10.700 -# CONFIG_REISERFS_PROC_INFO is not set
  10.701 -# CONFIG_ADFS_FS is not set
  10.702 -# CONFIG_ADFS_FS_RW is not set
  10.703 -# CONFIG_AFFS_FS is not set
  10.704 -# CONFIG_HFS_FS is not set
  10.705 -# CONFIG_HFSPLUS_FS is not set
  10.706 -# CONFIG_BEFS_FS is not set
  10.707 -# CONFIG_BEFS_DEBUG is not set
  10.708 -# CONFIG_BFS_FS is not set
  10.709 -CONFIG_EXT3_FS=y
  10.710 -CONFIG_JBD=y
  10.711 -# CONFIG_JBD_DEBUG is not set
  10.712 -CONFIG_FAT_FS=y
  10.713 -CONFIG_MSDOS_FS=y
  10.714 -CONFIG_UMSDOS_FS=y
  10.715 -CONFIG_VFAT_FS=y
  10.716 -# CONFIG_EFS_FS is not set
  10.717 -# CONFIG_JFFS_FS is not set
  10.718 -# CONFIG_JFFS2_FS is not set
  10.719 -# CONFIG_CRAMFS is not set
  10.720 -CONFIG_TMPFS=y
  10.721 -CONFIG_RAMFS=y
  10.722 -CONFIG_ISO9660_FS=y
  10.723 -CONFIG_JOLIET=y
  10.724 -CONFIG_ZISOFS=y
  10.725 -# CONFIG_JFS_FS is not set
  10.726 -# CONFIG_JFS_DEBUG is not set
  10.727 -# CONFIG_JFS_STATISTICS is not set
  10.728 -# CONFIG_MINIX_FS is not set
  10.729 -# CONFIG_VXFS_FS is not set
  10.730 -# CONFIG_NTFS_FS is not set
  10.731 -# CONFIG_NTFS_RW is not set
  10.732 -# CONFIG_HPFS_FS is not set
  10.733 -CONFIG_PROC_FS=y
  10.734 -# CONFIG_DEVFS_FS is not set
  10.735 -# CONFIG_DEVFS_MOUNT is not set
  10.736 -# CONFIG_DEVFS_DEBUG is not set
  10.737 -CONFIG_DEVPTS_FS=y
  10.738 -# CONFIG_QNX4FS_FS is not set
  10.739 -# CONFIG_QNX4FS_RW is not set
  10.740 -# CONFIG_ROMFS_FS is not set
  10.741 -CONFIG_EXT2_FS=y
  10.742 -# CONFIG_SYSV_FS is not set
  10.743 -# CONFIG_UDF_FS is not set
  10.744 -# CONFIG_UDF_RW is not set
  10.745 -# CONFIG_UFS_FS is not set
  10.746 -# CONFIG_UFS_FS_WRITE is not set
  10.747 -# CONFIG_XFS_FS is not set
  10.748 -# CONFIG_XFS_QUOTA is not set
  10.749 -# CONFIG_XFS_RT is not set
  10.750 -# CONFIG_XFS_TRACE is not set
  10.751 -# CONFIG_XFS_DEBUG is not set
  10.752 -
  10.753 -#
  10.754 -# Network File Systems
  10.755 -#
  10.756 -# CONFIG_CODA_FS is not set
  10.757 -# CONFIG_INTERMEZZO_FS is not set
  10.758 -CONFIG_NFS_FS=y
  10.759 -CONFIG_NFS_V3=y
  10.760 -# CONFIG_NFS_DIRECTIO is not set
  10.761 -CONFIG_ROOT_NFS=y
  10.762 -CONFIG_NFSD=y
  10.763 -CONFIG_NFSD_V3=y
  10.764 -# CONFIG_NFSD_TCP is not set
  10.765 -CONFIG_SUNRPC=y
  10.766 -CONFIG_LOCKD=y
  10.767 -CONFIG_LOCKD_V4=y
  10.768 -# CONFIG_SMB_FS is not set
  10.769 -# CONFIG_NCP_FS is not set
  10.770 -# CONFIG_NCPFS_PACKET_SIGNING is not set
  10.771 -# CONFIG_NCPFS_IOCTL_LOCKING is not set
  10.772 -# CONFIG_NCPFS_STRONG is not set
  10.773 -# CONFIG_NCPFS_NFS_NS is not set
  10.774 -# CONFIG_NCPFS_OS2_NS is not set
  10.775 -# CONFIG_NCPFS_SMALLDOS is not set
  10.776 -# CONFIG_NCPFS_NLS is not set
  10.777 -# CONFIG_NCPFS_EXTRAS is not set
  10.778 -CONFIG_ZISOFS_FS=y
  10.779 -
  10.780 -#
  10.781 -# Partition Types
  10.782 -#
  10.783 -CONFIG_PARTITION_ADVANCED=y
  10.784 -# CONFIG_ACORN_PARTITION is not set
  10.785 -# CONFIG_OSF_PARTITION is not set
  10.786 -# CONFIG_AMIGA_PARTITION is not set
  10.787 -# CONFIG_ATARI_PARTITION is not set
  10.788 -# CONFIG_MAC_PARTITION is not set
  10.789 -CONFIG_MSDOS_PARTITION=y
  10.790 -# CONFIG_BSD_DISKLABEL is not set
  10.791 -# CONFIG_MINIX_SUBPARTITION is not set
  10.792 -# CONFIG_SOLARIS_X86_PARTITION is not set
  10.793 -# CONFIG_UNIXWARE_DISKLABEL is not set
  10.794 -# CONFIG_LDM_PARTITION is not set
  10.795 -# CONFIG_SGI_PARTITION is not set
  10.796 -# CONFIG_ULTRIX_PARTITION is not set
  10.797 -# CONFIG_SUN_PARTITION is not set
  10.798 -# CONFIG_EFI_PARTITION is not set
  10.799 -# CONFIG_SMB_NLS is not set
  10.800 -CONFIG_NLS=y
  10.801 -
  10.802 -#
  10.803 -# Native Language Support
  10.804 -#
  10.805 -CONFIG_NLS_DEFAULT="iso8559-1"
  10.806 -# CONFIG_NLS_CODEPAGE_437 is not set
  10.807 -# CONFIG_NLS_CODEPAGE_737 is not set
  10.808 -# CONFIG_NLS_CODEPAGE_775 is not set
  10.809 -# CONFIG_NLS_CODEPAGE_850 is not set
  10.810 -# CONFIG_NLS_CODEPAGE_852 is not set
  10.811 -# CONFIG_NLS_CODEPAGE_855 is not set
  10.812 -# CONFIG_NLS_CODEPAGE_857 is not set
  10.813 -# CONFIG_NLS_CODEPAGE_860 is not set
  10.814 -# CONFIG_NLS_CODEPAGE_861 is not set
  10.815 -# CONFIG_NLS_CODEPAGE_862 is not set
  10.816 -# CONFIG_NLS_CODEPAGE_863 is not set
  10.817 -# CONFIG_NLS_CODEPAGE_864 is not set
  10.818 -# CONFIG_NLS_CODEPAGE_865 is not set
  10.819 -# CONFIG_NLS_CODEPAGE_866 is not set
  10.820 -# CONFIG_NLS_CODEPAGE_869 is not set
  10.821 -# CONFIG_NLS_CODEPAGE_936 is not set
  10.822 -# CONFIG_NLS_CODEPAGE_950 is not set
  10.823 -# CONFIG_NLS_CODEPAGE_932 is not set
  10.824 -# CONFIG_NLS_CODEPAGE_949 is not set
  10.825 -# CONFIG_NLS_CODEPAGE_874 is not set
  10.826 -# CONFIG_NLS_ISO8859_8 is not set
  10.827 -# CONFIG_NLS_CODEPAGE_1250 is not set
  10.828 -# CONFIG_NLS_CODEPAGE_1251 is not set
  10.829 -CONFIG_NLS_ISO8859_1=y
  10.830 -# CONFIG_NLS_ISO8859_2 is not set
  10.831 -# CONFIG_NLS_ISO8859_3 is not set
  10.832 -# CONFIG_NLS_ISO8859_4 is not set
  10.833 -# CONFIG_NLS_ISO8859_5 is not set
  10.834 -# CONFIG_NLS_ISO8859_6 is not set
  10.835 -# CONFIG_NLS_ISO8859_7 is not set
  10.836 -# CONFIG_NLS_ISO8859_9 is not set
  10.837 -# CONFIG_NLS_ISO8859_13 is not set
  10.838 -# CONFIG_NLS_ISO8859_14 is not set
  10.839 -# CONFIG_NLS_ISO8859_15 is not set
  10.840 -# CONFIG_NLS_KOI8_R is not set
  10.841 -# CONFIG_NLS_KOI8_U is not set
  10.842 -# CONFIG_NLS_UTF8 is not set
  10.843 -
  10.844 -#
  10.845 -# Console drivers
  10.846 -#
  10.847 -CONFIG_XEN_CONSOLE=y
  10.848 -CONFIG_VGA_CONSOLE=y
  10.849 -CONFIG_DUMMY_CONSOLE=y
  10.850 -# CONFIG_VIDEO_SELECT is not set
  10.851 -# CONFIG_MDA_CONSOLE is not set
  10.852 -
  10.853 -#
  10.854 -# Frame-buffer support
  10.855 -#
  10.856 -# CONFIG_FB is not set
  10.857 -
  10.858 -#
  10.859 -# Sound
  10.860 -#
  10.861 -# CONFIG_SOUND is not set
  10.862 -
  10.863 -#
  10.864 -# USB support
  10.865 -#
  10.866 -# CONFIG_USB is not set
  10.867 -
  10.868 -#
  10.869 -# Support for USB gadgets
  10.870 -#
  10.871 -# CONFIG_USB_GADGET is not set
  10.872 -
  10.873 -#
  10.874 -# Bluetooth support
  10.875 -#
  10.876 -# CONFIG_BLUEZ is not set
  10.877 -
  10.878 -#
  10.879 -# Kernel hacking
  10.880 -#
  10.881 -CONFIG_DEBUG_KERNEL=y
  10.882 -# CONFIG_DEBUG_STACKOVERFLOW is not set
  10.883 -# CONFIG_DEBUG_HIGHMEM is not set
  10.884 -# CONFIG_DEBUG_SLAB is not set
  10.885 -# CONFIG_DEBUG_IOVIRT is not set
  10.886 -# CONFIG_MAGIC_SYSRQ is not set
  10.887 -# CONFIG_DEBUG_SPINLOCK is not set
  10.888 -# CONFIG_DEBUG_BUGVERBOSE is not set
  10.889 -CONFIG_KALLSYMS=y
  10.890 -# CONFIG_FRAME_POINTER is not set
  10.891 -CONFIG_LOG_BUF_SHIFT=0
  10.892 -
  10.893 -#
  10.894 -# Cryptographic options
  10.895 -#
  10.896 -CONFIG_CRYPTO=y
  10.897 -CONFIG_CRYPTO_HMAC=y
  10.898 -CONFIG_CRYPTO_NULL=m
  10.899 -CONFIG_CRYPTO_MD4=m
  10.900 -CONFIG_CRYPTO_MD5=m
  10.901 -CONFIG_CRYPTO_SHA1=m
  10.902 -CONFIG_CRYPTO_SHA256=m
  10.903 -CONFIG_CRYPTO_SHA512=m
  10.904 -CONFIG_CRYPTO_DES=m
  10.905 -CONFIG_CRYPTO_BLOWFISH=m
  10.906 -CONFIG_CRYPTO_TWOFISH=m
  10.907 -CONFIG_CRYPTO_SERPENT=m
  10.908 -CONFIG_CRYPTO_AES=m
  10.909 -CONFIG_CRYPTO_CAST5=m
  10.910 -CONFIG_CRYPTO_CAST6=m
  10.911 -# CONFIG_CRYPTO_TEA is not set
  10.912 -CONFIG_CRYPTO_ARC4=m
  10.913 -CONFIG_CRYPTO_DEFLATE=m
  10.914 -# CONFIG_CRYPTO_MICHAEL_MIC is not set
  10.915 -# CONFIG_CRYPTO_TEST is not set
  10.916 -
  10.917 -#
  10.918 -# Library routines
  10.919 -#
  10.920 -# CONFIG_CRC32 is not set
  10.921 -CONFIG_ZLIB_INFLATE=y
  10.922 -CONFIG_ZLIB_DEFLATE=m
  10.923 -# CONFIG_FW_LOADER is not set
    11.1 --- a/linux-2.4.27-xen-sparse/arch/xen/defconfig-xenU	Fri Nov 19 23:17:26 2004 +0000
    11.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.3 @@ -1,547 +0,0 @@
    11.4 -#
    11.5 -# Automatically generated by make menuconfig: don't edit
    11.6 -#
    11.7 -CONFIG_XEN=y
    11.8 -CONFIG_X86=y
    11.9 -CONFIG_ISA=y
   11.10 -# CONFIG_SBUS is not set
   11.11 -CONFIG_UID16=y
   11.12 -
   11.13 -#
   11.14 -# Xen
   11.15 -#
   11.16 -# CONFIG_XEN_PRIVILEGED_GUEST is not set
   11.17 -# CONFIG_XEN_PHYSDEV_ACCESS is not set
   11.18 -# CONFIG_XEN_BLKDEV_BACKEND is not set
   11.19 -# CONFIG_XEN_NETDEV_BACKEND is not set
   11.20 -CONFIG_XEN_BLKDEV_FRONTEND=y
   11.21 -CONFIG_XEN_NETDEV_FRONTEND=y
   11.22 -CONFIG_XEN_SCRUB_PAGES=y
   11.23 -CONFIG_NO_IDLE_HZ=y
   11.24 -# CONFIG_FOREIGN_PAGES is not set
   11.25 -CONFIG_NETDEVICES=y
   11.26 -# CONFIG_VT is not set
   11.27 -
   11.28 -#
   11.29 -# Code maturity level options
   11.30 -#
   11.31 -CONFIG_EXPERIMENTAL=y
   11.32 -
   11.33 -#
   11.34 -# Loadable module support
   11.35 -#
   11.36 -CONFIG_MODULES=y
   11.37 -CONFIG_MODVERSIONS=y
   11.38 -CONFIG_KMOD=y
   11.39 -
   11.40 -#
   11.41 -# Processor type and features
   11.42 -#
   11.43 -CONFIG_M686=y
   11.44 -# CONFIG_MPENTIUMIII is not set
   11.45 -# CONFIG_MPENTIUM4 is not set
   11.46 -# CONFIG_MK7 is not set
   11.47 -# CONFIG_MK8 is not set
   11.48 -# CONFIG_MVIAC3_2 is not set
   11.49 -CONFIG_X86_WP_WORKS_OK=y
   11.50 -CONFIG_X86_INVLPG=y
   11.51 -CONFIG_X86_CMPXCHG=y
   11.52 -CONFIG_X86_XADD=y
   11.53 -CONFIG_X86_BSWAP=y
   11.54 -CONFIG_X86_POPAD_OK=y
   11.55 -# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
   11.56 -CONFIG_RWSEM_XCHGADD_ALGORITHM=y
   11.57 -CONFIG_X86_GOOD_APIC=y
   11.58 -CONFIG_X86_PGE=y
   11.59 -CONFIG_X86_USE_PPRO_CHECKSUM=y
   11.60 -CONFIG_X86_TSC=y
   11.61 -CONFIG_X86_L1_CACHE_SHIFT=5
   11.62 -CONFIG_NOHIGHMEM=y
   11.63 -# CONFIG_HIGHMEM4G is not set
   11.64 -CONFIG_FORCE_MAX_ZONEORDER=11
   11.65 -
   11.66 -#
   11.67 -# General setup
   11.68 -#
   11.69 -CONFIG_NET=y
   11.70 -CONFIG_SYSVIPC=y
   11.71 -# CONFIG_BSD_PROCESS_ACCT is not set
   11.72 -CONFIG_SYSCTL=y
   11.73 -CONFIG_KCORE_ELF=y
   11.74 -# CONFIG_KCORE_AOUT is not set
   11.75 -CONFIG_BINFMT_AOUT=y
   11.76 -CONFIG_BINFMT_ELF=y
   11.77 -# CONFIG_BINFMT_MISC is not set
   11.78 -# CONFIG_OOM_KILLER is not set
   11.79 -
   11.80 -#
   11.81 -# Networking options
   11.82 -#
   11.83 -CONFIG_PACKET=y
   11.84 -CONFIG_PACKET_MMAP=y
   11.85 -# CONFIG_NETLINK_DEV is not set
   11.86 -CONFIG_NETFILTER=y
   11.87 -# CONFIG_NETFILTER_DEBUG is not set
   11.88 -CONFIG_FILTER=y
   11.89 -CONFIG_UNIX=y
   11.90 -CONFIG_INET=y
   11.91 -# CONFIG_IP_MULTICAST is not set
   11.92 -# CONFIG_IP_ADVANCED_ROUTER is not set
   11.93 -CONFIG_IP_PNP=y
   11.94 -CONFIG_IP_PNP_DHCP=y
   11.95 -# CONFIG_IP_PNP_BOOTP is not set
   11.96 -# CONFIG_IP_PNP_RARP is not set
   11.97 -# CONFIG_NET_IPIP is not set
   11.98 -# CONFIG_NET_IPGRE is not set
   11.99 -# CONFIG_ARPD is not set
  11.100 -# CONFIG_INET_ECN is not set
  11.101 -# CONFIG_SYN_COOKIES is not set
  11.102 -
  11.103 -#
  11.104 -#   IP: Netfilter Configuration
  11.105 -#
  11.106 -CONFIG_IP_NF_CONNTRACK=y
  11.107 -CONFIG_IP_NF_FTP=y
  11.108 -# CONFIG_IP_NF_AMANDA is not set
  11.109 -CONFIG_IP_NF_TFTP=y
  11.110 -CONFIG_IP_NF_IRC=y
  11.111 -# CONFIG_IP_NF_QUEUE is not set
  11.112 -CONFIG_IP_NF_IPTABLES=y
  11.113 -# CONFIG_IP_NF_MATCH_LIMIT is not set
  11.114 -# CONFIG_IP_NF_MATCH_MAC is not set
  11.115 -# CONFIG_IP_NF_MATCH_PKTTYPE is not set
  11.116 -# CONFIG_IP_NF_MATCH_MARK is not set
  11.117 -# CONFIG_IP_NF_MATCH_MULTIPORT is not set
  11.118 -# CONFIG_IP_NF_MATCH_TOS is not set
  11.119 -# CONFIG_IP_NF_MATCH_RECENT is not set
  11.120 -# CONFIG_IP_NF_MATCH_ECN is not set
  11.121 -# CONFIG_IP_NF_MATCH_DSCP is not set
  11.122 -# CONFIG_IP_NF_MATCH_AH_ESP is not set
  11.123 -# CONFIG_IP_NF_MATCH_LENGTH is not set
  11.124 -# CONFIG_IP_NF_MATCH_TTL is not set
  11.125 -# CONFIG_IP_NF_MATCH_TCPMSS is not set
  11.126 -# CONFIG_IP_NF_MATCH_HELPER is not set
  11.127 -CONFIG_IP_NF_MATCH_STATE=y
  11.128 -CONFIG_IP_NF_MATCH_CONNTRACK=y
  11.129 -# CONFIG_IP_NF_MATCH_UNCLEAN is not set
  11.130 -# CONFIG_IP_NF_MATCH_OWNER is not set
  11.131 -CONFIG_IP_NF_FILTER=y
  11.132 -CONFIG_IP_NF_TARGET_REJECT=y
  11.133 -# CONFIG_IP_NF_TARGET_MIRROR is not set
  11.134 -CONFIG_IP_NF_NAT=y
  11.135 -CONFIG_IP_NF_NAT_NEEDED=y
  11.136 -CONFIG_IP_NF_TARGET_MASQUERADE=y
  11.137 -CONFIG_IP_NF_TARGET_REDIRECT=y
  11.138 -# CONFIG_IP_NF_NAT_LOCAL is not set
  11.139 -# CONFIG_IP_NF_NAT_SNMP_BASIC is not set
  11.140 -CONFIG_IP_NF_NAT_IRC=y
  11.141 -CONFIG_IP_NF_NAT_FTP=y
  11.142 -CONFIG_IP_NF_NAT_TFTP=y
  11.143 -# CONFIG_IP_NF_MANGLE is not set
  11.144 -CONFIG_IP_NF_TARGET_LOG=y
  11.145 -CONFIG_IP_NF_TARGET_ULOG=y
  11.146 -# CONFIG_IP_NF_TARGET_TCPMSS is not set
  11.147 -# CONFIG_IP_NF_ARPTABLES is not set
  11.148 -
  11.149 -#
  11.150 -#   IP: Virtual Server Configuration
  11.151 -#
  11.152 -# CONFIG_IP_VS is not set
  11.153 -# CONFIG_IPV6 is not set
  11.154 -# CONFIG_KHTTPD is not set
  11.155 -
  11.156 -#
  11.157 -#    SCTP Configuration (EXPERIMENTAL)
  11.158 -#
  11.159 -# CONFIG_IP_SCTP is not set
  11.160 -# CONFIG_ATM is not set
  11.161 -CONFIG_VLAN_8021Q=y
  11.162 -# CONFIG_IPX is not set
  11.163 -# CONFIG_ATALK is not set
  11.164 -
  11.165 -#
  11.166 -# Appletalk devices
  11.167 -#
  11.168 -# CONFIG_DEV_APPLETALK is not set
  11.169 -# CONFIG_DECNET is not set
  11.170 -# CONFIG_BRIDGE is not set
  11.171 -# CONFIG_X25 is not set
  11.172 -# CONFIG_LAPB is not set
  11.173 -# CONFIG_LLC is not set
  11.174 -# CONFIG_NET_DIVERT is not set
  11.175 -# CONFIG_ECONET is not set
  11.176 -# CONFIG_WAN_ROUTER is not set
  11.177 -# CONFIG_NET_FASTROUTE is not set
  11.178 -# CONFIG_NET_HW_FLOWCONTROL is not set
  11.179 -
  11.180 -#
  11.181 -# QoS and/or fair queueing
  11.182 -#
  11.183 -# CONFIG_NET_SCHED is not set
  11.184 -
  11.185 -#
  11.186 -# Network testing
  11.187 -#
  11.188 -# CONFIG_NET_PKTGEN is not set
  11.189 -
  11.190 -#
  11.191 -# SCSI support
  11.192 -#
  11.193 -CONFIG_SCSI=y
  11.194 -CONFIG_BLK_DEV_SD=y
  11.195 -CONFIG_SD_EXTRA_DEVS=40
  11.196 -# CONFIG_CHR_DEV_ST is not set
  11.197 -# CONFIG_CHR_DEV_OSST is not set
  11.198 -# CONFIG_BLK_DEV_SR is not set
  11.199 -CONFIG_CHR_DEV_SG=y
  11.200 -# CONFIG_SCSI_DEBUG_QUEUES is not set
  11.201 -# CONFIG_SCSI_MULTI_LUN is not set
  11.202 -# CONFIG_SCSI_CONSTANTS is not set
  11.203 -# CONFIG_SCSI_LOGGING is not set
  11.204 -
  11.205 -#
  11.206 -# SCSI low-level drivers
  11.207 -#
  11.208 -# CONFIG_SCSI_7000FASST is not set
  11.209 -# CONFIG_SCSI_ACARD is not set
  11.210 -# CONFIG_SCSI_AHA152X is not set
  11.211 -# CONFIG_SCSI_AHA1542 is not set
  11.212 -# CONFIG_SCSI_AHA1740 is not set
  11.213 -# CONFIG_SCSI_AACRAID is not set
  11.214 -# CONFIG_SCSI_AIC7XXX is not set
  11.215 -# CONFIG_SCSI_AIC79XX is not set
  11.216 -# CONFIG_SCSI_AIC7XXX_OLD is not set
  11.217 -# CONFIG_SCSI_DPT_I2O is not set
  11.218 -# CONFIG_SCSI_ADVANSYS is not set
  11.219 -# CONFIG_SCSI_IN2000 is not set
  11.220 -# CONFIG_SCSI_AM53C974 is not set
  11.221 -# CONFIG_SCSI_MEGARAID is not set
  11.222 -# CONFIG_SCSI_MEGARAID2 is not set
  11.223 -# CONFIG_SCSI_SATA is not set
  11.224 -# CONFIG_SCSI_SATA_SVW is not set
  11.225 -# CONFIG_SCSI_SATA_PROMISE is not set
  11.226 -# CONFIG_SCSI_SATA_SX4 is not set
  11.227 -# CONFIG_SCSI_SATA_SIL is not set
  11.228 -# CONFIG_SCSI_SATA_SIS is not set
  11.229 -# CONFIG_SCSI_SATA_VIA is not set
  11.230 -# CONFIG_SCSI_SATA_VITESSE is not set
  11.231 -# CONFIG_SCSI_BUSLOGIC is not set
  11.232 -# CONFIG_SCSI_DMX3191D is not set
  11.233 -# CONFIG_SCSI_DTC3280 is not set
  11.234 -# CONFIG_SCSI_EATA is not set
  11.235 -# CONFIG_SCSI_EATA_DMA is not set
  11.236 -# CONFIG_SCSI_EATA_PIO is not set
  11.237 -# CONFIG_SCSI_FUTURE_DOMAIN is not set
  11.238 -# CONFIG_SCSI_GDTH is not set
  11.239 -# CONFIG_SCSI_GENERIC_NCR5380 is not set
  11.240 -# CONFIG_SCSI_IPS is not set
  11.241 -# CONFIG_SCSI_INITIO is not set
  11.242 -# CONFIG_SCSI_INIA100 is not set
  11.243 -# CONFIG_SCSI_PPA is not set
  11.244 -# CONFIG_SCSI_IMM is not set
  11.245 -# CONFIG_SCSI_NCR53C406A is not set
  11.246 -# CONFIG_SCSI_NCR53C7xx is not set
  11.247 -# CONFIG_SCSI_PAS16 is not set
  11.248 -# CONFIG_SCSI_PCI2000 is not set
  11.249 -# CONFIG_SCSI_PCI2220I is not set
  11.250 -# CONFIG_SCSI_PSI240I is not set
  11.251 -# CONFIG_SCSI_QLOGIC_FAS is not set
  11.252 -# CONFIG_SCSI_SEAGATE is not set
  11.253 -# CONFIG_SCSI_SIM710 is not set
  11.254 -# CONFIG_SCSI_SYM53C416 is not set
  11.255 -# CONFIG_SCSI_T128 is not set
  11.256 -# CONFIG_SCSI_U14_34F is not set
  11.257 -# CONFIG_SCSI_ULTRASTOR is not set
  11.258 -# CONFIG_SCSI_NSP32 is not set
  11.259 -# CONFIG_SCSI_DEBUG is not set
  11.260 -
  11.261 -#
  11.262 -# Block devices
  11.263 -#
  11.264 -CONFIG_BLK_DEV_LOOP=y
  11.265 -CONFIG_BLK_DEV_NBD=y
  11.266 -CONFIG_BLK_DEV_RAM=y
  11.267 -CONFIG_BLK_DEV_RAM_SIZE=4096
  11.268 -CONFIG_BLK_DEV_INITRD=y
  11.269 -# CONFIG_BLK_STATS is not set
  11.270 -# CONFIG_BLK_DEV_HD is not set
  11.271 -
  11.272 -#
  11.273 -# Character devices
  11.274 -#
  11.275 -# CONFIG_VT is not set
  11.276 -# CONFIG_SERIAL is not set
  11.277 -# CONFIG_SERIAL_EXTENDED is not set
  11.278 -# CONFIG_SERIAL_NONSTANDARD is not set
  11.279 -CONFIG_UNIX98_PTYS=y
  11.280 -CONFIG_UNIX98_PTY_COUNT=256
  11.281 -# CONFIG_PRINTER is not set
  11.282 -# CONFIG_PPDEV is not set
  11.283 -# CONFIG_TIPAR is not set
  11.284 -
  11.285 -#
  11.286 -# I2C support
  11.287 -#
  11.288 -# CONFIG_I2C is not set
  11.289 -
  11.290 -#
  11.291 -# Mice
  11.292 -#
  11.293 -# CONFIG_BUSMOUSE is not set
  11.294 -CONFIG_MOUSE=y
  11.295 -CONFIG_PSMOUSE=y
  11.296 -# CONFIG_82C710_MOUSE is not set
  11.297 -# CONFIG_PC110_PAD is not set
  11.298 -# CONFIG_MK712_MOUSE is not set
  11.299 -
  11.300 -#
  11.301 -# Joysticks
  11.302 -#
  11.303 -# CONFIG_INPUT_GAMEPORT is not set
  11.304 -# CONFIG_INPUT_NS558 is not set
  11.305 -# CONFIG_INPUT_LIGHTNING is not set
  11.306 -# CONFIG_INPUT_PCIGAME is not set
  11.307 -# CONFIG_INPUT_CS461X is not set
  11.308 -# CONFIG_INPUT_EMU10K1 is not set
  11.309 -# CONFIG_INPUT_SERIO is not set
  11.310 -# CONFIG_INPUT_SERPORT is not set
  11.311 -# CONFIG_INPUT_ANALOG is not set
  11.312 -# CONFIG_INPUT_A3D is not set
  11.313 -# CONFIG_INPUT_ADI is not set
  11.314 -# CONFIG_INPUT_COBRA is not set
  11.315 -# CONFIG_INPUT_GF2K is not set
  11.316 -# CONFIG_INPUT_GRIP is not set
  11.317 -# CONFIG_INPUT_INTERACT is not set
  11.318 -# CONFIG_INPUT_TMDC is not set
  11.319 -# CONFIG_INPUT_SIDEWINDER is not set
  11.320 -# CONFIG_INPUT_IFORCE_USB is not set
  11.321 -# CONFIG_INPUT_IFORCE_232 is not set
  11.322 -# CONFIG_INPUT_WARRIOR is not set
  11.323 -# CONFIG_INPUT_MAGELLAN is not set
  11.324 -# CONFIG_INPUT_SPACEORB is not set
  11.325 -# CONFIG_INPUT_SPACEBALL is not set
  11.326 -# CONFIG_INPUT_STINGER is not set
  11.327 -# CONFIG_INPUT_DB9 is not set
  11.328 -# CONFIG_INPUT_GAMECON is not set
  11.329 -# CONFIG_INPUT_TURBOGRAFX is not set
  11.330 -# CONFIG_QIC02_TAPE is not set
  11.331 -# CONFIG_IPMI_HANDLER is not set
  11.332 -# CONFIG_IPMI_PANIC_EVENT is not set
  11.333 -# CONFIG_IPMI_DEVICE_INTERFACE is not set
  11.334 -# CONFIG_IPMI_KCS is not set
  11.335 -# CONFIG_IPMI_WATCHDOG is not set
  11.336 -
  11.337 -#
  11.338 -# Watchdog Cards
  11.339 -#
  11.340 -# CONFIG_WATCHDOG is not set
  11.341 -# CONFIG_SCx200 is not set
  11.342 -# CONFIG_SCx200_GPIO is not set
  11.343 -# CONFIG_AMD_RNG is not set
  11.344 -# CONFIG_INTEL_RNG is not set
  11.345 -# CONFIG_HW_RANDOM is not set
  11.346 -# CONFIG_AMD_PM768 is not set
  11.347 -# CONFIG_NVRAM is not set
  11.348 -# CONFIG_RTC is not set
  11.349 -# CONFIG_DTLK is not set
  11.350 -# CONFIG_R3964 is not set
  11.351 -# CONFIG_APPLICOM is not set
  11.352 -# CONFIG_SONYPI is not set
  11.353 -
  11.354 -#
  11.355 -# Ftape, the floppy tape device driver
  11.356 -#
  11.357 -# CONFIG_FTAPE is not set
  11.358 -# CONFIG_AGP is not set
  11.359 -
  11.360 -#
  11.361 -# Direct Rendering Manager (XFree86 DRI support)
  11.362 -#
  11.363 -# CONFIG_DRM is not set
  11.364 -# CONFIG_MWAVE is not set
  11.365 -# CONFIG_OBMOUSE is not set
  11.366 -
  11.367 -#
  11.368 -# File systems
  11.369 -#
  11.370 -# CONFIG_QUOTA is not set
  11.371 -# CONFIG_QFMT_V2 is not set
  11.372 -CONFIG_AUTOFS_FS=y
  11.373 -CONFIG_AUTOFS4_FS=y
  11.374 -# CONFIG_REISERFS_FS is not set
  11.375 -# CONFIG_REISERFS_CHECK is not set
  11.376 -# CONFIG_REISERFS_PROC_INFO is not set
  11.377 -# CONFIG_ADFS_FS is not set
  11.378 -# CONFIG_ADFS_FS_RW is not set
  11.379 -# CONFIG_AFFS_FS is not set
  11.380 -# CONFIG_HFS_FS is not set
  11.381 -# CONFIG_HFSPLUS_FS is not set
  11.382 -# CONFIG_BEFS_FS is not set
  11.383 -# CONFIG_BEFS_DEBUG is not set
  11.384 -# CONFIG_BFS_FS is not set
  11.385 -CONFIG_EXT3_FS=y
  11.386 -CONFIG_JBD=y
  11.387 -# CONFIG_JBD_DEBUG is not set
  11.388 -CONFIG_FAT_FS=y
  11.389 -CONFIG_MSDOS_FS=y
  11.390 -CONFIG_UMSDOS_FS=y
  11.391 -CONFIG_VFAT_FS=y
  11.392 -# CONFIG_EFS_FS is not set
  11.393 -# CONFIG_JFFS_FS is not set
  11.394 -# CONFIG_JFFS2_FS is not set
  11.395 -# CONFIG_CRAMFS is not set
  11.396 -CONFIG_TMPFS=y
  11.397 -CONFIG_RAMFS=y
  11.398 -CONFIG_ISO9660_FS=y
  11.399 -CONFIG_JOLIET=y
  11.400 -CONFIG_ZISOFS=y
  11.401 -# CONFIG_JFS_FS is not set
  11.402 -# CONFIG_JFS_DEBUG is not set
  11.403 -# CONFIG_JFS_STATISTICS is not set
  11.404 -# CONFIG_MINIX_FS is not set
  11.405 -# CONFIG_VXFS_FS is not set
  11.406 -# CONFIG_NTFS_FS is not set
  11.407 -# CONFIG_NTFS_RW is not set
  11.408 -# CONFIG_HPFS_FS is not set
  11.409 -CONFIG_PROC_FS=y
  11.410 -# CONFIG_DEVFS_FS is not set
  11.411 -# CONFIG_DEVFS_MOUNT is not set
  11.412 -# CONFIG_DEVFS_DEBUG is not set
  11.413 -CONFIG_DEVPTS_FS=y
  11.414 -# CONFIG_QNX4FS_FS is not set
  11.415 -# CONFIG_QNX4FS_RW is not set
  11.416 -# CONFIG_ROMFS_FS is not set
  11.417 -CONFIG_EXT2_FS=y
  11.418 -# CONFIG_SYSV_FS is not set
  11.419 -# CONFIG_UDF_FS is not set
  11.420 -# CONFIG_UDF_RW is not set
  11.421 -# CONFIG_UFS_FS is not set
  11.422 -# CONFIG_UFS_FS_WRITE is not set
  11.423 -# CONFIG_XFS_FS is not set
  11.424 -# CONFIG_XFS_QUOTA is not set
  11.425 -# CONFIG_XFS_RT is not set
  11.426 -# CONFIG_XFS_TRACE is not set
  11.427 -# CONFIG_XFS_DEBUG is not set
  11.428 -
  11.429 -#
  11.430 -# Network File Systems
  11.431 -#
  11.432 -# CONFIG_CODA_FS is not set
  11.433 -# CONFIG_INTERMEZZO_FS is not set
  11.434 -CONFIG_NFS_FS=y
  11.435 -CONFIG_NFS_V3=y
  11.436 -# CONFIG_NFS_DIRECTIO is not set
  11.437 -CONFIG_ROOT_NFS=y
  11.438 -CONFIG_NFSD=y
  11.439 -CONFIG_NFSD_V3=y
  11.440 -# CONFIG_NFSD_TCP is not set
  11.441 -CONFIG_SUNRPC=y
  11.442 -CONFIG_LOCKD=y
  11.443 -CONFIG_LOCKD_V4=y
  11.444 -# CONFIG_SMB_FS is not set
  11.445 -# CONFIG_NCP_FS is not set
  11.446 -# CONFIG_NCPFS_PACKET_SIGNING is not set
  11.447 -# CONFIG_NCPFS_IOCTL_LOCKING is not set
  11.448 -# CONFIG_NCPFS_STRONG is not set
  11.449 -# CONFIG_NCPFS_NFS_NS is not set
  11.450 -# CONFIG_NCPFS_OS2_NS is not set
  11.451 -# CONFIG_NCPFS_SMALLDOS is not set
  11.452 -# CONFIG_NCPFS_NLS is not set
  11.453 -# CONFIG_NCPFS_EXTRAS is not set
  11.454 -CONFIG_ZISOFS_FS=y
  11.455 -
  11.456 -#
  11.457 -# Partition Types
  11.458 -#
  11.459 -CONFIG_PARTITION_ADVANCED=y
  11.460 -# CONFIG_ACORN_PARTITION is not set
  11.461 -# CONFIG_OSF_PARTITION is not set
  11.462 -# CONFIG_AMIGA_PARTITION is not set
  11.463 -# CONFIG_ATARI_PARTITION is not set
  11.464 -# CONFIG_MAC_PARTITION is not set
  11.465 -CONFIG_MSDOS_PARTITION=y
  11.466 -# CONFIG_BSD_DISKLABEL is not set
  11.467 -# CONFIG_MINIX_SUBPARTITION is not set
  11.468 -# CONFIG_SOLARIS_X86_PARTITION is not set
  11.469 -# CONFIG_UNIXWARE_DISKLABEL is not set
  11.470 -# CONFIG_LDM_PARTITION is not set
  11.471 -# CONFIG_SGI_PARTITION is not set
  11.472 -# CONFIG_ULTRIX_PARTITION is not set
  11.473 -# CONFIG_SUN_PARTITION is not set
  11.474 -# CONFIG_EFI_PARTITION is not set
  11.475 -# CONFIG_SMB_NLS is not set
  11.476 -CONFIG_NLS=y
  11.477 -
  11.478 -#
  11.479 -# Native Language Support
  11.480 -#
  11.481 -CONFIG_NLS_DEFAULT="iso8559-1"
  11.482 -# CONFIG_NLS_CODEPAGE_437 is not set
  11.483 -# CONFIG_NLS_CODEPAGE_737 is not set
  11.484 -# CONFIG_NLS_CODEPAGE_775 is not set
  11.485 -# CONFIG_NLS_CODEPAGE_850 is not set
  11.486 -# CONFIG_NLS_CODEPAGE_852 is not set
  11.487 -# CONFIG_NLS_CODEPAGE_855 is not set
  11.488 -# CONFIG_NLS_CODEPAGE_857 is not set
  11.489 -# CONFIG_NLS_CODEPAGE_860 is not set
  11.490 -# CONFIG_NLS_CODEPAGE_861 is not set
  11.491 -# CONFIG_NLS_CODEPAGE_862 is not set
  11.492 -# CONFIG_NLS_CODEPAGE_863 is not set
  11.493 -# CONFIG_NLS_CODEPAGE_864 is not set
  11.494 -# CONFIG_NLS_CODEPAGE_865 is not set
  11.495 -# CONFIG_NLS_CODEPAGE_866 is not set
  11.496 -# CONFIG_NLS_CODEPAGE_869 is not set
  11.497 -# CONFIG_NLS_CODEPAGE_936 is not set
  11.498 -# CONFIG_NLS_CODEPAGE_950 is not set
  11.499 -# CONFIG_NLS_CODEPAGE_932 is not set
  11.500 -# CONFIG_NLS_CODEPAGE_949 is not set
  11.501 -# CONFIG_NLS_CODEPAGE_874 is not set
  11.502 -# CONFIG_NLS_ISO8859_8 is not set
  11.503 -# CONFIG_NLS_CODEPAGE_1250 is not set
  11.504 -# CONFIG_NLS_CODEPAGE_1251 is not set
  11.505 -CONFIG_NLS_ISO8859_1=y
  11.506 -# CONFIG_NLS_ISO8859_2 is not set
  11.507 -# CONFIG_NLS_ISO8859_3 is not set
  11.508 -# CONFIG_NLS_ISO8859_4 is not set
  11.509 -# CONFIG_NLS_ISO8859_5 is not set
  11.510 -# CONFIG_NLS_ISO8859_6 is not set
  11.511 -# CONFIG_NLS_ISO8859_7 is not set
  11.512 -# CONFIG_NLS_ISO8859_9 is not set
  11.513 -# CONFIG_NLS_ISO8859_13 is not set
  11.514 -# CONFIG_NLS_ISO8859_14 is not set
  11.515 -# CONFIG_NLS_ISO8859_15 is not set
  11.516 -# CONFIG_NLS_KOI8_R is not set
  11.517 -# CONFIG_NLS_KOI8_U is not set
  11.518 -# CONFIG_NLS_UTF8 is not set
  11.519 -
  11.520 -#
  11.521 -# Console drivers
  11.522 -#
  11.523 -CONFIG_XEN_CONSOLE=y
  11.524 -
  11.525 -#
  11.526 -# Kernel hacking
  11.527 -#
  11.528 -CONFIG_DEBUG_KERNEL=y
  11.529 -# CONFIG_DEBUG_STACKOVERFLOW is not set
  11.530 -# CONFIG_DEBUG_HIGHMEM is not set
  11.531 -# CONFIG_DEBUG_SLAB is not set
  11.532 -# CONFIG_DEBUG_IOVIRT is not set
  11.533 -# CONFIG_MAGIC_SYSRQ is not set
  11.534 -# CONFIG_DEBUG_SPINLOCK is not set
  11.535 -# CONFIG_DEBUG_BUGVERBOSE is not set
  11.536 -CONFIG_KALLSYMS=y
  11.537 -# CONFIG_FRAME_POINTER is not set
  11.538 -CONFIG_LOG_BUF_SHIFT=0
  11.539 -
  11.540 -#
  11.541 -# Cryptographic options
  11.542 -#
  11.543 -# CONFIG_CRYPTO is not set
  11.544 -
  11.545 -#
  11.546 -# Library routines
  11.547 -#
  11.548 -# CONFIG_CRC32 is not set
  11.549 -CONFIG_ZLIB_INFLATE=y
  11.550 -# CONFIG_ZLIB_DEFLATE is not set
    12.1 --- a/linux-2.4.27-xen-sparse/arch/xen/drivers/balloon/Makefile	Fri Nov 19 23:17:26 2004 +0000
    12.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.3 @@ -1,3 +0,0 @@
    12.4 -O_TARGET := drv.o
    12.5 -obj-y := balloon.o
    12.6 -include $(TOPDIR)/Rules.make
    13.1 --- a/linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/Makefile	Fri Nov 19 23:17:26 2004 +0000
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,10 +0,0 @@
    13.4 -
    13.5 -O_TARGET := drv.o
    13.6 -
    13.7 -subdir-$(CONFIG_XEN_BLKDEV_FRONTEND) += frontend
    13.8 -obj-$(CONFIG_XEN_BLKDEV_FRONTEND)    += frontend/drv.o
    13.9 -
   13.10 -subdir-$(CONFIG_XEN_PHYSDEV_ACCESS) += backend
   13.11 -obj-$(CONFIG_XEN_PHYSDEV_ACCESS)    += backend/drv.o
   13.12 -
   13.13 -include $(TOPDIR)/Rules.make
    14.1 --- a/linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/backend/Makefile	Fri Nov 19 23:17:26 2004 +0000
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,3 +0,0 @@
    14.4 -O_TARGET := drv.o
    14.5 -obj-y := main.o control.o interface.o vbd.o
    14.6 -include $(TOPDIR)/Rules.make
    15.1 --- a/linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/frontend/Makefile	Fri Nov 19 23:17:26 2004 +0000
    15.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.3 @@ -1,3 +0,0 @@
    15.4 -O_TARGET := drv.o
    15.5 -obj-y := blkfront.o vbd.o
    15.6 -include $(TOPDIR)/Rules.make
    16.1 --- a/linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/frontend/common.h	Fri Nov 19 23:17:26 2004 +0000
    16.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.3 @@ -1,79 +0,0 @@
    16.4 -/******************************************************************************
    16.5 - * arch/xen/drivers/blkif/frontend/common.h
    16.6 - * 
    16.7 - * Shared definitions between all levels of XenoLinux Virtual block devices.
    16.8 - */
    16.9 -
   16.10 -#ifndef __XEN_DRIVERS_COMMON_H__
   16.11 -#define __XEN_DRIVERS_COMMON_H__
   16.12 -
   16.13 -#include <linux/config.h>
   16.14 -#include <linux/module.h>
   16.15 -#include <linux/kernel.h>
   16.16 -#include <linux/sched.h>
   16.17 -#include <linux/slab.h>
   16.18 -#include <linux/string.h>
   16.19 -#include <linux/errno.h>
   16.20 -#include <linux/fs.h>
   16.21 -#include <linux/hdreg.h>
   16.22 -#include <linux/blkdev.h>
   16.23 -#include <linux/major.h>
   16.24 -#include <asm-xen/xen-public/xen.h>
   16.25 -#include <asm/io.h>
   16.26 -#include <asm/atomic.h>
   16.27 -#include <asm/uaccess.h>
   16.28 -#include <asm-xen/xen-public/io/blkif.h>
   16.29 -
   16.30 -#if 0
   16.31 -#define DPRINTK(_f, _a...) printk ( KERN_ALERT _f , ## _a )
   16.32 -#else
   16.33 -#define DPRINTK(_f, _a...) ((void)0)
   16.34 -#endif
   16.35 -
   16.36 -#if 0
   16.37 -#define DPRINTK_IOCTL(_f, _a...) printk ( KERN_ALERT _f , ## _a )
   16.38 -#else
   16.39 -#define DPRINTK_IOCTL(_f, _a...) ((void)0)
   16.40 -#endif
   16.41 -
   16.42 -/* Private gendisk->flags[] values. */
   16.43 -#define GENHD_FL_XEN        2 /* Is unit a Xen block device?  */
   16.44 -#define GENHD_FL_VIRT_PARTNS 4 /* Are unit partitions virtual? */
   16.45 -
   16.46 -/*
   16.47 - * We have one of these per vbd, whether ide, scsi or 'other'.
   16.48 - * They hang in an array off the gendisk structure. We may end up putting
   16.49 - * all kinds of interesting stuff here :-)
   16.50 - */
   16.51 -typedef struct xl_disk {
   16.52 -    int usage;
   16.53 -} xl_disk_t;
   16.54 -
   16.55 -extern int blkif_open(struct inode *inode, struct file *filep);
   16.56 -extern int blkif_release(struct inode *inode, struct file *filep);
   16.57 -extern int blkif_ioctl(struct inode *inode, struct file *filep,
   16.58 -                                 unsigned command, unsigned long argument);
   16.59 -extern int blkif_check(kdev_t dev);
   16.60 -extern int blkif_revalidate(kdev_t dev);
   16.61 -extern void blkif_control_send(blkif_request_t *req, blkif_response_t *rsp);
   16.62 -extern void do_blkif_request (request_queue_t *rq); 
   16.63 -
   16.64 -extern void xlvbd_update_vbds(void);
   16.65 -
   16.66 -static inline xl_disk_t *xldev_to_xldisk(kdev_t xldev)
   16.67 -{
   16.68 -    struct gendisk *gd = get_gendisk(xldev);
   16.69 -    
   16.70 -    if ( gd == NULL ) 
   16.71 -        return NULL;
   16.72 -    
   16.73 -    return (xl_disk_t *)gd->real_devices + 
   16.74 -        (MINOR(xldev) >> gd->minor_shift);
   16.75 -}
   16.76 -
   16.77 -
   16.78 -/* Virtual block-device subsystem. */
   16.79 -extern int  xlvbd_init(void);
   16.80 -extern void xlvbd_cleanup(void); 
   16.81 -
   16.82 -#endif /* __XEN_DRIVERS_COMMON_H__ */
    17.1 --- a/linux-2.4.27-xen-sparse/arch/xen/drivers/blkif/frontend/vbd.c	Fri Nov 19 23:17:26 2004 +0000
    17.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.3 @@ -1,561 +0,0 @@
    17.4 -/******************************************************************************
    17.5 - * arch/xen/drivers/blkif/frontend/vbd.c
    17.6 - * 
    17.7 - * Xenolinux virtual block-device driver.
    17.8 - * 
    17.9 - * Copyright (c) 2003-2004, Keir Fraser & Steve Hand
   17.10 - * Modifications by Mark A. Williamson are (c) Intel Research Cambridge
   17.11 - */
   17.12 -
   17.13 -#include "common.h"
   17.14 -#include <linux/blk.h>
   17.15 -
   17.16 -/*
   17.17 - * For convenience we distinguish between ide, scsi and 'other' (i.e.
   17.18 - * potentially combinations of the two) in the naming scheme and in a few 
   17.19 - * other places (like default readahead, etc).
   17.20 - */
   17.21 -#define XLIDE_MAJOR_NAME  "hd"
   17.22 -#define XLSCSI_MAJOR_NAME "sd"
   17.23 -#define XLVBD_MAJOR_NAME "xvd"
   17.24 -
   17.25 -#define XLIDE_DEVS_PER_MAJOR   2
   17.26 -#define XLSCSI_DEVS_PER_MAJOR 16
   17.27 -#define XLVBD_DEVS_PER_MAJOR  16
   17.28 -
   17.29 -#define XLIDE_PARTN_SHIFT  6    /* amount to shift minor to get 'real' minor */
   17.30 -#define XLIDE_MAX_PART    (1 << XLIDE_PARTN_SHIFT)     /* minors per ide vbd */
   17.31 -
   17.32 -#define XLSCSI_PARTN_SHIFT 4    /* amount to shift minor to get 'real' minor */
   17.33 -#define XLSCSI_MAX_PART   (1 << XLSCSI_PARTN_SHIFT)   /* minors per scsi vbd */
   17.34 -
   17.35 -#define XLVBD_PARTN_SHIFT  4    /* amount to shift minor to get 'real' minor */
   17.36 -#define XLVBD_MAX_PART    (1 << XLVBD_PARTN_SHIFT) /* minors per 'other' vbd */
   17.37 -
   17.38 -/* The below are for the generic drivers/block/ll_rw_block.c code. */
   17.39 -static int xlide_blksize_size[256];
   17.40 -static int xlide_hardsect_size[256];
   17.41 -static int xlide_max_sectors[256];
   17.42 -static int xlscsi_blksize_size[256];
   17.43 -static int xlscsi_hardsect_size[256];
   17.44 -static int xlscsi_max_sectors[256];
   17.45 -static int xlvbd_blksize_size[256];
   17.46 -static int xlvbd_hardsect_size[256];
   17.47 -static int xlvbd_max_sectors[256];
   17.48 -
   17.49 -/* Information about our VBDs. */
   17.50 -#define MAX_VBDS 64
   17.51 -static int nr_vbds;
   17.52 -static vdisk_t *vbd_info;
   17.53 -
   17.54 -static struct block_device_operations xlvbd_block_fops = 
   17.55 -{
   17.56 -    open:               blkif_open,
   17.57 -    release:            blkif_release,
   17.58 -    ioctl:              blkif_ioctl,
   17.59 -    check_media_change: blkif_check,
   17.60 -    revalidate:         blkif_revalidate,
   17.61 -};
   17.62 -
   17.63 -static int xlvbd_get_vbd_info(vdisk_t *disk_info)
   17.64 -{
   17.65 -    vdisk_t         *buf = (vdisk_t *)__get_free_page(GFP_KERNEL);
   17.66 -    blkif_request_t  req;
   17.67 -    blkif_response_t rsp;
   17.68 -    int              nr;
   17.69 -
   17.70 -    memset(&req, 0, sizeof(req));
   17.71 -    req.operation   = BLKIF_OP_PROBE;
   17.72 -    req.nr_segments = 1;
   17.73 -    req.frame_and_sects[0] = virt_to_machine(buf) | 7;
   17.74 -
   17.75 -    blkif_control_send(&req, &rsp);
   17.76 -
   17.77 -    if ( rsp.status <= 0 )
   17.78 -    {
   17.79 -        printk(KERN_ALERT "Could not probe disks (%d)\n", rsp.status);
   17.80 -        return -1;
   17.81 -    }
   17.82 -
   17.83 -    if ( (nr = rsp.status) > MAX_VBDS )
   17.84 -         nr = MAX_VBDS;
   17.85 -    memcpy(disk_info, buf, nr * sizeof(vdisk_t));
   17.86 -
   17.87 -    return nr;
   17.88 -}
   17.89 -
   17.90 -/*
   17.91 - * xlvbd_init_device - initialise a VBD device
   17.92 - * @disk:              a vdisk_t describing the VBD
   17.93 - *
   17.94 - * Takes a vdisk_t * that describes a VBD the domain has access to.
   17.95 - * Performs appropriate initialisation and registration of the device.
   17.96 - *
   17.97 - * Care needs to be taken when making re-entrant calls to ensure that
   17.98 - * corruption does not occur.  Also, devices that are in use should not have
   17.99 - * their details updated.  This is the caller's responsibility.
  17.100 - */
  17.101 -static int xlvbd_init_device(vdisk_t *xd)
  17.102 -{
  17.103 -    int device = xd->device;
  17.104 -    int major  = MAJOR(device); 
  17.105 -    int minor  = MINOR(device);
  17.106 -    int is_ide = IDE_DISK_MAJOR(major);  /* is this an ide device? */
  17.107 -    int is_scsi= SCSI_BLK_MAJOR(major);  /* is this a scsi device? */
  17.108 -    char *major_name;
  17.109 -    struct gendisk *gd;
  17.110 -    struct block_device *bd;
  17.111 -    xl_disk_t *disk;
  17.112 -    int i, rc = 0, max_part, partno;
  17.113 -    unsigned long capacity;
  17.114 -
  17.115 -    unsigned char buf[64];
  17.116 -
  17.117 -    if ( (bd = bdget(device)) == NULL )
  17.118 -        return -1;
  17.119 -
  17.120 -    /*
  17.121 -     * Update of partition info, and check of usage count, is protected
  17.122 -     * by the per-block-device semaphore.
  17.123 -     */
  17.124 -    down(&bd->bd_sem);
  17.125 -
  17.126 -    if ( ((disk = xldev_to_xldisk(device)) != NULL) && (disk->usage != 0) )
  17.127 -    {
  17.128 -        printk(KERN_ALERT "VBD update failed - in use [dev=%x]\n", device);
  17.129 -        rc = -1;
  17.130 -        goto out;
  17.131 -    }
  17.132 -
  17.133 -    if ( is_ide ) {
  17.134 -
  17.135 -	major_name = XLIDE_MAJOR_NAME; 
  17.136 -	max_part   = XLIDE_MAX_PART;
  17.137 -
  17.138 -    } else if ( is_scsi ) {
  17.139 -
  17.140 -	major_name = XLSCSI_MAJOR_NAME;
  17.141 -	max_part   = XLSCSI_MAX_PART;
  17.142 -
  17.143 -    } else if (VDISK_VIRTUAL(xd->info)) {
  17.144 -
  17.145 -	major_name = XLVBD_MAJOR_NAME;
  17.146 -	max_part   = XLVBD_MAX_PART;
  17.147 -
  17.148 -    } else { 
  17.149 -
  17.150 -        /* SMH: hmm - probably a CCISS driver or sim; assume CCISS for now */
  17.151 -	printk(KERN_ALERT "Assuming device %02x:%02x is CCISS/SCSI\n", 
  17.152 -	       major, minor);
  17.153 -	is_scsi    = 1; 
  17.154 -	major_name = "cciss"; 
  17.155 -	max_part   = XLSCSI_MAX_PART;
  17.156 -
  17.157 -    }
  17.158 -    
  17.159 -    partno = minor & (max_part - 1); 
  17.160 -    
  17.161 -    if ( (gd = get_gendisk(device)) == NULL )
  17.162 -    {
  17.163 -        rc = register_blkdev(major, major_name, &xlvbd_block_fops);
  17.164 -        if ( rc < 0 )
  17.165 -        {
  17.166 -            printk(KERN_ALERT "XL VBD: can't get major %d\n", major);
  17.167 -            goto out;
  17.168 -        }
  17.169 -
  17.170 -        if ( is_ide )
  17.171 -        { 
  17.172 -            blksize_size[major]  = xlide_blksize_size;
  17.173 -            hardsect_size[major] = xlide_hardsect_size;
  17.174 -            max_sectors[major]   = xlide_max_sectors;
  17.175 -            read_ahead[major]    = 8; /* from drivers/ide/ide-probe.c */
  17.176 -        } 
  17.177 -        else if ( is_scsi )
  17.178 -        { 
  17.179 -            blksize_size[major]  = xlscsi_blksize_size;
  17.180 -            hardsect_size[major] = xlscsi_hardsect_size;
  17.181 -            max_sectors[major]   = xlscsi_max_sectors;
  17.182 -            read_ahead[major]    = 0; /* XXX 8; -- guessing */
  17.183 -        }
  17.184 -        else
  17.185 -        { 
  17.186 -            blksize_size[major]  = xlvbd_blksize_size;
  17.187 -            hardsect_size[major] = xlvbd_hardsect_size;
  17.188 -            max_sectors[major]   = xlvbd_max_sectors;
  17.189 -            read_ahead[major]    = 8;
  17.190 -        }
  17.191 -
  17.192 -        blk_init_queue(BLK_DEFAULT_QUEUE(major), do_blkif_request);
  17.193 -
  17.194 -        /*
  17.195 -         * Turn off barking 'headactive' mode. We dequeue buffer heads as
  17.196 -         * soon as we pass them to the back-end driver.
  17.197 -         */
  17.198 -        blk_queue_headactive(BLK_DEFAULT_QUEUE(major), 0);
  17.199 -
  17.200 -        /* Construct an appropriate gendisk structure. */
  17.201 -        gd             = kmalloc(sizeof(struct gendisk), GFP_KERNEL);
  17.202 -        gd->major      = major;
  17.203 -        gd->major_name = major_name; 
  17.204 -    
  17.205 -        gd->max_p      = max_part; 
  17.206 -        if ( is_ide )
  17.207 -        { 
  17.208 -            gd->minor_shift  = XLIDE_PARTN_SHIFT; 
  17.209 -            gd->nr_real      = XLIDE_DEVS_PER_MAJOR; 
  17.210 -        } 
  17.211 -        else if ( is_scsi )
  17.212 -        { 
  17.213 -            gd->minor_shift  = XLSCSI_PARTN_SHIFT; 
  17.214 -            gd->nr_real      = XLSCSI_DEVS_PER_MAJOR; 
  17.215 -        }
  17.216 -        else
  17.217 -        { 
  17.218 -            gd->minor_shift  = XLVBD_PARTN_SHIFT; 
  17.219 -            gd->nr_real      = XLVBD_DEVS_PER_MAJOR; 
  17.220 -        }
  17.221 -
  17.222 -        /* 
  17.223 -        ** The sizes[] and part[] arrays hold the sizes and other 
  17.224 -        ** information about every partition with this 'major' (i.e. 
  17.225 -        ** every disk sharing the 8 bit prefix * max partns per disk) 
  17.226 -        */
  17.227 -        gd->sizes = kmalloc(max_part*gd->nr_real*sizeof(int), GFP_KERNEL);
  17.228 -        gd->part  = kmalloc(max_part*gd->nr_real*sizeof(struct hd_struct), 
  17.229 -                            GFP_KERNEL);
  17.230 -        memset(gd->sizes, 0, max_part * gd->nr_real * sizeof(int));
  17.231 -        memset(gd->part,  0, max_part * gd->nr_real 
  17.232 -               * sizeof(struct hd_struct));
  17.233 -
  17.234 -
  17.235 -        gd->real_devices = kmalloc(gd->nr_real * sizeof(xl_disk_t), 
  17.236 -                                   GFP_KERNEL);
  17.237 -        memset(gd->real_devices, 0, gd->nr_real * sizeof(xl_disk_t));
  17.238 -
  17.239 -        gd->next   = NULL;            
  17.240 -        gd->fops   = &xlvbd_block_fops;
  17.241 -
  17.242 -        gd->de_arr = kmalloc(gd->nr_real * sizeof(*gd->de_arr), 
  17.243 -                             GFP_KERNEL);
  17.244 -        gd->flags  = kmalloc(gd->nr_real * sizeof(*gd->flags), GFP_KERNEL);
  17.245 -    
  17.246 -        memset(gd->de_arr, 0, gd->nr_real * sizeof(*gd->de_arr));
  17.247 -        memset(gd->flags, 0, gd->nr_real *  sizeof(*gd->flags));
  17.248 -
  17.249 -        add_gendisk(gd);
  17.250 -
  17.251 -        blk_size[major] = gd->sizes;
  17.252 -    }
  17.253 -
  17.254 -    if ( VDISK_READONLY(xd->info) )
  17.255 -        set_device_ro(device, 1); 
  17.256 -
  17.257 -    gd->flags[minor >> gd->minor_shift] |= GENHD_FL_XEN;
  17.258 -
  17.259 -    /* NB. Linux 2.4 only handles 32-bit sector offsets and capacities. */
  17.260 -    capacity = (unsigned long)xd->capacity;
  17.261 -
  17.262 -    if ( partno != 0 )
  17.263 -    {
  17.264 -        /*
  17.265 -         * If this was previously set up as a real disc we will have set 
  17.266 -         * up partition-table information. Virtual partitions override 
  17.267 -         * 'real' partitions, and the two cannot coexist on a device.
  17.268 -         */
  17.269 -        if ( !(gd->flags[minor >> gd->minor_shift] & GENHD_FL_VIRT_PARTNS) &&
  17.270 -             (gd->sizes[minor & ~(max_part-1)] != 0) )
  17.271 -        {
  17.272 -            /*
  17.273 -             * Any non-zero sub-partition entries must be cleaned out before
  17.274 -             * installing 'virtual' partition entries. The two types cannot
  17.275 -             * coexist, and virtual partitions are favoured.
  17.276 -             */
  17.277 -            kdev_t dev = device & ~(max_part-1);
  17.278 -            for ( i = max_part - 1; i > 0; i-- )
  17.279 -            {
  17.280 -                invalidate_device(dev+i, 1);
  17.281 -                gd->part[MINOR(dev+i)].start_sect = 0;
  17.282 -                gd->part[MINOR(dev+i)].nr_sects   = 0;
  17.283 -                gd->sizes[MINOR(dev+i)]           = 0;
  17.284 -            }
  17.285 -            printk(KERN_ALERT
  17.286 -                   "Virtual partitions found for /dev/%s - ignoring any "
  17.287 -                   "real partition information we may have found.\n",
  17.288 -                   disk_name(gd, MINOR(device), buf));
  17.289 -        }
  17.290 -
  17.291 -        /* Need to skankily setup 'partition' information */
  17.292 -        gd->part[minor].start_sect = 0; 
  17.293 -        gd->part[minor].nr_sects   = capacity; 
  17.294 -        gd->sizes[minor]           = capacity; 
  17.295 -
  17.296 -        gd->flags[minor >> gd->minor_shift] |= GENHD_FL_VIRT_PARTNS;
  17.297 -    }
  17.298 -    else
  17.299 -    {
  17.300 -        gd->part[minor].nr_sects = capacity;
  17.301 -        gd->sizes[minor] = capacity>>(BLOCK_SIZE_BITS-9);
  17.302 -        
  17.303 -        /* Some final fix-ups depending on the device type */
  17.304 -        switch ( VDISK_TYPE(xd->info) )
  17.305 -        { 
  17.306 -        case VDISK_TYPE_CDROM:
  17.307 -        case VDISK_TYPE_FLOPPY: 
  17.308 -        case VDISK_TYPE_TAPE:
  17.309 -            gd->flags[minor >> gd->minor_shift] |= GENHD_FL_REMOVABLE; 
  17.310 -            printk(KERN_ALERT 
  17.311 -                   "Skipping partition check on %s /dev/%s\n", 
  17.312 -                   VDISK_TYPE(xd->info)==VDISK_TYPE_CDROM ? "cdrom" : 
  17.313 -                   (VDISK_TYPE(xd->info)==VDISK_TYPE_TAPE ? "tape" : 
  17.314 -                    "floppy"), disk_name(gd, MINOR(device), buf)); 
  17.315 -            break; 
  17.316 -
  17.317 -        case VDISK_TYPE_DISK:
  17.318 -            /* Only check partitions on real discs (not virtual!). */
  17.319 -            if ( gd->flags[minor>>gd->minor_shift] & GENHD_FL_VIRT_PARTNS )
  17.320 -            {
  17.321 -                printk(KERN_ALERT
  17.322 -                       "Skipping partition check on virtual /dev/%s\n",
  17.323 -                       disk_name(gd, MINOR(device), buf));
  17.324 -                break;
  17.325 -            }
  17.326 -            register_disk(gd, device, gd->max_p, &xlvbd_block_fops, capacity);
  17.327 -            break; 
  17.328 -
  17.329 -        default:
  17.330 -            printk(KERN_ALERT "XenoLinux: unknown device type %d\n", 
  17.331 -                   VDISK_TYPE(xd->info)); 
  17.332 -            break; 
  17.333 -        }
  17.334 -    }
  17.335 -
  17.336 - out:
  17.337 -    up(&bd->bd_sem);
  17.338 -    bdput(bd);    
  17.339 -    return rc;
  17.340 -}
  17.341 -
  17.342 -
  17.343 -/*
  17.344 - * xlvbd_remove_device - remove a device node if possible
  17.345 - * @device:       numeric device ID
  17.346 - *
  17.347 - * Updates the gendisk structure and invalidates devices.
  17.348 - *
  17.349 - * This is OK for now but in future, should perhaps consider where this should
  17.350 - * deallocate gendisks / unregister devices.
  17.351 - */
  17.352 -static int xlvbd_remove_device(int device)
  17.353 -{
  17.354 -    int i, rc = 0, minor = MINOR(device);
  17.355 -    struct gendisk *gd;
  17.356 -    struct block_device *bd;
  17.357 -    xl_disk_t *disk = NULL;
  17.358 -
  17.359 -    if ( (bd = bdget(device)) == NULL )
  17.360 -        return -1;
  17.361 -
  17.362 -    /*
  17.363 -     * Update of partition info, and check of usage count, is protected
  17.364 -     * by the per-block-device semaphore.
  17.365 -     */
  17.366 -    down(&bd->bd_sem);
  17.367 -
  17.368 -    if ( ((gd = get_gendisk(device)) == NULL) ||
  17.369 -         ((disk = xldev_to_xldisk(device)) == NULL) )
  17.370 -        BUG();
  17.371 -
  17.372 -    if ( disk->usage != 0 )
  17.373 -    {
  17.374 -        printk(KERN_ALERT "VBD removal failed - in use [dev=%x]\n", device);
  17.375 -        rc = -1;
  17.376 -        goto out;
  17.377 -    }
  17.378 - 
  17.379 -    if ( (minor & (gd->max_p-1)) != 0 )
  17.380 -    {
  17.381 -        /* 1: The VBD is mapped to a partition rather than a whole unit. */
  17.382 -        invalidate_device(device, 1);
  17.383 -	gd->part[minor].start_sect = 0;
  17.384 -        gd->part[minor].nr_sects   = 0;
  17.385 -        gd->sizes[minor]           = 0;
  17.386 -
  17.387 -        /* Clear the consists-of-virtual-partitions flag if possible. */
  17.388 -        gd->flags[minor >> gd->minor_shift] &= ~GENHD_FL_VIRT_PARTNS;
  17.389 -        for ( i = 1; i < gd->max_p; i++ )
  17.390 -            if ( gd->sizes[(minor & ~(gd->max_p-1)) + i] != 0 )
  17.391 -                gd->flags[minor >> gd->minor_shift] |= GENHD_FL_VIRT_PARTNS;
  17.392 -
  17.393 -        /*
  17.394 -         * If all virtual partitions are now gone, and a 'whole unit' VBD is
  17.395 -         * present, then we can try to grok the unit's real partition table.
  17.396 -         */
  17.397 -        if ( !(gd->flags[minor >> gd->minor_shift] & GENHD_FL_VIRT_PARTNS) &&
  17.398 -             (gd->sizes[minor & ~(gd->max_p-1)] != 0) &&
  17.399 -             !(gd->flags[minor >> gd->minor_shift] & GENHD_FL_REMOVABLE) )
  17.400 -        {
  17.401 -            register_disk(gd,
  17.402 -                          device&~(gd->max_p-1), 
  17.403 -                          gd->max_p, 
  17.404 -                          &xlvbd_block_fops,
  17.405 -                          gd->part[minor&~(gd->max_p-1)].nr_sects);
  17.406 -        }
  17.407 -    }
  17.408 -    else
  17.409 -    {
  17.410 -        /*
  17.411 -         * 2: The VBD is mapped to an entire 'unit'. Clear all partitions.
  17.412 -         * NB. The partition entries are only cleared if there are no VBDs
  17.413 -         * mapped to individual partitions on this unit.
  17.414 -         */
  17.415 -        i = gd->max_p - 1; /* Default: clear subpartitions as well. */
  17.416 -        if ( gd->flags[minor >> gd->minor_shift] & GENHD_FL_VIRT_PARTNS )
  17.417 -            i = 0; /* 'Virtual' mode: only clear the 'whole unit' entry. */
  17.418 -        while ( i >= 0 )
  17.419 -        {
  17.420 -            invalidate_device(device+i, 1);
  17.421 -            gd->part[minor+i].start_sect = 0;
  17.422 -            gd->part[minor+i].nr_sects   = 0;
  17.423 -            gd->sizes[minor+i]           = 0;
  17.424 -            i--;
  17.425 -        }
  17.426 -    }
  17.427 -
  17.428 - out:
  17.429 -    up(&bd->bd_sem);
  17.430 -    bdput(bd);
  17.431 -    return rc;
  17.432 -}
  17.433 -
  17.434 -/*
  17.435 - * xlvbd_update_vbds - reprobes the VBD status and performs updates driver
  17.436 - * state. The VBDs need to be updated in this way when the domain is
  17.437 - * initialised and also each time we receive an XLBLK_UPDATE event.
  17.438 - */
  17.439 -void xlvbd_update_vbds(void)
  17.440 -{
  17.441 -    int i, j, k, old_nr, new_nr;
  17.442 -    vdisk_t *old_info, *new_info, *merged_info;
  17.443 -
  17.444 -    old_info = vbd_info;
  17.445 -    old_nr   = nr_vbds;
  17.446 -
  17.447 -    new_info = kmalloc(MAX_VBDS * sizeof(vdisk_t), GFP_KERNEL);
  17.448 -    if ( unlikely(new_nr = xlvbd_get_vbd_info(new_info)) < 0 )
  17.449 -    {
  17.450 -        kfree(new_info);
  17.451 -        return;
  17.452 -    }
  17.453 -
  17.454 -    /*
  17.455 -     * Final list maximum size is old list + new list. This occurs only when
  17.456 -     * old list and new list do not overlap at all, and we cannot yet destroy
  17.457 -     * VBDs in the old list because the usage counts are busy.
  17.458 -     */
  17.459 -    merged_info = kmalloc((old_nr + new_nr) * sizeof(vdisk_t), GFP_KERNEL);
  17.460 -
  17.461 -    /* @i tracks old list; @j tracks new list; @k tracks merged list. */
  17.462 -    i = j = k = 0;
  17.463 -
  17.464 -    while ( (i < old_nr) && (j < new_nr) )
  17.465 -    {
  17.466 -        if ( old_info[i].device < new_info[j].device )
  17.467 -        {
  17.468 -            if ( xlvbd_remove_device(old_info[i].device) != 0 )
  17.469 -                memcpy(&merged_info[k++], &old_info[i], sizeof(vdisk_t));
  17.470 -            i++;
  17.471 -        }
  17.472 -        else if ( old_info[i].device > new_info[j].device )
  17.473 -        {
  17.474 -            if ( xlvbd_init_device(&new_info[j]) == 0 )
  17.475 -                memcpy(&merged_info[k++], &new_info[j], sizeof(vdisk_t));
  17.476 -            j++;
  17.477 -        }
  17.478 -        else
  17.479 -        {
  17.480 -            if ( ((old_info[i].capacity == new_info[j].capacity) &&
  17.481 -                  (old_info[i].info == new_info[j].info)) ||
  17.482 -                 (xlvbd_remove_device(old_info[i].device) != 0) )
  17.483 -                memcpy(&merged_info[k++], &old_info[i], sizeof(vdisk_t));
  17.484 -            else if ( xlvbd_init_device(&new_info[j]) == 0 )
  17.485 -                memcpy(&merged_info[k++], &new_info[j], sizeof(vdisk_t));
  17.486 -            i++; j++;
  17.487 -        }
  17.488 -    }
  17.489 -
  17.490 -    for ( ; i < old_nr; i++ )
  17.491 -    {
  17.492 -        if ( xlvbd_remove_device(old_info[i].device) != 0 )
  17.493 -            memcpy(&merged_info[k++], &old_info[i], sizeof(vdisk_t));
  17.494 -    }
  17.495 -
  17.496 -    for ( ; j < new_nr; j++ )
  17.497 -    {
  17.498 -        if ( xlvbd_init_device(&new_info[j]) == 0 )
  17.499 -            memcpy(&merged_info[k++], &new_info[j], sizeof(vdisk_t));
  17.500 -    }
  17.501 -
  17.502 -    vbd_info = merged_info;
  17.503 -    nr_vbds  = k;
  17.504 -
  17.505 -    kfree(old_info);
  17.506 -    kfree(new_info);
  17.507 -}
  17.508 -
  17.509 -
  17.510 -/*
  17.511 - * Set up all the linux device goop for the virtual block devices (vbd's) that
  17.512 - * we know about. Note that although from the backend driver's p.o.v. VBDs are
  17.513 - * addressed simply an opaque 16-bit device number, the domain creation tools 
  17.514 - * conventionally allocate these numbers to correspond to those used by 'real' 
  17.515 - * linux -- this is just for convenience as it means e.g. that the same 
  17.516 - * /etc/fstab can be used when booting with or without Xen.
  17.517 - */
  17.518 -int xlvbd_init(void)
  17.519 -{
  17.520 -    int i;
  17.521 -    
  17.522 -    /*
  17.523 -     * If compiled as a module, we don't support unloading yet. We therefore 
  17.524 -     * permanently increment the reference count to disallow it.
  17.525 -     */
  17.526 -    SET_MODULE_OWNER(&xlvbd_block_fops);
  17.527 -    MOD_INC_USE_COUNT;
  17.528 -
  17.529 -    /* Initialize the global arrays. */
  17.530 -    for ( i = 0; i < 256; i++ ) 
  17.531 -    {
  17.532 -        /* from the generic ide code (drivers/ide/ide-probe.c, etc) */
  17.533 -        xlide_blksize_size[i]  = 1024;
  17.534 -        xlide_hardsect_size[i] = 512;
  17.535 -        xlide_max_sectors[i]   = 128;  /* 'hwif->rqsize' if we knew it */
  17.536 -
  17.537 -        /* from the generic scsi disk code (drivers/scsi/sd.c) */
  17.538 -        xlscsi_blksize_size[i]  = 1024; /* XXX 512; */
  17.539 -        xlscsi_hardsect_size[i] = 512;
  17.540 -        xlscsi_max_sectors[i]   = 128*8; /* XXX 128; */
  17.541 -
  17.542 -        /* we don't really know what to set these too since it depends */
  17.543 -        xlvbd_blksize_size[i]  = 512;
  17.544 -        xlvbd_hardsect_size[i] = 512;
  17.545 -        xlvbd_max_sectors[i]   = 128;
  17.546 -    }
  17.547 -
  17.548 -    vbd_info = kmalloc(MAX_VBDS * sizeof(vdisk_t), GFP_KERNEL);
  17.549 -    nr_vbds  = xlvbd_get_vbd_info(vbd_info);
  17.550 -
  17.551 -    if ( nr_vbds < 0 )
  17.552 -    {
  17.553 -        kfree(vbd_info);
  17.554 -        vbd_info = NULL;
  17.555 -        nr_vbds  = 0;
  17.556 -    }
  17.557 -    else
  17.558 -    {
  17.559 -        for ( i = 0; i < nr_vbds; i++ )
  17.560 -            xlvbd_init_device(&vbd_info[i]);
  17.561 -    }
  17.562 -
  17.563 -    return 0;
  17.564 -}
    18.1 --- a/linux-2.4.27-xen-sparse/arch/xen/drivers/console/Makefile	Fri Nov 19 23:17:26 2004 +0000
    18.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.3 @@ -1,3 +0,0 @@
    18.4 -O_TARGET := drv.o
    18.5 -obj-$(CONFIG_XEN_CONSOLE) := console.o
    18.6 -include $(TOPDIR)/Rules.make
    19.1 --- a/linux-2.4.27-xen-sparse/arch/xen/drivers/dom0/Makefile	Fri Nov 19 23:17:26 2004 +0000
    19.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.3 @@ -1,3 +0,0 @@
    19.4 -O_TARGET := drv.o
    19.5 -obj-y := core.o
    19.6 -include $(TOPDIR)/Rules.make
    20.1 --- a/linux-2.4.27-xen-sparse/arch/xen/drivers/evtchn/Makefile	Fri Nov 19 23:17:26 2004 +0000
    20.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.3 @@ -1,3 +0,0 @@
    20.4 -O_TARGET := drv.o
    20.5 -obj-y := evtchn.o
    20.6 -include $(TOPDIR)/Rules.make
    21.1 --- a/linux-2.4.27-xen-sparse/arch/xen/drivers/netif/Makefile	Fri Nov 19 23:17:26 2004 +0000
    21.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.3 @@ -1,10 +0,0 @@
    21.4 -
    21.5 -O_TARGET := drv.o
    21.6 -
    21.7 -subdir-$(CONFIG_XEN_NETDEV_FRONTEND) += frontend
    21.8 -obj-$(CONFIG_XEN_NETDEV_FRONTEND)    += frontend/drv.o
    21.9 -
   21.10 -subdir-$(CONFIG_XEN_PHYSDEV_ACCESS) += backend
   21.11 -obj-$(CONFIG_XEN_PHYSDEV_ACCESS)    += backend/drv.o
   21.12 -
   21.13 -include $(TOPDIR)/Rules.make
    22.1 --- a/linux-2.4.27-xen-sparse/arch/xen/drivers/netif/backend/Makefile	Fri Nov 19 23:17:26 2004 +0000
    22.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.3 @@ -1,4 +0,0 @@
    22.4 -O_TARGET := drv.o
    22.5 -export-objs := interface.o
    22.6 -obj-y := main.o control.o interface.o
    22.7 -include $(TOPDIR)/Rules.make
    23.1 --- a/linux-2.4.27-xen-sparse/arch/xen/drivers/netif/frontend/Makefile	Fri Nov 19 23:17:26 2004 +0000
    23.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.3 @@ -1,3 +0,0 @@
    23.4 -O_TARGET := drv.o
    23.5 -obj-y := main.o
    23.6 -include $(TOPDIR)/Rules.make
    24.1 --- a/linux-2.4.27-xen-sparse/arch/xen/kernel/Makefile	Fri Nov 19 23:17:26 2004 +0000
    24.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.3 @@ -1,20 +0,0 @@
    24.4 -
    24.5 -.S.o:
    24.6 -	$(CC) $(AFLAGS) -traditional -c $< -o $*.o
    24.7 -
    24.8 -all: kernel.o head.o init_task.o
    24.9 -
   24.10 -O_TARGET := kernel.o
   24.11 -
   24.12 -export-objs     := i386_ksyms.o gnttab.o skbuff.o
   24.13 -
   24.14 -obj-y	:= process.o semaphore.o signal.o entry.o traps.o irq.o  \
   24.15 -		ptrace.o ioport.o ldt.o setup.o time.o sys_i386.o \
   24.16 -		i386_ksyms.o i387.o evtchn.o ctrl_if.o pci-dma.o \
   24.17 -		reboot.o fixup.o gnttab.o skbuff.o
   24.18 -
   24.19 -ifdef CONFIG_PCI
   24.20 -obj-y	+= pci-i386.o pci-pc.o
   24.21 -endif
   24.22 -
   24.23 -include $(TOPDIR)/Rules.make
    25.1 --- a/linux-2.4.27-xen-sparse/arch/xen/kernel/entry.S	Fri Nov 19 23:17:26 2004 +0000
    25.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.3 @@ -1,779 +0,0 @@
    25.4 -/*
    25.5 - *  linux/arch/i386/entry.S
    25.6 - *
    25.7 - *  Copyright (C) 1991, 1992  Linus Torvalds
    25.8 - */
    25.9 -
   25.10 -/*
   25.11 - * entry.S contains the system-call and fault low-level handling routines.
   25.12 - * This also contains the timer-interrupt handler, as well as all interrupts
   25.13 - * and faults that can result in a task-switch.
   25.14 - *
   25.15 - * NOTE: This code handles signal-recognition, which happens every time
   25.16 - * after a timer-interrupt and after each system call.
   25.17 - *
   25.18 - * I changed all the .align's to 4 (16 byte alignment), as that's faster
   25.19 - * on a 486.
   25.20 - *
   25.21 - * Stack layout in 'ret_to_user':
   25.22 - * 	ptrace needs to have all regs on the stack.
   25.23 - *	if the order here is changed, it needs to be
   25.24 - *	updated in fork.c:copy_process, signal.c:do_signal,
   25.25 - *	ptrace.c and ptrace.h
   25.26 - *
   25.27 - *	 0(%esp) - %ebx
   25.28 - *	 4(%esp) - %ecx
   25.29 - *	 8(%esp) - %edx
   25.30 - *       C(%esp) - %esi
   25.31 - *	10(%esp) - %edi
   25.32 - *	14(%esp) - %ebp
   25.33 - *	18(%esp) - %eax
   25.34 - *	1C(%esp) - %ds
   25.35 - *	20(%esp) - %es
   25.36 - *	24(%esp) - orig_eax
   25.37 - *	28(%esp) - %eip
   25.38 - *	2C(%esp) - %cs
   25.39 - *	30(%esp) - %eflags
   25.40 - *	34(%esp) - %oldesp
   25.41 - *	38(%esp) - %oldss
   25.42 - *
   25.43 - * "current" is in register %ebx during any slow entries.
   25.44 - */
   25.45 -
   25.46 -#include <linux/config.h>
   25.47 -#include <linux/sys.h>
   25.48 -#include <linux/linkage.h>
   25.49 -#include <asm/segment.h>
   25.50 -#include <asm/smp.h>
   25.51 -
   25.52 -EBX		= 0x00
   25.53 -ECX		= 0x04
   25.54 -EDX		= 0x08
   25.55 -ESI		= 0x0C
   25.56 -EDI		= 0x10
   25.57 -EBP		= 0x14
   25.58 -EAX		= 0x18
   25.59 -DS		= 0x1C
   25.60 -ES		= 0x20
   25.61 -ORIG_EAX	= 0x24
   25.62 -EIP		= 0x28
   25.63 -CS		= 0x2C
   25.64 -EFLAGS		= 0x30
   25.65 -OLDESP		= 0x34
   25.66 -OLDSS		= 0x38
   25.67 -
   25.68 -CF_MASK		= 0x00000001
   25.69 -TF_MASK		= 0x00000100
   25.70 -IF_MASK		= 0x00000200
   25.71 -DF_MASK		= 0x00000400
   25.72 -NT_MASK		= 0x00004000
   25.73 -
   25.74 -/* Offsets into task_struct. */
   25.75 -state		=  0
   25.76 -flags		=  4
   25.77 -sigpending	=  8
   25.78 -addr_limit	= 12
   25.79 -exec_domain	= 16
   25.80 -need_resched	= 20
   25.81 -tsk_ptrace	= 24
   25.82 -processor	= 52
   25.83 -
   25.84 -/* Offsets into shared_info_t. */
   25.85 -#define evtchn_upcall_pending /* 0 */
   25.86 -#define evtchn_upcall_mask       1
   25.87 -
   25.88 -ENOSYS = 38
   25.89 -
   25.90 -
   25.91 -#define SAVE_ALL \
   25.92 -	cld; \
   25.93 -	pushl %es; \
   25.94 -	pushl %ds; \
   25.95 -	pushl %eax; \
   25.96 -	pushl %ebp; \
   25.97 -	pushl %edi; \
   25.98 -	pushl %esi; \
   25.99 -	pushl %edx; \
  25.100 -	pushl %ecx; \
  25.101 -	pushl %ebx; \
  25.102 -	movl $(__KERNEL_DS),%edx; \
  25.103 -	movl %edx,%ds; \
  25.104 -	movl %edx,%es;
  25.105 -
  25.106 -#define RESTORE_ALL	\
  25.107 -	popl %ebx;	\
  25.108 -	popl %ecx;	\
  25.109 -	popl %edx;	\
  25.110 -	popl %esi;	\
  25.111 -	popl %edi;	\
  25.112 -	popl %ebp;	\
  25.113 -	popl %eax;	\
  25.114 -1:	popl %ds;	\
  25.115 -2:	popl %es;	\
  25.116 -	addl $4,%esp;	\
  25.117 -3:	iret;		\
  25.118 -.section .fixup,"ax";	\
  25.119 -4:	movl $0,(%esp);	\
  25.120 -	jmp 1b;		\
  25.121 -5:	movl $0,(%esp);	\
  25.122 -	jmp 2b;		\
  25.123 -6:	pushl %ss;	\
  25.124 -	popl %ds;	\
  25.125 -	pushl %ss;	\
  25.126 -	popl %es;	\
  25.127 -	pushl $11;	\
  25.128 -	call do_exit;	\
  25.129 -.previous;		\
  25.130 -.section __ex_table,"a";\
  25.131 -	.align 4;	\
  25.132 -	.long 1b,4b;	\
  25.133 -	.long 2b,5b;	\
  25.134 -	.long 3b,6b;	\
  25.135 -.previous
  25.136 -
  25.137 -#define GET_CURRENT(reg) \
  25.138 -	movl $-8192, reg; \
  25.139 -	andl %esp, reg
  25.140 -
  25.141 -ENTRY(lcall7)
  25.142 -	pushfl			# We get a different stack layout with call
  25.143 -	pushl %eax		# gates, which has to be cleaned up later..
  25.144 -	SAVE_ALL
  25.145 -	movl EIP(%esp),%eax	# due to call gates, this is eflags, not eip..
  25.146 -	movl CS(%esp),%edx	# this is eip..
  25.147 -	movl EFLAGS(%esp),%ecx	# and this is cs..
  25.148 -	movl %eax,EFLAGS(%esp)	#
  25.149 -	andl $~(NT_MASK|TF_MASK|DF_MASK), %eax
  25.150 -	pushl %eax
  25.151 -	popfl
  25.152 -	movl %edx,EIP(%esp)	# Now we move them to their "normal" places
  25.153 -	movl %ecx,CS(%esp)	#
  25.154 -	movl %esp,%ebx
  25.155 -	pushl %ebx
  25.156 -	andl $-8192,%ebx	# GET_CURRENT
  25.157 -	movl exec_domain(%ebx),%edx	# Get the execution domain
  25.158 -	movl 4(%edx),%edx	# Get the lcall7 handler for the domain
  25.159 -	pushl $0x7
  25.160 -	call *%edx
  25.161 -	addl $4, %esp
  25.162 -	popl %eax
  25.163 -	jmp ret_to_user
  25.164 -
  25.165 -ENTRY(lcall27)
  25.166 -	pushfl			# We get a different stack layout with call
  25.167 -	pushl %eax		# gates, which has to be cleaned up later..
  25.168 -	SAVE_ALL
  25.169 -	movl EIP(%esp),%eax	# due to call gates, this is eflags, not eip..
  25.170 -	movl CS(%esp),%edx	# this is eip..
  25.171 -	movl EFLAGS(%esp),%ecx	# and this is cs..
  25.172 -	movl %eax,EFLAGS(%esp)	#
  25.173 -	andl $~(NT_MASK|TF_MASK|DF_MASK), %eax
  25.174 -	pushl %eax
  25.175 -	popfl
  25.176 -	movl %edx,EIP(%esp)	# Now we move them to their "normal" places
  25.177 -	movl %ecx,CS(%esp)	#
  25.178 -	movl %esp,%ebx
  25.179 -	pushl %ebx
  25.180 -	andl $-8192,%ebx	# GET_CURRENT
  25.181 -	movl exec_domain(%ebx),%edx	# Get the execution domain
  25.182 -	movl 4(%edx),%edx	# Get the lcall7 handler for the domain
  25.183 -	pushl $0x27
  25.184 -	call *%edx
  25.185 -	addl $4, %esp
  25.186 -	popl %eax
  25.187 -	jmp ret_to_user
  25.188 -
  25.189 -ENTRY(ret_from_fork)
  25.190 -	pushl %ebx
  25.191 -	call SYMBOL_NAME(schedule_tail)
  25.192 -	addl $4, %esp
  25.193 -	GET_CURRENT(%ebx)
  25.194 -	testb $0x02,tsk_ptrace(%ebx)	# PT_TRACESYS
  25.195 -	jne tracesys_exit
  25.196 -	jmp ret_to_user
  25.197 -
  25.198 -/*
  25.199 - * Return to user mode is not as complex as all this looks,
  25.200 - * but we want the default path for a system call return to
  25.201 - * go as quickly as possible which is why some of this is
  25.202 - * less clear than it otherwise should be.
  25.203 - */
  25.204 -ENTRY(system_call)
  25.205 -	pushl %eax			# save orig_eax
  25.206 -	SAVE_ALL
  25.207 -	GET_CURRENT(%ebx)
  25.208 -	testb $0x02,tsk_ptrace(%ebx)	# PT_TRACESYS
  25.209 -	jne tracesys
  25.210 -	cmpl $(NR_syscalls),%eax
  25.211 -	jae badsys
  25.212 -	call *SYMBOL_NAME(sys_call_table)(,%eax,4)
  25.213 -	movl %eax,EAX(%esp)		# save the return value
  25.214 -ret_to_user:
  25.215 -        movl SYMBOL_NAME(HYPERVISOR_shared_info),%esi
  25.216 -        movb $1,evtchn_upcall_mask(%esi) # make tests atomic
  25.217 -ret_to_user_nocli:
  25.218 -	cmpl $0,need_resched(%ebx)
  25.219 -	jne  reschedule
  25.220 -	cmpl $0,sigpending(%ebx)
  25.221 -	je   safesti                    # ensure need_resched updates are seen
  25.222 -/*signal_return:*/
  25.223 -	movb $0,evtchn_upcall_mask(%esi) # reenable event callbacks
  25.224 -	movl %esp,%eax
  25.225 -	xorl %edx,%edx
  25.226 -	call SYMBOL_NAME(do_signal)
  25.227 -	jmp  safesti
  25.228 -
  25.229 -	ALIGN
  25.230 -restore_all:
  25.231 -	RESTORE_ALL
  25.232 -
  25.233 -	ALIGN
  25.234 -tracesys:
  25.235 -	movl $-ENOSYS,EAX(%esp)
  25.236 -	call SYMBOL_NAME(syscall_trace)
  25.237 -	movl ORIG_EAX(%esp),%eax
  25.238 -	cmpl $(NR_syscalls),%eax
  25.239 -	jae tracesys_exit
  25.240 -	call *SYMBOL_NAME(sys_call_table)(,%eax,4)
  25.241 -	movl %eax,EAX(%esp)		# save the return value
  25.242 -tracesys_exit:
  25.243 -	call SYMBOL_NAME(syscall_trace)
  25.244 -	jmp ret_to_user
  25.245 -badsys:
  25.246 -	movl $-ENOSYS,EAX(%esp)
  25.247 -	jmp ret_to_user
  25.248 -
  25.249 -	ALIGN
  25.250 -ENTRY(ret_from_intr)
  25.251 -	GET_CURRENT(%ebx)
  25.252 -ret_from_exception:
  25.253 -	movb CS(%esp),%al
  25.254 -	testl $2,%eax
  25.255 -	jne ret_to_user
  25.256 -	jmp restore_all
  25.257 -
  25.258 -	ALIGN
  25.259 -reschedule:
  25.260 -        movb $0,evtchn_upcall_mask(%esi)  # reenable event callbacks
  25.261 -	call SYMBOL_NAME(schedule)        # test
  25.262 -	jmp  ret_to_user
  25.263 -
  25.264 -ENTRY(divide_error)
  25.265 -	pushl $0		# no error code
  25.266 -	pushl $ SYMBOL_NAME(do_divide_error)
  25.267 -	ALIGN
  25.268 -error_code:
  25.269 -	pushl %ds
  25.270 -	pushl %eax
  25.271 -	xorl %eax,%eax
  25.272 -	pushl %ebp
  25.273 -	pushl %edi
  25.274 -	pushl %esi
  25.275 -	pushl %edx
  25.276 -	decl %eax			# eax = -1
  25.277 -	pushl %ecx
  25.278 -	pushl %ebx
  25.279 -	GET_CURRENT(%ebx)
  25.280 -	cld
  25.281 -	movl %es,%ecx
  25.282 -	movl ORIG_EAX(%esp), %esi	# get the error code
  25.283 -	movl ES(%esp), %edi		# get the function address
  25.284 -	movl %eax, ORIG_EAX(%esp)
  25.285 -	movl %ecx, ES(%esp)
  25.286 -	movl %esp,%edx
  25.287 -	pushl %esi			# push the error code
  25.288 -	pushl %edx			# push the pt_regs pointer
  25.289 -	movl $(__KERNEL_DS),%edx
  25.290 -	movl %edx,%ds
  25.291 -	movl %edx,%es
  25.292 -	call *%edi
  25.293 -	addl $8,%esp
  25.294 -	jmp ret_from_exception
  25.295 -
  25.296 -# A note on the "critical region" in our callback handler.
  25.297 -# We want to avoid stacking callback handlers due to events occurring
  25.298 -# during handling of the last event. To do this, we keep events disabled
  25.299 -# until we've done all processing. HOWEVER, we must enable events before
  25.300 -# popping the stack frame (can't be done atomically) and so it would still
  25.301 -# be possible to get enough handler activations to overflow the stack.
  25.302 -# Although unlikely, bugs of that kind are hard to track down, so we'd
  25.303 -# like to avoid the possibility.
  25.304 -# So, on entry to the handler we detect whether we interrupted an
  25.305 -# existing activation in its critical region -- if so, we pop the current
  25.306 -# activation and restart the handler using the previous one.
  25.307 -ENTRY(hypervisor_callback)
  25.308 -        pushl %eax
  25.309 -        SAVE_ALL
  25.310 -        GET_CURRENT(%ebx)
  25.311 -        movl EIP(%esp),%eax
  25.312 -        cmpl $scrit,%eax
  25.313 -        jb   11f
  25.314 -        cmpl $ecrit,%eax
  25.315 -        jb   critical_region_fixup
  25.316 -11:     push %esp
  25.317 -        call evtchn_do_upcall
  25.318 -        add  $4,%esp
  25.319 -        movl SYMBOL_NAME(HYPERVISOR_shared_info),%esi
  25.320 -        movb CS(%esp),%cl
  25.321 -	test $2,%cl          # slow return to ring 2 or 3
  25.322 -	jne  ret_to_user_nocli
  25.323 -safesti:movb $0,evtchn_upcall_mask(%esi) # reenable event callbacks
  25.324 -scrit:  /**** START OF CRITICAL REGION ****/
  25.325 -        testb $0xFF,evtchn_upcall_pending(%esi)
  25.326 -        jnz  14f              # process more events if necessary...
  25.327 -        RESTORE_ALL
  25.328 -14:     movb $1,evtchn_upcall_mask(%esi)
  25.329 -        jmp  11b
  25.330 -ecrit:  /**** END OF CRITICAL REGION ****/
  25.331 -# [How we do the fixup]. We want to merge the current stack frame with the
  25.332 -# just-interrupted frame. How we do this depends on where in the critical
  25.333 -# region the interrupted handler was executing, and so how many saved
  25.334 -# registers are in each frame. We do this quickly using the lookup table
  25.335 -# 'critical_fixup_table'. For each byte offset in the critical region, it
  25.336 -# provides the number of bytes which have already been popped from the
  25.337 -# interrupted stack frame. 
  25.338 -critical_region_fixup:
  25.339 -        addl $critical_fixup_table-scrit,%eax
  25.340 -        movzbl (%eax),%eax    # %eax contains num bytes popped
  25.341 -        mov  %esp,%esi
  25.342 -        add  %eax,%esi        # %esi points at end of src region
  25.343 -        mov  %esp,%edi
  25.344 -        add  $0x34,%edi       # %edi points at end of dst region
  25.345 -        mov  %eax,%ecx
  25.346 -        shr  $2,%ecx          # convert words to bytes
  25.347 -        je   16f              # skip loop if nothing to copy
  25.348 -15:     subl $4,%esi          # pre-decrementing copy loop
  25.349 -        subl $4,%edi
  25.350 -        movl (%esi),%eax
  25.351 -        movl %eax,(%edi)
  25.352 -        loop 15b
  25.353 -16:     movl %edi,%esp        # final %edi is top of merged stack
  25.354 -        jmp  11b
  25.355 -        
  25.356 -critical_fixup_table:        
  25.357 -        .byte 0x00,0x00,0x00                  # testb $0xFF,(%esi)
  25.358 -        .byte 0x00,0x00                       # jnz  14f
  25.359 -        .byte 0x00                            # pop  %ebx
  25.360 -        .byte 0x04                            # pop  %ecx
  25.361 -        .byte 0x08                            # pop  %edx
  25.362 -        .byte 0x0c                            # pop  %esi
  25.363 -        .byte 0x10                            # pop  %edi
  25.364 -        .byte 0x14                            # pop  %ebp
  25.365 -        .byte 0x18                            # pop  %eax
  25.366 -        .byte 0x1c                            # pop  %ds
  25.367 -        .byte 0x20                            # pop  %es
  25.368 -        .byte 0x24,0x24,0x24                  # add  $4,%esp
  25.369 -        .byte 0x28                            # iret
  25.370 -        .byte 0x00,0x00,0x00,0x00             # movb $1,4(%esi)
  25.371 -        .byte 0x00,0x00                       # jmp  11b
  25.372 -
  25.373 -# Hypervisor uses this for application faults while it executes.
  25.374 -ENTRY(failsafe_callback)
  25.375 -1:      popl %ds
  25.376 -2:      popl %es
  25.377 -3:      popl %fs
  25.378 -4:      popl %gs
  25.379 -5:      iret
  25.380 -.section .fixup,"ax";	\
  25.381 -6:	movl $0,(%esp);	\
  25.382 -	jmp 1b;		\
  25.383 -7:	movl $0,(%esp);	\
  25.384 -	jmp 2b;		\
  25.385 -8:	movl $0,(%esp);	\
  25.386 -	jmp 3b;		\
  25.387 -9:	movl $0,(%esp);	\
  25.388 -	jmp 4b;		\
  25.389 -10:	pushl %ss;	\
  25.390 -	popl %ds;	\
  25.391 -	pushl %ss;	\
  25.392 -	popl %es;	\
  25.393 -	pushl $11;	\
  25.394 -	call do_exit;	\
  25.395 -.previous;		\
  25.396 -.section __ex_table,"a";\
  25.397 -	.align 4;	\
  25.398 -	.long 1b,6b;	\
  25.399 -	.long 2b,7b;	\
  25.400 -	.long 3b,8b;	\
  25.401 -	.long 4b,9b;	\
  25.402 -	.long 5b,10b;	\
  25.403 -.previous
  25.404 -        
  25.405 -ENTRY(coprocessor_error)
  25.406 -	pushl $0
  25.407 -	pushl $ SYMBOL_NAME(do_coprocessor_error)
  25.408 -	jmp error_code
  25.409 -
  25.410 -ENTRY(simd_coprocessor_error)
  25.411 -	pushl $0
  25.412 -	pushl $ SYMBOL_NAME(do_simd_coprocessor_error)
  25.413 -	jmp error_code
  25.414 -
  25.415 -ENTRY(device_not_available)
  25.416 -	pushl $-1		# mark this as an int
  25.417 -	SAVE_ALL
  25.418 -	GET_CURRENT(%ebx)
  25.419 -	call SYMBOL_NAME(math_state_restore)
  25.420 -	jmp ret_from_exception
  25.421 -
  25.422 -ENTRY(debug)
  25.423 -	pushl $0
  25.424 -	pushl $ SYMBOL_NAME(do_debug)
  25.425 -	jmp error_code
  25.426 -
  25.427 -ENTRY(int3)
  25.428 -	pushl $0
  25.429 -	pushl $ SYMBOL_NAME(do_int3)
  25.430 -	jmp error_code
  25.431 -
  25.432 -ENTRY(overflow)
  25.433 -	pushl $0
  25.434 -	pushl $ SYMBOL_NAME(do_overflow)
  25.435 -	jmp error_code
  25.436 -
  25.437 -ENTRY(bounds)
  25.438 -	pushl $0
  25.439 -	pushl $ SYMBOL_NAME(do_bounds)
  25.440 -	jmp error_code
  25.441 -
  25.442 -ENTRY(invalid_op)
  25.443 -	pushl $0
  25.444 -	pushl $ SYMBOL_NAME(do_invalid_op)
  25.445 -	jmp error_code
  25.446 -
  25.447 -ENTRY(coprocessor_segment_overrun)
  25.448 -	pushl $0
  25.449 -	pushl $ SYMBOL_NAME(do_coprocessor_segment_overrun)
  25.450 -	jmp error_code
  25.451 -
  25.452 -ENTRY(double_fault)
  25.453 -	pushl $ SYMBOL_NAME(do_double_fault)
  25.454 -	jmp error_code
  25.455 -
  25.456 -ENTRY(invalid_TSS)
  25.457 -	pushl $ SYMBOL_NAME(do_invalid_TSS)
  25.458 -	jmp error_code
  25.459 -
  25.460 -ENTRY(segment_not_present)
  25.461 -	pushl $ SYMBOL_NAME(do_segment_not_present)
  25.462 -	jmp error_code
  25.463 -
  25.464 -ENTRY(stack_segment)
  25.465 -	pushl $ SYMBOL_NAME(do_stack_segment)
  25.466 -	jmp error_code
  25.467 -
  25.468 -ENTRY(general_protection)
  25.469 -	pushl $ SYMBOL_NAME(do_general_protection)
  25.470 -	jmp error_code
  25.471 -
  25.472 -ENTRY(alignment_check)
  25.473 -	pushl $ SYMBOL_NAME(do_alignment_check)
  25.474 -	jmp error_code
  25.475 -
  25.476 -# This handler is special, because it gets an extra value on its stack,
  25.477 -# which is the linear faulting address.
  25.478 -#define PAGE_FAULT_STUB(_name1, _name2)                                  \
  25.479 -ENTRY(_name1)                                                            \
  25.480 -	pushl %ds                                                      ; \
  25.481 -	pushl %eax                                                     ; \
  25.482 -	xorl %eax,%eax                                                 ; \
  25.483 -	pushl %ebp                                                     ; \
  25.484 -	pushl %edi                                                     ; \
  25.485 -	pushl %esi                                                     ; \
  25.486 -	pushl %edx                                                     ; \
  25.487 -	decl %eax                      /* eax = -1 */                  ; \
  25.488 -	pushl %ecx                                                     ; \
  25.489 -	pushl %ebx                                                     ; \
  25.490 -	GET_CURRENT(%ebx)                                              ; \
  25.491 -	cld                                                            ; \
  25.492 -	movl %es,%ecx                                                  ; \
  25.493 -	movl ORIG_EAX(%esp), %esi      /* get the error code */        ; \
  25.494 -	movl ES(%esp), %edi            /* get the faulting address */  ; \
  25.495 -	movl %eax, ORIG_EAX(%esp)                                      ; \
  25.496 -	movl %ecx, ES(%esp)                                            ; \
  25.497 -	movl %esp,%edx                                                 ; \
  25.498 -        pushl %edi                     /* push the faulting address */ ; \
  25.499 -	pushl %esi                     /* push the error code */       ; \
  25.500 -	pushl %edx                     /* push the pt_regs pointer */  ; \
  25.501 -	movl $(__KERNEL_DS),%edx                                       ; \
  25.502 -	movl %edx,%ds                                                  ; \
  25.503 -	movl %edx,%es                                                  ; \
  25.504 -	call SYMBOL_NAME(_name2)                                       ; \
  25.505 -	addl $12,%esp                                                  ; \
  25.506 -	jmp ret_from_exception                                         ;
  25.507 -PAGE_FAULT_STUB(page_fault, do_page_fault)
  25.508 -
  25.509 -ENTRY(machine_check)
  25.510 -	pushl $0
  25.511 -	pushl $ SYMBOL_NAME(do_machine_check)
  25.512 -	jmp error_code
  25.513 -
  25.514 -ENTRY(fixup_4gb_segment)
  25.515 -	pushl $ SYMBOL_NAME(do_fixup_4gb_segment)
  25.516 -	jmp error_code
  25.517 -
  25.518 -.data
  25.519 -ENTRY(sys_call_table)
  25.520 -	.long SYMBOL_NAME(sys_ni_syscall)	/* 0  -  old "setup()" system call*/
  25.521 -	.long SYMBOL_NAME(sys_exit)
  25.522 -	.long SYMBOL_NAME(sys_fork)
  25.523 -	.long SYMBOL_NAME(sys_read)
  25.524 -	.long SYMBOL_NAME(sys_write)
  25.525 -	.long SYMBOL_NAME(sys_open)		/* 5 */
  25.526 -	.long SYMBOL_NAME(sys_close)
  25.527 -	.long SYMBOL_NAME(sys_waitpid)
  25.528 -	.long SYMBOL_NAME(sys_creat)
  25.529 -	.long SYMBOL_NAME(sys_link)
  25.530 -	.long SYMBOL_NAME(sys_unlink)		/* 10 */
  25.531 -	.long SYMBOL_NAME(sys_execve)
  25.532 -	.long SYMBOL_NAME(sys_chdir)
  25.533 -	.long SYMBOL_NAME(sys_time)
  25.534 -	.long SYMBOL_NAME(sys_mknod)
  25.535 -	.long SYMBOL_NAME(sys_chmod)		/* 15 */
  25.536 -	.long SYMBOL_NAME(sys_lchown16)
  25.537 -	.long SYMBOL_NAME(sys_ni_syscall)				/* old break syscall holder */
  25.538 -	.long SYMBOL_NAME(sys_stat)
  25.539 -	.long SYMBOL_NAME(sys_lseek)
  25.540 -	.long SYMBOL_NAME(sys_getpid)		/* 20 */
  25.541 -	.long SYMBOL_NAME(sys_mount)
  25.542 -	.long SYMBOL_NAME(sys_oldumount)
  25.543 -	.long SYMBOL_NAME(sys_setuid16)
  25.544 -	.long SYMBOL_NAME(sys_getuid16)
  25.545 -	.long SYMBOL_NAME(sys_stime)		/* 25 */
  25.546 -	.long SYMBOL_NAME(sys_ptrace)
  25.547 -	.long SYMBOL_NAME(sys_alarm)
  25.548 -	.long SYMBOL_NAME(sys_fstat)
  25.549 -	.long SYMBOL_NAME(sys_pause)
  25.550 -	.long SYMBOL_NAME(sys_utime)		/* 30 */
  25.551 -	.long SYMBOL_NAME(sys_ni_syscall)				/* old stty syscall holder */
  25.552 -	.long SYMBOL_NAME(sys_ni_syscall)				/* old gtty syscall holder */
  25.553 -	.long SYMBOL_NAME(sys_access)
  25.554 -	.long SYMBOL_NAME(sys_nice)
  25.555 -	.long SYMBOL_NAME(sys_ni_syscall)	/* 35 */		/* old ftime syscall holder */
  25.556 -	.long SYMBOL_NAME(sys_sync)
  25.557 -	.long SYMBOL_NAME(sys_kill)
  25.558 -	.long SYMBOL_NAME(sys_rename)
  25.559 -	.long SYMBOL_NAME(sys_mkdir)
  25.560 -	.long SYMBOL_NAME(sys_rmdir)		/* 40 */
  25.561 -	.long SYMBOL_NAME(sys_dup)
  25.562 -	.long SYMBOL_NAME(sys_pipe)
  25.563 -	.long SYMBOL_NAME(sys_times)
  25.564 -	.long SYMBOL_NAME(sys_ni_syscall)				/* old prof syscall holder */
  25.565 -	.long SYMBOL_NAME(sys_brk)		/* 45 */
  25.566 -	.long SYMBOL_NAME(sys_setgid16)
  25.567 -	.long SYMBOL_NAME(sys_getgid16)
  25.568 -	.long SYMBOL_NAME(sys_signal)
  25.569 -	.long SYMBOL_NAME(sys_geteuid16)
  25.570 -	.long SYMBOL_NAME(sys_getegid16)	/* 50 */
  25.571 -	.long SYMBOL_NAME(sys_acct)
  25.572 -	.long SYMBOL_NAME(sys_umount)					/* recycled never used phys() */
  25.573 -	.long SYMBOL_NAME(sys_ni_syscall)				/* old lock syscall holder */
  25.574 -	.long SYMBOL_NAME(sys_ioctl)
  25.575 -	.long SYMBOL_NAME(sys_fcntl)		/* 55 */
  25.576 -	.long SYMBOL_NAME(sys_ni_syscall)				/* old mpx syscall holder */
  25.577 -	.long SYMBOL_NAME(sys_setpgid)
  25.578 -	.long SYMBOL_NAME(sys_ni_syscall)				/* old ulimit syscall holder */
  25.579 -	.long SYMBOL_NAME(sys_olduname)
  25.580 -	.long SYMBOL_NAME(sys_umask)		/* 60 */
  25.581 -	.long SYMBOL_NAME(sys_chroot)
  25.582 -	.long SYMBOL_NAME(sys_ustat)
  25.583 -	.long SYMBOL_NAME(sys_dup2)
  25.584 -	.long SYMBOL_NAME(sys_getppid)
  25.585 -	.long SYMBOL_NAME(sys_getpgrp)		/* 65 */
  25.586 -	.long SYMBOL_NAME(sys_setsid)
  25.587 -	.long SYMBOL_NAME(sys_sigaction)
  25.588 -	.long SYMBOL_NAME(sys_sgetmask)
  25.589 -	.long SYMBOL_NAME(sys_ssetmask)
  25.590 -	.long SYMBOL_NAME(sys_setreuid16)	/* 70 */
  25.591 -	.long SYMBOL_NAME(sys_setregid16)
  25.592 -	.long SYMBOL_NAME(sys_sigsuspend)
  25.593 -	.long SYMBOL_NAME(sys_sigpending)
  25.594 -	.long SYMBOL_NAME(sys_sethostname)
  25.595 -	.long SYMBOL_NAME(sys_setrlimit)	/* 75 */
  25.596 -	.long SYMBOL_NAME(sys_old_getrlimit)
  25.597 -	.long SYMBOL_NAME(sys_getrusage)
  25.598 -	.long SYMBOL_NAME(sys_gettimeofday)
  25.599 -	.long SYMBOL_NAME(sys_settimeofday)
  25.600 -	.long SYMBOL_NAME(sys_getgroups16)	/* 80 */
  25.601 -	.long SYMBOL_NAME(sys_setgroups16)
  25.602 -	.long SYMBOL_NAME(old_select)
  25.603 -	.long SYMBOL_NAME(sys_symlink)
  25.604 -	.long SYMBOL_NAME(sys_lstat)
  25.605 -	.long SYMBOL_NAME(sys_readlink)		/* 85 */
  25.606 -	.long SYMBOL_NAME(sys_uselib)
  25.607 -	.long SYMBOL_NAME(sys_swapon)
  25.608 -	.long SYMBOL_NAME(sys_reboot)
  25.609 -	.long SYMBOL_NAME(old_readdir)
  25.610 -	.long SYMBOL_NAME(old_mmap)		/* 90 */
  25.611 -	.long SYMBOL_NAME(sys_munmap)
  25.612 -	.long SYMBOL_NAME(sys_truncate)
  25.613 -	.long SYMBOL_NAME(sys_ftruncate)
  25.614 -	.long SYMBOL_NAME(sys_fchmod)
  25.615 -	.long SYMBOL_NAME(sys_fchown16)		/* 95 */
  25.616 -	.long SYMBOL_NAME(sys_getpriority)
  25.617 -	.long SYMBOL_NAME(sys_setpriority)
  25.618 -	.long SYMBOL_NAME(sys_ni_syscall)				/* old profil syscall holder */
  25.619 -	.long SYMBOL_NAME(sys_statfs)
  25.620 -	.long SYMBOL_NAME(sys_fstatfs)		/* 100 */
  25.621 -	.long SYMBOL_NAME(sys_ioperm)
  25.622 -	.long SYMBOL_NAME(sys_socketcall)
  25.623 -	.long SYMBOL_NAME(sys_syslog)
  25.624 -	.long SYMBOL_NAME(sys_setitimer)
  25.625 -	.long SYMBOL_NAME(sys_getitimer)	/* 105 */
  25.626 -	.long SYMBOL_NAME(sys_newstat)
  25.627 -	.long SYMBOL_NAME(sys_newlstat)
  25.628 -	.long SYMBOL_NAME(sys_newfstat)
  25.629 -	.long SYMBOL_NAME(sys_uname)
  25.630 -	.long SYMBOL_NAME(sys_iopl)		/* 110 */
  25.631 -	.long SYMBOL_NAME(sys_vhangup)
  25.632 -	.long SYMBOL_NAME(sys_ni_syscall)	/* old "idle" system call */
  25.633 -	.long SYMBOL_NAME(sys_ni_syscall) /* was VM86 */
  25.634 -	.long SYMBOL_NAME(sys_wait4)
  25.635 -	.long SYMBOL_NAME(sys_swapoff)		/* 115 */
  25.636 -	.long SYMBOL_NAME(sys_sysinfo)
  25.637 -	.long SYMBOL_NAME(sys_ipc)
  25.638 -	.long SYMBOL_NAME(sys_fsync)
  25.639 -	.long SYMBOL_NAME(sys_sigreturn)
  25.640 -	.long SYMBOL_NAME(sys_clone)		/* 120 */
  25.641 -	.long SYMBOL_NAME(sys_setdomainname)
  25.642 -	.long SYMBOL_NAME(sys_newuname)
  25.643 -	.long SYMBOL_NAME(sys_modify_ldt)
  25.644 -	.long SYMBOL_NAME(sys_adjtimex)
  25.645 -	.long SYMBOL_NAME(sys_mprotect)		/* 125 */
  25.646 -	.long SYMBOL_NAME(sys_sigprocmask)
  25.647 -	.long SYMBOL_NAME(sys_create_module)
  25.648 -	.long SYMBOL_NAME(sys_init_module)
  25.649 -	.long SYMBOL_NAME(sys_delete_module)
  25.650 -	.long SYMBOL_NAME(sys_get_kernel_syms)	/* 130 */
  25.651 -	.long SYMBOL_NAME(sys_quotactl)
  25.652 -	.long SYMBOL_NAME(sys_getpgid)
  25.653 -	.long SYMBOL_NAME(sys_fchdir)
  25.654 -	.long SYMBOL_NAME(sys_bdflush)
  25.655 -	.long SYMBOL_NAME(sys_sysfs)		/* 135 */
  25.656 -	.long SYMBOL_NAME(sys_personality)
  25.657 -	.long SYMBOL_NAME(sys_ni_syscall)	/* for afs_syscall */
  25.658 -	.long SYMBOL_NAME(sys_setfsuid16)
  25.659 -	.long SYMBOL_NAME(sys_setfsgid16)
  25.660 -	.long SYMBOL_NAME(sys_llseek)		/* 140 */
  25.661 -	.long SYMBOL_NAME(sys_getdents)
  25.662 -	.long SYMBOL_NAME(sys_select)
  25.663 -	.long SYMBOL_NAME(sys_flock)
  25.664 -	.long SYMBOL_NAME(sys_msync)
  25.665 -	.long SYMBOL_NAME(sys_readv)		/* 145 */
  25.666 -	.long SYMBOL_NAME(sys_writev)
  25.667 -	.long SYMBOL_NAME(sys_getsid)
  25.668 -	.long SYMBOL_NAME(sys_fdatasync)
  25.669 -	.long SYMBOL_NAME(sys_sysctl)
  25.670 -	.long SYMBOL_NAME(sys_mlock)		/* 150 */
  25.671 -	.long SYMBOL_NAME(sys_munlock)
  25.672 -	.long SYMBOL_NAME(sys_mlockall)
  25.673 -	.long SYMBOL_NAME(sys_munlockall)
  25.674 -	.long SYMBOL_NAME(sys_sched_setparam)
  25.675 -	.long SYMBOL_NAME(sys_sched_getparam)   /* 155 */
  25.676 -	.long SYMBOL_NAME(sys_sched_setscheduler)
  25.677 -	.long SYMBOL_NAME(sys_sched_getscheduler)
  25.678 -	.long SYMBOL_NAME(sys_sched_yield)
  25.679 -	.long SYMBOL_NAME(sys_sched_get_priority_max)
  25.680 -	.long SYMBOL_NAME(sys_sched_get_priority_min)  /* 160 */
  25.681 -	.long SYMBOL_NAME(sys_sched_rr_get_interval)
  25.682 -	.long SYMBOL_NAME(sys_nanosleep)
  25.683 -	.long SYMBOL_NAME(sys_mremap)
  25.684 -	.long SYMBOL_NAME(sys_setresuid16)
  25.685 -	.long SYMBOL_NAME(sys_getresuid16)	/* 165 */
  25.686 -	.long SYMBOL_NAME(sys_ni_syscall) /* was VM86 */
  25.687 -	.long SYMBOL_NAME(sys_query_module)
  25.688 -	.long SYMBOL_NAME(sys_poll)
  25.689 -	.long SYMBOL_NAME(sys_nfsservctl)
  25.690 -	.long SYMBOL_NAME(sys_setresgid16)	/* 170 */
  25.691 -	.long SYMBOL_NAME(sys_getresgid16)
  25.692 -	.long SYMBOL_NAME(sys_prctl)
  25.693 -	.long SYMBOL_NAME(sys_rt_sigreturn)
  25.694 -	.long SYMBOL_NAME(sys_rt_sigaction)
  25.695 -	.long SYMBOL_NAME(sys_rt_sigprocmask)	/* 175 */
  25.696 -	.long SYMBOL_NAME(sys_rt_sigpending)
  25.697 -	.long SYMBOL_NAME(sys_rt_sigtimedwait)
  25.698 -	.long SYMBOL_NAME(sys_rt_sigqueueinfo)
  25.699 -	.long SYMBOL_NAME(sys_rt_sigsuspend)
  25.700 -	.long SYMBOL_NAME(sys_pread)		/* 180 */
  25.701 -	.long SYMBOL_NAME(sys_pwrite)
  25.702 -	.long SYMBOL_NAME(sys_chown16)
  25.703 -	.long SYMBOL_NAME(sys_getcwd)
  25.704 -	.long SYMBOL_NAME(sys_capget)
  25.705 -	.long SYMBOL_NAME(sys_capset)           /* 185 */
  25.706 -	.long SYMBOL_NAME(sys_sigaltstack)
  25.707 -	.long SYMBOL_NAME(sys_sendfile)
  25.708 -	.long SYMBOL_NAME(sys_ni_syscall)		/* streams1 */
  25.709 -	.long SYMBOL_NAME(sys_ni_syscall)		/* streams2 */
  25.710 -	.long SYMBOL_NAME(sys_vfork)            /* 190 */
  25.711 -	.long SYMBOL_NAME(sys_getrlimit)
  25.712 -	.long SYMBOL_NAME(sys_mmap2)
  25.713 -	.long SYMBOL_NAME(sys_truncate64)
  25.714 -	.long SYMBOL_NAME(sys_ftruncate64)
  25.715 -	.long SYMBOL_NAME(sys_stat64)		/* 195 */
  25.716 -	.long SYMBOL_NAME(sys_lstat64)
  25.717 -	.long SYMBOL_NAME(sys_fstat64)
  25.718 -	.long SYMBOL_NAME(sys_lchown)
  25.719 -	.long SYMBOL_NAME(sys_getuid)
  25.720 -	.long SYMBOL_NAME(sys_getgid)		/* 200 */
  25.721 -	.long SYMBOL_NAME(sys_geteuid)
  25.722 -	.long SYMBOL_NAME(sys_getegid)
  25.723 -	.long SYMBOL_NAME(sys_setreuid)
  25.724 -	.long SYMBOL_NAME(sys_setregid)
  25.725 -	.long SYMBOL_NAME(sys_getgroups)	/* 205 */
  25.726 -	.long SYMBOL_NAME(sys_setgroups)
  25.727 -	.long SYMBOL_NAME(sys_fchown)
  25.728 -	.long SYMBOL_NAME(sys_setresuid)
  25.729 -	.long SYMBOL_NAME(sys_getresuid)
  25.730 -	.long SYMBOL_NAME(sys_setresgid)	/* 210 */
  25.731 -	.long SYMBOL_NAME(sys_getresgid)
  25.732 -	.long SYMBOL_NAME(sys_chown)
  25.733 -	.long SYMBOL_NAME(sys_setuid)
  25.734 -	.long SYMBOL_NAME(sys_setgid)
  25.735 -	.long SYMBOL_NAME(sys_setfsuid)		/* 215 */
  25.736 -	.long SYMBOL_NAME(sys_setfsgid)
  25.737 -	.long SYMBOL_NAME(sys_pivot_root)
  25.738 -	.long SYMBOL_NAME(sys_mincore)
  25.739 -	.long SYMBOL_NAME(sys_madvise)
  25.740 -	.long SYMBOL_NAME(sys_getdents64)	/* 220 */
  25.741 -	.long SYMBOL_NAME(sys_fcntl64)
  25.742 -	.long SYMBOL_NAME(sys_ni_syscall)	/* reserved for TUX */
  25.743 -	.long SYMBOL_NAME(sys_ni_syscall)	/* Reserved for Security */
  25.744 -	.long SYMBOL_NAME(sys_gettid)
  25.745 -	.long SYMBOL_NAME(sys_readahead)	/* 225 */
  25.746 -	.long SYMBOL_NAME(sys_setxattr)
  25.747 -	.long SYMBOL_NAME(sys_lsetxattr)
  25.748 -	.long SYMBOL_NAME(sys_fsetxattr)
  25.749 -	.long SYMBOL_NAME(sys_getxattr)
  25.750 -	.long SYMBOL_NAME(sys_lgetxattr)	/* 230 */
  25.751 -	.long SYMBOL_NAME(sys_fgetxattr)
  25.752 -	.long SYMBOL_NAME(sys_listxattr)
  25.753 -	.long SYMBOL_NAME(sys_llistxattr)
  25.754 -	.long SYMBOL_NAME(sys_flistxattr)
  25.755 -	.long SYMBOL_NAME(sys_removexattr)	/* 235 */
  25.756 -	.long SYMBOL_NAME(sys_lremovexattr)
  25.757 -	.long SYMBOL_NAME(sys_fremovexattr)
  25.758 - 	.long SYMBOL_NAME(sys_tkill)
  25.759 -	.long SYMBOL_NAME(sys_sendfile64)
  25.760 -	.long SYMBOL_NAME(sys_ni_syscall)	/* 240 reserved for futex */
  25.761 -	.long SYMBOL_NAME(sys_ni_syscall)	/* reserved for sched_setaffinity */
  25.762 -	.long SYMBOL_NAME(sys_ni_syscall)	/* reserved for sched_getaffinity */
  25.763 -	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_set_thread_area */
  25.764 -	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_get_thread_area */
  25.765 -	.long SYMBOL_NAME(sys_ni_syscall)	/* 245 sys_io_setup */
  25.766 -	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_io_destroy */
  25.767 -	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_io_getevents */
  25.768 -	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_io_submit */
  25.769 -	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_io_cancel */
  25.770 -	.long SYMBOL_NAME(sys_ni_syscall)	/* 250 sys_alloc_hugepages */
  25.771 -	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_free_hugepages */
  25.772 -	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_exit_group */
  25.773 -	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_lookup_dcookie */
  25.774 -	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_epoll_create */
  25.775 -	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_epoll_ctl 255 */
  25.776 -	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_epoll_wait */
  25.777 - 	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_remap_file_pages */
  25.778 - 	.long SYMBOL_NAME(sys_ni_syscall)	/* sys_set_tid_address */
  25.779 -
  25.780 -	.rept NR_syscalls-(.-sys_call_table)/4
  25.781 -		.long SYMBOL_NAME(sys_ni_syscall)
  25.782 -	.endr
    26.1 --- a/linux-2.4.27-xen-sparse/arch/xen/kernel/head.S	Fri Nov 19 23:17:26 2004 +0000
    26.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.3 @@ -1,39 +0,0 @@
    26.4 -
    26.5 -.section __xen_guest
    26.6 -    .asciz "GUEST_OS=linux,GUEST_VER=2.4,XEN_VER=2.0,VIRT_BASE=0xC0000000"
    26.7 -
    26.8 -.text
    26.9 -#include <linux/config.h>
   26.10 -#include <linux/threads.h>
   26.11 -#include <linux/linkage.h>
   26.12 -#include <asm/segment.h>
   26.13 -#include <asm/page.h>
   26.14 -#include <asm/pgtable.h>
   26.15 -#include <asm/desc.h>
   26.16 -
   26.17 -ENTRY(stext)
   26.18 -ENTRY(_stext)
   26.19 -        cld
   26.20 -        lss stack_start,%esp
   26.21 -        /* Copy the necessary stuff from xen_start_info structure. */
   26.22 -        mov $SYMBOL_NAME(xen_start_info_union),%edi
   26.23 -        mov $128,%ecx
   26.24 -        rep movsl
   26.25 -        jmp SYMBOL_NAME(start_kernel)
   26.26 -
   26.27 -ENTRY(stack_start)
   26.28 -	.long SYMBOL_NAME(init_task_union)+8192, __KERNEL_DS
   26.29 -
   26.30 -.org 0x1000
   26.31 -ENTRY(empty_zero_page)
   26.32 -
   26.33 -.org 0x2000
   26.34 -ENTRY(default_ldt)
   26.35 -
   26.36 -.org 0x3000
   26.37 -ENTRY(cpu0_pte_quicklist)
   26.38 -
   26.39 -.org 0x3400
   26.40 -ENTRY(cpu0_pgd_quicklist)
   26.41 -        
   26.42 -.org 0x3800
    27.1 --- a/linux-2.4.27-xen-sparse/arch/xen/kernel/i386_ksyms.c	Fri Nov 19 23:17:26 2004 +0000
    27.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    27.3 @@ -1,180 +0,0 @@
    27.4 -#include <linux/config.h>
    27.5 -#include <linux/module.h>
    27.6 -#include <linux/smp.h>
    27.7 -#include <linux/user.h>
    27.8 -#include <linux/elfcore.h>
    27.9 -#include <linux/mca.h>
   27.10 -#include <linux/sched.h>
   27.11 -#include <linux/in6.h>
   27.12 -#include <linux/interrupt.h>
   27.13 -#include <linux/smp_lock.h>
   27.14 -#include <linux/pm.h>
   27.15 -#include <linux/pci.h>
   27.16 -#include <linux/apm_bios.h>
   27.17 -#include <linux/kernel.h>
   27.18 -#include <linux/string.h>
   27.19 -#include <linux/tty.h>
   27.20 -
   27.21 -#include <asm/semaphore.h>
   27.22 -#include <asm/processor.h>
   27.23 -#include <asm/i387.h>
   27.24 -#include <asm/uaccess.h>
   27.25 -#include <asm/checksum.h>
   27.26 -#include <asm/io.h>
   27.27 -#include <asm/hardirq.h>
   27.28 -#include <asm/delay.h>
   27.29 -#include <asm/irq.h>
   27.30 -#include <asm/mmx.h>
   27.31 -#include <asm/desc.h>
   27.32 -#include <asm/pgtable.h>
   27.33 -#include <asm/pgalloc.h>
   27.34 -
   27.35 -extern void dump_thread(struct pt_regs *, struct user *);
   27.36 -extern spinlock_t rtc_lock;
   27.37 -
   27.38 -#if defined(CONFIG_APMXXX) || defined(CONFIG_APM_MODULEXXX)
   27.39 -extern void machine_real_restart(unsigned char *, int);
   27.40 -EXPORT_SYMBOL(machine_real_restart);
   27.41 -extern void default_idle(void);
   27.42 -EXPORT_SYMBOL(default_idle);
   27.43 -#endif
   27.44 -
   27.45 -#ifdef CONFIG_SMP
   27.46 -extern void FASTCALL( __write_lock_failed(rwlock_t *rw));
   27.47 -extern void FASTCALL( __read_lock_failed(rwlock_t *rw));
   27.48 -#endif
   27.49 -
   27.50 -#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_HD) || defined(CONFIG_BLK_DEV_IDE_MODULE) || defined(CONFIG_BLK_DEV_HD_MODULE)
   27.51 -extern struct drive_info_struct drive_info;
   27.52 -EXPORT_SYMBOL(drive_info);
   27.53 -#endif
   27.54 -
   27.55 -// XXX extern unsigned long get_cmos_time(void);
   27.56 -
   27.57 -/* platform dependent support */
   27.58 -EXPORT_SYMBOL(boot_cpu_data);
   27.59 -EXPORT_SYMBOL(dump_thread);
   27.60 -EXPORT_SYMBOL(dump_fpu);
   27.61 -EXPORT_SYMBOL(dump_extended_fpu);
   27.62 -EXPORT_SYMBOL(__ioremap);
   27.63 -EXPORT_SYMBOL(iounmap);
   27.64 -EXPORT_SYMBOL(enable_irq);
   27.65 -EXPORT_SYMBOL(disable_irq);
   27.66 -EXPORT_SYMBOL(disable_irq_nosync);
   27.67 -EXPORT_SYMBOL(probe_irq_mask);
   27.68 -EXPORT_SYMBOL(kernel_thread);
   27.69 -EXPORT_SYMBOL(pm_idle);
   27.70 -EXPORT_SYMBOL(pm_power_off);
   27.71 -EXPORT_SYMBOL(apm_info);
   27.72 -//EXPORT_SYMBOL(gdt);
   27.73 -EXPORT_SYMBOL(empty_zero_page);
   27.74 -EXPORT_SYMBOL(phys_to_machine_mapping);
   27.75 -
   27.76 -
   27.77 -#ifdef CONFIG_DEBUG_IOVIRT
   27.78 -EXPORT_SYMBOL(__io_virt_debug);
   27.79 -#endif
   27.80 -
   27.81 -EXPORT_SYMBOL_NOVERS(__down_failed);
   27.82 -EXPORT_SYMBOL_NOVERS(__down_failed_interruptible);
   27.83 -EXPORT_SYMBOL_NOVERS(__down_failed_trylock);
   27.84 -EXPORT_SYMBOL_NOVERS(__up_wakeup);
   27.85 -/* Networking helper routines. */
   27.86 -EXPORT_SYMBOL(csum_partial_copy_generic);
   27.87 -/* Delay loops */
   27.88 -EXPORT_SYMBOL(__ndelay);
   27.89 -EXPORT_SYMBOL(__udelay);
   27.90 -EXPORT_SYMBOL(__delay);
   27.91 -EXPORT_SYMBOL(__const_udelay);
   27.92 -
   27.93 -EXPORT_SYMBOL_NOVERS(__get_user_1);
   27.94 -EXPORT_SYMBOL_NOVERS(__get_user_2);
   27.95 -EXPORT_SYMBOL_NOVERS(__get_user_4);
   27.96 -
   27.97 -EXPORT_SYMBOL(strtok);
   27.98 -EXPORT_SYMBOL(strpbrk);
   27.99 -EXPORT_SYMBOL(strstr);
  27.100 -
  27.101 -EXPORT_SYMBOL(strncpy_from_user);
  27.102 -EXPORT_SYMBOL(__strncpy_from_user);
  27.103 -EXPORT_SYMBOL(clear_user);
  27.104 -EXPORT_SYMBOL(__clear_user);
  27.105 -EXPORT_SYMBOL(__generic_copy_from_user);
  27.106 -EXPORT_SYMBOL(__generic_copy_to_user);
  27.107 -EXPORT_SYMBOL(strnlen_user);
  27.108 -
  27.109 -
  27.110 -EXPORT_SYMBOL(pci_alloc_consistent);
  27.111 -EXPORT_SYMBOL(pci_free_consistent);
  27.112 -
  27.113 -#ifdef CONFIG_PCI
  27.114 -EXPORT_SYMBOL(pcibios_penalize_isa_irq);
  27.115 -EXPORT_SYMBOL(pci_mem_start);
  27.116 -#endif
  27.117 -
  27.118 -
  27.119 -#ifdef CONFIG_X86_USE_3DNOW
  27.120 -EXPORT_SYMBOL(_mmx_memcpy);
  27.121 -EXPORT_SYMBOL(mmx_clear_page);
  27.122 -EXPORT_SYMBOL(mmx_copy_page);
  27.123 -#endif
  27.124 -
  27.125 -#ifdef CONFIG_SMP
  27.126 -EXPORT_SYMBOL(cpu_data);
  27.127 -EXPORT_SYMBOL(kernel_flag_cacheline);
  27.128 -EXPORT_SYMBOL(smp_num_cpus);
  27.129 -EXPORT_SYMBOL(cpu_online_map);
  27.130 -EXPORT_SYMBOL_NOVERS(__write_lock_failed);
  27.131 -EXPORT_SYMBOL_NOVERS(__read_lock_failed);
  27.132 -
  27.133 -/* Global SMP irq stuff */
  27.134 -EXPORT_SYMBOL(synchronize_irq);
  27.135 -EXPORT_SYMBOL(global_irq_holder);
  27.136 -EXPORT_SYMBOL(__global_cli);
  27.137 -EXPORT_SYMBOL(__global_sti);
  27.138 -EXPORT_SYMBOL(__global_save_flags);
  27.139 -EXPORT_SYMBOL(__global_restore_flags);
  27.140 -EXPORT_SYMBOL(smp_call_function);
  27.141 -
  27.142 -/* TLB flushing */
  27.143 -EXPORT_SYMBOL(flush_tlb_page);
  27.144 -
  27.145 -/* HT support */
  27.146 -EXPORT_SYMBOL(smp_num_siblings);
  27.147 -EXPORT_SYMBOL(cpu_sibling_map);
  27.148 -#endif
  27.149 -
  27.150 -#ifdef CONFIG_X86_IO_APIC
  27.151 -EXPORT_SYMBOL(IO_APIC_get_PCI_irq_vector);
  27.152 -#endif
  27.153 -
  27.154 -#ifdef CONFIG_VT
  27.155 -EXPORT_SYMBOL(screen_info);
  27.156 -#endif
  27.157 -
  27.158 -EXPORT_SYMBOL(get_wchan);
  27.159 -
  27.160 -EXPORT_SYMBOL(rtc_lock);
  27.161 -
  27.162 -#undef memcpy
  27.163 -#undef memset
  27.164 -extern void * memset(void *,int,__kernel_size_t);
  27.165 -extern void * memcpy(void *,const void *,__kernel_size_t);
  27.166 -EXPORT_SYMBOL_NOVERS(memcpy);
  27.167 -EXPORT_SYMBOL_NOVERS(memset);
  27.168 -
  27.169 -#ifdef CONFIG_HAVE_DEC_LOCK
  27.170 -EXPORT_SYMBOL(atomic_dec_and_lock);
  27.171 -#endif
  27.172 -
  27.173 -#ifdef CONFIG_MULTIQUAD
  27.174 -EXPORT_SYMBOL(xquad_portio);
  27.175 -#endif
  27.176 -
  27.177 -#include <asm/xen_proc.h>
  27.178 -EXPORT_SYMBOL(create_xen_proc_entry);
  27.179 -EXPORT_SYMBOL(remove_xen_proc_entry);
  27.180 -
  27.181 -EXPORT_SYMBOL(evtchn_do_upcall);
  27.182 -EXPORT_SYMBOL(force_evtchn_callback);
  27.183 -EXPORT_SYMBOL(HYPERVISOR_shared_info);
    28.1 --- a/linux-2.4.27-xen-sparse/arch/xen/kernel/irq.c	Fri Nov 19 23:17:26 2004 +0000
    28.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    28.3 @@ -1,1242 +0,0 @@
    28.4 -/*
    28.5 - *	linux/arch/i386/kernel/irq.c
    28.6 - *
    28.7 - *	Copyright (C) 1992, 1998 Linus Torvalds, Ingo Molnar
    28.8 - *
    28.9 - * This file contains the code used by various IRQ handling routines:
   28.10 - * asking for different IRQ's should be done through these routines
   28.11 - * instead of just grabbing them. Thus setups with different IRQ numbers
   28.12 - * shouldn't result in any weird surprises, and installing new handlers
   28.13 - * should be easier.
   28.14 - */
   28.15 -
   28.16 -/*
   28.17 - * (mostly architecture independent, will move to kernel/irq.c in 2.5.)
   28.18 - *
   28.19 - * IRQs are in fact implemented a bit like signal handlers for the kernel.
   28.20 - * Naturally it's not a 1:1 relation, but there are similarities.
   28.21 - */
   28.22 -
   28.23 -#include <linux/config.h>
   28.24 -#include <linux/ptrace.h>
   28.25 -#include <linux/errno.h>
   28.26 -#include <linux/signal.h>
   28.27 -#include <linux/sched.h>
   28.28 -#include <linux/ioport.h>
   28.29 -#include <linux/interrupt.h>
   28.30 -#include <linux/timex.h>
   28.31 -#include <linux/slab.h>
   28.32 -#include <linux/random.h>
   28.33 -#include <linux/smp_lock.h>
   28.34 -#include <linux/init.h>
   28.35 -#include <linux/kernel_stat.h>
   28.36 -#include <linux/irq.h>
   28.37 -#include <linux/proc_fs.h>
   28.38 -#include <linux/seq_file.h>
   28.39 -
   28.40 -#include <asm/atomic.h>
   28.41 -#include <asm/io.h>
   28.42 -#include <asm/smp.h>
   28.43 -#include <asm/system.h>
   28.44 -#include <asm/bitops.h>
   28.45 -#include <asm/uaccess.h>
   28.46 -#include <asm/pgalloc.h>
   28.47 -#include <asm/delay.h>
   28.48 -#include <asm/desc.h>
   28.49 -#include <asm/irq.h>
   28.50 -
   28.51 -
   28.52 -
   28.53 -/*
   28.54 - * Linux has a controller-independent x86 interrupt architecture.
   28.55 - * every controller has a 'controller-template', that is used
   28.56 - * by the main code to do the right thing. Each driver-visible
   28.57 - * interrupt source is transparently wired to the apropriate
   28.58 - * controller. Thus drivers need not be aware of the
   28.59 - * interrupt-controller.
   28.60 - *
   28.61 - * Various interrupt controllers we handle: 8259 PIC, SMP IO-APIC,
   28.62 - * PIIX4's internal 8259 PIC and SGI's Visual Workstation Cobalt (IO-)APIC.
   28.63 - * (IO-APICs assumed to be messaging to Pentium local-APICs)
   28.64 - *
   28.65 - * the code is designed to be easily extended with new/different
   28.66 - * interrupt controllers, without having to do assembly magic.
   28.67 - */
   28.68 -
   28.69 -/*
   28.70 - * Controller mappings for all interrupt sources:
   28.71 - */
   28.72 -irq_desc_t irq_desc[NR_IRQS] __cacheline_aligned =
   28.73 -	{ [0 ... NR_IRQS-1] = { 0, &no_irq_type, NULL, 0, SPIN_LOCK_UNLOCKED}};
   28.74 -
   28.75 -static void register_irq_proc (unsigned int irq);
   28.76 -
   28.77 -/*
   28.78 - * Special irq handlers.
   28.79 - */
   28.80 -
   28.81 -void no_action(int cpl, void *dev_id, struct pt_regs *regs) { }
   28.82 -
   28.83 -/*
   28.84 - * Generic no controller code
   28.85 - */
   28.86 -
   28.87 -static void enable_none(unsigned int irq) { }
   28.88 -static unsigned int startup_none(unsigned int irq) { return 0; }
   28.89 -static void disable_none(unsigned int irq) { }
   28.90 -static void ack_none(unsigned int irq)
   28.91 -{
   28.92 -/*
   28.93 - * 'what should we do if we get a hw irq event on an illegal vector'.
   28.94 - * each architecture has to answer this themselves, it doesnt deserve
   28.95 - * a generic callback i think.
   28.96 - */
   28.97 -#if CONFIG_X86
   28.98 -	printk("unexpected IRQ trap at vector %02x\n", irq);
   28.99 -#ifdef CONFIG_X86_LOCAL_APIC
  28.100 -	/*
  28.101 -	 * Currently unexpected vectors happen only on SMP and APIC.
  28.102 -	 * We _must_ ack these because every local APIC has only N
  28.103 -	 * irq slots per priority level, and a 'hanging, unacked' IRQ
  28.104 -	 * holds up an irq slot - in excessive cases (when multiple
  28.105 -	 * unexpected vectors occur) that might lock up the APIC
  28.106 -	 * completely.
  28.107 -	 */
  28.108 -	ack_APIC_irq();
  28.109 -#endif
  28.110 -#endif
  28.111 -}
  28.112 -
  28.113 -/* startup is the same as "enable", shutdown is same as "disable" */
  28.114 -#define shutdown_none	disable_none
  28.115 -#define end_none	enable_none
  28.116 -
  28.117 -struct hw_interrupt_type no_irq_type = {
  28.118 -	"none",
  28.119 -	startup_none,
  28.120 -	shutdown_none,
  28.121 -	enable_none,
  28.122 -	disable_none,
  28.123 -	ack_none,
  28.124 -	end_none
  28.125 -};
  28.126 -
  28.127 -atomic_t irq_err_count;
  28.128 -#ifdef CONFIG_X86_IO_APIC
  28.129 -#ifdef APIC_MISMATCH_DEBUG
  28.130 -atomic_t irq_mis_count;
  28.131 -#endif
  28.132 -#endif
  28.133 -
  28.134 -/*
  28.135 - * Generic, controller-independent functions:
  28.136 - */
  28.137 -
  28.138 -int show_interrupts(struct seq_file *p, void *v)
  28.139 -{
  28.140 -	int i, j;
  28.141 -	struct irqaction * action;
  28.142 -
  28.143 -	seq_printf(p, "           ");
  28.144 -	for (j=0; j<smp_num_cpus; j++)
  28.145 -		seq_printf(p, "CPU%d       ",j);
  28.146 -	seq_putc(p,'\n');
  28.147 -
  28.148 -	for (i = 0 ; i < NR_IRQS ; i++) {
  28.149 -		action = irq_desc[i].action;
  28.150 -		if (!action) 
  28.151 -			continue;
  28.152 -		seq_printf(p, "%3d: ",i);
  28.153 -#ifndef CONFIG_SMP
  28.154 -		seq_printf(p, "%10u ", kstat_irqs(i));
  28.155 -#else
  28.156 -		for (j = 0; j < smp_num_cpus; j++)
  28.157 -			seq_printf(p, "%10u ",
  28.158 -				kstat.irqs[cpu_logical_map(j)][i]);
  28.159 -#endif
  28.160 -		seq_printf(p, " %14s", irq_desc[i].handler->typename);
  28.161 -		seq_printf(p, "  %s", action->name);
  28.162 -
  28.163 -		for (action=action->next; action; action = action->next)
  28.164 -			seq_printf(p, ", %s", action->name);
  28.165 -		seq_putc(p,'\n');
  28.166 -	}
  28.167 -	seq_printf(p, "NMI: ");
  28.168 -	for (j = 0; j < smp_num_cpus; j++)
  28.169 -		seq_printf(p, "%10u ",
  28.170 -			nmi_count(cpu_logical_map(j)));
  28.171 -	seq_printf(p, "\n");
  28.172 -#if CONFIG_X86_LOCAL_APIC
  28.173 -	seq_printf(p, "LOC: ");
  28.174 -	for (j = 0; j < smp_num_cpus; j++)
  28.175 -		seq_printf(p, "%10u ",
  28.176 -			apic_timer_irqs[cpu_logical_map(j)]);
  28.177 -	seq_printf(p, "\n");
  28.178 -#endif
  28.179 -	seq_printf(p, "ERR: %10u\n", atomic_read(&irq_err_count));
  28.180 -#ifdef CONFIG_X86_IO_APIC
  28.181 -#ifdef APIC_MISMATCH_DEBUG
  28.182 -	seq_printf(p, "MIS: %10u\n", atomic_read(&irq_mis_count));
  28.183 -#endif
  28.184 -#endif
  28.185 -
  28.186 -	return 0;
  28.187 -}
  28.188 -
  28.189 -
  28.190 -/*
  28.191 - * Global interrupt locks for SMP. Allow interrupts to come in on any
  28.192 - * CPU, yet make cli/sti act globally to protect critical regions..
  28.193 - */
  28.194 -
  28.195 -#ifdef CONFIG_SMP
  28.196 -unsigned char global_irq_holder = NO_PROC_ID;
  28.197 -unsigned volatile long global_irq_lock; /* pendantic: long for set_bit --RR */
  28.198 -
  28.199 -extern void show_stack(unsigned long* esp);
  28.200 -
  28.201 -static void show(char * str)
  28.202 -{
  28.203 -	int i;
  28.204 -	int cpu = smp_processor_id();
  28.205 -
  28.206 -	printk("\n%s, CPU %d:\n", str, cpu);
  28.207 -	printk("irq:  %d [",irqs_running());
  28.208 -	for(i=0;i < smp_num_cpus;i++)
  28.209 -		printk(" %d",local_irq_count(i));
  28.210 -	printk(" ]\nbh:   %d [",spin_is_locked(&global_bh_lock) ? 1 : 0);
  28.211 -	for(i=0;i < smp_num_cpus;i++)
  28.212 -		printk(" %d",local_bh_count(i));
  28.213 -
  28.214 -	printk(" ]\nStack dumps:");
  28.215 -	for(i = 0; i < smp_num_cpus; i++) {
  28.216 -		unsigned long esp;
  28.217 -		if (i == cpu)
  28.218 -			continue;
  28.219 -		printk("\nCPU %d:",i);
  28.220 -		esp = init_tss[i].esp0;
  28.221 -		if (!esp) {
  28.222 -			/* tss->esp0 is set to NULL in cpu_init(),
  28.223 -			 * it's initialized when the cpu returns to user
  28.224 -			 * space. -- manfreds
  28.225 -			 */
  28.226 -			printk(" <unknown> ");
  28.227 -			continue;
  28.228 -		}
  28.229 -		esp &= ~(THREAD_SIZE-1);
  28.230 -		esp += sizeof(struct task_struct);
  28.231 -		show_stack((void*)esp);
  28.232 - 	}
  28.233 -	printk("\nCPU %d:",cpu);
  28.234 -	show_stack(NULL);
  28.235 -	printk("\n");
  28.236 -}
  28.237 -	
  28.238 -#define MAXCOUNT 100000000
  28.239 -
  28.240 -/*
  28.241 - * I had a lockup scenario where a tight loop doing
  28.242 - * spin_unlock()/spin_lock() on CPU#1 was racing with
  28.243 - * spin_lock() on CPU#0. CPU#0 should have noticed spin_unlock(), but
  28.244 - * apparently the spin_unlock() information did not make it
  28.245 - * through to CPU#0 ... nasty, is this by design, do we have to limit
  28.246 - * 'memory update oscillation frequency' artificially like here?
  28.247 - *
  28.248 - * Such 'high frequency update' races can be avoided by careful design, but
  28.249 - * some of our major constructs like spinlocks use similar techniques,
  28.250 - * it would be nice to clarify this issue. Set this define to 0 if you
  28.251 - * want to check whether your system freezes.  I suspect the delay done
  28.252 - * by SYNC_OTHER_CORES() is in correlation with 'snooping latency', but
  28.253 - * i thought that such things are guaranteed by design, since we use
  28.254 - * the 'LOCK' prefix.
  28.255 - */
  28.256 -#define SUSPECTED_CPU_OR_CHIPSET_BUG_WORKAROUND 0
  28.257 -
  28.258 -#if SUSPECTED_CPU_OR_CHIPSET_BUG_WORKAROUND
  28.259 -# define SYNC_OTHER_CORES(x) udelay(x+1)
  28.260 -#else
  28.261 -/*
  28.262 - * We have to allow irqs to arrive between __sti and __cli
  28.263 - */
  28.264 -# define SYNC_OTHER_CORES(x) __asm__ __volatile__ ("nop")
  28.265 -#endif
  28.266 -
  28.267 -static inline void wait_on_irq(int cpu)
  28.268 -{
  28.269 -	int count = MAXCOUNT;
  28.270 -
  28.271 -	for (;;) {
  28.272 -
  28.273 -		/*
  28.274 -		 * Wait until all interrupts are gone. Wait
  28.275 -		 * for bottom half handlers unless we're
  28.276 -		 * already executing in one..
  28.277 -		 */
  28.278 -		if (!irqs_running())
  28.279 -			if (local_bh_count(cpu) || !spin_is_locked(&global_bh_lock))
  28.280 -				break;
  28.281 -
  28.282 -		/* Duh, we have to loop. Release the lock to avoid deadlocks */
  28.283 -		clear_bit(0,&global_irq_lock);
  28.284 -
  28.285 -		for (;;) {
  28.286 -			if (!--count) {
  28.287 -				show("wait_on_irq");
  28.288 -				count = ~0;
  28.289 -			}
  28.290 -			__sti();
  28.291 -			SYNC_OTHER_CORES(cpu);
  28.292 -			__cli();
  28.293 -			if (irqs_running())
  28.294 -				continue;
  28.295 -			if (global_irq_lock)
  28.296 -				continue;
  28.297 -			if (!local_bh_count(cpu) && spin_is_locked(&global_bh_lock))
  28.298 -				continue;
  28.299 -			if (!test_and_set_bit(0,&global_irq_lock))
  28.300 -				break;
  28.301 -		}
  28.302 -	}
  28.303 -}
  28.304 -
  28.305 -/*
  28.306 - * This is called when we want to synchronize with
  28.307 - * interrupts. We may for example tell a device to
  28.308 - * stop sending interrupts: but to make sure there
  28.309 - * are no interrupts that are executing on another
  28.310 - * CPU we need to call this function.
  28.311 - */
  28.312 -void synchronize_irq(void)
  28.313 -{
  28.314 -	if (irqs_running()) {
  28.315 -		/* Stupid approach */
  28.316 -		cli();
  28.317 -		sti();
  28.318 -	}
  28.319 -}
  28.320 -
  28.321 -static inline void get_irqlock(int cpu)
  28.322 -{
  28.323 -	if (test_and_set_bit(0,&global_irq_lock)) {
  28.324 -		/* do we already hold the lock? */
  28.325 -		if ((unsigned char) cpu == global_irq_holder)
  28.326 -			return;
  28.327 -		/* Uhhuh.. Somebody else got it. Wait.. */
  28.328 -		do {
  28.329 -			do {
  28.330 -				rep_nop();
  28.331 -			} while (test_bit(0,&global_irq_lock));
  28.332 -		} while (test_and_set_bit(0,&global_irq_lock));		
  28.333 -	}
  28.334 -	/* 
  28.335 -	 * We also to make sure that nobody else is running
  28.336 -	 * in an interrupt context. 
  28.337 -	 */
  28.338 -	wait_on_irq(cpu);
  28.339 -
  28.340 -	/*
  28.341 -	 * Ok, finally..
  28.342 -	 */
  28.343 -	global_irq_holder = cpu;
  28.344 -}
  28.345 -
  28.346 -/*
  28.347 - * A global "cli()" while in an interrupt context
  28.348 - * turns into just a local cli(). Interrupts
  28.349 - * should use spinlocks for the (very unlikely)
  28.350 - * case that they ever want to protect against
  28.351 - * each other.
  28.352 - *
  28.353 - * If we already have local interrupts disabled,
  28.354 - * this will not turn a local disable into a
  28.355 - * global one (problems with spinlocks: this makes
  28.356 - * save_flags+cli+sti usable inside a spinlock).
  28.357 - */
  28.358 -void __global_cli(void)
  28.359 -{
  28.360 -	unsigned int flags;
  28.361 -
  28.362 -	__save_flags(flags);
  28.363 -	if (!flags) {
  28.364 -		int cpu = smp_processor_id();
  28.365 -		__cli();
  28.366 -		if (!local_irq_count(cpu))
  28.367 -			get_irqlock(cpu);
  28.368 -	}
  28.369 -}
  28.370 -
  28.371 -void __global_sti(void)
  28.372 -{
  28.373 -	int cpu = smp_processor_id();
  28.374 -
  28.375 -	if (!local_irq_count(cpu))
  28.376 -		release_irqlock(cpu);
  28.377 -	__sti();
  28.378 -}
  28.379 -
  28.380 -/*
  28.381 - * SMP flags value to restore to:
  28.382 - * 0 - global cli
  28.383 - * 1 - global sti
  28.384 - * 2 - local cli
  28.385 - * 3 - local sti
  28.386 - */
  28.387 -unsigned long __global_save_flags(void)
  28.388 -{
  28.389 -	int retval;
  28.390 -	int local_enabled;
  28.391 -	unsigned long flags;
  28.392 -	int cpu = smp_processor_id();
  28.393 -
  28.394 -	__save_flags(flags);
  28.395 -	local_enabled = !flags;
  28.396 -	/* default to local */
  28.397 -	retval = 2 + local_enabled;
  28.398 -
  28.399 -	/* check for global flags if we're not in an interrupt */
  28.400 -	if (!local_irq_count(cpu)) {
  28.401 -		if (local_enabled)
  28.402 -			retval = 1;
  28.403 -		if (global_irq_holder == cpu)
  28.404 -			retval = 0;
  28.405 -	}
  28.406 -	return retval;
  28.407 -}
  28.408 -
  28.409 -void __global_restore_flags(unsigned long flags)
  28.410 -{
  28.411 -	switch (flags) {
  28.412 -	case 0:
  28.413 -		__global_cli();
  28.414 -		break;
  28.415 -	case 1:
  28.416 -		__global_sti();
  28.417 -		break;
  28.418 -	case 2:
  28.419 -		__cli();
  28.420 -		break;
  28.421 -	case 3:
  28.422 -		__sti();
  28.423 -		break;
  28.424 -	default:
  28.425 -		printk("global_restore_flags: %08lx (%08lx)\n",
  28.426 -			flags, (&flags)[-1]);
  28.427 -	}
  28.428 -}
  28.429 -
  28.430 -#endif
  28.431 -
  28.432 -/*
  28.433 - * This should really return information about whether
  28.434 - * we should do bottom half handling etc. Right now we
  28.435 - * end up _always_ checking the bottom half, which is a
  28.436 - * waste of time and is not what some drivers would
  28.437 - * prefer.
  28.438 - */
  28.439 -int handle_IRQ_event(unsigned int irq, struct pt_regs * regs, struct irqaction * action)
  28.440 -{
  28.441 -	int status;
  28.442 -	int cpu = smp_processor_id();
  28.443 -
  28.444 -	irq_enter(cpu, irq);
  28.445 -
  28.446 -	status = 1;	/* Force the "do bottom halves" bit */
  28.447 -
  28.448 -	if (!(action->flags & SA_INTERRUPT))
  28.449 -		__sti();
  28.450 -
  28.451 -	do {
  28.452 -		status |= action->flags;
  28.453 -		action->handler(irq, action->dev_id, regs);
  28.454 -		action = action->next;
  28.455 -	} while (action);
  28.456 -	if (status & SA_SAMPLE_RANDOM)
  28.457 -		add_interrupt_randomness(irq);
  28.458 -	__cli();
  28.459 -
  28.460 -	irq_exit(cpu, irq);
  28.461 -
  28.462 -	return status;
  28.463 -}
  28.464 -
  28.465 -/*
  28.466 - * Generic enable/disable code: this just calls
  28.467 - * down into the PIC-specific version for the actual
  28.468 - * hardware disable after having gotten the irq
  28.469 - * controller lock. 
  28.470 - */
  28.471 - 
  28.472 -/**
  28.473 - *	disable_irq_nosync - disable an irq without waiting
  28.474 - *	@irq: Interrupt to disable
  28.475 - *
  28.476 - *	Disable the selected interrupt line.  Disables and Enables are
  28.477 - *	nested.
  28.478 - *	Unlike disable_irq(), this function does not ensure existing
  28.479 - *	instances of the IRQ handler have completed before returning.
  28.480 - *
  28.481 - *	This function may be called from IRQ context.
  28.482 - */
  28.483 - 
  28.484 -inline void disable_irq_nosync(unsigned int irq)
  28.485 -{
  28.486 -	irq_desc_t *desc = irq_desc + irq;
  28.487 -	unsigned long flags;
  28.488 -
  28.489 -	spin_lock_irqsave(&desc->lock, flags);
  28.490 -	if (!desc->depth++) {
  28.491 -		desc->status |= IRQ_DISABLED;
  28.492 -		desc->handler->disable(irq);
  28.493 -	}
  28.494 -	spin_unlock_irqrestore(&desc->lock, flags);
  28.495 -}
  28.496 -
  28.497 -/**
  28.498 - *	disable_irq - disable an irq and wait for completion
  28.499 - *	@irq: Interrupt to disable
  28.500 - *
  28.501 - *	Disable the selected interrupt line.  Enables and Disables are
  28.502 - *	nested.
  28.503 - *	This function waits for any pending IRQ handlers for this interrupt
  28.504 - *	to complete before returning. If you use this function while
  28.505 - *	holding a resource the IRQ handler may need you will deadlock.
  28.506 - *
  28.507 - *	This function may be called - with care - from IRQ context.
  28.508 - */
  28.509 - 
  28.510 -void disable_irq(unsigned int irq)
  28.511 -{
  28.512 -	disable_irq_nosync(irq);
  28.513 -
  28.514 -	if (!local_irq_count(smp_processor_id())) {
  28.515 -		do {
  28.516 -			barrier();
  28.517 -			cpu_relax();
  28.518 -		} while (irq_desc[irq].status & IRQ_INPROGRESS);
  28.519 -	}
  28.520 -}
  28.521 -
  28.522 -/**
  28.523 - *	enable_irq - enable handling of an irq
  28.524 - *	@irq: Interrupt to enable
  28.525 - *
  28.526 - *	Undoes the effect of one call to disable_irq().  If this
  28.527 - *	matches the last disable, processing of interrupts on this
  28.528 - *	IRQ line is re-enabled.
  28.529 - *
  28.530 - *	This function may be called from IRQ context.
  28.531 - */
  28.532 - 
  28.533 -void enable_irq(unsigned int irq)
  28.534 -{
  28.535 -	irq_desc_t *desc = irq_desc + irq;
  28.536 -	unsigned long flags;
  28.537 -
  28.538 -	spin_lock_irqsave(&desc->lock, flags);
  28.539 -	switch (desc->depth) {
  28.540 -	case 1: {
  28.541 -		unsigned int status = desc->status & ~IRQ_DISABLED;
  28.542 -		desc->status = status;
  28.543 -		if ((status & (IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) {
  28.544 -			desc->status = status | IRQ_REPLAY;
  28.545 -			hw_resend_irq(desc->handler,irq);
  28.546 -		}
  28.547 -		desc->handler->enable(irq);
  28.548 -		/* fall-through */
  28.549 -	}
  28.550 -	default:
  28.551 -		desc->depth--;
  28.552 -		break;
  28.553 -	case 0:
  28.554 -		printk("enable_irq(%u) unbalanced from %p\n", irq,
  28.555 -		       __builtin_return_address(0));
  28.556 -	}
  28.557 -	spin_unlock_irqrestore(&desc->lock, flags);
  28.558 -}
  28.559 -
  28.560 -/*
  28.561 - * do_IRQ handles all normal device IRQ's (the special
  28.562 - * SMP cross-CPU interrupts have their own specific
  28.563 - * handlers).
  28.564 - */
  28.565 -asmlinkage unsigned int do_IRQ(struct pt_regs *regs)
  28.566 -{	
  28.567 -	/* 
  28.568 -	 * We ack quickly, we don't want the irq controller
  28.569 -	 * thinking we're snobs just because some other CPU has
  28.570 -	 * disabled global interrupts (we have already done the
  28.571 -	 * INT_ACK cycles, it's too late to try to pretend to the
  28.572 -	 * controller that we aren't taking the interrupt).
  28.573 -	 *
  28.574 -	 * 0 return value means that this irq is already being
  28.575 -	 * handled by some other CPU. (or is disabled)
  28.576 -	 */
  28.577 -	int irq = regs->orig_eax & 0xff; /* high bits used in ret_from_ code */
  28.578 -	int cpu = smp_processor_id();
  28.579 -	irq_desc_t *desc = irq_desc + irq;
  28.580 -	struct irqaction * action;
  28.581 -	unsigned int status;
  28.582 -#ifdef CONFIG_DEBUG_STACKOVERFLOW
  28.583 -	long esp;
  28.584 -
  28.585 -	/* Debugging check for stack overflow: is there less than 1KB free? */
  28.586 -	__asm__ __volatile__("andl %%esp,%0" : "=r" (esp) : "0" (8191));
  28.587 -	if (unlikely(esp < (sizeof(struct task_struct) + 1024))) {
  28.588 -		extern void show_stack(unsigned long *);
  28.589 -
  28.590 -		printk("do_IRQ: stack overflow: %ld\n",
  28.591 -			esp - sizeof(struct task_struct));
  28.592 -		__asm__ __volatile__("movl %%esp,%0" : "=r" (esp));
  28.593 -		show_stack((void *)esp);
  28.594 -	}
  28.595 -#endif
  28.596 -
  28.597 -	kstat.irqs[cpu][irq]++;
  28.598 -	spin_lock(&desc->lock);
  28.599 -	desc->handler->ack(irq);
  28.600 -	/*
  28.601 -	   REPLAY is when Linux resends an IRQ that was dropped earlier
  28.602 -	   WAITING is used by probe to mark irqs that are being tested
  28.603 -	   */
  28.604 -	status = desc->status & ~(IRQ_REPLAY | IRQ_WAITING);
  28.605 -	status |= IRQ_PENDING; /* we _want_ to handle it */
  28.606 -
  28.607 -	/*
  28.608 -	 * If the IRQ is disabled for whatever reason, we cannot
  28.609 -	 * use the action we have.
  28.610 -	 */
  28.611 -	action = NULL;
  28.612 -	if (!(status & (IRQ_DISABLED | IRQ_INPROGRESS))) {
  28.613 -		action = desc->action;
  28.614 -		status &= ~IRQ_PENDING; /* we commit to handling */
  28.615 -		status |= IRQ_INPROGRESS; /* we are handling it */
  28.616 -	}
  28.617 -	desc->status = status;
  28.618 -
  28.619 -	/*
  28.620 -	 * If there is no IRQ handler or it was disabled, exit early.
  28.621 -	   Since we set PENDING, if another processor is handling
  28.622 -	   a different instance of this same irq, the other processor
  28.623 -	   will take care of it.
  28.624 -	 */
  28.625 -	if (!action)
  28.626 -		goto out;
  28.627 -
  28.628 -	/*
  28.629 -	 * Edge triggered interrupts need to remember
  28.630 -	 * pending events.
  28.631 -	 * This applies to any hw interrupts that allow a second
  28.632 -	 * instance of the same irq to arrive while we are in do_IRQ
  28.633 -	 * or in the handler. But the code here only handles the _second_
  28.634 -	 * instance of the irq, not the third or fourth. So it is mostly
  28.635 -	 * useful for irq hardware that does not mask cleanly in an
  28.636 -	 * SMP environment.
  28.637 -	 */
  28.638 -	for (;;) {
  28.639 -		spin_unlock(&desc->lock);
  28.640 -		handle_IRQ_event(irq, regs, action);
  28.641 -		spin_lock(&desc->lock);
  28.642 -		
  28.643 -		if (!(desc->status & IRQ_PENDING))
  28.644 -			break;
  28.645 -		desc->status &= ~IRQ_PENDING;
  28.646 -	}
  28.647 -	desc->status &= ~IRQ_INPROGRESS;
  28.648 -out:
  28.649 -	/*
  28.650 -	 * The ->end() handler has to deal with interrupts which got
  28.651 -	 * disabled while the handler was running.
  28.652 -	 */
  28.653 -	desc->handler->end(irq);
  28.654 -	spin_unlock(&desc->lock);
  28.655 -
  28.656 -	if (softirq_pending(cpu))
  28.657 -		do_softirq();
  28.658 -	return 1;
  28.659 -}
  28.660 -
  28.661 -/**
  28.662 - *	request_irq - allocate an interrupt line
  28.663 - *	@irq: Interrupt line to allocate
  28.664 - *	@handler: Function to be called when the IRQ occurs
  28.665 - *	@irqflags: Interrupt type flags
  28.666 - *	@devname: An ascii name for the claiming device
  28.667 - *	@dev_id: A cookie passed back to the handler function
  28.668 - *
  28.669 - *	This call allocates interrupt resources and enables the
  28.670 - *	interrupt line and IRQ handling. From the point this
  28.671 - *	call is made your handler function may be invoked. Since
  28.672 - *	your handler function must clear any interrupt the board 
  28.673 - *	raises, you must take care both to initialise your hardware
  28.674 - *	and to set up the interrupt handler in the right order.
  28.675 - *
  28.676 - *	Dev_id must be globally unique. Normally the address of the
  28.677 - *	device data structure is used as the cookie. Since the handler
  28.678 - *	receives this value it makes sense to use it.
  28.679 - *
  28.680 - *	If your interrupt is shared you must pass a non NULL dev_id
  28.681 - *	as this is required when freeing the interrupt.
  28.682 - *
  28.683 - *	Flags:
  28.684 - *
  28.685 - *	SA_SHIRQ		Interrupt is shared
  28.686 - *
  28.687 - *	SA_INTERRUPT		Disable local interrupts while processing
  28.688 - *
  28.689 - *	SA_SAMPLE_RANDOM	The interrupt can be used for entropy
  28.690 - *
  28.691 - */
  28.692 - 
  28.693 -int request_irq(unsigned int irq, 
  28.694 -		void (*handler)(int, void *, struct pt_regs *),
  28.695 -		unsigned long irqflags, 
  28.696 -		const char * devname,
  28.697 -		void *dev_id)
  28.698 -{
  28.699 -	int retval;
  28.700 -	struct irqaction * action;
  28.701 -
  28.702 -#if 1
  28.703 -	/*
  28.704 -	 * Sanity-check: shared interrupts should REALLY pass in
  28.705 -	 * a real dev-ID, otherwise we'll have trouble later trying
  28.706 -	 * to figure out which interrupt is which (messes up the
  28.707 -	 * interrupt freeing logic etc).
  28.708 -	 */
  28.709 -	if (irqflags & SA_SHIRQ) {
  28.710 -		if (!dev_id)
  28.711 -			printk("Bad boy: %s (at 0x%x) called us without a dev_id!\n", devname, (&irq)[-1]);
  28.712 -	}
  28.713 -#endif
  28.714 -
  28.715 -	if (irq >= NR_IRQS)
  28.716 -		return -EINVAL;
  28.717 -	if (!handler)
  28.718 -		return -EINVAL;
  28.719 -
  28.720 -	action = (struct irqaction *)
  28.721 -			kmalloc(sizeof(struct irqaction), GFP_KERNEL);
  28.722 -	if (!action)
  28.723 -		return -ENOMEM;
  28.724 -
  28.725 -	action->handler = handler;
  28.726 -	action->flags = irqflags;
  28.727 -	action->mask = 0;
  28.728 -	action->name = devname;
  28.729 -	action->next = NULL;
  28.730 -	action->dev_id = dev_id;
  28.731 -
  28.732 -	retval = setup_irq(irq, action);
  28.733 -	if (retval)
  28.734 -		kfree(action);
  28.735 -	return retval;
  28.736 -}
  28.737 -
  28.738 -/*
  28.739 - * Internal function to unregister an irqaction - typically used to
  28.740 - * deallocate special interrupts that are part of the architecture.
  28.741 - */
  28.742 -int teardown_irq(unsigned int irq, struct irqaction * old)
  28.743 -{
  28.744 -	irq_desc_t *desc;
  28.745 -	struct irqaction **p;
  28.746 -	unsigned long flags;
  28.747 -
  28.748 -	if (irq >= NR_IRQS)
  28.749 -		return -ENOENT;
  28.750 -
  28.751 -	desc = irq_desc + irq;
  28.752 -	spin_lock_irqsave(&desc->lock,flags);
  28.753 -	p = &desc->action;
  28.754 -	for (;;) {
  28.755 -		struct irqaction * action = *p;
  28.756 -		if (action) {
  28.757 -			struct irqaction **pp = p;
  28.758 -			p = &action->next;
  28.759 -			if (action != old)
  28.760 -				continue;
  28.761 -
  28.762 -			/* Found it - now remove it from the list of entries */
  28.763 -			*pp = action->next;
  28.764 -			if (!desc->action) {
  28.765 -				desc->status |= IRQ_DISABLED;
  28.766 -				desc->handler->shutdown(irq);
  28.767 -			}
  28.768 -			spin_unlock_irqrestore(&desc->lock,flags);
  28.769 -
  28.770 -#ifdef CONFIG_SMP
  28.771 -			/* Wait to make sure it's not being used on another CPU */
  28.772 -			while (desc->status & IRQ_INPROGRESS) {
  28.773 -				barrier();
  28.774 -				cpu_relax();
  28.775 -			}
  28.776 -#endif
  28.777 -			return 0;
  28.778 -		}
  28.779 -		printk("Trying to free free IRQ%d\n",irq);
  28.780 -		spin_unlock_irqrestore(&desc->lock,flags);
  28.781 -		return -ENOENT;
  28.782 -	}
  28.783 -}
  28.784 -
  28.785 -/**
  28.786 - *	free_irq - free an interrupt
  28.787 - *	@irq: Interrupt line to free
  28.788 - *	@dev_id: Device identity to free
  28.789 - *
  28.790 - *	Remove an interrupt handler. The handler is removed and if the
  28.791 - *	interrupt line is no longer in use by any driver it is disabled.
  28.792 - *	On a shared IRQ the caller must ensure the interrupt is disabled
  28.793 - *	on the card it drives before calling this function. The function
  28.794 - *	does not return until any executing interrupts for this IRQ
  28.795 - *	have completed.
  28.796 - *
  28.797 - *	This function may be called from interrupt context. 
  28.798 - *
  28.799 - *	Bugs: Attempting to free an irq in a handler for the same irq hangs
  28.800 - *	      the machine.
  28.801 - */
  28.802 - 
  28.803 -void free_irq(unsigned int irq, void *dev_id)
  28.804 -{
  28.805 -	irq_desc_t *desc;
  28.806 -	struct irqaction *action;
  28.807 -	unsigned long flags;
  28.808 -
  28.809 -	if (irq >= NR_IRQS)
  28.810 -		return;
  28.811 -
  28.812 -	desc = irq_desc + irq;
  28.813 -	spin_lock_irqsave(&desc->lock,flags);
  28.814 -	for (action = desc->action; action != NULL; action = action->next) {
  28.815 -		if (action->dev_id != dev_id)
  28.816 -			continue;
  28.817 -
  28.818 -		spin_unlock_irqrestore(&desc->lock,flags);
  28.819 -
  28.820 -		if (teardown_irq(irq, action) == 0)
  28.821 -			kfree(action);
  28.822 -		return;
  28.823 -	}
  28.824 -	printk("Trying to free free IRQ%d\n",irq);
  28.825 -	spin_unlock_irqrestore(&desc->lock,flags);
  28.826 -	return;
  28.827 -}
  28.828 -
  28.829 -/*
  28.830 - * IRQ autodetection code..
  28.831 - *
  28.832 - * This depends on the fact that any interrupt that
  28.833 - * comes in on to an unassigned handler will get stuck
  28.834 - * with "IRQ_WAITING" cleared and the interrupt
  28.835 - * disabled.
  28.836 - */
  28.837 -
  28.838 -static DECLARE_MUTEX(probe_sem);
  28.839 -
  28.840 -/**
  28.841 - *	probe_irq_on	- begin an interrupt autodetect
  28.842 - *
  28.843 - *	Commence probing for an interrupt. The interrupts are scanned
  28.844 - *	and a mask of potential interrupt lines is returned.
  28.845 - *
  28.846 - */
  28.847 - 
  28.848 -unsigned long probe_irq_on(void)
  28.849 -{
  28.850 -	unsigned int i;
  28.851 -	irq_desc_t *desc;
  28.852 -	unsigned long val;
  28.853 -	unsigned long delay;
  28.854 -
  28.855 -	down(&probe_sem);
  28.856 -	/* 
  28.857 -	 * something may have generated an irq long ago and we want to
  28.858 -	 * flush such a longstanding irq before considering it as spurious. 
  28.859 -	 */
  28.860 -	for (i = NR_PIRQS-1; i > 0; i--)  {
  28.861 -		desc = irq_desc + i;
  28.862 -
  28.863 -		spin_lock_irq(&desc->lock);
  28.864 -		if (!irq_desc[i].action) 
  28.865 -			irq_desc[i].handler->startup(i);
  28.866 -		spin_unlock_irq(&desc->lock);
  28.867 -	}
  28.868 -
  28.869 -	/* Wait for longstanding interrupts to trigger. */
  28.870 -	for (delay = jiffies + HZ/50; time_after(delay, jiffies); )
  28.871 -		/* about 20ms delay */ synchronize_irq();
  28.872 -
  28.873 -	/*
  28.874 -	 * enable any unassigned irqs
  28.875 -	 * (we must startup again here because if a longstanding irq
  28.876 -	 * happened in the previous stage, it may have masked itself)
  28.877 -	 */
  28.878 -	for (i = NR_PIRQS-1; i > 0; i--) {
  28.879 -		desc = irq_desc + i;
  28.880 -
  28.881 -		spin_lock_irq(&desc->lock);
  28.882 -		if (!desc->action) {
  28.883 -			desc->status |= IRQ_AUTODETECT | IRQ_WAITING;
  28.884 -			if (desc->handler->startup(i))
  28.885 -				desc->status |= IRQ_PENDING;
  28.886 -		}
  28.887 -		spin_unlock_irq(&desc->lock);
  28.888 -	}
  28.889 -
  28.890 -	/*
  28.891 -	 * Wait for spurious interrupts to trigger
  28.892 -	 */
  28.893 -	for (delay = jiffies + HZ/10; time_after(delay, jiffies); )
  28.894 -		/* about 100ms delay */ synchronize_irq();
  28.895 -
  28.896 -	/*
  28.897 -	 * Now filter out any obviously spurious interrupts
  28.898 -	 */
  28.899 -	val = 0;
  28.900 -	for (i = 0; i < NR_PIRQS; i++) {
  28.901 -		irq_desc_t *desc = irq_desc + i;
  28.902 -		unsigned int status;
  28.903 -
  28.904 -		spin_lock_irq(&desc->lock);
  28.905 -		status = desc->status;
  28.906 -
  28.907 -		if (status & IRQ_AUTODETECT) {
  28.908 -			/* It triggered already - consider it spurious. */
  28.909 -			if (!(status & IRQ_WAITING)) {
  28.910 -				desc->status = status & ~IRQ_AUTODETECT;
  28.911 -				desc->handler->shutdown(i);
  28.912 -			} else
  28.913 -				if (i < 32)
  28.914 -					val |= 1 << i;
  28.915 -		}
  28.916 -		spin_unlock_irq(&desc->lock);
  28.917 -	}
  28.918 -
  28.919 -	return val;
  28.920 -}
  28.921 -
  28.922 -/*
  28.923 - * Return a mask of triggered interrupts (this
  28.924 - * can handle only legacy ISA interrupts).
  28.925 - */
  28.926 - 
  28.927 -/**
  28.928 - *	probe_irq_mask - scan a bitmap of interrupt lines
  28.929 - *	@val:	mask of interrupts to consider
  28.930 - *
  28.931 - *	Scan the ISA bus interrupt lines and return a bitmap of
  28.932 - *	active interrupts. The interrupt probe logic state is then
  28.933 - *	returned to its previous value.
  28.934 - *
  28.935 - *	Note: we need to scan all the irq's even though we will
  28.936 - *	only return ISA irq numbers - just so that we reset them
  28.937 - *	all to a known state.
  28.938 - */
  28.939 -unsigned int probe_irq_mask(unsigned long val)
  28.940 -{
  28.941 -	int i;
  28.942 -	unsigned int mask;
  28.943 -
  28.944 -	mask = 0;
  28.945 -	for (i = 0; i < NR_PIRQS; i++) {
  28.946 -		irq_desc_t *desc = irq_desc + i;
  28.947 -		unsigned int status;
  28.948 -
  28.949 -		spin_lock_irq(&desc->lock);
  28.950 -		status = desc->status;
  28.951 -
  28.952 -		if (status & IRQ_AUTODETECT) {
  28.953 -			if (i < 16 && !(status & IRQ_WAITING))
  28.954 -				mask |= 1 << i;
  28.955 -
  28.956 -			desc->status = status & ~IRQ_AUTODETECT;
  28.957 -			desc->handler->shutdown(i);
  28.958 -		}
  28.959 -		spin_unlock_irq(&desc->lock);
  28.960 -	}
  28.961 -	up(&probe_sem);
  28.962 -
  28.963 -	return mask & val;
  28.964 -}
  28.965 -
  28.966 -/*
  28.967 - * Return the one interrupt that triggered (this can
  28.968 - * handle any interrupt source).
  28.969 - */
  28.970 -
  28.971 -/**
  28.972 - *	probe_irq_off	- end an interrupt autodetect
  28.973 - *	@val: mask of potential interrupts (unused)
  28.974 - *
  28.975 - *	Scans the unused interrupt lines and returns the line which
  28.976 - *	appears to have triggered the interrupt. If no interrupt was
  28.977 - *	found then zero is returned. If more than one interrupt is
  28.978 - *	found then minus the first candidate is returned to indicate
  28.979 - *	their is doubt.
  28.980 - *
  28.981 - *	The interrupt probe logic state is returned to its previous
  28.982 - *	value.
  28.983 - *
  28.984 - *	BUGS: When used in a module (which arguably shouldnt happen)
  28.985 - *	nothing prevents two IRQ probe callers from overlapping. The
  28.986 - *	results of this are non-optimal.
  28.987 - */
  28.988 - 
  28.989 -int probe_irq_off(unsigned long val)
  28.990 -{
  28.991 -	int i, irq_found, nr_irqs;
  28.992 -
  28.993 -	nr_irqs = 0;
  28.994 -	irq_found = 0;
  28.995 -	for (i = 0; i < NR_PIRQS; i++) {
  28.996 -		irq_desc_t *desc = irq_desc + i;
  28.997 -		unsigned int status;
  28.998 -
  28.999 -		spin_lock_irq(&desc->lock);
 28.1000 -		status = desc->status;
 28.1001 -
 28.1002 -		if (status & IRQ_AUTODETECT) {
 28.1003 -			if (!(status & IRQ_WAITING)) {
 28.1004 -				if (!nr_irqs)
 28.1005 -					irq_found = i;
 28.1006 -				nr_irqs++;
 28.1007 -			}
 28.1008 -			desc->status = status & ~IRQ_AUTODETECT;
 28.1009 -			desc->handler->shutdown(i);
 28.1010 -		}
 28.1011 -		spin_unlock_irq(&desc->lock);
 28.1012 -	}
 28.1013 -	up(&probe_sem);
 28.1014 -
 28.1015 -	if (nr_irqs > 1)
 28.1016 -		irq_found = -irq_found;
 28.1017 -	return irq_found;
 28.1018 -}
 28.1019 -
 28.1020 -/* this was setup_x86_irq but it seems pretty generic */
 28.1021 -int setup_irq(unsigned int irq, struct irqaction * new)
 28.1022 -{
 28.1023 -	int shared = 0;
 28.1024 -	unsigned long flags;
 28.1025 -	struct irqaction *old, **p;
 28.1026 -	irq_desc_t *desc = irq_desc + irq;
 28.1027 -
 28.1028 -	/*
 28.1029 -	 * Some drivers like serial.c use request_irq() heavily,
 28.1030 -	 * so we have to be careful not to interfere with a
 28.1031 -	 * running system.
 28.1032 -	 */
 28.1033 -	if (new->flags & SA_SAMPLE_RANDOM) {
 28.1034 -		/*
 28.1035 -		 * This function might sleep, we want to call it first,
 28.1036 -		 * outside of the atomic block.
 28.1037 -		 * Yes, this might clear the entropy pool if the wrong
 28.1038 -		 * driver is attempted to be loaded, without actually
 28.1039 -		 * installing a new handler, but is this really a problem,
 28.1040 -		 * only the sysadmin is able to do this.
 28.1041 -		 */
 28.1042 -		rand_initialize_irq(irq);
 28.1043 -	}
 28.1044 -
 28.1045 -	/*
 28.1046 -	 * The following block of code has to be executed atomically
 28.1047 -	 */
 28.1048 -	spin_lock_irqsave(&desc->lock,flags);
 28.1049 -	p = &desc->action;
 28.1050 -	if ((old = *p) != NULL) {
 28.1051 -		/* Can't share interrupts unless both agree to */
 28.1052 -		if (!(old->flags & new->flags & SA_SHIRQ)) {
 28.1053 -			spin_unlock_irqrestore(&desc->lock,flags);
 28.1054 -			return -EBUSY;
 28.1055 -		}
 28.1056 -
 28.1057 -		/* add new interrupt at end of irq queue */
 28.1058 -		do {
 28.1059 -			p = &old->next;
 28.1060 -			old = *p;
 28.1061 -		} while (old);
 28.1062 -		shared = 1;
 28.1063 -	}
 28.1064 -
 28.1065 -	*p = new;
 28.1066 -
 28.1067 -	if (!shared) {
 28.1068 -		desc->depth = 0;
 28.1069 -		desc->status &= ~(IRQ_DISABLED | IRQ_AUTODETECT | IRQ_WAITING | IRQ_INPROGRESS);
 28.1070 -		desc->handler->startup(irq);
 28.1071 -	}
 28.1072 -	spin_unlock_irqrestore(&desc->lock,flags);
 28.1073 -
 28.1074 -	register_irq_proc(irq);
 28.1075 -	return 0;
 28.1076 -}
 28.1077 -
 28.1078 -static struct proc_dir_entry * root_irq_dir;
 28.1079 -static struct proc_dir_entry * irq_dir [NR_IRQS];
 28.1080 -
 28.1081 -#define HEX_DIGITS 8
 28.1082 -
 28.1083 -static unsigned int parse_hex_value (const char *buffer,
 28.1084 -		unsigned long count, unsigned long *ret)
 28.1085 -{
 28.1086 -	unsigned char hexnum [HEX_DIGITS];
 28.1087 -	unsigned long value;
 28.1088 -	int i;
 28.1089 -
 28.1090 -	if (!count)
 28.1091 -		return -EINVAL;
 28.1092 -	if (count > HEX_DIGITS)
 28.1093 -		count = HEX_DIGITS;
 28.1094 -	if (copy_from_user(hexnum, buffer, count))
 28.1095 -		return -EFAULT;
 28.1096 -
 28.1097 -	/*
 28.1098 -	 * Parse the first 8 characters as a hex string, any non-hex char
 28.1099 -	 * is end-of-string. '00e1', 'e1', '00E1', 'E1' are all the same.
 28.1100 -	 */
 28.1101 -	value = 0;
 28.1102 -
 28.1103 -	for (i = 0; i < count; i++) {
 28.1104 -		unsigned int c = hexnum[i];
 28.1105 -
 28.1106 -		switch (c) {
 28.1107 -			case '0' ... '9': c -= '0'; break;
 28.1108 -			case 'a' ... 'f': c -= 'a'-10; break;
 28.1109 -			case 'A' ... 'F': c -= 'A'-10; break;
 28.1110 -		default:
 28.1111 -			goto out;
 28.1112 -		}
 28.1113 -		value = (value << 4) | c;
 28.1114 -	}
 28.1115 -out:
 28.1116 -	*ret = value;
 28.1117 -	return 0;
 28.1118 -}
 28.1119 -
 28.1120 -#if CONFIG_SMP
 28.1121 -
 28.1122 -static struct proc_dir_entry * smp_affinity_entry [NR_IRQS];
 28.1123 -
 28.1124 -static unsigned long irq_affinity [NR_IRQS] = { [0 ... NR_IRQS-1] = ~0UL };
 28.1125 -static int irq_affinity_read_proc (char *page, char **start, off_t off,
 28.1126 -			int count, int *eof, void *data)
 28.1127 -{
 28.1128 -	if (count < HEX_DIGITS+1)
 28.1129 -		return -EINVAL;
 28.1130 -	return sprintf (page, "%08lx\n", irq_affinity[(long)data]);
 28.1131 -}
 28.1132 -
 28.1133 -static int irq_affinity_write_proc (struct file *file, const char *buffer,
 28.1134 -					unsigned long count, void *data)
 28.1135 -{
 28.1136 -	int irq = (long) data, full_count = count, err;
 28.1137 -	unsigned long new_value;
 28.1138 -
 28.1139 -	if (!irq_desc[irq].handler->set_affinity)
 28.1140 -		return -EIO;
 28.1141 -
 28.1142 -	err = parse_hex_value(buffer, count, &new_value);
 28.1143 -
 28.1144 -	/*
 28.1145 -	 * Do not allow disabling IRQs completely - it's a too easy
 28.1146 -	 * way to make the system unusable accidentally :-) At least
 28.1147 -	 * one online CPU still has to be targeted.
 28.1148 -	 */
 28.1149 -	if (!(new_value & cpu_online_map))
 28.1150 -		return -EINVAL;
 28.1151 -
 28.1152 -	irq_affinity[irq] = new_value;
 28.1153 -	irq_desc[irq].handler->set_affinity(irq, new_value);
 28.1154 -
 28.1155 -	return full_count;
 28.1156 -}
 28.1157 -
 28.1158 -#endif
 28.1159 -
 28.1160 -static int prof_cpu_mask_read_proc (char *page, char **start, off_t off,
 28.1161 -			int count, int *eof, void *data)
 28.1162 -{
 28.1163 -	unsigned long *mask = (unsigned long *) data;
 28.1164 -	if (count < HEX_DIGITS+1)
 28.1165 -		return -EINVAL;
 28.1166 -	return sprintf (page, "%08lx\n", *mask);
 28.1167 -}
 28.1168 -
 28.1169 -static int prof_cpu_mask_write_proc (struct file *file, const char *buffer,
 28.1170 -					unsigned long count, void *data)
 28.1171 -{
 28.1172 -	unsigned long *mask = (unsigned long *) data, full_count = count, err;
 28.1173 -	unsigned long new_value;
 28.1174 -
 28.1175 -	err = parse_hex_value(buffer, count, &new_value);
 28.1176 -	if (err)
 28.1177 -		return err;
 28.1178 -
 28.1179 -	*mask = new_value;
 28.1180 -	return full_count;
 28.1181 -}
 28.1182 -
 28.1183 -#define MAX_NAMELEN 10
 28.1184 -
 28.1185 -static void register_irq_proc (unsigned int irq)
 28.1186 -{
 28.1187 -	char name [MAX_NAMELEN];
 28.1188 -
 28.1189 -	if (!root_irq_dir || (irq_desc[irq].handler == &no_irq_type) ||
 28.1190 -			irq_dir[irq])
 28.1191 -		return;
 28.1192 -
 28.1193 -	memset(name, 0, MAX_NAMELEN);
 28.1194 -	sprintf(name, "%d", irq);
 28.1195 -
 28.1196 -	/* create /proc/irq/1234 */
 28.1197 -	irq_dir[irq] = proc_mkdir(name, root_irq_dir);
 28.1198 -
 28.1199 -#if CONFIG_SMP
 28.1200 -	{
 28.1201 -		struct proc_dir_entry *entry;
 28.1202 -
 28.1203 -		/* create /proc/irq/1234/smp_affinity */
 28.1204 -		entry = create_proc_entry("smp_affinity", 0600, irq_dir[irq]);
 28.1205 -
 28.1206 -		if (entry) {
 28.1207 -			entry->nlink = 1;
 28.1208 -			entry->data = (void *)(long)irq;
 28.1209 -			entry->read_proc = irq_affinity_read_proc;
 28.1210 -			entry->write_proc = irq_affinity_write_proc;
 28.1211 -		}
 28.1212 -
 28.1213 -		smp_affinity_entry[irq] = entry;
 28.1214 -	}
 28.1215 -#endif
 28.1216 -}
 28.1217 -
 28.1218 -unsigned long prof_cpu_mask = -1;
 28.1219 -
 28.1220 -void init_irq_proc (void)
 28.1221 -{
 28.1222 -	struct proc_dir_entry *entry;
 28.1223 -	int i;
 28.1224 -
 28.1225 -	/* create /proc/irq */
 28.1226 -	root_irq_dir = proc_mkdir("irq", 0);
 28.1227 -
 28.1228 -	/* create /proc/irq/prof_cpu_mask */
 28.1229 -	entry = create_proc_entry("prof_cpu_mask", 0600, root_irq_dir);
 28.1230 -
 28.1231 -	if (!entry)
 28.1232 -	    return;
 28.1233 -
 28.1234 -	entry->nlink = 1;
 28.1235 -	entry->data = (void *)&prof_cpu_mask;
 28.1236 -	entry->read_proc = prof_cpu_mask_read_proc;
 28.1237 -	entry->write_proc = prof_cpu_mask_write_proc;
 28.1238 -
 28.1239 -	/*
 28.1240 -	 * Create entries for all existing IRQs.
 28.1241 -	 */
 28.1242 -	for (i = 0; i < NR_IRQS; i++)
 28.1243 -		register_irq_proc(i);
 28.1244 -}
 28.1245 -
    29.1 --- a/linux-2.4.27-xen-sparse/arch/xen/kernel/ldt.c	Fri Nov 19 23:17:26 2004 +0000
    29.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    29.3 @@ -1,271 +0,0 @@
    29.4 -/*
    29.5 - * linux/kernel/ldt.c
    29.6 - *
    29.7 - * Copyright (C) 1992 Krishna Balasubramanian and Linus Torvalds
    29.8 - * Copyright (C) 1999 Ingo Molnar <mingo@redhat.com>
    29.9 - */
   29.10 -
   29.11 -#include <linux/errno.h>
   29.12 -#include <linux/sched.h>
   29.13 -#include <linux/string.h>
   29.14 -#include <linux/mm.h>
   29.15 -#include <linux/smp.h>
   29.16 -#include <linux/smp_lock.h>
   29.17 -#include <linux/vmalloc.h>
   29.18 -#include <linux/slab.h>
   29.19 -
   29.20 -#include <asm/uaccess.h>
   29.21 -#include <asm/system.h>
   29.22 -#include <asm/ldt.h>
   29.23 -#include <asm/desc.h>
   29.24 -
   29.25 -#ifdef CONFIG_SMP /* avoids "defined but not used" warnig */
   29.26 -static void flush_ldt(void *mm)
   29.27 -{
   29.28 -	if (current->active_mm)
   29.29 -		load_LDT(&current->active_mm->context);
   29.30 -}
   29.31 -#endif
   29.32 -
   29.33 -static int alloc_ldt(mm_context_t *pc, int mincount, int reload)
   29.34 -{
   29.35 -	void *oldldt;
   29.36 -	void *newldt;
   29.37 -	int oldsize;
   29.38 -
   29.39 -	if (mincount <= pc->size)
   29.40 -		return 0;
   29.41 -	oldsize = pc->size;
   29.42 -	mincount = (mincount+511)&(~511);
   29.43 -	if (mincount*LDT_ENTRY_SIZE > PAGE_SIZE)
   29.44 -		newldt = vmalloc(mincount*LDT_ENTRY_SIZE);
   29.45 -	else
   29.46 -		newldt = kmalloc(mincount*LDT_ENTRY_SIZE, GFP_KERNEL);
   29.47 -
   29.48 -	if (!newldt)
   29.49 -		return -ENOMEM;
   29.50 -
   29.51 -	if (oldsize)
   29.52 -		memcpy(newldt, pc->ldt, oldsize*LDT_ENTRY_SIZE);
   29.53 -
   29.54 -	oldldt = pc->ldt;
   29.55 -	memset(newldt+oldsize*LDT_ENTRY_SIZE, 0, (mincount-oldsize)*LDT_ENTRY_SIZE);
   29.56 -	wmb();
   29.57 -	pc->ldt = newldt;
   29.58 -	pc->size = mincount;
   29.59 -	if (reload) {
   29.60 -		make_pages_readonly(
   29.61 -			pc->ldt,
   29.62 -			(pc->size*LDT_ENTRY_SIZE)/PAGE_SIZE);
   29.63 -		load_LDT(pc);
   29.64 -		flush_page_update_queue();
   29.65 -#ifdef CONFIG_SMP
   29.66 -		if (current->mm->cpu_vm_mask != (1<<smp_processor_id()))
   29.67 -			smp_call_function(flush_ldt, 0, 1, 1);
   29.68 -#endif
   29.69 -	}
   29.70 -	wmb();
   29.71 -	if (oldsize) {
   29.72 -		if (oldsize*LDT_ENTRY_SIZE > PAGE_SIZE)
   29.73 -			vfree(oldldt);
   29.74 -		else
   29.75 -			kfree(oldldt);
   29.76 -	}
   29.77 -	return 0;
   29.78 -}
   29.79 -
   29.80 -static inline int copy_ldt(mm_context_t *new, mm_context_t *old)
   29.81 -{
   29.82 -	int err = alloc_ldt(new, old->size, 0);
   29.83 -	if (err < 0) {
   29.84 -		printk(KERN_WARNING "ldt allocation failed\n");
   29.85 -		new->size = 0;
   29.86 -		return err;
   29.87 -	}
   29.88 -	memcpy(new->ldt, old->ldt, old->size*LDT_ENTRY_SIZE);
   29.89 -	make_pages_readonly(new->ldt, (new->size*LDT_ENTRY_SIZE)/PAGE_SIZE);
   29.90 -	return 0;
   29.91 -}
   29.92 -
   29.93 -/*
   29.94 - * we do not have to muck with descriptors here, that is
   29.95 - * done in switch_mm() as needed.
   29.96 - */
   29.97 -int init_new_context(struct task_struct *tsk, struct mm_struct *mm)
   29.98 -{
   29.99 -	struct mm_struct * old_mm;
  29.100 -	int retval = 0;
  29.101 -
  29.102 -	init_MUTEX(&mm->context.sem);
  29.103 -	mm->context.size = 0;
  29.104 -	old_mm = current->mm;
  29.105 -	if (old_mm && old_mm->context.size > 0) {
  29.106 -		down(&old_mm->context.sem);
  29.107 -		retval = copy_ldt(&mm->context, &old_mm->context);
  29.108 -		up(&old_mm->context.sem);
  29.109 -	}
  29.110 -	return retval;
  29.111 -}
  29.112 -
  29.113 -/*
  29.114 - * No need to lock the MM as we are the last user
  29.115 - * Do not touch the ldt register, we are already
  29.116 - * in the next thread.
  29.117 - */
  29.118 -void destroy_context(struct mm_struct *mm)
  29.119 -{
  29.120 -	if (mm->context.size) {
  29.121 -		make_pages_writable(
  29.122 -			mm->context.ldt, 
  29.123 -			(mm->context.size*LDT_ENTRY_SIZE)/PAGE_SIZE);
  29.124 -		flush_page_update_queue();
  29.125 -		if (mm->context.size*LDT_ENTRY_SIZE > PAGE_SIZE)
  29.126 -			vfree(mm->context.ldt);
  29.127 -		else
  29.128 -			kfree(mm->context.ldt);
  29.129 -		mm->context.size = 0;
  29.130 -	}
  29.131 -}
  29.132 -
  29.133 -static int read_ldt(void * ptr, unsigned long bytecount)
  29.134 -{
  29.135 -	int err;
  29.136 -	unsigned long size;
  29.137 -	struct mm_struct * mm = current->mm;
  29.138 -
  29.139 -	if (!mm->context.size)
  29.140 -		return 0;
  29.141 -	if (bytecount > LDT_ENTRY_SIZE*LDT_ENTRIES)
  29.142 -		bytecount = LDT_ENTRY_SIZE*LDT_ENTRIES;
  29.143 -
  29.144 -	down(&mm->context.sem);
  29.145 -	size = mm->context.size*LDT_ENTRY_SIZE;
  29.146 -	if (size > bytecount)
  29.147 -		size = bytecount;
  29.148 -
  29.149 -	err = 0;
  29.150 -	if (copy_to_user(ptr, mm->context.ldt, size))
  29.151 -		err = -EFAULT;
  29.152 -	up(&mm->context.sem);
  29.153 -	if (err < 0)
  29.154 -		return err;
  29.155 -	if (size != bytecount) {
  29.156 -		/* zero-fill the rest */
  29.157 -		clear_user(ptr+size, bytecount-size);
  29.158 -	}
  29.159 -	return bytecount;
  29.160 -}
  29.161 -
  29.162 -static int read_default_ldt(void * ptr, unsigned long bytecount)
  29.163 -{
  29.164 -	int err;
  29.165 -	unsigned long size;
  29.166 -	void *address;
  29.167 -
  29.168 -	err = 0;
  29.169 -	address = &default_ldt[0];
  29.170 -	size = 5*sizeof(struct desc_struct);
  29.171 -	if (size > bytecount)
  29.172 -		size = bytecount;
  29.173 -
  29.174 -	err = size;
  29.175 -	if (copy_to_user(ptr, address, size))
  29.176 -		err = -EFAULT;
  29.177 -
  29.178 -	return err;
  29.179 -}
  29.180 -
  29.181 -static int write_ldt(void * ptr, unsigned long bytecount, int oldmode)
  29.182 -{
  29.183 -	struct mm_struct * mm = current->mm;
  29.184 -	__u32 entry_1, entry_2, *lp;
  29.185 -	unsigned long phys_lp;
  29.186 -	int error;
  29.187 -	struct modify_ldt_ldt_s ldt_info;
  29.188 -
  29.189 -	error = -EINVAL;
  29.190 -	if (bytecount != sizeof(ldt_info))
  29.191 -		goto out;
  29.192 -	error = -EFAULT; 	
  29.193 -	if (copy_from_user(&ldt_info, ptr, sizeof(ldt_info)))
  29.194 -		goto out;
  29.195 -
  29.196 -	error = -EINVAL;
  29.197 -	if (ldt_info.entry_number >= LDT_ENTRIES)
  29.198 -		goto out;
  29.199 -	if (ldt_info.contents == 3) {
  29.200 -		if (oldmode)
  29.201 -			goto out;
  29.202 -		if (ldt_info.seg_not_present == 0)
  29.203 -			goto out;
  29.204 -	}
  29.205 -
  29.206 -	down(&mm->context.sem);
  29.207 -	if (ldt_info.entry_number >= mm->context.size) {
  29.208 -		error = alloc_ldt(&current->mm->context, ldt_info.entry_number+1, 1);
  29.209 -		if (error < 0)
  29.210 -			goto out_unlock;
  29.211 -	}
  29.212 -
  29.213 -	lp = (__u32 *) ((ldt_info.entry_number << 3) + (char *) mm->context.ldt);
  29.214 -	phys_lp = arbitrary_virt_to_phys(lp);
  29.215 -
  29.216 -   	/* Allow LDTs to be cleared by the user. */
  29.217 -   	if (ldt_info.base_addr == 0 && ldt_info.limit == 0) {
  29.218 -		if (oldmode ||
  29.219 -		    (ldt_info.contents == 0		&&
  29.220 -		     ldt_info.read_exec_only == 1	&&
  29.221 -		     ldt_info.seg_32bit == 0		&&
  29.222 -		     ldt_info.limit_in_pages == 0	&&
  29.223 -		     ldt_info.seg_not_present == 1	&&
  29.224 -		     ldt_info.useable == 0 )) {
  29.225 -			entry_1 = 0;
  29.226 -			entry_2 = 0;
  29.227 -			goto install;
  29.228 -		}
  29.229 -	}
  29.230 -
  29.231 -	entry_1 = ((ldt_info.base_addr & 0x0000ffff) << 16) |
  29.232 -		  (ldt_info.limit & 0x0ffff);
  29.233 -	entry_2 = (ldt_info.base_addr & 0xff000000) |
  29.234 -		  ((ldt_info.base_addr & 0x00ff0000) >> 16) |
  29.235 -		  (ldt_info.limit & 0xf0000) |
  29.236 -		  ((ldt_info.read_exec_only ^ 1) << 9) |
  29.237 -		  (ldt_info.contents << 10) |
  29.238 -		  ((ldt_info.seg_not_present ^ 1) << 15) |
  29.239 -		  (ldt_info.seg_32bit << 22) |
  29.240 -		  (ldt_info.limit_in_pages << 23) |
  29.241 -		  0x7000;
  29.242 -	if (!oldmode)
  29.243 -		entry_2 |= (ldt_info.useable << 20);
  29.244 -
  29.245 -	/* Install the new entry ...  */
  29.246 -install:
  29.247 -	error = HYPERVISOR_update_descriptor(phys_lp, entry_1, entry_2);
  29.248 -
  29.249 -out_unlock:
  29.250 -	up(&mm->context.sem);
  29.251 -out:
  29.252 -	return error;
  29.253 -}
  29.254 -
  29.255 -asmlinkage int sys_modify_ldt(int func, void *ptr, unsigned long bytecount)
  29.256 -{
  29.257 -	int ret = -ENOSYS;
  29.258 -
  29.259 -	switch (func) {
  29.260 -	case 0:
  29.261 -		ret = read_ldt(ptr, bytecount);
  29.262 -		break;
  29.263 -	case 1:
  29.264 -		ret = write_ldt(ptr, bytecount, 1);
  29.265 -		break;
  29.266 -	case 2:
  29.267 -		ret = read_default_ldt(ptr, bytecount);
  29.268 -		break;
  29.269 -	case 0x11:
  29.270 -		ret = write_ldt(ptr, bytecount, 0);
  29.271 -		break;
  29.272 -	}
  29.273 -	return ret;
  29.274 -}
    30.1 --- a/linux-2.4.27-xen-sparse/arch/xen/kernel/pci-pc.c	Fri Nov 19 23:17:26 2004 +0000
    30.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    30.3 @@ -1,260 +0,0 @@
    30.4 -/*
    30.5 - *	Low-Level PCI Support for PC
    30.6 - *
    30.7 - *	(c) 1999--2000 Martin Mares <mj@ucw.cz>
    30.8 - *
    30.9 - * Adjusted to use Xen's interface by Rolf Neugebauer, Intel Research Cambridge
   30.10 - * Further modifications by Keir Fraser, University of Cambridge
   30.11 - */
   30.12 -
   30.13 -#include <linux/config.h>
   30.14 -#include <linux/types.h>
   30.15 -#include <linux/kernel.h>
   30.16 -#include <linux/sched.h>
   30.17 -#include <linux/pci.h>
   30.18 -#include <linux/init.h>
   30.19 -#include <linux/ioport.h>
   30.20 -
   30.21 -#include <asm/segment.h>
   30.22 -#include <asm/io.h>
   30.23 -
   30.24 -#include <asm-xen/xen-public/xen.h>
   30.25 -#include <asm-xen/xen-public/physdev.h>
   30.26 -
   30.27 -#include "pci-i386.h"
   30.28 -
   30.29 -/*
   30.30 - * NB. The following interface functions are not included here:
   30.31 - *  1. void eisa_set_level_irq(unsigned int irq)
   30.32 - *  2. irq_routing_table * __devinit pcibios_get_irq_routing_table(void)
   30.33 - *  3. int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq)
   30.34 - * All are used by the ACPI driver. This should be ported to Xen if it is
   30.35 - * ever required -- Xen is the ultimate source for IRQ-routing knowledge.
   30.36 - */
   30.37 -
   30.38 -struct pci_ops *pci_root_ops = NULL;
   30.39 -
   30.40 -int (*pci_config_read)(int seg, int bus, int dev, int fn, 
   30.41 -                       int reg, int len, u32 *value) = NULL;
   30.42 -int (*pci_config_write)(int seg, int bus, int dev, int fn,
   30.43 -                        int reg, int len, u32 value) = NULL;
   30.44 -
   30.45 -unsigned int pci_probe = PCI_PROBE_BIOS;
   30.46 -
   30.47 -struct pci_fixup pcibios_fixups[] = { { 0 } };
   30.48 -
   30.49 -static int pci_confx_read(int seg, int bus, int dev, int fn, int reg, 
   30.50 -                          int len, u32 *value)
   30.51 -{
   30.52 -    int ret;
   30.53 -    physdev_op_t op;
   30.54 -
   30.55 -    if (bus > 255 || dev > 31 || fn > 7 || reg > 255)
   30.56 -        return -EINVAL;
   30.57 -
   30.58 -    op.cmd = PHYSDEVOP_PCI_CFGREG_READ;
   30.59 -    op.u.pci_cfgreg_read.bus  = bus;
   30.60 -    op.u.pci_cfgreg_read.dev  = dev;
   30.61 -    op.u.pci_cfgreg_read.func = fn;
   30.62 -    op.u.pci_cfgreg_read.reg  = reg;
   30.63 -    op.u.pci_cfgreg_read.len  = len;
   30.64 -
   30.65 -    if ( (ret = HYPERVISOR_physdev_op(&op)) != 0 )
   30.66 -        return ret;
   30.67 -
   30.68 -    *value = op.u.pci_cfgreg_read.value;
   30.69 -
   30.70 -    return 0;
   30.71 -}
   30.72 -
   30.73 -static int pci_confx_write(int seg, int bus, int dev, int fn, int reg, 
   30.74 -                           int len, u32 value)
   30.75 -{
   30.76 -    int ret;
   30.77 -    physdev_op_t op;
   30.78 -
   30.79 -    if ((bus > 255 || dev > 31 || fn > 7 || reg > 255)) 
   30.80 -        return -EINVAL;
   30.81 -
   30.82 -    op.cmd = PHYSDEVOP_PCI_CFGREG_WRITE;
   30.83 -    op.u.pci_cfgreg_write.bus   = bus;
   30.84 -    op.u.pci_cfgreg_write.dev   = dev;
   30.85 -    op.u.pci_cfgreg_write.func  = fn;
   30.86 -    op.u.pci_cfgreg_write.reg   = reg;
   30.87 -    op.u.pci_cfgreg_write.len   = len;
   30.88 -    op.u.pci_cfgreg_write.value = value;
   30.89 -
   30.90 -    if ( (ret = HYPERVISOR_physdev_op(&op)) != 0 )
   30.91 -        return ret;
   30.92 -    return 0;
   30.93 -}
   30.94 -
   30.95 -
   30.96 -static int pci_confx_read_config_byte(struct pci_dev *dev, 
   30.97 -                                      int where, u8 *value)
   30.98 -{
   30.99 -    int result; 
  30.100 -    u32 data;
  30.101 -
  30.102 -    result = pci_confx_read(0, dev->bus->number, PCI_SLOT(dev->devfn), 
  30.103 -                            PCI_FUNC(dev->devfn), where, 1, &data);
  30.104 -
  30.105 -    *value = (u8)data;
  30.106 -
  30.107 -    return result;
  30.108 -}
  30.109 -
  30.110 -static int pci_confx_read_config_word(struct pci_dev *dev, 
  30.111 -                                      int where, u16 *value)
  30.112 -{
  30.113 -    int result; 
  30.114 -    u32 data;
  30.115 -
  30.116 -    result = pci_confx_read(0, dev->bus->number, PCI_SLOT(dev->devfn), 
  30.117 -                            PCI_FUNC(dev->devfn), where, 2, &data);
  30.118 -
  30.119 -    *value = (u16)data;
  30.120 -
  30.121 -    return result;
  30.122 -}
  30.123 -
  30.124 -static int pci_confx_read_config_dword(struct pci_dev *dev, 
  30.125 -                                       int where, u32 *value)
  30.126 -{
  30.127 -    return pci_confx_read(0, dev->bus->number, PCI_SLOT(dev->devfn), 
  30.128 -                          PCI_FUNC(dev->devfn), where, 4, value);
  30.129 -}
  30.130 -
  30.131 -static int pci_confx_write_config_byte(struct pci_dev *dev, 
  30.132 -                                       int where, u8 value)
  30.133 -{
  30.134 -    return pci_confx_write(0, dev->bus->number, PCI_SLOT(dev->devfn), 
  30.135 -                           PCI_FUNC(dev->devfn), where, 1, value);
  30.136 -}
  30.137 -
  30.138 -static int pci_confx_write_config_word(struct pci_dev *dev, 
  30.139 -                                       int where, u16 value)
  30.140 -{
  30.141 -    return pci_confx_write(0, dev->bus->number, PCI_SLOT(dev->devfn), 
  30.142 -                           PCI_FUNC(dev->devfn), where, 2, value);
  30.143 -}
  30.144 -
  30.145 -static int pci_confx_write_config_dword(struct pci_dev *dev, 
  30.146 -                                        int where, u32 value)
  30.147 -{
  30.148 -    return pci_confx_write(0, dev->bus->number, PCI_SLOT(dev->devfn), 
  30.149 -                           PCI_FUNC(dev->devfn), where, 4, value);
  30.150 -}
  30.151 -
  30.152 -static struct pci_ops pci_conf_xen = {
  30.153 -    pci_confx_read_config_byte,
  30.154 -    pci_confx_read_config_word,
  30.155 -    pci_confx_read_config_dword,
  30.156 -    pci_confx_write_config_byte,
  30.157 -    pci_confx_write_config_word,
  30.158 -    pci_confx_write_config_dword
  30.159 -};
  30.160 -
  30.161 -void pcibios_penalize_isa_irq(int irq)
  30.162 -{ 
  30.163 -    /* nothing */
  30.164 -}
  30.165 -
  30.166 -void __devinit pcibios_fixup_bus(struct pci_bus *b)
  30.167 -{
  30.168 -    pci_read_bridge_bases(b);
  30.169 -}
  30.170 -
  30.171 -struct pci_bus * __devinit pcibios_scan_root(int busnum)
  30.172 -{
  30.173 -    struct list_head *list;
  30.174 -    struct pci_bus *bus;
  30.175 -
  30.176 -    list_for_each ( list, &pci_root_buses )
  30.177 -    {
  30.178 -        bus = pci_bus_b(list);
  30.179 -        if ( bus->number == busnum )
  30.180 -            return bus;
  30.181 -    }
  30.182 -
  30.183 -    printk("PCI: Probing PCI hardware (bus %02x)\n", busnum);
  30.184 -    return pci_scan_bus(busnum, pci_root_ops, NULL);
  30.185 -}
  30.186 -
  30.187 -void __init pcibios_init(void)
  30.188 -{
  30.189 -    int bus;
  30.190 -    physdev_op_t op;
  30.191 -
  30.192 -    if ( !pci_probe )
  30.193 -        return;
  30.194 -
  30.195 -    pci_root_ops     = &pci_conf_xen;
  30.196 -    pci_config_read  = pci_confx_read;
  30.197 -    pci_config_write = pci_confx_write;
  30.198 -
  30.199 -    pcibios_set_cacheline_size();
  30.200 -
  30.201 -    op.cmd = PHYSDEVOP_PCI_PROBE_ROOT_BUSES;
  30.202 -    if ( HYPERVISOR_physdev_op(&op) != 0 )
  30.203 -    {
  30.204 -        printk(KERN_WARNING "PCI: System does not support PCI\n");
  30.205 -        return;
  30.206 -    }
  30.207 -
  30.208 -    printk(KERN_INFO "PCI: Probing PCI hardware\n");
  30.209 -    for ( bus = 0; bus < 256; bus++ )
  30.210 -        if ( test_bit(bus, &op.u.pci_probe_root_buses.busmask[0]) )
  30.211 -            (void)pcibios_scan_root(bus);
  30.212 -
  30.213 -    pcibios_resource_survey();
  30.214 -}
  30.215 -
  30.216 -char * __devinit pcibios_setup(char *str)
  30.217 -{
  30.218 -    if ( !strcmp(str, "off") )
  30.219 -        pci_probe = 0;
  30.220 -    return NULL;
  30.221 -}
  30.222 -
  30.223 -unsigned int pcibios_assign_all_busses(void)
  30.224 -{
  30.225 -    return 0;
  30.226 -}
  30.227 -
  30.228 -int pcibios_enable_device(struct pci_dev *dev, int mask)
  30.229 -{
  30.230 -    int err;
  30.231 -    u8  pin;
  30.232 -    physdev_op_t op;
  30.233 -
  30.234 -    /* Inform Xen that we are going to use this device. */
  30.235 -    op.cmd = PHYSDEVOP_PCI_INITIALISE_DEVICE;
  30.236 -    op.u.pci_initialise_device.bus  = dev->bus->number;
  30.237 -    op.u.pci_initialise_device.dev  = PCI_SLOT(dev->devfn);
  30.238 -    op.u.pci_initialise_device.func = PCI_FUNC(dev->devfn);
  30.239 -    if ( (err = HYPERVISOR_physdev_op(&op)) != 0 )
  30.240 -        return err;
  30.241 -
  30.242 -    /* Now we can bind to the very final IRQ line. */
  30.243 -    pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &pin);
  30.244 -    dev->irq = pin;
  30.245 -
  30.246 -    /* Turn on device I/O and memory access as necessary. */
  30.247 -    if ( (err = pcibios_enable_resources(dev, mask)) < 0 )
  30.248 -        return err;
  30.249 -
  30.250 -    /* Sanity-check that an interrupt-producing device is routed to an IRQ. */
  30.251 -    pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin);
  30.252 -    if ( pin != 0 )
  30.253 -    {
  30.254 -        if ( dev->irq != 0 )
  30.255 -            printk(KERN_INFO "PCI: Obtained IRQ %d for device %s\n",
  30.256 -                   dev->irq, dev->slot_name);
  30.257 -        else
  30.258 -            printk(KERN_WARNING "PCI: No IRQ known for interrupt pin %c of "
  30.259 -                   "device %s.\n", 'A' + pin - 1, dev->slot_name);
  30.260 -    }
  30.261 -
  30.262 -    return 0;
  30.263 -}
    31.1 --- a/linux-2.4.27-xen-sparse/arch/xen/kernel/process.c	Fri Nov 19 23:17:26 2004 +0000
    31.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    31.3 @@ -1,459 +0,0 @@
    31.4 -/*
    31.5 - *  linux/arch/i386/kernel/process.c
    31.6 - *
    31.7 - *  Copyright (C) 1995  Linus Torvalds
    31.8 - *
    31.9 - *  Pentium III FXSR, SSE support
   31.10 - *	Gareth Hughes <gareth@valinux.com>, May 2000
   31.11 - */
   31.12 -
   31.13 -/*
   31.14 - * This file handles the architecture-dependent parts of process handling..
   31.15 - */
   31.16 -
   31.17 -#define __KERNEL_SYSCALLS__
   31.18 -#include <stdarg.h>
   31.19 -
   31.20 -#include <linux/errno.h>
   31.21 -#include <linux/sched.h>
   31.22 -#include <linux/kernel.h>
   31.23 -#include <linux/mm.h>
   31.24 -#include <linux/smp.h>
   31.25 -#include <linux/smp_lock.h>
   31.26 -#include <linux/stddef.h>
   31.27 -#include <linux/unistd.h>
   31.28 -#include <linux/ptrace.h>
   31.29 -#include <linux/slab.h>
   31.30 -#include <linux/vmalloc.h>
   31.31 -#include <linux/user.h>
   31.32 -#include <linux/a.out.h>
   31.33 -#include <linux/interrupt.h>
   31.34 -#include <linux/config.h>
   31.35 -#include <linux/delay.h>
   31.36 -#include <linux/reboot.h>
   31.37 -#include <linux/init.h>
   31.38 -#include <linux/mc146818rtc.h>
   31.39 -
   31.40 -#include <asm/uaccess.h>
   31.41 -#include <asm/pgtable.h>
   31.42 -#include <asm/system.h>
   31.43 -#include <asm/io.h>
   31.44 -#include <asm/ldt.h>
   31.45 -#include <asm/processor.h>
   31.46 -#include <asm/i387.h>
   31.47 -#include <asm/desc.h>
   31.48 -#include <asm/mmu_context.h>
   31.49 -#include <asm/multicall.h>
   31.50 -#include <asm-xen/xen-public/dom0_ops.h>
   31.51 -
   31.52 -#include <linux/irq.h>
   31.53 -
   31.54 -asmlinkage void ret_from_fork(void) __asm__("ret_from_fork");
   31.55 -
   31.56 -int hlt_counter;
   31.57 -
   31.58 -/*
   31.59 - * Powermanagement idle function, if any..
   31.60 - */
   31.61 -void (*pm_idle)(void);
   31.62 -
   31.63 -/*
   31.64 - * Power off function, if any
   31.65 - */
   31.66 -void (*pm_power_off)(void);
   31.67 -
   31.68 -void disable_hlt(void)
   31.69 -{
   31.70 -    hlt_counter++;
   31.71 -}
   31.72 -
   31.73 -void enable_hlt(void)
   31.74 -{
   31.75 -    hlt_counter--;
   31.76 -}
   31.77 -
   31.78 -/*
   31.79 - * The idle thread. There's no useful work to be
   31.80 - * done, so just try to conserve power and have a
   31.81 - * low exit latency (ie sit in a loop waiting for
   31.82 - * somebody to say that they'd like to reschedule)
   31.83 - */
   31.84 -void cpu_idle (void)
   31.85 -{
   31.86 -    extern int set_timeout_timer(void);
   31.87 -
   31.88 -    /* Endless idle loop with no priority at all. */
   31.89 -    init_idle();
   31.90 -    current->nice = 20;
   31.91 -    current->counter = -100;
   31.92 -
   31.93 -    for ( ; ; )
   31.94 -    {
   31.95 -        while ( !current->need_resched )
   31.96 -        {
   31.97 -            __cli();
   31.98 -            if ( current->need_resched )
   31.99 -            {
  31.100 -                /* The race-free check for events failed. */
  31.101 -                __sti();
  31.102 -                break;
  31.103 -            }
  31.104 -            else if ( set_timeout_timer() == 0 )
  31.105 -            {
  31.106 -                /* NB. Blocking reenable events in a race-free manner. */
  31.107 -                HYPERVISOR_block();
  31.108 -            }
  31.109 -            else
  31.110 -            {
  31.111 -                /* No race here: yielding will get us the CPU again anyway. */
  31.112 -                __sti();
  31.113 -                HYPERVISOR_yield();
  31.114 -            }
  31.115 -        }
  31.116 -        schedule();
  31.117 -        check_pgt_cache();
  31.118 -    }
  31.119 -}
  31.120 -
  31.121 -extern void show_trace(unsigned long* esp);
  31.122 -
  31.123 -void show_regs(struct pt_regs * regs)
  31.124 -{
  31.125 -    printk("\n");
  31.126 -    printk("Pid: %d, comm: %20s\n", current->pid, current->comm);
  31.127 -    printk("EIP: %04x:[<%08lx>] CPU: %d",0xffff & regs->xcs,regs->eip, smp_processor_id());
  31.128 -    if (regs->xcs & 2)
  31.129 -        printk(" ESP: %04x:%08lx",0xffff & regs->xss,regs->esp);
  31.130 -    printk(" EFLAGS: %08lx    %s\n",regs->eflags, print_tainted());
  31.131 -    printk("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n",
  31.132 -           regs->eax,regs->ebx,regs->ecx,regs->edx);
  31.133 -    printk("ESI: %08lx EDI: %08lx EBP: %08lx",
  31.134 -           regs->esi, regs->edi, regs->ebp);
  31.135 -    printk(" DS: %04x ES: %04x\n",
  31.136 -           0xffff & regs->xds,0xffff & regs->xes);
  31.137 -
  31.138 -    show_trace(&regs->esp);
  31.139 -}
  31.140 -
  31.141 -
  31.142 -/*
  31.143 - * Create a kernel thread
  31.144 - */
  31.145 -int arch_kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
  31.146 -{
  31.147 -    long retval, d0;
  31.148 -
  31.149 -    __asm__ __volatile__(
  31.150 -        "movl %%esp,%%esi\n\t"
  31.151 -        "int $0x80\n\t"		/* Linux/i386 system call */
  31.152 -        "cmpl %%esp,%%esi\n\t"	/* child or parent? */
  31.153 -        "je 1f\n\t"		/* parent - jump */
  31.154 -        /* Load the argument into eax, and push it.  That way, it does
  31.155 -         * not matter whether the called function is compiled with
  31.156 -         * -mregparm or not.  */
  31.157 -        "movl %4,%%eax\n\t"
  31.158 -        "pushl %%eax\n\t"		
  31.159 -        "call *%5\n\t"		/* call fn */
  31.160 -        "movl %3,%0\n\t"	/* exit */
  31.161 -        "int $0x80\n"
  31.162 -        "1:\t"
  31.163 -        :"=&a" (retval), "=&S" (d0)
  31.164 -        :"0" (__NR_clone), "i" (__NR_exit),
  31.165 -        "r" (arg), "r" (fn),
  31.166 -        "b" (flags | CLONE_VM)
  31.167 -        : "memory");
  31.168 -
  31.169 -    return retval;
  31.170 -}
  31.171 -
  31.172 -/*
  31.173 - * Free current thread data structures etc..
  31.174 - */
  31.175 -void exit_thread(void)
  31.176 -{
  31.177 -    /* nothing to do ... */
  31.178 -}
  31.179 -
  31.180 -void flush_thread(void)
  31.181 -{
  31.182 -    struct task_struct *tsk = current;
  31.183 -
  31.184 -    memset(tsk->thread.debugreg, 0, sizeof(unsigned long)*8);
  31.185 -
  31.186 -    /*
  31.187 -     * Forget coprocessor state..
  31.188 -     */
  31.189 -    clear_fpu(tsk);
  31.190 -    tsk->used_math = 0;
  31.191 -}
  31.192 -
  31.193 -void release_thread(struct task_struct *dead_task)
  31.194 -{
  31.195 -    if (dead_task->mm) {
  31.196 -        // temporary debugging check
  31.197 -        if (dead_task->mm->context.size) {
  31.198 -            printk("WARNING: dead process %8s still has LDT? <%p/%08x>\n",
  31.199 -                   dead_task->comm, 
  31.200 -		   dead_task->mm->context.ldt,
  31.201 -		   dead_task->mm->context.size);
  31.202 -            BUG();
  31.203 -        }
  31.204 -    }
  31.205 -    //release_x86_irqs(dead_task);
  31.206 -}
  31.207 -
  31.208 -
  31.209 -/*
  31.210 - * Save a segment.
  31.211 - */
  31.212 -#define savesegment(seg,value) \
  31.213 -	asm volatile("movl %%" #seg ",%0":"=m" (*(int *)&(value)))
  31.214 -
  31.215 -int copy_thread(int nr, unsigned long clone_flags, unsigned long esp,
  31.216 -                unsigned long unused,
  31.217 -                struct task_struct * p, struct pt_regs * regs)
  31.218 -{
  31.219 -    struct pt_regs * childregs;
  31.220 -    unsigned long eflags;
  31.221 -
  31.222 -    childregs = ((struct pt_regs *) (THREAD_SIZE + (unsigned long) p)) - 1;
  31.223 -    struct_cpy(childregs, regs);
  31.224 -    childregs->eax = 0;
  31.225 -    childregs->esp = esp;
  31.226 -
  31.227 -    p->thread.esp = (unsigned long) childregs;
  31.228 -    p->thread.esp0 = (unsigned long) (childregs+1);
  31.229 -
  31.230 -    p->thread.eip = (unsigned long) ret_from_fork;
  31.231 -
  31.232 -    savesegment(fs,p->thread.fs);
  31.233 -    savesegment(gs,p->thread.gs);
  31.234 -
  31.235 -    unlazy_fpu(current);
  31.236 -    struct_cpy(&p->thread.i387, &current->thread.i387);
  31.237 -
  31.238 -
  31.239 -    __asm__ __volatile__ ( "pushfl; popl %0" : "=r" (eflags) : );
  31.240 -    p->thread.io_pl = (eflags >> 12) & 3;
  31.241 -
  31.242 -    return 0;
  31.243 -}
  31.244 -
  31.245 -/*
  31.246 - * fill in the user structure for a core dump..
  31.247 - */
  31.248 -void dump_thread(struct pt_regs * regs, struct user * dump)
  31.249 -{
  31.250 -    int i;
  31.251 -
  31.252 -/* changed the size calculations - should hopefully work better. lbt */
  31.253 -    dump->magic = CMAGIC;
  31.254 -    dump->start_code = 0;
  31.255 -    dump->start_stack = regs->esp & ~(PAGE_SIZE - 1);
  31.256 -    dump->u_tsize = ((unsigned long) current->mm->end_code) >> PAGE_SHIFT;
  31.257 -    dump->u_dsize = ((unsigned long) (current->mm->brk + (PAGE_SIZE-1))) >> PAGE_SHIFT;
  31.258 -    dump->u_dsize -= dump->u_tsize;
  31.259 -    dump->u_ssize = 0;
  31.260 -    for (i = 0; i < 8; i++)
  31.261 -        dump->u_debugreg[i] = current->thread.debugreg[i];  
  31.262 -
  31.263 -    if (dump->start_stack < TASK_SIZE)
  31.264 -        dump->u_ssize = ((unsigned long) (TASK_SIZE - dump->start_stack)) >> PAGE_SHIFT;
  31.265 -
  31.266 -    dump->regs.ebx = regs->ebx;
  31.267 -    dump->regs.ecx = regs->ecx;
  31.268 -    dump->regs.edx = regs->edx;
  31.269 -    dump->regs.esi = regs->esi;
  31.270 -    dump->regs.edi = regs->edi;
  31.271 -    dump->regs.ebp = regs->ebp;
  31.272 -    dump->regs.eax = regs->eax;
  31.273 -    dump->regs.ds = regs->xds;
  31.274 -    dump->regs.es = regs->xes;
  31.275 -    savesegment(fs,dump->regs.fs);
  31.276 -    savesegment(gs,dump->regs.gs);
  31.277 -    dump->regs.orig_eax = regs->orig_eax;
  31.278 -    dump->regs.eip = regs->eip;
  31.279 -    dump->regs.cs = regs->xcs;
  31.280 -    dump->regs.eflags = regs->eflags;
  31.281 -    dump->regs.esp = regs->esp;
  31.282 -    dump->regs.ss = regs->xss;
  31.283 -
  31.284 -    dump->u_fpvalid = dump_fpu (regs, &dump->i387);
  31.285 -}
  31.286 -
  31.287 -/*
  31.288 - *	switch_to(x,yn) should switch tasks from x to y.
  31.289 - *
  31.290 - * We fsave/fwait so that an exception goes off at the right time
  31.291 - * (as a call from the fsave or fwait in effect) rather than to
  31.292 - * the wrong process. Lazy FP saving no longer makes any sense
  31.293 - * with modern CPU's, and this simplifies a lot of things (SMP
  31.294 - * and UP become the same).
  31.295 - *
  31.296 - * NOTE! We used to use the x86 hardware context switching. The
  31.297 - * reason for not using it any more becomes apparent when you
  31.298 - * try to recover gracefully from saved state that is no longer
  31.299 - * valid (stale segment register values in particular). With the
  31.300 - * hardware task-switch, there is no way to fix up bad state in
  31.301 - * a reasonable manner.
  31.302 - *
  31.303 - * The fact that Intel documents the hardware task-switching to
  31.304 - * be slow is a fairly red herring - this code is not noticeably
  31.305 - * faster. However, there _is_ some room for improvement here,
  31.306 - * so the performance issues may eventually be a valid point.
  31.307 - * More important, however, is the fact that this allows us much
  31.308 - * more flexibility.
  31.309 - */
  31.310 -void __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
  31.311 -{
  31.312 -    struct thread_struct *next = &next_p->thread;
  31.313 -
  31.314 -    __cli();
  31.315 -
  31.316 -    /*
  31.317 -     * We clobber FS and GS here so that we avoid a GPF when restoring previous
  31.318 -     * task's FS/GS values in Xen when the LDT is switched. If we don't do this
  31.319 -     * then we can end up erroneously re-flushing the page-update queue when
  31.320 -     * we 'execute_multicall_list'.
  31.321 -     */
  31.322 -    __asm__ __volatile__ ( 
  31.323 -        "xorl %%eax,%%eax; movl %%eax,%%fs; movl %%eax,%%gs" : : : "eax" );
  31.324 -
  31.325 -    MULTICALL_flush_page_update_queue();
  31.326 -
  31.327 -    /*
  31.328 -     * This is basically 'unlazy_fpu', except that we queue a multicall to 
  31.329 -     * indicate FPU task switch, rather than synchronously trapping to Xen.
  31.330 -     */
  31.331 -    if ( prev_p->flags & PF_USEDFPU )
  31.332 -    {
  31.333 -	if ( cpu_has_fxsr )
  31.334 -            asm volatile( "fxsave %0 ; fnclex"
  31.335 -                          : "=m" (prev_p->thread.i387.fxsave) );
  31.336 -	else
  31.337 -            asm volatile( "fnsave %0 ; fwait"
  31.338 -                          : "=m" (prev_p->thread.i387.fsave) );
  31.339 -	prev_p->flags &= ~PF_USEDFPU;
  31.340 -        queue_multicall0(__HYPERVISOR_fpu_taskswitch);
  31.341 -    }
  31.342 -
  31.343 -    queue_multicall2(__HYPERVISOR_stack_switch, __KERNEL_DS, next->esp0);
  31.344 -    if ( xen_start_info.flags & SIF_PRIVILEGED ) 
  31.345 -    {
  31.346 -        dom0_op_t op;
  31.347 -        op.cmd           = DOM0_IOPL;
  31.348 -        op.u.iopl.domain = DOMID_SELF;
  31.349 -        op.u.iopl.iopl   = next->io_pl;
  31.350 -        queue_multicall1(__HYPERVISOR_dom0_op, (unsigned long)&op);
  31.351 -    }
  31.352 -
  31.353 -    /* EXECUTE ALL TASK SWITCH XEN SYSCALLS AT THIS POINT. */
  31.354 -    execute_multicall_list();
  31.355 -    __sti();
  31.356 -
  31.357 -    /*
  31.358 -     * Restore %fs and %gs.
  31.359 -     */
  31.360 -    loadsegment(fs, next->fs);
  31.361 -    loadsegment(gs, next->gs);
  31.362 -
  31.363 -    /*
  31.364 -     * Now maybe reload the debug registers
  31.365 -     */
  31.366 -    if ( next->debugreg[7] != 0 )
  31.367 -    {
  31.368 -        HYPERVISOR_set_debugreg(0, next->debugreg[0]);
  31.369 -        HYPERVISOR_set_debugreg(1, next->debugreg[1]);
  31.370 -        HYPERVISOR_set_debugreg(2, next->debugreg[2]);
  31.371 -        HYPERVISOR_set_debugreg(3, next->debugreg[3]);
  31.372 -        /* no 4 and 5 */
  31.373 -        HYPERVISOR_set_debugreg(6, next->debugreg[6]);
  31.374 -        HYPERVISOR_set_debugreg(7, next->debugreg[7]);
  31.375 -    }
  31.376 -}
  31.377 -
  31.378 -asmlinkage int sys_fork(struct pt_regs regs)
  31.379 -{
  31.380 -    return do_fork(SIGCHLD, regs.esp, &regs, 0);
  31.381 -}
  31.382 -
  31.383 -asmlinkage int sys_clone(struct pt_regs regs)
  31.384 -{
  31.385 -    unsigned long clone_flags;
  31.386 -    unsigned long newsp;
  31.387 -
  31.388 -    clone_flags = regs.ebx;
  31.389 -    newsp = regs.ecx;
  31.390 -    if (!newsp)
  31.391 -        newsp = regs.esp;
  31.392 -    return do_fork(clone_flags, newsp, &regs, 0);
  31.393 -}
  31.394 -
  31.395 -/*
  31.396 - * This is trivial, and on the face of it looks like it
  31.397 - * could equally well be done in user mode.
  31.398 - *
  31.399 - * Not so, for quite unobvious reasons - register pressure.
  31.400 - * In user mode vfork() cannot have a stack frame, and if
  31.401 - * done by calling the "clone()" system call directly, you
  31.402 - * do not have enough call-clobbered registers to hold all
  31.403 - * the information you need.
  31.404 - */
  31.405 -asmlinkage int sys_vfork(struct pt_regs regs)
  31.406 -{
  31.407 -    return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, regs.esp, &regs, 0);
  31.408 -}
  31.409 -
  31.410 -/*
  31.411 - * sys_execve() executes a new program.
  31.412 - */
  31.413 -asmlinkage int sys_execve(struct pt_regs regs)
  31.414 -{
  31.415 -    int error;
  31.416 -    char * filename;
  31.417 -
  31.418 -    filename = getname((char *) regs.ebx);
  31.419 -    error = PTR_ERR(filename);
  31.420 -    if (IS_ERR(filename))
  31.421 -        goto out;
  31.422 -    error = do_execve(filename, (char **) regs.ecx, (char **) regs.edx, &regs);
  31.423 -    if (error == 0)
  31.424 -        current->ptrace &= ~PT_DTRACE;
  31.425 -    putname(filename);
  31.426 - out:
  31.427 -    return error;
  31.428 -}
  31.429 -
  31.430 -/*
  31.431 - * These bracket the sleeping functions..
  31.432 - */
  31.433 -extern void scheduling_functions_start_here(void);
  31.434 -extern void scheduling_functions_end_here(void);
  31.435 -#define first_sched	((unsigned long) scheduling_functions_start_here)
  31.436 -#define last_sched	((unsigned long) scheduling_functions_end_here)
  31.437 -
  31.438 -unsigned long get_wchan(struct task_struct *p)
  31.439 -{
  31.440 -    unsigned long ebp, esp, eip;
  31.441 -    unsigned long stack_page;
  31.442 -    int count = 0;
  31.443 -    if (!p || p == current || p->state == TASK_RUNNING)
  31.444 -        return 0;
  31.445 -    stack_page = (unsigned long)p;
  31.446 -    esp = p->thread.esp;
  31.447 -    if (!stack_page || esp < stack_page || esp > 8188+stack_page)
  31.448 -        return 0;
  31.449 -    /* include/asm-i386/system.h:switch_to() pushes ebp last. */
  31.450 -    ebp = *(unsigned long *) esp;
  31.451 -    do {
  31.452 -        if (ebp < stack_page || ebp > 8184+stack_page)
  31.453 -            return 0;
  31.454 -        eip = *(unsigned long *) (ebp+4);
  31.455 -        if (eip < first_sched || eip >= last_sched)
  31.456 -            return eip;
  31.457 -        ebp = *(unsigned long *) ebp;
  31.458 -    } while (count++ < 16);
  31.459 -    return 0;
  31.460 -}
  31.461 -#undef last_sched
  31.462 -#undef first_sched
    32.1 --- a/linux-2.4.27-xen-sparse/arch/xen/kernel/setup.c	Fri Nov 19 23:17:26 2004 +0000
    32.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    32.3 @@ -1,1190 +0,0 @@
    32.4 -/*
    32.5 - *  linux/arch/i386/kernel/setup.c
    32.6 - *
    32.7 - *  Copyright (C) 1995  Linus Torvalds
    32.8 - */
    32.9 -
   32.10 -/*
   32.11 - * This file handles the architecture-dependent parts of initialization
   32.12 - */
   32.13 -
   32.14 -#define __KERNEL_SYSCALLS__
   32.15 -static int errno;
   32.16 -#include <linux/errno.h>
   32.17 -#include <linux/sched.h>
   32.18 -#include <linux/kernel.h>
   32.19 -#include <linux/mm.h>
   32.20 -#include <linux/stddef.h>
   32.21 -#include <linux/unistd.h>
   32.22 -#include <linux/ptrace.h>
   32.23 -#include <linux/slab.h>
   32.24 -#include <linux/user.h>
   32.25 -#include <linux/a.out.h>
   32.26 -#include <linux/tty.h>
   32.27 -#include <linux/ioport.h>
   32.28 -#include <linux/delay.h>
   32.29 -#include <linux/config.h>
   32.30 -#include <linux/init.h>
   32.31 -#include <linux/apm_bios.h>
   32.32 -#ifdef CONFIG_BLK_DEV_RAM
   32.33 -#include <linux/blk.h>
   32.34 -#endif
   32.35 -#include <linux/highmem.h>
   32.36 -#include <linux/bootmem.h>
   32.37 -#include <linux/seq_file.h>
   32.38 -#include <linux/reboot.h>
   32.39 -#include <asm/processor.h>
   32.40 -#include <linux/console.h>
   32.41 -#include <linux/module.h>
   32.42 -#include <asm/mtrr.h>
   32.43 -#include <asm/uaccess.h>
   32.44 -#include <asm/system.h>
   32.45 -#include <asm/io.h>
   32.46 -#include <asm/smp.h>
   32.47 -#include <asm/msr.h>
   32.48 -#include <asm/desc.h>
   32.49 -#include <asm/dma.h>
   32.50 -#include <asm/mpspec.h>
   32.51 -#include <asm/mmu_context.h>
   32.52 -#include <asm/ctrl_if.h>
   32.53 -#include <asm/hypervisor.h>
   32.54 -#include <asm-xen/xen-public/dom0_ops.h>
   32.55 -#include <linux/netdevice.h>
   32.56 -#include <linux/rtnetlink.h>
   32.57 -#include <linux/tqueue.h>
   32.58 -#include <net/pkt_sched.h> /* dev_(de)activate */
   32.59 -
   32.60 -/*
   32.61 - * Point at the empty zero page to start with. We map the real shared_info
   32.62 - * page as soon as fixmap is up and running.
   32.63 - */
   32.64 -shared_info_t *HYPERVISOR_shared_info = (shared_info_t *)empty_zero_page;
   32.65 -
   32.66 -unsigned long *phys_to_machine_mapping, *pfn_to_mfn_frame_list;
   32.67 -
   32.68 -multicall_entry_t multicall_list[8];
   32.69 -int nr_multicall_ents = 0;
   32.70 -
   32.71 -/*
   32.72 - * Machine setup..
   32.73 - */
   32.74 -
   32.75 -char ignore_irq13;		/* set if exception 16 works */
   32.76 -struct cpuinfo_x86 boot_cpu_data = { 0, 0, 0, 0, -1, 1, 0, 0, -1 };
   32.77 -
   32.78 -unsigned long mmu_cr4_features;
   32.79 -
   32.80 -unsigned char * vgacon_mmap;
   32.81 -
   32.82 -/*
   32.83 - * Bus types ..
   32.84 - */
   32.85 -#ifdef CONFIG_EISA
   32.86 -int EISA_bus;
   32.87 -#endif
   32.88 -int MCA_bus;
   32.89 -
   32.90 -/* for MCA, but anyone else can use it if they want */
   32.91 -unsigned int machine_id;
   32.92 -unsigned int machine_submodel_id;
   32.93 -unsigned int BIOS_revision;
   32.94 -unsigned int mca_pentium_flag;
   32.95 -
   32.96 -/* For PCI or other memory-mapped resources */
   32.97 -unsigned long pci_mem_start = 0x10000000;
   32.98 -
   32.99 -/*
  32.100 - * Setup options
  32.101 - */
  32.102 -struct drive_info_struct { char dummy[32]; } drive_info;
  32.103 -struct screen_info screen_info;
  32.104 -struct apm_info apm_info;
  32.105 -struct sys_desc_table_struct {
  32.106 -    unsigned short length;
  32.107 -    unsigned char table[0];
  32.108 -};
  32.109 -
  32.110 -unsigned char aux_device_present;
  32.111 -
  32.112 -extern int root_mountflags;
  32.113 -extern char _text, _etext, _edata, _end;
  32.114 -
  32.115 -extern int blk_nohighio;
  32.116 -
  32.117 -int enable_acpi_smp_table;
  32.118 -
  32.119 -/* Raw start-of-day parameters from the hypervisor. */
  32.120 -union xen_start_info_union xen_start_info_union;
  32.121 -
  32.122 -#define COMMAND_LINE_SIZE 256
  32.123 -static char command_line[COMMAND_LINE_SIZE];
  32.124 -char saved_command_line[COMMAND_LINE_SIZE];
  32.125 -
  32.126 -/* parse_mem_cmdline()
  32.127 - * returns the value of the mem= boot param converted to pages or 0
  32.128 - */ 
  32.129 -static int __init parse_mem_cmdline (char ** cmdline_p)
  32.130 -{
  32.131 -    char c = ' ', *to = command_line, *from = saved_command_line;
  32.132 -    int len = 0;
  32.133 -    unsigned long long bytes;
  32.134 -    int mem_param = 0;
  32.135 -
  32.136 -    /* Save unparsed command line copy for /proc/cmdline */
  32.137 -    memcpy(saved_command_line, xen_start_info.cmd_line, COMMAND_LINE_SIZE);
  32.138 -    saved_command_line[COMMAND_LINE_SIZE-1] = '\0';
  32.139 -
  32.140 -    for (;;) {
  32.141 -        /*
  32.142 -         * "mem=nopentium" disables the 4MB page tables.
  32.143 -         * "mem=XXX[kKmM]" defines a memory region from HIGH_MEM
  32.144 -         * to <mem>, overriding the bios size.
  32.145 -         * "mem=XXX[KkmM]@XXX[KkmM]" defines a memory region from
  32.146 -         * <start> to <start>+<mem>, overriding the bios size.
  32.147 -         */
  32.148 -        if (c == ' ' && !memcmp(from, "mem=", 4)) {
  32.149 -            if (to != command_line)
  32.150 -                to--;
  32.151 -            if (!memcmp(from+4, "nopentium", 9)) {
  32.152 -                from += 9+4;
  32.153 -            } else if (!memcmp(from+4, "exactmap", 8)) {
  32.154 -                from += 8+4;
  32.155 -            } else {
  32.156 -                bytes = memparse(from+4, &from);
  32.157 -                mem_param = bytes>>PAGE_SHIFT;
  32.158 -		if (*from == '@')
  32.159 -                    (void)memparse(from+1, &from);
  32.160 -            }
  32.161 -        }
  32.162 -
  32.163 -        c = *(from++);
  32.164 -        if (!c)
  32.165 -            break;
  32.166 -        if (COMMAND_LINE_SIZE <= ++len)
  32.167 -            break;
  32.168 -        *(to++) = c;
  32.169 -    }
  32.170 -    *to = '\0';
  32.171 -    *cmdline_p = command_line;
  32.172 -
  32.173 -    return mem_param;
  32.174 -}
  32.175 -
  32.176 -/*
  32.177 - * Every exception-fixup table is sorted (i.e., kernel main table, and every
  32.178 - * module table. Some elements may be out of order if they reference text.init,
  32.179 - * for example. 
  32.180 - */
  32.181 -static void sort_exception_table(struct exception_table_entry *start,
  32.182 -                                 struct exception_table_entry *end)
  32.183 -{
  32.184 -    struct exception_table_entry *p, *q, tmp;
  32.185 -
  32.186 -    for ( p = start; p < end; p++ )
  32.187 -    {
  32.188 -        for ( q = p-1; q > start; q-- )
  32.189 -            if ( p->insn > q->insn )
  32.190 -                break;
  32.191 -        if ( ++q != p )
  32.192 -        {
  32.193 -            tmp = *p;
  32.194 -            memmove(q+1, q, (p-q)*sizeof(*p));
  32.195 -            *q = tmp;
  32.196 -        }
  32.197 -    }
  32.198 -}
  32.199 -
  32.200 -int xen_module_init(struct module *mod)
  32.201 -{
  32.202 -    sort_exception_table(mod->ex_table_start, mod->ex_table_end);
  32.203 -    return 0;
  32.204 -}
  32.205 -
  32.206 -void __init setup_arch(char **cmdline_p)
  32.207 -{
  32.208 -    int i,j;
  32.209 -    unsigned long bootmap_size, start_pfn, lmax_low_pfn;
  32.210 -    int mem_param;  /* user specified memory size in pages */
  32.211 -    int boot_pfn;   /* low pages available for bootmem */
  32.212 -
  32.213 -    extern void hypervisor_callback(void);
  32.214 -    extern void failsafe_callback(void);
  32.215 -
  32.216 -    extern unsigned long cpu0_pte_quicklist[];
  32.217 -    extern unsigned long cpu0_pgd_quicklist[];
  32.218 -
  32.219 -    extern const struct exception_table_entry __start___ex_table[];
  32.220 -    extern const struct exception_table_entry __stop___ex_table[];
  32.221 -
  32.222 -    extern char _stext;
  32.223 -
  32.224 -    /* Force a quick death if the kernel panics. */
  32.225 -    extern int panic_timeout;
  32.226 -    if ( panic_timeout == 0 )
  32.227 -        panic_timeout = 1;
  32.228 -
  32.229 -    /* Ensure that the kernel exception-fixup table is sorted. */
  32.230 -    sort_exception_table(__start___ex_table, __stop___ex_table);
  32.231 -
  32.232 -#ifndef CONFIG_HIGHIO
  32.233 -    blk_nohighio = 1;
  32.234 -#endif
  32.235 -
  32.236 -    HYPERVISOR_vm_assist(VMASST_CMD_enable,
  32.237 -                         VMASST_TYPE_4gb_segments);
  32.238 -        
  32.239 -    HYPERVISOR_set_callbacks(
  32.240 -        __KERNEL_CS, (unsigned long)hypervisor_callback,
  32.241 -        __KERNEL_CS, (unsigned long)failsafe_callback);
  32.242 -
  32.243 -    boot_cpu_data.pgd_quick = cpu0_pgd_quicklist;
  32.244 -    boot_cpu_data.pte_quick = cpu0_pte_quicklist;
  32.245 -
  32.246 -    ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
  32.247 -    memset(&drive_info, 0, sizeof(drive_info));
  32.248 -    memset(&screen_info, 0, sizeof(screen_info));
  32.249 -    
  32.250 -    /* This is drawn from a dump from vgacon:startup in standard Linux. */
  32.251 -    screen_info.orig_video_mode = 3; 
  32.252 -    screen_info.orig_video_isVGA = 1;
  32.253 -    screen_info.orig_video_lines = 25;
  32.254 -    screen_info.orig_video_cols = 80;
  32.255 -    screen_info.orig_video_ega_bx = 3;
  32.256 -    screen_info.orig_video_points = 16;
  32.257 -
  32.258 -    memset(&apm_info.bios, 0, sizeof(apm_info.bios));
  32.259 -    aux_device_present = 0; 
  32.260 -#ifdef CONFIG_BLK_DEV_RAM
  32.261 -    rd_image_start = 0;
  32.262 -    rd_prompt = 0;
  32.263 -    rd_doload = 0;
  32.264 -#endif
  32.265 -
  32.266 -    root_mountflags &= ~MS_RDONLY;
  32.267 -    init_mm.start_code = (unsigned long) &_text;
  32.268 -    init_mm.end_code = (unsigned long) &_etext;
  32.269 -    init_mm.end_data = (unsigned long) &_edata;
  32.270 -    init_mm.brk = (unsigned long) &_end;
  32.271 -
  32.272 -    /* The mem= kernel command line param overrides the detected amount
  32.273 -     * of memory.   For xenolinux, if this override is larger than detected
  32.274 -     * memory, then boot using only detected memory and make provisions to
  32.275 -     * use all of the override value.   The hypervisor can give this
  32.276 -     * domain more memory later on and it will be added to the free
  32.277 -     * lists at that time.   See claim_new_pages() in
  32.278 -     * arch/xen/drivers/balloon/balloon.c
  32.279 -     */
  32.280 -    mem_param = parse_mem_cmdline(cmdline_p);
  32.281 -    if (!mem_param) mem_param = xen_start_info.nr_pages;
  32.282 -
  32.283 -#define PFN_UP(x)	(((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
  32.284 -#define PFN_DOWN(x)	((x) >> PAGE_SHIFT)
  32.285 -#define PFN_PHYS(x)	((x) << PAGE_SHIFT)
  32.286 -
  32.287 -/*
  32.288 - * 128MB for vmalloc(), iomap(), kmap(), and fixaddr mappings.
  32.289 - */
  32.290 -#define VMALLOC_RESERVE	(unsigned long)(128 << 20)
  32.291 -#define MAXMEM		(unsigned long)(HYPERVISOR_VIRT_START-PAGE_OFFSET-VMALLOC_RESERVE)
  32.292 -#define MAXMEM_PFN	PFN_DOWN(MAXMEM)
  32.293 -#define MAX_NONPAE_PFN	(1 << 20)
  32.294 -
  32.295 -    /*
  32.296 -     * Determine low and high memory ranges:
  32.297 -     */
  32.298 -    lmax_low_pfn = max_pfn = mem_param;
  32.299 -    if (lmax_low_pfn > MAXMEM_PFN) {
  32.300 -        lmax_low_pfn = MAXMEM_PFN;
  32.301 -#ifndef CONFIG_HIGHMEM
  32.302 -        /* Maximum memory usable is what is directly addressable */
  32.303 -        printk(KERN_WARNING "Warning only %ldMB will be used.\n",
  32.304 -               MAXMEM>>20);
  32.305 -        if (max_pfn > MAX_NONPAE_PFN)
  32.306 -            printk(KERN_WARNING "Use a PAE enabled kernel.\n");
  32.307 -        else
  32.308 -            printk(KERN_WARNING "Use a HIGHMEM enabled kernel.\n");
  32.309 -#else /* !CONFIG_HIGHMEM */
  32.310 -#ifndef CONFIG_X86_PAE
  32.311 -        if (max_pfn > MAX_NONPAE_PFN) {
  32.312 -            max_pfn = MAX_NONPAE_PFN;
  32.313 -            printk(KERN_WARNING "Warning only 4GB will be used.\n");
  32.314 -            printk(KERN_WARNING "Use a PAE enabled kernel.\n");
  32.315 -        }
  32.316 -#endif /* !CONFIG_X86_PAE */
  32.317 -#endif /* !CONFIG_HIGHMEM */
  32.318 -    }
  32.319 -
  32.320 -#ifdef CONFIG_HIGHMEM
  32.321 -    highstart_pfn = highend_pfn = max_pfn;
  32.322 -    if (max_pfn > MAXMEM_PFN) {
  32.323 -        highstart_pfn = MAXMEM_PFN;
  32.324 -        printk(KERN_NOTICE "%ldMB HIGHMEM available.\n",
  32.325 -               pages_to_mb(highend_pfn - highstart_pfn));
  32.326 -    }
  32.327 -#endif
  32.328 -
  32.329 -    phys_to_machine_mapping = (unsigned long *)xen_start_info.mfn_list;
  32.330 -    cur_pgd = init_mm.pgd = (pgd_t *)xen_start_info.pt_base;
  32.331 -
  32.332 -    start_pfn = (__pa(xen_start_info.pt_base) >> PAGE_SHIFT) + 
  32.333 -        xen_start_info.nr_pt_frames;
  32.334 -
  32.335 -    /*
  32.336 -     * Initialize the boot-time allocator, and free up all RAM. Then reserve 
  32.337 -     * space for OS image, initrd, phys->machine table, bootstrap page table,
  32.338 -     * and the bootmem bitmap. 
  32.339 -     * NB. There is definitely enough room for the bootmem bitmap in the
  32.340 -     * bootstrap page table. We are guaranteed to get >=512kB unused 'padding'
  32.341 -     * for our own use after all bootstrap elements 
  32.342 -     * (see asm-xen/xen-public/xen.h).
  32.343 -     */
  32.344 -    boot_pfn = min((int)xen_start_info.nr_pages,lmax_low_pfn);
  32.345 -    bootmap_size = init_bootmem(start_pfn,boot_pfn);
  32.346 -    free_bootmem(0, PFN_PHYS(boot_pfn));
  32.347 -    reserve_bootmem(__pa(&_stext), 
  32.348 -                    PFN_PHYS(start_pfn) + bootmap_size + PAGE_SIZE-1 - 
  32.349 -                    __pa(&_stext));
  32.350 -
  32.351 -    /* init_bootmem() set the global max_low_pfn to boot_pfn.  Now max_low_pfn 
  32.352 -     * can be set to the override value.
  32.353 -     */
  32.354 -    max_low_pfn = lmax_low_pfn;
  32.355 -
  32.356 -
  32.357 -
  32.358 -#ifdef CONFIG_BLK_DEV_INITRD
  32.359 -    if ( xen_start_info.mod_start != 0 )
  32.360 -    {
  32.361 -        if ( (__pa(xen_start_info.mod_start) + xen_start_info.mod_len) <= 
  32.362 -             (max_low_pfn << PAGE_SHIFT) )
  32.363 -        {
  32.364 -            initrd_start = xen_start_info.mod_start;
  32.365 -            initrd_end   = initrd_start + xen_start_info.mod_len;
  32.366 -            initrd_below_start_ok = 1;
  32.367 -        }
  32.368 -        else
  32.369 -        {
  32.370 -            printk(KERN_ERR "initrd extends beyond end of memory "
  32.371 -                   "(0x%08lx > 0x%08lx)\ndisabling initrd\n",
  32.372 -                   __pa(xen_start_info.mod_start) + xen_start_info.mod_len,
  32.373 -                   max_low_pfn << PAGE_SHIFT);
  32.374 -            initrd_start = 0;
  32.375 -        }
  32.376 -    }
  32.377 -#endif
  32.378 -
  32.379 -    paging_init();
  32.380 -
  32.381 -    pfn_to_mfn_frame_list = alloc_bootmem_low_pages(PAGE_SIZE);
  32.382 -    for ( i=0, j=0; i < max_pfn; i+=(PAGE_SIZE/sizeof(unsigned long)), j++ )
  32.383 -    {	
  32.384 -        pfn_to_mfn_frame_list[j] = 
  32.385 -            virt_to_machine(&phys_to_machine_mapping[i]) >> PAGE_SHIFT;
  32.386 -    }
  32.387 -    HYPERVISOR_shared_info->arch.pfn_to_mfn_frame_list =
  32.388 -	virt_to_machine(pfn_to_mfn_frame_list) >> PAGE_SHIFT;
  32.389 -
  32.390 -    /* If we are a privileged guest OS then we should request IO privileges. */
  32.391 -    if ( xen_start_info.flags & SIF_PRIVILEGED ) 
  32.392 -    {
  32.393 -        dom0_op_t op;
  32.394 -        op.cmd           = DOM0_IOPL;
  32.395 -        op.u.iopl.domain = DOMID_SELF;
  32.396 -        op.u.iopl.iopl   = 1;
  32.397 -        if( HYPERVISOR_dom0_op(&op) != 0 )
  32.398 -            panic("Unable to obtain IOPL, despite being SIF_PRIVILEGED");
  32.399 -        current->thread.io_pl = 1;
  32.400 -    }
  32.401 -
  32.402 -    if (xen_start_info.flags & SIF_INITDOMAIN )
  32.403 -    {
  32.404 -        if( !(xen_start_info.flags & SIF_PRIVILEGED) )
  32.405 -            panic("Xen granted us console access but not privileged status");
  32.406 -
  32.407 -#if defined(CONFIG_VT)
  32.408 -#if defined(CONFIG_VGA_CONSOLE)
  32.409 -        conswitchp = &vga_con;
  32.410 -#elif defined(CONFIG_DUMMY_CONSOLE)
  32.411 -        conswitchp = &dummy_con;
  32.412 -#endif
  32.413 -#endif
  32.414 -    }
  32.415 -}
  32.416 -
  32.417 -static int cachesize_override __initdata = -1;
  32.418 -static int __init cachesize_setup(char *str)
  32.419 -{
  32.420 -    get_option (&str, &cachesize_override);
  32.421 -    return 1;
  32.422 -}
  32.423 -__setup("cachesize=", cachesize_setup);
  32.424 -
  32.425 -static int __init highio_setup(char *str)
  32.426 -{
  32.427 -    printk("i386: disabling HIGHMEM block I/O\n");
  32.428 -    blk_nohighio = 1;
  32.429 -    return 1;
  32.430 -}
  32.431 -__setup("nohighio", highio_setup);
  32.432 -
  32.433 -static int __init get_model_name(struct cpuinfo_x86 *c)
  32.434 -{
  32.435 -    unsigned int *v;
  32.436 -    char *p, *q;
  32.437 -
  32.438 -    if (cpuid_eax(0x80000000) < 0x80000004)
  32.439 -        return 0;
  32.440 -
  32.441 -    v = (unsigned int *) c->x86_model_id;
  32.442 -    cpuid(0x80000002, &v[0], &v[1], &v[2], &v[3]);
  32.443 -    cpuid(0x80000003, &v[4], &v[5], &v[6], &v[7]);
  32.444 -    cpuid(0x80000004, &v[8], &v[9], &v[10], &v[11]);
  32.445 -    c->x86_model_id[48] = 0;
  32.446 -
  32.447 -    /* Intel chips right-justify this string for some dumb reason;
  32.448 -       undo that brain damage */
  32.449 -    p = q = &c->x86_model_id[0];
  32.450 -    while ( *p == ' ' )
  32.451 -        p++;
  32.452 -    if ( p != q ) {
  32.453 -        while ( *p )
  32.454 -            *q++ = *p++;
  32.455 -        while ( q <= &c->x86_model_id[48] )
  32.456 -            *q++ = '\0';	/* Zero-pad the rest */
  32.457 -    }
  32.458 -
  32.459 -    return 1;
  32.460 -}
  32.461 -
  32.462 -
  32.463 -static void __init display_cacheinfo(struct cpuinfo_x86 *c)
  32.464 -{
  32.465 -    unsigned int n, dummy, ecx, edx, l2size;
  32.466 -
  32.467 -    n = cpuid_eax(0x80000000);
  32.468 -
  32.469 -    if (n >= 0x80000005) {
  32.470 -        cpuid(0x80000005, &dummy, &dummy, &ecx, &edx);
  32.471 -        printk(KERN_INFO "CPU: L1 I Cache: %dK (%d bytes/line), D cache %dK (%d bytes/line)\n",
  32.472 -               edx>>24, edx&0xFF, ecx>>24, ecx&0xFF);
  32.473 -        c->x86_cache_size=(ecx>>24)+(edx>>24);	
  32.474 -    }
  32.475 -
  32.476 -    if (n < 0x80000006)	/* Some chips just has a large L1. */
  32.477 -        return;
  32.478 -
  32.479 -    ecx = cpuid_ecx(0x80000006);
  32.480 -    l2size = ecx >> 16;
  32.481 -
  32.482 -    /* AMD errata T13 (order #21922) */
  32.483 -    if ((c->x86_vendor == X86_VENDOR_AMD) && (c->x86 == 6)) {
  32.484 -        if (c->x86_model == 3 && c->x86_mask == 0)	/* Duron Rev A0 */
  32.485 -            l2size = 64;
  32.486 -        if (c->x86_model == 4 &&
  32.487 -            (c->x86_mask==0 || c->x86_mask==1))	/* Tbird rev A1/A2 */
  32.488 -            l2size = 256;
  32.489 -    }
  32.490 -
  32.491 -    /* Intel PIII Tualatin. This comes in two flavours.
  32.492 -     * One has 256kb of cache, the other 512. We have no way
  32.493 -     * to determine which, so we use a boottime override
  32.494 -     * for the 512kb model, and assume 256 otherwise.
  32.495 -     */
  32.496 -    if ((c->x86_vendor == X86_VENDOR_INTEL) && (c->x86 == 6) &&
  32.497 -        (c->x86_model == 11) && (l2size == 0))
  32.498 -        l2size = 256;
  32.499 -
  32.500 -    if (c->x86_vendor == X86_VENDOR_CENTAUR) {
  32.501 -	/* VIA C3 CPUs (670-68F) need further shifting. */
  32.502 -	if ((c->x86 == 6) &&
  32.503 -	    ((c->x86_model == 7) || (c->x86_model == 8))) {
  32.504 -		l2size >>= 8;
  32.505 -	}
  32.506 -
  32.507 -	/* VIA also screwed up Nehemiah stepping 1, and made
  32.508 -	   it return '65KB' instead of '64KB'
  32.509 -	   - Note, it seems this may only be in engineering samples. */
  32.510 -	if ((c->x86==6) && (c->x86_model==9) &&
  32.511 -	    (c->x86_mask==1) && (l2size==65))
  32.512 -		l2size -= 1;
  32.513 -    }
  32.514 -
  32.515 -    /* Allow user to override all this if necessary. */
  32.516 -    if (cachesize_override != -1)
  32.517 -        l2size = cachesize_override;
  32.518 -
  32.519 -    if ( l2size == 0 )
  32.520 -        return;		/* Again, no L2 cache is possible */
  32.521 -
  32.522 -    c->x86_cache_size = l2size;
  32.523 -
  32.524 -    printk(KERN_INFO "CPU: L2 Cache: %dK (%d bytes/line)\n",
  32.525 -           l2size, ecx & 0xFF);
  32.526 -}
  32.527 -
  32.528 -static void __init init_c3(struct cpuinfo_x86 *c)
  32.529 -{
  32.530 -    /* Test for Centaur Extended Feature Flags presence */
  32.531 -    if (cpuid_eax(0xC0000000) >= 0xC0000001) {
  32.532 -        /* store Centaur Extended Feature Flags as
  32.533 -         * word 5 of the CPU capability bit array
  32.534 -         */
  32.535 -        c->x86_capability[5] = cpuid_edx(0xC0000001);
  32.536 -    }
  32.537 -   
  32.538 -    switch (c->x86_model) {
  32.539 -    case 9:	/* Nehemiah */
  32.540 -    default:
  32.541 -        get_model_name(c);
  32.542 -        display_cacheinfo(c);
  32.543 -        break;
  32.544 -    }
  32.545 -}
  32.546 -
  32.547 -static void __init init_centaur(struct cpuinfo_x86 *c)
  32.548 -{
  32.549 -    /* Bit 31 in normal CPUID used for nonstandard 3DNow ID;
  32.550 -       3DNow is IDd by bit 31 in extended CPUID (1*3231) anyway */
  32.551 -    clear_bit(0*32+31, &c->x86_capability);
  32.552 -  
  32.553 -    switch (c->x86) {
  32.554 -    case 6:
  32.555 -        init_c3(c);
  32.556 -        break;
  32.557 -    default:
  32.558 -        panic("Unsupported Centaur CPU (%i)\n", c->x86);
  32.559 -    }
  32.560 -}
  32.561 -
  32.562 -static int __init init_amd(struct cpuinfo_x86 *c)
  32.563 -{
  32.564 -    int r;
  32.565 -
  32.566 -    /* Bit 31 in normal CPUID used for nonstandard 3DNow ID;
  32.567 -       3DNow is IDd by bit 31 in extended CPUID (1*32+31) anyway */
  32.568 -    clear_bit(0*32+31, &c->x86_capability);
  32.569 -	
  32.570 -    r = get_model_name(c);
  32.571 -
  32.572 -    switch(c->x86)
  32.573 -    {
  32.574 -    case 5: /* We don't like AMD K6 */
  32.575 -        panic("Unsupported AMD processor\n");
  32.576 -    case 6:	/* An Athlon/Duron. We can trust the BIOS probably */
  32.577 -        break;
  32.578 -    }
  32.579 -
  32.580 -    display_cacheinfo(c);
  32.581 -    return r;
  32.582 -}
  32.583 -
  32.584 -
  32.585 -static void __init init_intel(struct cpuinfo_x86 *c)
  32.586 -{
  32.587 -    char *p = NULL;
  32.588 -    unsigned int l1i = 0, l1d = 0, l2 = 0, l3 = 0; /* Cache sizes */
  32.589 -
  32.590 -    if (c->cpuid_level > 1) {
  32.591 -        /* supports eax=2  call */
  32.592 -        int i, j, n;
  32.593 -        int regs[4];
  32.594 -        unsigned char *dp = (unsigned char *)regs;
  32.595 -
  32.596 -        /* Number of times to iterate */
  32.597 -        n = cpuid_eax(2) & 0xFF;
  32.598 -
  32.599 -        for ( i = 0 ; i < n ; i++ ) {
  32.600 -            cpuid(2, &regs[0], &regs[1], &regs[2], &regs[3]);
  32.601 -			
  32.602 -            /* If bit 31 is set, this is an unknown format */
  32.603 -            for ( j = 0 ; j < 3 ; j++ ) {
  32.604 -                if ( regs[j] < 0 ) regs[j] = 0;
  32.605 -            }
  32.606 -
  32.607 -            /* Byte 0 is level count, not a descriptor */
  32.608 -            for ( j = 1 ; j < 16 ; j++ ) {
  32.609 -                unsigned char des = dp[j];
  32.610 -                unsigned char dl, dh;
  32.611 -                unsigned int cs;
  32.612 -
  32.613 -                dh = des >> 4;
  32.614 -                dl = des & 0x0F;
  32.615 -
  32.616 -				/* Black magic... */
  32.617 -
  32.618 -                switch ( dh )
  32.619 -                {
  32.620 -                case 0:
  32.621 -                    switch ( dl ) {
  32.622 -                    case 6:
  32.623 -                        /* L1 I cache */
  32.624 -                        l1i += 8;
  32.625 -                        break;
  32.626 -                    case 8:
  32.627 -                        /* L1 I cache */
  32.628 -                        l1i += 16;
  32.629 -                        break;
  32.630 -                    case 10:
  32.631 -                        /* L1 D cache */
  32.632 -                        l1d += 8;
  32.633 -                        break;
  32.634 -                    case 12:
  32.635 -                        /* L1 D cache */
  32.636 -                        l1d += 16;
  32.637 -                        break;
  32.638 -                    default:;
  32.639 -                        /* TLB, or unknown */
  32.640 -                    }
  32.641 -                    break;
  32.642 -                case 2:
  32.643 -                    if ( dl ) {
  32.644 -                        /* L3 cache */
  32.645 -                        cs = (dl-1) << 9;
  32.646 -                        l3 += cs;
  32.647 -                    }
  32.648 -                    break;
  32.649 -                case 4:
  32.650 -                    if ( c->x86 > 6 && dl ) {
  32.651 -                        /* P4 family */
  32.652 -                        /* L3 cache */
  32.653 -                        cs = 128 << (dl-1);
  32.654 -                        l3 += cs;
  32.655 -                        break;
  32.656 -                    }
  32.657 -                    /* else same as 8 - fall through */
  32.658 -                case 8:
  32.659 -                    if ( dl ) {
  32.660 -                        /* L2 cache */
  32.661 -                        cs = 128 << (dl-1);
  32.662 -                        l2 += cs;
  32.663 -                    }
  32.664 -                    break;
  32.665 -                case 6:
  32.666 -                    if (dl > 5) {
  32.667 -                        /* L1 D cache */
  32.668 -                        cs = 8<<(dl-6);
  32.669 -                        l1d += cs;
  32.670 -                    }
  32.671 -                    break;
  32.672 -                case 7:
  32.673 -                    if ( dl >= 8 ) 
  32.674 -                    {
  32.675 -                        /* L2 cache */
  32.676 -                        cs = 64<<(dl-8);
  32.677 -                        l2 += cs;
  32.678 -                    } else {
  32.679 -                        /* L0 I cache, count as L1 */
  32.680 -                        cs = dl ? (16 << (dl-1)) : 12;
  32.681 -                        l1i += cs;
  32.682 -                    }
  32.683 -                    break;
  32.684 -                default:
  32.685 -                    /* TLB, or something else we don't know about */
  32.686 -                    break;
  32.687 -                }
  32.688 -            }
  32.689 -        }
  32.690 -        if ( l1i || l1d )
  32.691 -            printk(KERN_INFO "CPU: L1 I cache: %dK, L1 D cache: %dK\n",
  32.692 -                   l1i, l1d);
  32.693 -        if ( l2 )
  32.694 -            printk(KERN_INFO "CPU: L2 cache: %dK\n", l2);
  32.695 -        if ( l3 )
  32.696 -            printk(KERN_INFO "CPU: L3 cache: %dK\n", l3);
  32.697 -
  32.698 -        /*
  32.699 -         * This assumes the L3 cache is shared; it typically lives in
  32.700 -         * the northbridge.  The L1 caches are included by the L2
  32.701 -         * cache, and so should not be included for the purpose of
  32.702 -         * SMP switching weights.
  32.703 -         */
  32.704 -        c->x86_cache_size = l2 ? l2 : (l1i+l1d);
  32.705 -    }
  32.706 -
  32.707 -    /* SEP CPUID bug: Pentium Pro reports SEP but doesn't have it */
  32.708 -    if ( c->x86 == 6 && c->x86_model < 3 && c->x86_mask < 3 )
  32.709 -        clear_bit(X86_FEATURE_SEP, &c->x86_capability);
  32.710 -	
  32.711 -    /* Names for the Pentium II/Celeron processors 
  32.712 -       detectable only by also checking the cache size.
  32.713 -       Dixon is NOT a Celeron. */
  32.714 -    if (c->x86 == 6) {
  32.715 -        switch (c->x86_model) {
  32.716 -        case 5:
  32.717 -            if (l2 == 0)
  32.718 -                p = "Celeron (Covington)";
  32.719 -            if (l2 == 256)
  32.720 -                p = "Mobile Pentium II (Dixon)";
  32.721 -            break;
  32.722 -			
  32.723 -        case 6:
  32.724 -            if (l2 == 128)
  32.725 -                p = "Celeron (Mendocino)";
  32.726 -            break;
  32.727 -			
  32.728 -        case 8:
  32.729 -            if (l2 == 128)
  32.730 -                p = "Celeron (Coppermine)";
  32.731 -            break;
  32.732 -        }
  32.733 -    }
  32.734 -
  32.735 -    if ( p )
  32.736 -        strcpy(c->x86_model_id, p);
  32.737 -}
  32.738 -
  32.739 -void __init get_cpu_vendor(struct cpuinfo_x86 *c)
  32.740 -{
  32.741 -    char *v = c->x86_vendor_id;
  32.742 -
  32.743 -    if (!strcmp(v, "GenuineIntel"))
  32.744 -        c->x86_vendor = X86_VENDOR_INTEL;
  32.745 -    else if (!strcmp(v, "AuthenticAMD"))
  32.746 -        c->x86_vendor = X86_VENDOR_AMD;
  32.747 -    else if (!strcmp(v, "CentaurHauls"))
  32.748 -        c->x86_vendor = X86_VENDOR_CENTAUR;
  32.749 -    else
  32.750 -        c->x86_vendor = X86_VENDOR_UNKNOWN;
  32.751 -}
  32.752 -
  32.753 -struct cpu_model_info {
  32.754 -    int vendor;
  32.755 -    int family;
  32.756 -    char *model_names[16];
  32.757 -};
  32.758 -
  32.759 -/* Naming convention should be: <Name> [(<Codename>)] */
  32.760 -/* This table only is used unless init_<vendor>() below doesn't set it; */
  32.761 -/* in particular, if CPUID levels 0x80000002..4 are supported, this isn't used */
  32.762 -static struct cpu_model_info cpu_models[] __initdata = {
  32.763 -    { X86_VENDOR_INTEL,	6,
  32.764 -      { "Pentium Pro A-step", "Pentium Pro", NULL, "Pentium II (Klamath)", 
  32.765 -        NULL, "Pentium II (Deschutes)", "Mobile Pentium II",
  32.766 -        "Pentium III (Katmai)", "Pentium III (Coppermine)", NULL,
  32.767 -        "Pentium III (Cascades)", NULL, NULL, NULL, NULL }},
  32.768 -    { X86_VENDOR_AMD,	6, /* Is this this really necessary?? */
  32.769 -      { "Athlon", "Athlon",
  32.770 -        "Athlon", NULL, "Athlon", NULL,
  32.771 -        NULL, NULL, NULL,
  32.772 -        NULL, NULL, NULL, NULL, NULL, NULL, NULL }}
  32.773 -};
  32.774 -
  32.775 -/* Look up CPU names by table lookup. */
  32.776 -static char __init *table_lookup_model(struct cpuinfo_x86 *c)
  32.777 -{
  32.778 -    struct cpu_model_info *info = cpu_models;
  32.779 -    int i;
  32.780 -
  32.781 -    if ( c->x86_model >= 16 )
  32.782 -        return NULL;	/* Range check */
  32.783 -
  32.784 -    for ( i = 0 ; i < sizeof(cpu_models)/sizeof(struct cpu_model_info) ; i++ ) {
  32.785 -        if ( info->vendor == c->x86_vendor &&
  32.786 -             info->family == c->x86 ) {
  32.787 -            return info->model_names[c->x86_model];
  32.788 -        }
  32.789 -        info++;
  32.790 -    }
  32.791 -    return NULL;		/* Not found */
  32.792 -}
  32.793 -
  32.794 -
  32.795 -
  32.796 -/* Standard macro to see if a specific flag is changeable */
  32.797 -static inline int flag_is_changeable_p(u32 flag)
  32.798 -{
  32.799 -    u32 f1, f2;
  32.800 -
  32.801 -    asm("pushfl\n\t"
  32.802 -        "pushfl\n\t"
  32.803 -        "popl %0\n\t"
  32.804 -        "movl %0,%1\n\t"
  32.805 -        "xorl %2,%0\n\t"
  32.806 -        "pushl %0\n\t"
  32.807 -        "popfl\n\t"
  32.808 -        "pushfl\n\t"
  32.809 -        "popl %0\n\t"
  32.810 -        "popfl\n\t"
  32.811 -        : "=&r" (f1), "=&r" (f2)
  32.812 -        : "ir" (flag));
  32.813 -
  32.814 -    return ((f1^f2) & flag) != 0;
  32.815 -}
  32.816 -
  32.817 -
  32.818 -/* Probe for the CPUID instruction */
  32.819 -static int __init have_cpuid_p(void)
  32.820 -{
  32.821 -    return flag_is_changeable_p(X86_EFLAGS_ID);
  32.822 -}
  32.823 -
  32.824 -
  32.825 -
  32.826 -#if defined(CONFIG_EDD) || defined(CONFIG_EDD_MODULE)
  32.827 -unsigned char eddnr;
  32.828 -struct edd_info edd[EDDMAXNR];
  32.829 -unsigned int edd_disk80_sig;
  32.830 -/**
  32.831 - * copy_edd() - Copy the BIOS EDD information
  32.832 - *              from empty_zero_page into a safe place.
  32.833 - *
  32.834 - */
  32.835 -static inline void copy_edd(void)
  32.836 -{
  32.837 -     eddnr = EDD_NR;
  32.838 -     memcpy(edd, EDD_BUF, sizeof(edd));
  32.839 -     edd_disk80_sig = DISK80_SIGNATURE_BUFFER;
  32.840 -}
  32.841 -#else
  32.842 -static inline void copy_edd(void) {}
  32.843 -#endif
  32.844 -
  32.845 -/*
  32.846 - * This does the hard work of actually picking apart the CPU stuff...
  32.847 - */
  32.848 -void __init identify_cpu(struct cpuinfo_x86 *c)
  32.849 -{
  32.850 -    int junk, i;
  32.851 -    u32 xlvl, tfms;
  32.852 -
  32.853 -    c->loops_per_jiffy = loops_per_jiffy;
  32.854 -    c->x86_cache_size = -1;
  32.855 -    c->x86_vendor = X86_VENDOR_UNKNOWN;
  32.856 -    c->cpuid_level = -1;	/* CPUID not detected */
  32.857 -    c->x86_model = c->x86_mask = 0;	/* So far unknown... */
  32.858 -    c->x86_vendor_id[0] = '\0'; /* Unset */
  32.859 -    c->x86_model_id[0] = '\0';  /* Unset */
  32.860 -    memset(&c->x86_capability, 0, sizeof c->x86_capability);
  32.861 -    c->hard_math = 1;
  32.862 -
  32.863 -    if ( !have_cpuid_p() ) {
  32.864 -        panic("Processor must support CPUID\n");
  32.865 -    } else {
  32.866 -        /* CPU does have CPUID */
  32.867 -
  32.868 -        /* Get vendor name */
  32.869 -        cpuid(0x00000000, &c->cpuid_level,
  32.870 -              (int *)&c->x86_vendor_id[0],
  32.871 -              (int *)&c->x86_vendor_id[8],
  32.872 -              (int *)&c->x86_vendor_id[4]);
  32.873 -		
  32.874 -        get_cpu_vendor(c);
  32.875 -        /* Initialize the standard set of capabilities */
  32.876 -        /* Note that the vendor-specific code below might override */
  32.877 -
  32.878 -        /* Intel-defined flags: level 0x00000001 */
  32.879 -        if ( c->cpuid_level >= 0x00000001 ) {
  32.880 -                        u32 capability, excap;
  32.881 -                        cpuid(0x00000001, &tfms, &junk, &excap, &capability);
  32.882 -                        c->x86_capability[0] = capability;
  32.883 -                        c->x86_capability[4] = excap;
  32.884 -                        c->x86 = (tfms >> 8) & 15;
  32.885 -                        c->x86_model = (tfms >> 4) & 15;
  32.886 -                        if (c->x86 == 0xf) {
  32.887 -                                c->x86 += (tfms >> 20) & 0xff;
  32.888 -                                c->x86_model += ((tfms >> 16) & 0xF) << 4;
  32.889 -                        }
  32.890 -                        c->x86_mask = tfms & 15;
  32.891 -        } else {
  32.892 -            /* Have CPUID level 0 only - unheard of */
  32.893 -            c->x86 = 4;
  32.894 -        }
  32.895 -
  32.896 -        /* AMD-defined flags: level 0x80000001 */
  32.897 -        xlvl = cpuid_eax(0x80000000);
  32.898 -        if ( (xlvl & 0xffff0000) == 0x80000000 ) {
  32.899 -            if ( xlvl >= 0x80000001 )
  32.900 -                c->x86_capability[1] = cpuid_edx(0x80000001);
  32.901 -            if ( xlvl >= 0x80000004 )
  32.902 -                get_model_name(c); /* Default name */
  32.903 -        }
  32.904 -
  32.905 -        /* Transmeta-defined flags: level 0x80860001 */
  32.906 -        xlvl = cpuid_eax(0x80860000);
  32.907 -        if ( (xlvl & 0xffff0000) == 0x80860000 ) {
  32.908 -            if (  xlvl >= 0x80860001 )
  32.909 -                c->x86_capability[2] = cpuid_edx(0x80860001);
  32.910 -        }
  32.911 -    }
  32.912 -
  32.913 -    printk(KERN_DEBUG "CPU: Before vendor init, caps: %08x %08x %08x, vendor = %d\n",
  32.914 -           c->x86_capability[0],
  32.915 -           c->x86_capability[1],
  32.916 -           c->x86_capability[2],
  32.917 -           c->x86_vendor);
  32.918 -
  32.919 -    /*
  32.920 -     * Vendor-specific initialization.  In this section we
  32.921 -     * canonicalize the feature flags, meaning if there are
  32.922 -     * features a certain CPU supports which CPUID doesn't
  32.923 -     * tell us, CPUID claiming incorrect flags, or other bugs,
  32.924 -     * we handle them here.
  32.925 -     *
  32.926 -     * At the end of this section, c->x86_capability better
  32.927 -     * indicate the features this CPU genuinely supports!
  32.928 -     */
  32.929 -    switch ( c->x86_vendor ) {
  32.930 -    case X86_VENDOR_AMD:
  32.931 -        init_amd(c);
  32.932 -        break;
  32.933 -
  32.934 -    case X86_VENDOR_INTEL:
  32.935 -        init_intel(c);
  32.936 -        break;
  32.937 -
  32.938 -    case X86_VENDOR_CENTAUR:
  32.939 -        init_centaur(c);
  32.940 -        break;
  32.941 -        
  32.942 -    default:
  32.943 -        printk("Unsupported CPU vendor (%d) -- please report!\n",
  32.944 -               c->x86_vendor);
  32.945 -    }
  32.946 -	
  32.947 -    printk(KERN_DEBUG "CPU: After vendor init, caps: %08x %08x %08x %08x\n",
  32.948 -           c->x86_capability[0],
  32.949 -           c->x86_capability[1],
  32.950 -           c->x86_capability[2],
  32.951 -           c->x86_capability[3]);
  32.952 -
  32.953 -
  32.954 -    /* If the model name is still unset, do table lookup. */
  32.955 -    if ( !c->x86_model_id[0] ) {
  32.956 -        char *p;
  32.957 -        p = table_lookup_model(c);
  32.958 -        if ( p )
  32.959 -            strcpy(c->x86_model_id, p);
  32.960 -        else
  32.961 -            /* Last resort... */
  32.962 -            sprintf(c->x86_model_id, "%02x/%02x",
  32.963 -                    c->x86_vendor, c->x86_model);
  32.964 -    }
  32.965 -
  32.966 -    /* Now the feature flags better reflect actual CPU features! */
  32.967 -
  32.968 -    printk(KERN_DEBUG "CPU:     After generic, caps: %08x %08x %08x %08x\n",
  32.969 -           c->x86_capability[0],
  32.970 -           c->x86_capability[1],
  32.971 -           c->x86_capability[2],
  32.972 -           c->x86_capability[3]);
  32.973 -
  32.974 -    /*
  32.975 -     * On SMP, boot_cpu_data holds the common feature set between
  32.976 -     * all CPUs; so make sure that we indicate which features are
  32.977 -     * common between the CPUs.  The first time this routine gets
  32.978 -     * executed, c == &boot_cpu_data.
  32.979 -     */
  32.980 -    if ( c != &boot_cpu_data ) {
  32.981 -        /* AND the already accumulated flags with these */
  32.982 -        for ( i = 0 ; i < NCAPINTS ; i++ )
  32.983 -            boot_cpu_data.x86_capability[i] &= c->x86_capability[i];
  32.984 -    }
  32.985 -
  32.986 -    printk(KERN_DEBUG "CPU:             Common caps: %08x %08x %08x %08x\n",
  32.987 -           boot_cpu_data.x86_capability[0],
  32.988 -           boot_cpu_data.x86_capability[1],
  32.989 -           boot_cpu_data.x86_capability[2],
  32.990 -           boot_cpu_data.x86_capability[3]);
  32.991 -}
  32.992 -
  32.993 -
  32.994 -/* These need to match <asm/processor.h> */
  32.995 -static char *cpu_vendor_names[] __initdata = {
  32.996 -    "Intel", "Cyrix", "AMD", "UMC", "NexGen", "Centaur", "Rise", "Transmeta" };
  32.997 -
  32.998 -
  32.999 -void __init print_cpu_info(struct cpuinfo_x86 *c)
 32.1000 -{
 32.1001 -    char *vendor = NULL;
 32.1002 -
 32.1003 -    if (c->x86_vendor < sizeof(cpu_vendor_names)/sizeof(char *))
 32.1004 -        vendor = cpu_vendor_names[c->x86_vendor];
 32.1005 -    else if (c->cpuid_level >= 0)
 32.1006 -        vendor = c->x86_vendor_id;
 32.1007 -
 32.1008 -    if (vendor && strncmp(c->x86_model_id, vendor, strlen(vendor)))
 32.1009 -        printk("%s ", vendor);
 32.1010 -
 32.1011 -    if (!c->x86_model_id[0])
 32.1012 -        printk("%d86", c->x86);
 32.1013 -    else
 32.1014 -        printk("%s", c->x86_model_id);
 32.1015 -
 32.1016 -    if (c->x86_mask || c->cpuid_level >= 0) 
 32.1017 -        printk(" stepping %02x\n", c->x86_mask);
 32.1018 -    else
 32.1019 -        printk("\n");
 32.1020 -}
 32.1021 -
 32.1022 -/*
 32.1023 - *	Get CPU information for use by the procfs.
 32.1024 - */
 32.1025 -static int show_cpuinfo(struct seq_file *m, void *v)
 32.1026 -{
 32.1027 -    /* 
 32.1028 -     * These flag bits must match the definitions in <asm/cpufeature.h>.
 32.1029 -     * NULL means this bit is undefined or reserved; either way it doesn't
 32.1030 -     * have meaning as far as Linux is concerned.  Note that it's important
 32.1031 -     * to realize there is a difference between this table and CPUID -- if
 32.1032 -     * applications want to get the raw CPUID data, they should access
 32.1033 -     * /dev/cpu/<cpu_nr>/cpuid instead.
 32.1034 -	 */
 32.1035 -    static char *x86_cap_flags[] = {
 32.1036 -        /* Intel-defined */
 32.1037 -        "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce",
 32.1038 -        "cx8", "apic", NULL, "sep", "mtrr", "pge", "mca", "cmov",
 32.1039 -        "pat", "pse36", "pn", "clflush", NULL, "dts", "acpi", "mmx",
 32.1040 -        "fxsr", "sse", "sse2", "ss", "ht", "tm", "ia64", "pbe",
 32.1041 -
 32.1042 -        /* AMD-defined */
 32.1043 -        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 32.1044 -        NULL, NULL, NULL, "syscall", NULL, NULL, NULL, NULL,
 32.1045 -        NULL, NULL, NULL, "mp", NULL, NULL, "mmxext", NULL,
 32.1046 -        NULL, NULL, NULL, NULL, NULL, "lm", "3dnowext", "3dnow",
 32.1047 -
 32.1048 -        /* Transmeta-defined */
 32.1049 -        "recovery", "longrun", NULL, "lrti", NULL, NULL, NULL, NULL,
 32.1050 -        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 32.1051 -        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 32.1052 -        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 32.1053 -
 32.1054 -        /* Other (Linux-defined) */
 32.1055 -        "cxmmx", "k6_mtrr", "cyrix_arr", "centaur_mcr", 
 32.1056 -	NULL, NULL, NULL, NULL,
 32.1057 -        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 32.1058 -        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 32.1059 -        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 32.1060 -
 32.1061 -        /* Intel-defined (#2) */
 32.1062 -        "pni", NULL, NULL, "monitor", "ds_cpl", NULL, NULL, "tm2",
 32.1063 -        "est", NULL, "cid", NULL, NULL, NULL, NULL, NULL,
 32.1064 -        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 32.1065 -        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 32.1066 -
 32.1067 -        /* VIA/Cyrix/Centaur-defined */
 32.1068 -        NULL, NULL, "xstore", NULL, NULL, NULL, NULL, NULL,
 32.1069 -        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 32.1070 -        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 32.1071 -        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 32.1072 -
 32.1073 -    };
 32.1074 -    struct cpuinfo_x86 *c = v;
 32.1075 -    int i, n = c - cpu_data;
 32.1076 -    int fpu_exception;
 32.1077 -
 32.1078 -#ifdef CONFIG_SMP
 32.1079 -    if (!(cpu_online_map & (1<<n)))
 32.1080 -        return 0;
 32.1081 -#endif
 32.1082 -    seq_printf(m, "processor\t: %d\n"
 32.1083 -               "vendor_id\t: %s\n"
 32.1084 -               "cpu family\t: %d\n"
 32.1085 -               "model\t\t: %d\n"
 32.1086 -               "model name\t: %s\n",
 32.1087 -               n,
 32.1088 -               c->x86_vendor_id[0] ? c->x86_vendor_id : "unknown",
 32.1089 -               c->x86,
 32.1090 -               c->x86_model,
 32.1091 -               c->x86_model_id[0] ? c->x86_model_id : "unknown");
 32.1092 -
 32.1093 -    if (c->x86_mask || c->cpuid_level >= 0)
 32.1094 -        seq_printf(m, "stepping\t: %d\n", c->x86_mask);
 32.1095 -    else
 32.1096 -        seq_printf(m, "stepping\t: unknown\n");
 32.1097 -
 32.1098 -    if ( test_bit(X86_FEATURE_TSC, &c->x86_capability) ) {
 32.1099 -        seq_printf(m, "cpu MHz\t\t: %lu.%03lu\n",
 32.1100 -                   cpu_khz / 1000, (cpu_khz % 1000));
 32.1101 -    }
 32.1102 -
 32.1103 -    /* Cache size */
 32.1104 -    if (c->x86_cache_size >= 0)
 32.1105 -        seq_printf(m, "cache size\t: %d KB\n", c->x86_cache_size);
 32.1106 -	
 32.1107 -	/* We use exception 16 if we have hardware math and we've either seen it or the CPU claims it is internal */
 32.1108 -    fpu_exception = c->hard_math && (ignore_irq13 || cpu_has_fpu);
 32.1109 -    seq_printf(m, "fdiv_bug\t: %s\n"
 32.1110 -               "hlt_bug\t\t: %s\n"
 32.1111 -               "f00f_bug\t: %s\n"
 32.1112 -               "coma_bug\t: %s\n"
 32.1113 -               "fpu\t\t: %s\n"
 32.1114 -               "fpu_exception\t: %s\n"
 32.1115 -               "cpuid level\t: %d\n"
 32.1116 -               "wp\t\t: %s\n"
 32.1117 -               "flags\t\t:",
 32.1118 -               c->fdiv_bug ? "yes" : "no",
 32.1119 -               c->hlt_works_ok ? "no" : "yes",
 32.1120 -               c->f00f_bug ? "yes" : "no",
 32.1121 -               c->coma_bug ? "yes" : "no",
 32.1122 -               c->hard_math ? "yes" : "no",
 32.1123 -               fpu_exception ? "yes" : "no",
 32.1124 -               c->cpuid_level,
 32.1125 -               c->wp_works_ok ? "yes" : "no");
 32.1126 -
 32.1127 -    for ( i = 0 ; i < 32*NCAPINTS ; i++ )
 32.1128 -        if ( test_bit(i, &c->x86_capability) &&
 32.1129 -             x86_cap_flags[i] != NULL )
 32.1130 -            seq_printf(m, " %s", x86_cap_flags[i]);
 32.1131 -
 32.1132 -    seq_printf(m, "\nbogomips\t: %lu.%02lu\n\n",
 32.1133 -               c->loops_per_jiffy/(500000/HZ),
 32.1134 -               (c->loops_per_jiffy/(5000/HZ)) % 100);
 32.1135 -    return 0;
 32.1136 -}
 32.1137 -
 32.1138 -static void *c_start(struct seq_file *m, loff_t *pos)
 32.1139 -{
 32.1140 -    return *pos < NR_CPUS ? cpu_data + *pos : NULL;
 32.1141 -}
 32.1142 -static void *c_next(struct seq_file *m, void *v, loff_t *pos)
 32.1143 -{
 32.1144 -    ++*pos;
 32.1145 -    return c_start(m, pos);
 32.1146 -}
 32.1147 -static void c_stop(struct seq_file *m, void *v)
 32.1148 -{
 32.1149 -}
 32.1150 -struct seq_operations cpuinfo_op = {
 32.1151 -    start:	c_start,
 32.1152 -    next:	c_next,
 32.1153 -    stop:	c_stop,
 32.1154 -    show:	show_cpuinfo,
 32.1155 -};
 32.1156 -
 32.1157 -unsigned long cpu_initialized __initdata = 0;
 32.1158 -
 32.1159 -/*
 32.1160 - * cpu_init() initializes state that is per-CPU. Some data is already
 32.1161 - * initialized (naturally) in the bootstrap process, such as the GDT
 32.1162 - * and IDT. We reload them nevertheless, this function acts as a
 32.1163 - * 'CPU state barrier', nothing should get across.
 32.1164 - */
 32.1165 -void __init cpu_init (void)
 32.1166 -{
 32.1167 -    int nr = smp_processor_id();
 32.1168 -
 32.1169 -    if (test_and_set_bit(nr, &cpu_initialized)) {
 32.1170 -        printk(KERN_WARNING "CPU#%d already initialized!\n", nr);
 32.1171 -        for (;;) __sti();
 32.1172 -    }
 32.1173 -    printk(KERN_INFO "Initializing CPU#%d\n", nr);
 32.1174 -
 32.1175 -    /*
 32.1176 -     * set up and load the per-CPU TSS and LDT
 32.1177 -     */
 32.1178 -    atomic_inc(&init_mm.mm_count);
 32.1179 -    current->active_mm = &init_mm;
 32.1180 -    if(current->mm)
 32.1181 -        BUG();
 32.1182 -    enter_lazy_tlb(&init_mm, current, nr);
 32.1183 -
 32.1184 -    HYPERVISOR_stack_switch(__KERNEL_DS, current->thread.esp0);
 32.1185 -
 32.1186 -    load_LDT(&init_mm.context);
 32.1187 -    flush_page_update_queue();
 32.1188 -
 32.1189 -    /* Force FPU initialization. */
 32.1190 -    current->flags &= ~PF_USEDFPU;
 32.1191 -    current->used_math = 0;
 32.1192 -    stts();
 32.1193 -}
    33.1 --- a/linux-2.4.27-xen-sparse/arch/xen/kernel/signal.c	Fri Nov 19 23:17:26 2004 +0000
    33.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    33.3 @@ -1,717 +0,0 @@
    33.4 -/*
    33.5 - *  linux/arch/i386/kernel/signal.c
    33.6 - *
    33.7 - *  Copyright (C) 1991, 1992  Linus Torvalds
    33.8 - *
    33.9 - *  1997-11-28  Modified for POSIX.1b signals by Richard Henderson
   33.10 - *  2000-06-20  Pentium III FXSR, SSE support by Gareth Hughes
   33.11 - */
   33.12 -
   33.13 -#include <linux/sched.h>
   33.14 -#include <linux/mm.h>
   33.15 -#include <linux/smp.h>
   33.16 -#include <linux/smp_lock.h>
   33.17 -#include <linux/kernel.h>
   33.18 -#include <linux/signal.h>
   33.19 -#include <linux/errno.h>
   33.20 -#include <linux/wait.h>
   33.21 -#include <linux/ptrace.h>
   33.22 -#include <linux/unistd.h>
   33.23 -#include <linux/stddef.h>
   33.24 -#include <linux/tty.h>
   33.25 -#include <linux/personality.h>
   33.26 -#include <asm/ucontext.h>
   33.27 -#include <asm/uaccess.h>
   33.28 -#include <asm/i387.h>
   33.29 -
   33.30 -#define DEBUG_SIG 0
   33.31 -
   33.32 -#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
   33.33 -
   33.34 -int FASTCALL(do_signal(struct pt_regs *regs, sigset_t *oldset));
   33.35 -
   33.36 -int copy_siginfo_to_user(siginfo_t *to, siginfo_t *from)
   33.37 -{
   33.38 -	if (!access_ok (VERIFY_WRITE, to, sizeof(siginfo_t)))
   33.39 -		return -EFAULT;
   33.40 -	if (from->si_code < 0)
   33.41 -		return __copy_to_user(to, from, sizeof(siginfo_t));
   33.42 -	else {
   33.43 -		int err;
   33.44 -
   33.45 -		/* If you change siginfo_t structure, please be sure
   33.46 -		   this code is fixed accordingly.
   33.47 -		   It should never copy any pad contained in the structure
   33.48 -		   to avoid security leaks, but must copy the generic
   33.49 -		   3 ints plus the relevant union member.  */
   33.50 -		err = __put_user(from->si_signo, &to->si_signo);
   33.51 -		err |= __put_user(from->si_errno, &to->si_errno);
   33.52 -		err |= __put_user((short)from->si_code, &to->si_code);
   33.53 -		/* First 32bits of unions are always present.  */
   33.54 -		err |= __put_user(from->si_pid, &to->si_pid);
   33.55 -		switch (from->si_code >> 16) {
   33.56 -		case __SI_FAULT >> 16:
   33.57 -			break;
   33.58 -		case __SI_CHLD >> 16:
   33.59 -			err |= __put_user(from->si_utime, &to->si_utime);
   33.60 -			err |= __put_user(from->si_stime, &to->si_stime);
   33.61 -			err |= __put_user(from->si_status, &to->si_status);
   33.62 -		default:
   33.63 -			err |= __put_user(from->si_uid, &to->si_uid);
   33.64 -			break;
   33.65 -		/* case __SI_RT: This is not generated by the kernel as of now.  */
   33.66 -		}
   33.67 -		return err;
   33.68 -	}
   33.69 -}
   33.70 -
   33.71 -/*
   33.72 - * Atomically swap in the new signal mask, and wait for a signal.
   33.73 - */
   33.74 -asmlinkage int
   33.75 -sys_sigsuspend(int history0, int history1, old_sigset_t mask)
   33.76 -{
   33.77 -	struct pt_regs * regs = (struct pt_regs *) &history0;
   33.78 -	sigset_t saveset;
   33.79 -
   33.80 -	mask &= _BLOCKABLE;
   33.81 -	spin_lock_irq(&current->sigmask_lock);
   33.82 -	saveset = current->blocked;
   33.83 -	siginitset(&current->blocked, mask);
   33.84 -	recalc_sigpending(current);
   33.85 -	spin_unlock_irq(&current->sigmask_lock);
   33.86 -
   33.87 -	regs->eax = -EINTR;
   33.88 -	while (1) {
   33.89 -		current->state = TASK_INTERRUPTIBLE;
   33.90 -		schedule();
   33.91 -		if (do_signal(regs, &saveset))
   33.92 -			return -EINTR;
   33.93 -	}
   33.94 -}
   33.95 -
   33.96 -asmlinkage int
   33.97 -sys_rt_sigsuspend(sigset_t *unewset, size_t sigsetsize)
   33.98 -{
   33.99 -	struct pt_regs * regs = (struct pt_regs *) &unewset;
  33.100 -	sigset_t saveset, newset;
  33.101 -
  33.102 -	/* XXX: Don't preclude handling different sized sigset_t's.  */
  33.103 -	if (sigsetsize != sizeof(sigset_t))
  33.104 -		return -EINVAL;
  33.105 -
  33.106 -	if (copy_from_user(&newset, unewset, sizeof(newset)))
  33.107 -		return -EFAULT;
  33.108 -	sigdelsetmask(&newset, ~_BLOCKABLE);
  33.109 -
  33.110 -	spin_lock_irq(&current->sigmask_lock);
  33.111 -	saveset = current->blocked;
  33.112 -	current->blocked = newset;
  33.113 -	recalc_sigpending(current);
  33.114 -	spin_unlock_irq(&current->sigmask_lock);
  33.115 -
  33.116 -	regs->eax = -EINTR;
  33.117 -	while (1) {
  33.118 -		current->state = TASK_INTERRUPTIBLE;
  33.119 -		schedule();
  33.120 -		if (do_signal(regs, &saveset))
  33.121 -			return -EINTR;
  33.122 -	}
  33.123 -}
  33.124 -
  33.125 -asmlinkage int 
  33.126 -sys_sigaction(int sig, const struct old_sigaction *act,
  33.127 -	      struct old_sigaction *oact)
  33.128 -{
  33.129 -	struct k_sigaction new_ka, old_ka;
  33.130 -	int ret;
  33.131 -
  33.132 -	if (act) {
  33.133 -		old_sigset_t mask;
  33.134 -		if (verify_area(VERIFY_READ, act, sizeof(*act)) ||
  33.135 -		    __get_user(new_ka.sa.sa_handler, &act->sa_handler) ||
  33.136 -		    __get_user(new_ka.sa.sa_restorer, &act->sa_restorer))
  33.137 -			return -EFAULT;
  33.138 -		__get_user(new_ka.sa.sa_flags, &act->sa_flags);
  33.139 -		__get_user(mask, &act->sa_mask);
  33.140 -		siginitset(&new_ka.sa.sa_mask, mask);
  33.141 -	}
  33.142 -
  33.143 -	ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL);
  33.144 -
  33.145 -	if (!ret && oact) {
  33.146 -		if (verify_area(VERIFY_WRITE, oact, sizeof(*oact)) ||
  33.147 -		    __put_user(old_ka.sa.sa_handler, &oact->sa_handler) ||
  33.148 -		    __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer))
  33.149 -			return -EFAULT;
  33.150 -		__put_user(old_ka.sa.sa_flags, &oact->sa_flags);
  33.151 -		__put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask);
  33.152 -	}
  33.153 -
  33.154 -	return ret;
  33.155 -}
  33.156 -
  33.157 -asmlinkage int
  33.158 -sys_sigaltstack(const stack_t *uss, stack_t *uoss)
  33.159 -{
  33.160 -	struct pt_regs *regs = (struct pt_regs *) &uss;
  33.161 -	return do_sigaltstack(uss, uoss, regs->esp);
  33.162 -}
  33.163 -
  33.164 -
  33.165 -/*
  33.166 - * Do a signal return; undo the signal stack.
  33.167 - */
  33.168 -
  33.169 -struct sigframe
  33.170 -{
  33.171 -	char *pretcode;
  33.172 -	int sig;
  33.173 -	struct sigcontext sc;
  33.174 -	struct _fpstate fpstate;
  33.175 -	unsigned long extramask[_NSIG_WORDS-1];
  33.176 -	char retcode[8];
  33.177 -};
  33.178 -
  33.179 -struct rt_sigframe
  33.180 -{
  33.181 -	char *pretcode;
  33.182 -	int sig;
  33.183 -	struct siginfo *pinfo;
  33.184 -	void *puc;
  33.185 -	struct siginfo info;
  33.186 -	struct ucontext uc;
  33.187 -	struct _fpstate fpstate;
  33.188 -	char retcode[8];
  33.189 -};
  33.190 -
  33.191 -static int
  33.192 -restore_sigcontext(struct pt_regs *regs, struct sigcontext *sc, int *peax)
  33.193 -{
  33.194 -	unsigned int err = 0;
  33.195 -
  33.196 -#define COPY(x)		err |= __get_user(regs->x, &sc->x)
  33.197 -
  33.198 -#define COPY_SEG(seg)							\
  33.199 -	{ unsigned short tmp;						\
  33.200 -	  err |= __get_user(tmp, &sc->seg);				\
  33.201 -	  regs->x##seg = tmp; }
  33.202 -
  33.203 -#define COPY_SEG_STRICT(seg)						\
  33.204 -	{ unsigned short tmp;						\
  33.205 -	  err |= __get_user(tmp, &sc->seg);				\
  33.206 -	  regs->x##seg = tmp|3; }
  33.207 -
  33.208 -#define GET_SEG(seg)							\
  33.209 -	{ unsigned short tmp;						\
  33.210 -	  err |= __get_user(tmp, &sc->seg);				\
  33.211 -	  loadsegment(seg,tmp); }
  33.212 -
  33.213 -	GET_SEG(gs);
  33.214 -	GET_SEG(fs);
  33.215 -	COPY_SEG(es);
  33.216 -	COPY_SEG(ds);
  33.217 -	COPY(edi);
  33.218 -	COPY(esi);
  33.219 -	COPY(ebp);
  33.220 -	COPY(esp);
  33.221 -	COPY(ebx);
  33.222 -	COPY(edx);
  33.223 -	COPY(ecx);
  33.224 -	COPY(eip);
  33.225 -	COPY_SEG_STRICT(cs);
  33.226 -	COPY_SEG_STRICT(ss);
  33.227 -	
  33.228 -	{
  33.229 -		unsigned int tmpflags;
  33.230 -		err |= __get_user(tmpflags, &sc->eflags);
  33.231 -		regs->eflags = (regs->eflags & ~0x40DD5) | (tmpflags & 0x40DD5);
  33.232 -		regs->orig_eax = -1;		/* disable syscall checks */
  33.233 -	}
  33.234 -
  33.235 -	{
  33.236 -		struct _fpstate * buf;
  33.237 -		err |= __get_user(buf, &sc->fpstate);
  33.238 -		if (buf) {
  33.239 -			if (verify_area(VERIFY_READ, buf, sizeof(*buf)))
  33.240 -				goto badframe;
  33.241 -			err |= restore_i387(buf);
  33.242 -		}
  33.243 -	}
  33.244 -
  33.245 -	err |= __get_user(*peax, &sc->eax);
  33.246 -	return err;
  33.247 -
  33.248 -badframe:
  33.249 -	return 1;
  33.250 -}
  33.251 -
  33.252 -asmlinkage int sys_sigreturn(unsigned long __unused)
  33.253 -{
  33.254 -	struct pt_regs *regs = (struct pt_regs *) &__unused;
  33.255 -	struct sigframe *frame = (struct sigframe *)(regs->esp - 8);
  33.256 -	sigset_t set;
  33.257 -	int eax;
  33.258 -
  33.259 -	if (verify_area(VERIFY_READ, frame, sizeof(*frame)))
  33.260 -		goto badframe;
  33.261 -	if (__get_user(set.sig[0], &frame->sc.oldmask)
  33.262 -	    || (_NSIG_WORDS > 1
  33.263 -		&& __copy_from_user(&set.sig[1], &frame->extramask,
  33.264 -				    sizeof(frame->extramask))))
  33.265 -		goto badframe;
  33.266 -
  33.267 -	sigdelsetmask(&set, ~_BLOCKABLE);
  33.268 -	spin_lock_irq(&current->sigmask_lock);
  33.269 -	current->blocked = set;
  33.270 -	recalc_sigpending(current);
  33.271 -	spin_unlock_irq(&current->sigmask_lock);
  33.272 -	
  33.273 -	if (restore_sigcontext(regs, &frame->sc, &eax))
  33.274 -		goto badframe;
  33.275 -	return eax;
  33.276 -
  33.277 -badframe:
  33.278 -	force_sig(SIGSEGV, current);
  33.279 -	return 0;
  33.280 -}	
  33.281 -
  33.282 -asmlinkage int sys_rt_sigreturn(unsigned long __unused)
  33.283 -{
  33.284 -	struct pt_regs *regs = (struct pt_regs *) &__unused;
  33.285 -	struct rt_sigframe *frame = (struct rt_sigframe *)(regs->esp - 4);
  33.286 -	sigset_t set;
  33.287 -	stack_t st;
  33.288 -	int eax;
  33.289 -
  33.290 -	if (verify_area(VERIFY_READ, frame, sizeof(*frame)))
  33.291 -		goto badframe;
  33.292 -	if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set)))
  33.293 -		goto badframe;
  33.294 -
  33.295 -	sigdelsetmask(&set, ~_BLOCKABLE);
  33.296 -	spin_lock_irq(&current->sigmask_lock);
  33.297 -	current->blocked = set;
  33.298 -	recalc_sigpending(current);
  33.299 -	spin_unlock_irq(&current->sigmask_lock);
  33.300 -	
  33.301 -	if (restore_sigcontext(regs, &frame->uc.uc_mcontext, &eax))
  33.302 -		goto badframe;
  33.303 -
  33.304 -	if (__copy_from_user(&st, &frame->uc.uc_stack, sizeof(st)))
  33.305 -		goto badframe;
  33.306 -	/* It is more difficult to avoid calling this function than to
  33.307 -	   call it and ignore errors.  */
  33.308 -	do_sigaltstack(&st, NULL, regs->esp);
  33.309 -
  33.310 -	return eax;
  33.311 -
  33.312 -badframe:
  33.313 -	force_sig(SIGSEGV, current);
  33.314 -	return 0;
  33.315 -}	
  33.316 -
  33.317 -/*
  33.318 - * Set up a signal frame.
  33.319 - */
  33.320 -
  33.321 -static int
  33.322 -setup_sigcontext(struct sigcontext *sc, struct _fpstate *fpstate,
  33.323 -		 struct pt_regs *regs, unsigned long mask)
  33.324 -{
  33.325 -	int tmp, err = 0;
  33.326 -
  33.327 -	tmp = 0;
  33.328 -	__asm__("movl %%gs,%0" : "=r"(tmp): "0"(tmp));
  33.329 -	err |= __put_user(tmp, (unsigned int *)&sc->gs);
  33.330 -	__asm__("movl %%fs,%0" : "=r"(tmp): "0"(tmp));
  33.331 -	err |= __put_user(tmp, (unsigned int *)&sc->fs);
  33.332 -
  33.333 -	err |= __put_user(regs->xes, (unsigned int *)&sc->es);
  33.334 -	err |= __put_user(regs->xds, (unsigned int *)&sc->ds);
  33.335 -	err |= __put_user(regs->edi, &sc->edi);
  33.336 -	err |= __put_user(regs->esi, &sc->esi);
  33.337 -	err |= __put_user(regs->ebp, &sc->ebp);
  33.338 -	err |= __put_user(regs->esp, &sc->esp);
  33.339 -	err |= __put_user(regs->ebx, &sc->ebx);
  33.340 -	err |= __put_user(regs->edx, &sc->edx);
  33.341 -	err |= __put_user(regs->ecx, &sc->ecx);
  33.342 -	err |= __put_user(regs->eax, &sc->eax);
  33.343 -	err |= __put_user(current->thread.trap_no, &sc->trapno);
  33.344 -	err |= __put_user(current->thread.error_code, &sc->err);
  33.345 -	err |= __put_user(regs->eip, &sc->eip);
  33.346 -	err |= __put_user(regs->xcs, (unsigned int *)&sc->cs);
  33.347 -	err |= __put_user(regs->eflags, &sc->eflags);
  33.348 -	err |= __put_user(regs->esp, &sc->esp_at_signal);
  33.349 -	err |= __put_user(regs->xss, (unsigned int *)&sc->ss);
  33.350 -
  33.351 -	tmp = save_i387(fpstate);
  33.352 -	if (tmp < 0)
  33.353 -	  err = 1;
  33.354 -	else
  33.355 -	  err |= __put_user(tmp ? fpstate : NULL, &sc->fpstate);
  33.356 -
  33.357 -	/* non-iBCS2 extensions.. */
  33.358 -	err |= __put_user(mask, &sc->oldmask);
  33.359 -	err |= __put_user(current->thread.cr2, &sc->cr2);
  33.360 -
  33.361 -	return err;
  33.362 -}
  33.363 -
  33.364 -/*
  33.365 - * Determine which stack to use..
  33.366 - */
  33.367 -static inline void *
  33.368 -get_sigframe(struct k_sigaction *ka, struct pt_regs * regs, size_t frame_size)
  33.369 -{
  33.370 -	unsigned long esp;
  33.371 -
  33.372 -	/* Default to using normal stack */
  33.373 -	esp = regs->esp;
  33.374 -
  33.375 -	/* This is the X/Open sanctioned signal stack switching.  */
  33.376 -	if (ka->sa.sa_flags & SA_ONSTACK) {
  33.377 -		if (sas_ss_flags(esp) == 0)
  33.378 -			esp = current->sas_ss_sp + current->sas_ss_size;
  33.379 -	}
  33.380 -
  33.381 -	/* This is the legacy signal stack switching. */
  33.382 -	else if ((regs->xss & 0xffff) != __USER_DS &&
  33.383 -		 !(ka->sa.sa_flags & SA_RESTORER) &&
  33.384 -		 ka->sa.sa_restorer) {
  33.385 -		esp = (unsigned long) ka->sa.sa_restorer;
  33.386 -	}
  33.387 -
  33.388 -	return (void *)((esp - frame_size) & -8ul);
  33.389 -}
  33.390 -
  33.391 -static void setup_frame(int sig, struct k_sigaction *ka,
  33.392 -			sigset_t *set, struct pt_regs * regs)
  33.393 -{
  33.394 -	struct sigframe *frame;
  33.395 -	int err = 0;
  33.396 -
  33.397 -	frame = get_sigframe(ka, regs, sizeof(*frame));
  33.398 -
  33.399 -	if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame)))
  33.400 -		goto give_sigsegv;
  33.401 -
  33.402 -	err |= __put_user((current->exec_domain
  33.403 -		           && current->exec_domain->signal_invmap
  33.404 -		           && sig < 32
  33.405 -		           ? current->exec_domain->signal_invmap[sig]
  33.406 -		           : sig),
  33.407 -		          &frame->sig);
  33.408 -	if (err)
  33.409 -		goto give_sigsegv;
  33.410 -
  33.411 -	err |= setup_sigcontext(&frame->sc, &frame->fpstate, regs, set->sig[0]);
  33.412 -	if (err)
  33.413 -		goto give_sigsegv;
  33.414 -
  33.415 -	if (_NSIG_WORDS > 1) {
  33.416 -		err |= __copy_to_user(frame->extramask, &set->sig[1],
  33.417 -				      sizeof(frame->extramask));
  33.418 -	}
  33.419 -	if (err)
  33.420 -		goto give_sigsegv;
  33.421 -
  33.422 -	/* Set up to return from userspace.  If provided, use a stub
  33.423 -	   already in userspace.  */
  33.424 -	if (ka->sa.sa_flags & SA_RESTORER) {
  33.425 -		err |= __put_user(ka->sa.sa_restorer, &frame->pretcode);
  33.426 -	} else {
  33.427 -		err |= __put_user(frame->retcode, &frame->pretcode);
  33.428 -		/* This is popl %eax ; movl $,%eax ; int $0x80 */
  33.429 -		err |= __put_user(0xb858, (short *)(frame->retcode+0));
  33.430 -		err |= __put_user(__NR_sigreturn, (int *)(frame->retcode+2));
  33.431 -		err |= __put_user(0x80cd, (short *)(frame->retcode+6));
  33.432 -	}
  33.433 -
  33.434 -	if (err)
  33.435 -		goto give_sigsegv;
  33.436 -
  33.437 -	/* Set up registers for signal handler */
  33.438 -	regs->esp = (unsigned long) frame;
  33.439 -	regs->eip = (unsigned long) ka->sa.sa_handler;
  33.440 -
  33.441 -	set_fs(USER_DS);
  33.442 -	regs->xds = __USER_DS;
  33.443 -	regs->xes = __USER_DS;
  33.444 -	regs->xss = __USER_DS;
  33.445 -	regs->xcs = __USER_CS;
  33.446 -	regs->eflags &= ~TF_MASK;
  33.447 -
  33.448 -#if DEBUG_SIG
  33.449 -	printk("SIG deliver (%s:%d): sp=%p pc=%p ra=%p\n",
  33.450 -		current->comm, current->pid, frame, regs->eip, frame->pretcode);
  33.451 -#endif
  33.452 -
  33.453 -	return;
  33.454 -
  33.455 -give_sigsegv:
  33.456 -	if (sig == SIGSEGV)
  33.457 -		ka->sa.sa_handler = SIG_DFL;
  33.458 -	force_sig(SIGSEGV, current);
  33.459 -}
  33.460 -
  33.461 -static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
  33.462 -			   sigset_t *set, struct pt_regs * regs)
  33.463 -{
  33.464 -	struct rt_sigframe *frame;
  33.465 -	int err = 0;
  33.466 -
  33.467 -	frame = get_sigframe(ka, regs, sizeof(*frame));
  33.468 -
  33.469 -	if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame)))
  33.470 -		goto give_sigsegv;
  33.471 -
  33.472 -	err |= __put_user((current->exec_domain
  33.473 -		    	   && current->exec_domain->signal_invmap
  33.474 -		    	   && sig < 32
  33.475 -		    	   ? current->exec_domain->signal_invmap[sig]
  33.476 -			   : sig),
  33.477 -			  &frame->sig);
  33.478 -	err |= __put_user(&frame->info, &frame->pinfo);
  33.479 -	err |= __put_user(&frame->uc, &frame->puc);
  33.480 -	err |= copy_siginfo_to_user(&frame->info, info);
  33.481 -	if (err)
  33.482 -		goto give_sigsegv;
  33.483 -
  33.484 -	/* Create the ucontext.  */
  33.485 -	err |= __put_user(0, &frame->uc.uc_flags);
  33.486 -	err |= __put_user(0, &frame->uc.uc_link);
  33.487 -	err |= __put_user(current->sas_ss_sp, &frame->uc.uc_stack.ss_sp);
  33.488 -	err |= __put_user(sas_ss_flags(regs->esp),
  33.489 -			  &frame->uc.uc_stack.ss_flags);
  33.490 -	err |= __put_user(current->sas_ss_size, &frame->uc.uc_stack.ss_size);
  33.491 -	err |= setup_sigcontext(&frame->uc.uc_mcontext, &frame->fpstate,
  33.492 -			        regs, set->sig[0]);
  33.493 -	err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set));
  33.494 -	if (err)
  33.495 -		goto give_sigsegv;
  33.496 -
  33.497 -	/* Set up to return from userspace.  If provided, use a stub
  33.498 -	   already in userspace.  */
  33.499 -	if (ka->sa.sa_flags & SA_RESTORER) {
  33.500 -		err |= __put_user(ka->sa.sa_restorer, &frame->pretcode);
  33.501 -	} else {
  33.502 -		err |= __put_user(frame->retcode, &frame->pretcode);
  33.503 -		/* This is movl $,%eax ; int $0x80 */
  33.504 -		err |= __put_user(0xb8, (char *)(frame->retcode+0));
  33.505 -		err |= __put_user(__NR_rt_sigreturn, (int *)(frame->retcode+1));
  33.506 -		err |= __put_user(0x80cd, (short *)(frame->retcode+5));
  33.507 -	}
  33.508 -
  33.509 -	if (err)
  33.510 -		goto give_sigsegv;
  33.511 -
  33.512 -	/* Set up registers for signal handler */
  33.513 -	regs->esp = (unsigned long) frame;
  33.514 -	regs->eip = (unsigned long) ka->sa.sa_handler;
  33.515 -
  33.516 -	set_fs(USER_DS);
  33.517 -	regs->xds = __USER_DS;
  33.518 -	regs->xes = __USER_DS;
  33.519 -	regs->xss = __USER_DS;
  33.520 -	regs->xcs = __USER_CS;
  33.521 -	regs->eflags &= ~TF_MASK;
  33.522 -
  33.523 -#if DEBUG_SIG
  33.524 -	printk("SIG deliver (%s:%d): sp=%p pc=%p ra=%p\n",
  33.525 -		current->comm, current->pid, frame, regs->eip, frame->pretcode);
  33.526 -#endif
  33.527 -
  33.528 -	return;
  33.529 -
  33.530 -give_sigsegv:
  33.531 -	if (sig == SIGSEGV)
  33.532 -		ka->sa.sa_handler = SIG_DFL;
  33.533 -	force_sig(SIGSEGV, current);
  33.534 -}
  33.535 -
  33.536 -/*
  33.537 - * OK, we're invoking a handler
  33.538 - */	
  33.539 -
  33.540 -static void
  33.541 -handle_signal(unsigned long sig, struct k_sigaction *ka,
  33.542 -	      siginfo_t *info, sigset_t *oldset, struct pt_regs * regs)
  33.543 -{
  33.544 -	/* Are we from a system call? */
  33.545 -	if (regs->orig_eax >= 0) {
  33.546 -		/* If so, check system call restarting.. */
  33.547 -		switch (regs->eax) {
  33.548 -			case -ERESTARTNOHAND:
  33.549 -				regs->eax = -EINTR;
  33.550 -				break;
  33.551 -
  33.552 -			case -ERESTARTSYS:
  33.553 -				if (!(ka->sa.sa_flags & SA_RESTART)) {
  33.554 -					regs->eax = -EINTR;
  33.555 -					break;
  33.556 -				}
  33.557 -			/* fallthrough */
  33.558 -			case -ERESTARTNOINTR:
  33.559 -				regs->eax = regs->orig_eax;
  33.560 -				regs->eip -= 2;
  33.561 -		}
  33.562 -	}
  33.563 -
  33.564 -	/* Set up the stack frame */
  33.565 -	if (ka->sa.sa_flags & SA_SIGINFO)
  33.566 -		setup_rt_frame(sig, ka, info, oldset, regs);
  33.567 -	else
  33.568 -		setup_frame(sig, ka, oldset, regs);
  33.569 -
  33.570 -	if (ka->sa.sa_flags & SA_ONESHOT)
  33.571 -		ka->sa.sa_handler = SIG_DFL;
  33.572 -
  33.573 -	if (!(ka->sa.sa_flags & SA_NODEFER)) {
  33.574 -		spin_lock_irq(&current->sigmask_lock);
  33.575 -		sigorsets(&current->blocked,&current->blocked,&ka->sa.sa_mask);
  33.576 -		sigaddset(&current->blocked,sig);
  33.577 -		recalc_sigpending(current);
  33.578 -		spin_unlock_irq(&current->sigmask_lock);
  33.579 -	}
  33.580 -}
  33.581 -
  33.582 -/*
  33.583 - * Note that 'init' is a special process: it doesn't get signals it doesn't
  33.584 - * want to handle. Thus you cannot kill init even with a SIGKILL even by
  33.585 - * mistake.
  33.586 - */
  33.587 -int do_signal(struct pt_regs *regs, sigset_t *oldset)
  33.588 -{
  33.589 -	siginfo_t info;
  33.590 -	struct k_sigaction *ka;
  33.591 -
  33.592 -	/*
  33.593 -	 * We want the common case to go fast, which
  33.594 -	 * is why we may in certain cases get here from
  33.595 -	 * kernel mode. Just return without doing anything
  33.596 -	 * if so.
  33.597 -	 */
  33.598 -	if ((regs->xcs & 2) != 2)
  33.599 -		return 1;
  33.600 -
  33.601 -	if (!oldset)
  33.602 -		oldset = &current->blocked;
  33.603 -
  33.604 -	for (;;) {
  33.605 -		unsigned long signr;
  33.606 -
  33.607 -		spin_lock_irq(&current->sigmask_lock);
  33.608 -		signr = dequeue_signal(&current->blocked, &info);
  33.609 -		spin_unlock_irq(&current->sigmask_lock);
  33.610 -
  33.611 -		if (!signr)
  33.612 -			break;
  33.613 -
  33.614 -		if ((current->ptrace & PT_PTRACED) && signr != SIGKILL) {
  33.615 -			/* Let the debugger run.  */
  33.616 -			current->exit_code = signr;
  33.617 -			current->state = TASK_STOPPED;
  33.618 -			notify_parent(current, SIGCHLD);
  33.619 -			schedule();
  33.620 -
  33.621 -			/* We're back.  Did the debugger cancel the sig?  */
  33.622 -			if (!(signr = current->exit_code))
  33.623 -				continue;
  33.624 -			current->exit_code = 0;
  33.625 -
  33.626 -			/* The debugger continued.  Ignore SIGSTOP.  */
  33.627 -			if (signr == SIGSTOP)
  33.628 -				continue;
  33.629 -
  33.630 -			/* Update the siginfo structure.  Is this good?  */
  33.631 -			if (signr != info.si_signo) {
  33.632 -				info.si_signo = signr;
  33.633 -				info.si_errno = 0;
  33.634 -				info.si_code = SI_USER;
  33.635 -				info.si_pid = current->p_pptr->pid;
  33.636 -				info.si_uid = current->p_pptr->uid;
  33.637 -			}
  33.638 -
  33.639 -			/* If the (new) signal is now blocked, requeue it.  */
  33.640 -			if (sigismember(&current->blocked, signr)) {
  33.641 -				send_sig_info(signr, &info, current);
  33.642 -				continue;
  33.643 -			}
  33.644 -		}
  33.645 -
  33.646 -		ka = &current->sig->action[signr-1];
  33.647 -		if (ka->sa.sa_handler == SIG_IGN) {
  33.648 -			if (signr != SIGCHLD)
  33.649 -				continue;
  33.650 -			/* Check for SIGCHLD: it's special.  */
  33.651 -			while (sys_wait4(-1, NULL, WNOHANG, NULL) > 0)
  33.652 -				/* nothing */;
  33.653 -			continue;
  33.654 -		}
  33.655 -
  33.656 -		if (ka->sa.sa_handler == SIG_DFL) {
  33.657 -			int exit_code = signr;
  33.658 -
  33.659 -			/* Init gets no signals it doesn't want.  */
  33.660 -			if (current->pid == 1)
  33.661 -				continue;
  33.662 -
  33.663 -			switch (signr) {
  33.664 -			case SIGCONT: case SIGCHLD: case SIGWINCH: case SIGURG:
  33.665 -				continue;
  33.666 -
  33.667 -			case SIGTSTP: case SIGTTIN: case SIGTTOU:
  33.668 -				if (is_orphaned_pgrp(current->pgrp))
  33.669 -					continue;
  33.670 -				/* FALLTHRU */
  33.671 -
  33.672 -			case SIGSTOP: {
  33.673 -				struct signal_struct *sig;
  33.674 -				current->state = TASK_STOPPED;
  33.675 -				current->exit_code = signr;
  33.676 -				sig = current->p_pptr->sig;
  33.677 -				if (sig && !(sig->action[SIGCHLD-1].sa.sa_flags & SA_NOCLDSTOP))
  33.678 -					notify_parent(current, SIGCHLD);
  33.679 -				schedule();
  33.680 -				continue;
  33.681 -			}
  33.682 -
  33.683 -			case SIGQUIT: case SIGILL: case SIGTRAP:
  33.684 -			case SIGABRT: case SIGFPE: case SIGSEGV:
  33.685 -			case SIGBUS: case SIGSYS: case SIGXCPU: case SIGXFSZ:
  33.686 -				if (do_coredump(signr, regs))
  33.687 -					exit_code |= 0x80;
  33.688 -				/* FALLTHRU */
  33.689 -
  33.690 -			default:
  33.691 -				sig_exit(signr, exit_code, &info);
  33.692 -				/* NOTREACHED */
  33.693 -			}
  33.694 -		}
  33.695 -
  33.696 -		/* Reenable any watchpoints before delivering the
  33.697 -		 * signal to user space. The processor register will
  33.698 -		 * have been cleared if the watchpoint triggered
  33.699 -		 * inside the kernel.
  33.700 -		 */
  33.701 -                if ( current->thread.debugreg[7] != 0 )
  33.702 -                    HYPERVISOR_set_debugreg(7, current->thread.debugreg[7]);
  33.703 -
  33.704 -		/* Whee!  Actually deliver the signal.  */
  33.705 -		handle_signal(signr, ka, &info, oldset, regs);
  33.706 -		return 1;
  33.707 -	}
  33.708 -
  33.709 -	/* Did we come from a system call? */
  33.710 -	if (regs->orig_eax >= 0) {
  33.711 -		/* Restart the system call - no handlers present */
  33.712 -		if (regs->eax == -ERESTARTNOHAND ||
  33.713 -		    regs->eax == -ERESTARTSYS ||
  33.714 -		    regs->eax == -ERESTARTNOINTR) {
  33.715 -			regs->eax = regs->orig_eax;
  33.716 -			regs->eip -= 2;
  33.717 -		}
  33.718 -	}
  33.719 -	return 0;
  33.720 -}
    34.1 --- a/linux-2.4.27-xen-sparse/arch/xen/kernel/time.c	Fri Nov 19 23:17:26 2004 +0000
    34.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    34.3 @@ -1,695 +0,0 @@
    34.4 -/* -*-  Mode:C; c-basic-offset:4; tab-width:4 -*-
    34.5 - ****************************************************************************
    34.6 - * (C) 2002-2003 - Rolf Neugebauer - Intel Research Cambridge
    34.7 - * (C) 2002-2003 - Keir Fraser - University of Cambridge
    34.8 - ****************************************************************************
    34.9 - *
   34.10 - *        File: arch/xen/kernel/time.c
   34.11 - *      Author: Rolf Neugebauer and Keir Fraser
   34.12 - * 
   34.13 - * Description: Interface with Xen to get correct notion of time
   34.14 - */
   34.15 -
   34.16 -/*
   34.17 - *  linux/arch/i386/kernel/time.c
   34.18 - *
   34.19 - *  Copyright (C) 1991, 1992, 1995  Linus Torvalds
   34.20 - *
   34.21 - * This file contains the PC-specific time handling details:
   34.22 - * reading the RTC at bootup, etc..
   34.23 - * 1994-07-02    Alan Modra
   34.24 - * fixed set_rtc_mmss, fixed time.year for >= 2000, new mktime
   34.25 - * 1995-03-26    Markus Kuhn
   34.26 - *      fixed 500 ms bug at call to set_rtc_mmss, fixed DS12887
   34.27 - *      precision CMOS clock update
   34.28 - * 1996-05-03    Ingo Molnar
   34.29 - *      fixed time warps in do_[slow|fast]_gettimeoffset()
   34.30 - * 1997-09-10 Updated NTP code according to technical memorandum Jan '96
   34.31 - *  "A Kernel Model for Precision Timekeeping" by Dave Mills
   34.32 - * 1998-09-05    (Various)
   34.33 - * More robust do_fast_gettimeoffset() algorithm implemented
   34.34 - * (works with APM, Cyrix 6x86MX and Centaur C6),
   34.35 - * monotonic gettimeofday() with fast_get_timeoffset(),
   34.36 - * drift-proof precision TSC calibration on boot
   34.37 - * (C. Scott Ananian <cananian@alumni.princeton.edu>, Andrew D.
   34.38 - * Balsa <andrebalsa@altern.org>, Philip Gladstone <philip@raptor.com>;
   34.39 - * ported from 2.0.35 Jumbo-9 by Michael Krause <m.krause@tu-harburg.de>).
   34.40 - * 1998-12-16    Andrea Arcangeli
   34.41 - * Fixed Jumbo-9 code in 2.1.131: do_gettimeofday was missing 1 jiffy
   34.42 - * because was not accounting lost_ticks.
   34.43 - * 1998-12-24 Copyright (C) 1998  Andrea Arcangeli
   34.44 - * Fixed a xtime SMP race (we need the xtime_lock rw spinlock to
   34.45 - * serialize accesses to xtime/lost_ticks).
   34.46 - */
   34.47 -
   34.48 -#include <asm/smp.h>
   34.49 -#include <asm/irq.h>
   34.50 -#include <asm/msr.h>
   34.51 -#include <asm/delay.h>
   34.52 -#include <asm/mpspec.h>
   34.53 -#include <asm/uaccess.h>
   34.54 -#include <asm/processor.h>
   34.55 -
   34.56 -#include <asm/div64.h>
   34.57 -#include <asm/hypervisor.h>
   34.58 -#include <asm-xen/xen-public/dom0_ops.h>
   34.59 -
   34.60 -#include <linux/mc146818rtc.h>
   34.61 -#include <linux/kernel.h>
   34.62 -#include <linux/interrupt.h>
   34.63 -#include <linux/time.h>
   34.64 -#include <linux/init.h>
   34.65 -#include <linux/smp.h>
   34.66 -#include <linux/irq.h>
   34.67 -#include <linux/sysctl.h>
   34.68 -#include <linux/sysrq.h>
   34.69 -
   34.70 -spinlock_t rtc_lock = SPIN_LOCK_UNLOCKED;
   34.71 -extern rwlock_t xtime_lock;
   34.72 -extern unsigned long wall_jiffies;
   34.73 -
   34.74 -unsigned long cpu_khz; /* get this from Xen, used elsewhere */
   34.75 -
   34.76 -static unsigned int rdtsc_bitshift;
   34.77 -static u32 st_scale_f; /* convert ticks -> usecs */
   34.78 -static u32 st_scale_i; /* convert ticks -> usecs */
   34.79 -
   34.80 -/* These are peridically updated in shared_info, and then copied here. */
   34.81 -static u32 shadow_tsc_stamp;
   34.82 -static u64 shadow_system_time;
   34.83 -static u32 shadow_time_version;
   34.84 -static struct timeval shadow_tv;
   34.85 -
   34.86 -/*
   34.87 - * We use this to ensure that gettimeofday() is monotonically increasing. We
   34.88 - * only break this guarantee if the wall clock jumps backwards "a long way".
   34.89 - */
   34.90 -static struct timeval last_seen_tv = {0,0};
   34.91 -
   34.92 -#ifdef CONFIG_XEN_PRIVILEGED_GUEST
   34.93 -/* Periodically propagate synchronised time base to the RTC and to Xen. */
   34.94 -static long last_update_to_rtc, last_update_to_xen;
   34.95 -#endif
   34.96 -
   34.97 -/* Periodically take synchronised time base from Xen, if we need it. */
   34.98 -static long last_update_from_xen;   /* UTC seconds when last read Xen clock. */
   34.99 -
  34.100 -/* Keep track of last time we did processing/updating of jiffies and xtime. */
  34.101 -static u64 processed_system_time;   /* System time (ns) at last processing. */
  34.102 -
  34.103 -#define NS_PER_TICK (1000000000ULL/HZ)
  34.104 -
  34.105 -#define HANDLE_USEC_UNDERFLOW(_tv)         \
  34.106 -    do {                                   \
  34.107 -        while ( (_tv).tv_usec < 0 )        \
  34.108 -        {                                  \
  34.109 -            (_tv).tv_usec += 1000000;      \
  34.110 -            (_tv).tv_sec--;                \
  34.111 -        }                                  \
  34.112 -    } while ( 0 )
  34.113 -#define HANDLE_USEC_OVERFLOW(_tv)          \
  34.114 -    do {                                   \
  34.115 -        while ( (_tv).tv_usec >= 1000000 ) \
  34.116 -        {                                  \
  34.117 -            (_tv).tv_usec -= 1000000;      \
  34.118 -            (_tv).tv_sec++;                \
  34.119 -        }                                  \
  34.120 -    } while ( 0 )
  34.121 -
  34.122 -/* Dynamically-mapped IRQs. */
  34.123 -static int time_irq, debug_irq;
  34.124 -
  34.125 -/* Does this guest OS track Xen time, or set its wall clock independently? */
  34.126 -static int independent_wallclock = 0;
  34.127 -static int __init __independent_wallclock(char *str)
  34.128 -{
  34.129 -    independent_wallclock = 1;
  34.130 -    return 1;
  34.131 -}
  34.132 -__setup("independent_wallclock", __independent_wallclock);
  34.133 -#define INDEPENDENT_WALLCLOCK() \
  34.134 -    (independent_wallclock || (xen_start_info.flags & SIF_INITDOMAIN))
  34.135 -
  34.136 -#ifdef CONFIG_XEN_PRIVILEGED_GUEST
  34.137 -/*
  34.138 - * In order to set the CMOS clock precisely, set_rtc_mmss has to be
  34.139 - * called 500 ms after the second nowtime has started, because when
  34.140 - * nowtime is written into the registers of the CMOS clock, it will
  34.141 - * jump to the next second precisely 500 ms later. Check the Motorola
  34.142 - * MC146818A or Dallas DS12887 data sheet for details.
  34.143 - *
  34.144 - * BUG: This routine does not handle hour overflow properly; it just
  34.145 - *      sets the minutes. Usually you'll only notice that after reboot!
  34.146 - */
  34.147 -static int set_rtc_mmss(unsigned long nowtime)
  34.148 -{
  34.149 -    int retval = 0;
  34.150 -    int real_seconds, real_minutes, cmos_minutes;
  34.151 -    unsigned char save_control, save_freq_select;
  34.152 -
  34.153 -    /* gets recalled with irq locally disabled */
  34.154 -    spin_lock(&rtc_lock);
  34.155 -    save_control = CMOS_READ(RTC_CONTROL);
  34.156 -    CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL);
  34.157 -
  34.158 -    save_freq_select = CMOS_READ(RTC_FREQ_SELECT);
  34.159 -    CMOS_WRITE((save_freq_select|RTC_DIV_RESET2), RTC_FREQ_SELECT);
  34.160 -
  34.161 -    cmos_minutes = CMOS_READ(RTC_MINUTES);
  34.162 -    if ( !(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD )
  34.163 -        BCD_TO_BIN(cmos_minutes);
  34.164 -
  34.165 -    /*
  34.166 -     * since we're only adjusting minutes and seconds, don't interfere with
  34.167 -     * hour overflow. This avoids messing with unknown time zones but requires
  34.168 -     * your RTC not to be off by more than 15 minutes
  34.169 -     */
  34.170 -    real_seconds = nowtime % 60;
  34.171 -    real_minutes = nowtime / 60;
  34.172 -    if ( ((abs(real_minutes - cmos_minutes) + 15)/30) & 1 )
  34.173 -        real_minutes += 30;  /* correct for half hour time zone */
  34.174 -    real_minutes %= 60;
  34.175 -
  34.176 -    if ( abs(real_minutes - cmos_minutes) < 30 )
  34.177 -    {
  34.178 -        if ( !(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD )
  34.179 -        {
  34.180 -            BIN_TO_BCD(real_seconds);
  34.181 -            BIN_TO_BCD(real_minutes);
  34.182 -        }
  34.183 -        CMOS_WRITE(real_seconds,RTC_SECONDS);
  34.184 -        CMOS_WRITE(real_minutes,RTC_MINUTES);
  34.185 -    }
  34.186 -    else 
  34.187 -    {
  34.188 -        printk(KERN_WARNING
  34.189 -               "set_rtc_mmss: can't update from %d to %d\n",
  34.190 -               cmos_minutes, real_minutes);
  34.191 -        retval = -1;
  34.192 -    }
  34.193 -
  34.194 -    /* The following flags have to be released exactly in this order,
  34.195 -     * otherwise the DS12887 (popular MC146818A clone with integrated
  34.196 -     * battery and quartz) will not reset the oscillator and will not
  34.197 -     * update precisely 500 ms later. You won't find this mentioned in
  34.198 -     * the Dallas Semiconductor data sheets, but who believes data
  34.199 -     * sheets anyway ...                           -- Markus Kuhn
  34.200 -     */
  34.201 -    CMOS_WRITE(save_control, RTC_CONTROL);
  34.202 -    CMOS_WRITE(save_freq_select, RTC_FREQ_SELECT);
  34.203 -    spin_unlock(&rtc_lock);
  34.204 -
  34.205 -    return retval;
  34.206 -}
  34.207 -#endif
  34.208 -
  34.209 -
  34.210 -/*
  34.211 - * Reads a consistent set of time-base values from Xen, into a shadow data
  34.212 - * area. Must be called with the xtime_lock held for writing.
  34.213 - */
  34.214 -static void __get_time_values_from_xen(void)
  34.215 -{
  34.216 -    do {
  34.217 -        shadow_time_version = HYPERVISOR_shared_info->time_version2;
  34.218 -        rmb();
  34.219 -        shadow_tv.tv_sec    = HYPERVISOR_shared_info->wc_sec;
  34.220 -        shadow_tv.tv_usec   = HYPERVISOR_shared_info->wc_usec;
  34.221 -        shadow_tsc_stamp    = 
  34.222 -            (u32)(HYPERVISOR_shared_info->tsc_timestamp >> rdtsc_bitshift);
  34.223 -        shadow_system_time  = HYPERVISOR_shared_info->system_time;
  34.224 -        rmb();
  34.225 -    }
  34.226 -    while ( shadow_time_version != HYPERVISOR_shared_info->time_version1 );
  34.227 -}
  34.228 -
  34.229 -#define TIME_VALUES_UP_TO_DATE \
  34.230 - ({ rmb(); (shadow_time_version == HYPERVISOR_shared_info->time_version2); })
  34.231 -
  34.232 -
  34.233 -/*
  34.234 - * Returns the system time elapsed, in ns, since the current shadow_timestamp
  34.235 - * was calculated. Must be called with the xtime_lock held for reading.
  34.236 - */
  34.237 -static inline unsigned long __get_time_delta_usecs(void)
  34.238 -{
  34.239 -    s32      delta_tsc;
  34.240 -    u32      low;
  34.241 -    u64      delta, tsc;
  34.242 -
  34.243 -    rdtscll(tsc);
  34.244 -    low = (u32)(tsc >> rdtsc_bitshift);
  34.245 -    delta_tsc = (s32)(low - shadow_tsc_stamp);
  34.246 -    if ( unlikely(delta_tsc < 0) ) delta_tsc = 0;
  34.247 -    delta = ((u64)delta_tsc * st_scale_f);
  34.248 -    delta >>= 32;
  34.249 -    delta += ((u64)delta_tsc * st_scale_i);
  34.250 -
  34.251 -    return (unsigned long)delta;
  34.252 -}
  34.253 -
  34.254 -
  34.255 -/*
  34.256 - * Returns the current time-of-day in UTC timeval format.
  34.257 - */
  34.258 -void do_gettimeofday(struct timeval *tv)
  34.259 -{
  34.260 -    unsigned long flags, lost;
  34.261 -    struct timeval _tv;
  34.262 -
  34.263 - again:
  34.264 -    read_lock_irqsave(&xtime_lock, flags);
  34.265 -
  34.266 -    _tv.tv_usec = __get_time_delta_usecs();
  34.267 -    if ( (lost = (jiffies - wall_jiffies)) != 0 )
  34.268 -        _tv.tv_usec += lost * (1000000 / HZ);
  34.269 -    _tv.tv_sec   = xtime.tv_sec;
  34.270 -    _tv.tv_usec += xtime.tv_usec;
  34.271 -
  34.272 -    if ( unlikely(!TIME_VALUES_UP_TO_DATE) )
  34.273 -    {
  34.274 -        /*
  34.275 -         * We may have blocked for a long time, rendering our calculations
  34.276 -         * invalid (e.g. the time delta may have overflowed). Detect that
  34.277 -         * and recalculate with fresh values.
  34.278 -         */
  34.279 -        read_unlock_irqrestore(&xtime_lock, flags);
  34.280 -        write_lock_irqsave(&xtime_lock, flags);
  34.281 -        __get_time_values_from_xen();
  34.282 -        write_unlock_irqrestore(&xtime_lock, flags);
  34.283 -        goto again;
  34.284 -    }
  34.285 -
  34.286 -    HANDLE_USEC_OVERFLOW(_tv);
  34.287 -
  34.288 -    /* Ensure that time-of-day is monotonically increasing. */
  34.289 -    if ( (_tv.tv_sec < last_seen_tv.tv_sec) ||
  34.290 -         ((_tv.tv_sec == last_seen_tv.tv_sec) &&
  34.291 -          (_tv.tv_usec < last_seen_tv.tv_usec)) )
  34.292 -        _tv = last_seen_tv;
  34.293 -    last_seen_tv = _tv;
  34.294 -
  34.295 -    read_unlock_irqrestore(&xtime_lock, flags);
  34.296 -
  34.297 -    *tv = _tv;
  34.298 -}
  34.299 -
  34.300 -
  34.301 -/*
  34.302 - * Sets the current time-of-day based on passed-in UTC timeval parameter.
  34.303 - */
  34.304 -void do_settimeofday(struct timeval *tv)
  34.305 -{
  34.306 -    struct timeval newtv;
  34.307 -    suseconds_t usec;
  34.308 -    
  34.309 -    if ( !INDEPENDENT_WALLCLOCK() )
  34.310 -        return;
  34.311 -    
  34.312 -    write_lock_irq(&xtime_lock);
  34.313 -    
  34.314 -    /*
  34.315 -     * Ensure we don't get blocked for a long time so that our time delta
  34.316 -     * overflows. If that were to happen then our shadow time values would
  34.317 -     * be stale, so we can retry with fresh ones.
  34.318 -     */
  34.319 - again:
  34.320 -    usec = tv->tv_usec - __get_time_delta_usecs();
  34.321 -    if ( unlikely(!TIME_VALUES_UP_TO_DATE) )
  34.322 -    {
  34.323 -        __get_time_values_from_xen();
  34.324 -        goto again;
  34.325 -    }
  34.326 -    tv->tv_usec = usec;
  34.327 -    
  34.328 -    HANDLE_USEC_UNDERFLOW(*tv);
  34.329 -    
  34.330 -    newtv = *tv;
  34.331 -    
  34.332 -    tv->tv_usec -= (jiffies - wall_jiffies) * (1000000 / HZ);
  34.333 -    HANDLE_USEC_UNDERFLOW(*tv);
  34.334 -
  34.335 -    xtime = *tv;
  34.336 -    time_adjust = 0;  /* stop active adjtime() */
  34.337 -    time_status |= STA_UNSYNC;
  34.338 -    time_maxerror = NTP_PHASE_LIMIT;
  34.339 -    time_esterror = NTP_PHASE_LIMIT;
  34.340 -
  34.341 -    /* Reset all our running time counts. They make no sense now. */
  34.342 -    last_seen_tv.tv_sec = 0;
  34.343 -    last_update_from_xen = 0;
  34.344 -
  34.345 -#ifdef CONFIG_XEN_PRIVILEGED_GUEST
  34.346 -    if ( xen_start_info.flags & SIF_INITDOMAIN )
  34.347 -    {
  34.348 -        dom0_op_t op;
  34.349 -        last_update_to_rtc = last_update_to_xen = 0;
  34.350 -        op.cmd = DOM0_SETTIME;
  34.351 -        op.u.settime.secs        = newtv.tv_sec;
  34.352 -        op.u.settime.usecs       = newtv.tv_usec;
  34.353 -        op.u.settime.system_time = shadow_system_time;
  34.354 -        write_unlock_irq(&xtime_lock);
  34.355 -        HYPERVISOR_dom0_op(&op);
  34.356 -    }
  34.357 -    else
  34.358 -#endif
  34.359 -    {
  34.360 -        write_unlock_irq(&xtime_lock);
  34.361 -    }
  34.362 -}
  34.363 -
  34.364 -
  34.365 -asmlinkage long sys_stime(int *tptr)
  34.366 -{
  34.367 -    int value;
  34.368 -    struct timeval tv;
  34.369 -
  34.370 -    if ( !capable(CAP_SYS_TIME) )
  34.371 -        return -EPERM;
  34.372 -
  34.373 -    if ( get_user(value, tptr) )
  34.374 -        return -EFAULT;
  34.375 -
  34.376 -    tv.tv_sec  = value;
  34.377 -    tv.tv_usec = 0;
  34.378 -
  34.379 -    do_settimeofday(&tv);
  34.380 -
  34.381 -    return 0;
  34.382 -}
  34.383 -
  34.384 -
  34.385 -/* Convert jiffies to system time. Call with xtime_lock held for reading. */
  34.386 -static inline u64 __jiffies_to_st(unsigned long j) 
  34.387 -{
  34.388 -    return processed_system_time + ((j - jiffies) * NS_PER_TICK);
  34.389 -}
  34.390 -
  34.391 -
  34.392 -static inline void do_timer_interrupt(int irq, void *dev_id,
  34.393 -                                      struct pt_regs *regs)
  34.394 -{
  34.395 -    s64 delta;
  34.396 -    unsigned long ticks = 0;
  34.397 -    long sec_diff;
  34.398 -
  34.399 -    do {
  34.400 -        __get_time_values_from_xen();
  34.401 -        
  34.402 -        delta = (s64)(shadow_system_time + 
  34.403 -                      ((s64)__get_time_delta_usecs() * 1000LL) -
  34.404 -                      processed_system_time);
  34.405 -    }
  34.406 -    while ( !TIME_VALUES_UP_TO_DATE );
  34.407 -
  34.408 -    if ( unlikely(delta < 0) )
  34.409 -    {
  34.410 -        printk("Timer ISR: Time went backwards: %lld\n", delta);
  34.411 -        return;
  34.412 -    }
  34.413 -
  34.414 -    /* Process elapsed jiffies since last call. */
  34.415 -    while ( delta >= NS_PER_TICK )
  34.416 -    {
  34.417 -        ticks++;
  34.418 -        delta -= NS_PER_TICK;
  34.419 -        processed_system_time += NS_PER_TICK;
  34.420 -    }
  34.421 -
  34.422 -    if ( ticks != 0 )
  34.423 -    {
  34.424 -        do_timer_ticks(ticks);
  34.425 -
  34.426 -        if ( user_mode(regs) )
  34.427 -            update_process_times_us(ticks, 0);
  34.428 -        else
  34.429 -            update_process_times_us(0, ticks);
  34.430 -    }
  34.431 -
  34.432 -    /*
  34.433 -     * Take synchronised time from Xen once a minute if we're not
  34.434 -     * synchronised ourselves, and we haven't chosen to keep an independent
  34.435 -     * time base.
  34.436 -     */
  34.437 -    if ( !INDEPENDENT_WALLCLOCK() &&
  34.438 -         ((time_status & STA_UNSYNC) != 0) &&
  34.439 -         (xtime.tv_sec > (last_update_from_xen + 60)) )
  34.440 -    {
  34.441 -        /* Adjust shadow timeval for jiffies that haven't updated xtime yet. */
  34.442 -        shadow_tv.tv_usec -= (jiffies - wall_jiffies) * (1000000/HZ);
  34.443 -        HANDLE_USEC_UNDERFLOW(shadow_tv);
  34.444 -
  34.445 -        /*
  34.446 -         * Reset our running time counts if they are invalidated by a warp
  34.447 -         * backwards of more than 500ms.
  34.448 -         */
  34.449 -        sec_diff = xtime.tv_sec - shadow_tv.tv_sec;
  34.450 -        if ( unlikely(abs(sec_diff) > 1) ||
  34.451 -             unlikely(((sec_diff * 1000000) + 
  34.452 -                       xtime.tv_usec - shadow_tv.tv_usec) > 500000) )
  34.453 -        {
  34.454 -#ifdef CONFIG_XEN_PRIVILEGED_GUEST
  34.455 -            last_update_to_rtc = last_update_to_xen = 0;
  34.456 -#endif
  34.457 -            last_seen_tv.tv_sec = 0;
  34.458 -        }
  34.459 -
  34.460 -        /* Update our unsynchronised xtime appropriately. */
  34.461 -        xtime = shadow_tv;
  34.462 -
  34.463 -        last_update_from_xen = xtime.tv_sec;
  34.464 -    }
  34.465 -
  34.466 -#ifdef CONFIG_XEN_PRIVILEGED_GUEST
  34.467 -    if ( (xen_start_info.flags & SIF_INITDOMAIN) &&
  34.468 -         ((time_status & STA_UNSYNC) == 0) )
  34.469 -    {
  34.470 -        /* Send synchronised time to Xen approximately every minute. */
  34.471 -        if ( xtime.tv_sec > (last_update_to_xen + 60) )
  34.472 -        {
  34.473 -            dom0_op_t op;
  34.474 -            struct timeval tv = xtime;
  34.475 -
  34.476 -            tv.tv_usec += (jiffies - wall_jiffies) * (1000000/HZ);
  34.477 -            HANDLE_USEC_OVERFLOW(tv);
  34.478 -
  34.479 -            op.cmd = DOM0_SETTIME;
  34.480 -            op.u.settime.secs        = tv.tv_sec;
  34.481 -            op.u.settime.usecs       = tv.tv_usec;
  34.482 -            op.u.settime.system_time = shadow_system_time;
  34.483 -            HYPERVISOR_dom0_op(&op);
  34.484 -
  34.485 -            last_update_to_xen = xtime.tv_sec;
  34.486 -        }
  34.487 -
  34.488 -        /*
  34.489 -         * If we have an externally synchronized Linux clock, then update CMOS
  34.490 -         * clock accordingly every ~11 minutes. Set_rtc_mmss() has to be called
  34.491 -         * as close as possible to 500 ms before the new second starts.
  34.492 -         */
  34.493 -        if ( (xtime.tv_sec > (last_update_to_rtc + 660)) &&
  34.494 -             (xtime.tv_usec >= (500000 - ((unsigned) tick) / 2)) &&
  34.495 -             (xtime.tv_usec <= (500000 + ((unsigned) tick) / 2)) )
  34.496 -        {
  34.497 -            if ( set_rtc_mmss(xtime.tv_sec) == 0 )
  34.498 -                last_update_to_rtc = xtime.tv_sec;
  34.499 -            else
  34.500 -                last_update_to_rtc = xtime.tv_sec - 600;
  34.501 -        }
  34.502 -    }
  34.503 -#endif
  34.504 -}
  34.505 -
  34.506 -
  34.507 -static void timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
  34.508 -{
  34.509 -    write_lock(&xtime_lock);
  34.510 -    do_timer_interrupt(irq, NULL, regs);
  34.511 -    write_unlock(&xtime_lock);
  34.512 -}
  34.513 -
  34.514 -static struct irqaction irq_timer = {
  34.515 -    timer_interrupt, 
  34.516 -    SA_INTERRUPT, 
  34.517 -    0, 
  34.518 -    "timer", 
  34.519 -    NULL, 
  34.520 -    NULL
  34.521 -};
  34.522 -
  34.523 -
  34.524 -/*
  34.525 - * This function works out when the the next timer function has to be
  34.526 - * executed (by looking at the timer list) and sets the Xen one-shot
  34.527 - * domain timer to the appropriate value. This is typically called in
  34.528 - * cpu_idle() before the domain blocks.
  34.529 - * 
  34.530 - * The function returns a non-0 value on error conditions.
  34.531 - * 
  34.532 - * It must be called with interrupts disabled.
  34.533 - */
  34.534 -extern spinlock_t timerlist_lock;
  34.535 -int set_timeout_timer(void)
  34.536 -{
  34.537 -    struct timer_list *timer;
  34.538 -    u64 alarm = 0;
  34.539 -    int ret = 0;
  34.540 -
  34.541 -    spin_lock(&timerlist_lock);
  34.542 -
  34.543 -    /*
  34.544 -     * This is safe against long blocking (since calculations are not based on 
  34.545 -     * TSC deltas). It is also safe against warped system time since
  34.546 -     * suspend-resume is cooperative and we would first get locked out. It is 
  34.547 -     * safe against normal updates of jiffies since interrupts are off.
  34.548 -     */
  34.549 -    if ( (timer = next_timer_event()) != NULL )
  34.550 -        alarm = __jiffies_to_st(timer->expires);
  34.551 -
  34.552 -    /* Tasks on the timer task queue expect to be executed on t