rpms/mkelfimage/F-8 mkelfImage-2.7-ramdisk_base.patch,NONE,1.1
Warren Togami 砥上勇 (wtogami)
fedora-extras-commits at redhat.com
Wed May 21 23:56:21 UTC 2008
- Previous message (by thread): rpms/kernel/F-8 linux-2.6-cifs-fix-unc-path-prefix.patch, NONE, 1.1 linux-2.6-compile-fix-gcc-43.patch, NONE, 1.1 linux-2.6-debug-vm-would-have-oomkilled.patch, NONE, 1.1 linux-2.6-defaults-pci_no_msi.patch, NONE, 1.1 linux-2.6-drm-fix-master-perm.patch, NONE, 1.1 linux-2.6-drm-git-mm.patch, NONE, 1.1 linux-2.6-drm-radeon-fix-oops.patch, NONE, 1.1 linux-2.6-drm-radeon-fix-oops2.patch, NONE, 1.1 linux-2.6-e1000-corrupt-eeprom-checksum.patch, 1.2, 1.3 linux-2.6-e1000-ich9.patch, 1.2, 1.3 linux-2.6-efika-not-chrp.patch, NONE, 1.1 linux-2.6-ext34-xattr-fix.patch, NONE, 1.1 linux-2.6-imac-transparent-bridge.patch, NONE, 1.1 linux-2.6-powerpc-zImage-32MiB.patch, NONE, 1.1 linux-2.6-ppc-rtc.patch, NONE, 1.1 linux-2.6-ppc-use-libgcc.patch, NONE, 1.1 linux-2.6-vio-modalias.patch, NONE, 1.1 linux-2.6-windfarm-pm121-fix.patch, NONE, 1.1 linux-2.6-windfarm-pm121.patch, NONE, 1.1 linux-2.6-x86-dont-map-vdso-when-disabled.patch, NONE, 1.1 linux-2.6-x86-dont-read-maxlvt-if-apic-unmapped.patch, NONE, 1.1 linux-2.6-x86-dont-use-disabled-vdso-for-signals.patch, NONE, 1.1 linux-2.6-x86-fix-asm-constraint-in-do_IRQ.patch, NONE, 1.1 linux-2.6-x86-pci-revert-remove-default-rom-allocation.patch, NONE, 1.1 linux-2.6-xfs-small-buffer-reads.patch, NONE, 1.1 nouveau-drm-update.patch, NONE, 1.1 config-generic, 1.65, 1.66 kernel.spec, 1.442, 1.443 linux-2.6-build-nonintconfig.patch, 1.12, 1.13 linux-2.6-crash-driver.patch, 1.9, 1.10 linux-2.6-debug-no-quiet.patch, 1.5, 1.6 linux-2.6-debug-sizeof-structs.patch, 1.5, 1.6 linux-2.6-debug-taint-vm.patch, 1.16, 1.17 linux-2.6-devmem.patch, 1.19, 1.20 linux-2.6-execshield.patch, 1.75, 1.76 linux-2.6-firewire-git-pending.patch, 1.11, 1.12 linux-2.6-firewire-git-update.patch, 1.7, 1.8 linux-2.6-input-kill-stupid-messages.patch, 1.4, 1.5 linux-2.6-modsign-core.patch, 1.7, 1.8 linux-2.6-modsign-include.patch, 1.8, 1.9 linux-2.6-modsign-mpilib.patch, 1.5, 1.6 linux-2.6-modsign-verify.patch, 1.2, 1.3 linux-2.6-selinux-mprotect-checks.patch, 1.5, 1.6 linux-2.6-silence-noise.patch, 1.12, 1.13 linux-2.6-squashfs.patch, 1.24, 1.25 linux-2.6-upstream-reverts.patch, 1.7, 1.8 nouveau-drm.patch, 1.7, 1.8 linux-2.6-dcdbas-autoload.patch, 1.1, NONE linux-2.6-debug-resource-overflow.patch, 1.3, NONE linux-2.6-defaults-nommconf.patch, 1.3, NONE linux-2.6-drm-radeon-update.patch, 1.4, NONE linux-2.6-e1000-bad-csum-allow.patch, 1.1, NONE linux-2.6-git-initial-r500-drm.patch, 1.2, NONE linux-2.6-hwmon-coretemp-add-penryn-cpu.patch, 1.1, NONE linux-2.6-i386-vdso-install-unstripped-copies-on-disk.patch, 1.3, NONE linux-2.6-input-apple-add-aluminum-keyboard.patch, 1.1, NONE linux-2.6-input-apple-add-macbook-3rd-gen.patch, 1.1, NONE linux-2.6-input-apple-kbd-change-keycodes.patch, 1.1, NONE linux-2.6-input-apple-remove-4th-gen-kbd-quirk.patch, 1.1, NONE linux-2.6-input-apple-rename-identifiers.patch, 1.1, NONE linux-2.6-input-appletouch-macbook3-trackpad.patch, 1.1, NONE linux-2.6-isapnp-fix-limits.patch, 1.1, NONE linux-2.6-isdn-hisax-fix-request_irq-oops.patch, 1.1, NONE linux-2.6-libata-it821x-improve-emulation-handling.patch, 1.1, NONE linux-2.6-libata-pata_ataiixp-clear-simplex-b4-probe.patch, 1.1, NONE linux-2.6-net-tun-fix-rtnl-locking.patch, 1.1, NONE linux-2.6-netfilter-really-fix-oops-in-nf_nat_move_storage.patch, 1.2, NONE linux-2.6-paranoid-iret-crash-fix.patch, 1.1, NONE linux-2.6-pasemi-for-2.6.25.patch, 1.1, NONE linux-2.6-pasemi-reserve-i2c.patch, 1.1, NONE linux-2.6-pci-remove-default-pci-rom-allocation.patch, 1.1, NONE linux-2.6-pci-revert-remove-transparent-bridge-resizing.patch, 1.1, NONE linux-2.6-pnp-disable-overlapping-resources.patch, 1.1, NONE linux-2.6-pnp-extend-resource-limits.patch, 1.1, NONE linux-2.6-powerpc-fix-missed-hardware-breakpoints-across-multiple-threads.patch, 1.1, NONE linux-2.6-powerpc-generic-suspend-001-pmu-no-lock-kernel.patch, 1.1, NONE linux-2.6-powerpc-generic-suspend-002-pmu-remove-dead-code.patch, 1.1, NONE linux-2.6-powerpc-generic-suspend-003-remove-adb-sleep-notifier.patch, 1.1, NONE linux-2.6-powerpc-generic-suspend-004-kill-pmu-sleep-notifier.patch, 1.1, NONE linux-2.6-powerpc-generic-suspend-005-proper-sleep-management.patch, 1.2, NONE linux-2.6-powerpc-spu-vicinity.patch, 1.1, NONE linux-2.6-ppc32-ucmpdi2.patch, 1.3, NONE linux-2.6-thinkpad-key-events.patch, 1.1, NONE linux-2.6-unexport-symbols.patch, 1.4, NONE linux-2.6-upstream-kcore-access.patch, 1.1, NONE linux-2.6-usb-serial-fix-recursive-lock.patch, 1.2, NONE linux-2.6-usb-serial-option-add-dell-modem-1.patch, 1.1, NONE linux-2.6-usb-serial-option-add-dell-modem-2.patch, 1.1, NONE linux-2.6-x86-asmlinkage_protect-sys_io_getevents.patch, 1.1, NONE linux-2.6-x86-clear-df-for-signals.patch, 1.2, NONE linux-2.6-x86_64-silence-up-apic-errors.patch, 1.2, NONE linux-2.6-xfs-features2-fixup-fix.patch, 1.1, NONE linux-2.6-xfs-features2-fixup.patch, 1.1, NONE linux-2.6-xfs-optimize-away-realtime-tests.patch, 1.2, NONE linux-2.6-xfs-setfattr-32bit-compat.patch, 1.1, NONE linux-2.6-xfs-xfs_mount-refactor.patch, 1.1, NONE
- Next message (by thread): rpms/bzr-gtk/devel bzr-gtk-more-better-seahorse-dbus-check.patch, NONE, 1.1 bzr-gtk.spec, 1.27, 1.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: wtogami
Update of /cvs/pkgs/rpms/mkelfimage/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv12246
Added Files:
mkelfImage-2.7-ramdisk_base.patch
Log Message:
add patch
mkelfImage-2.7-ramdisk_base.patch:
--- NEW FILE mkelfImage-2.7-ramdisk_base.patch ---
diff -up mkelfImage-2.7/linux-i386/convert_params.c.ramdisk_base mkelfImage-2.7/linux-i386/convert_params.c
--- mkelfImage-2.7/linux-i386/convert_params.c.ramdisk_base 2006-03-27 18:44:59.000000000 -0500
+++ mkelfImage-2.7/linux-i386/convert_params.c 2008-05-21 12:55:44.000000000 -0400
@@ -1301,6 +1301,44 @@ static void query_firmware_values(struct
}
+static void relocate_ramdisk(struct param_info *info)
+{
+ struct e820entry *e820_map;
+ struct e820entry *highest = 0;
+ unsigned long load_addr;
+ int i;
+
+ e820_map = info->real_mode->e820_map;
+#if 0
+ printf("initrd_start = 0x%lx\n", info->real_mode->initrd_start);
+ printf("real_mode->e820_map_nr: %d\n", info->real_mode->e820_map_nr);
+#endif
+ for (i = 0; i < info->real_mode->e820_map_nr; i++) {
+ if (e820_map[i].type != E820_RAM)
+ continue;
+#if 0
+ printf("addr: 0x%lx len: %x\n", e820_map[i].addr, e820_map[i].size);
+#endif
+ if (highest && e820_map[i].addr < highest->addr)
+ continue;
+ if (e820_map[i].size < info->real_mode->initrd_size)
+ continue;
+ if (e820_map[i].addr + info->real_mode->initrd_size >= 0x38000000)
+ continue;
+ highest = &e820_map[i];
+ }
+
+ if (highest == 0)
+ return;
+
+ load_addr = highest->addr + highest->size;
+ load_addr -= info->real_mode->initrd_size;
+ load_addr &= ~0xfffUL;
+
+ memcpy((void *)load_addr, (void *)info->real_mode->initrd_start, info->real_mode->initrd_size);
+ printf("relocating ramdisk to 0x%lx\n", load_addr);
+ info->real_mode->initrd_start = load_addr;
+}
/*
* Debug
* =============================================================================
@@ -1533,6 +1571,10 @@ void *convert_params(unsigned type, void
query_firmware_class(&info);
query_firmware_values(&info);
query_bootloader_values(&info);
+ if (info.real_mode->initrd_size) {
+ /* Make sure the initrd is in a relatively safe place. */
+ relocate_ramdisk(&info);
+ }
/* Do the hardware setup that linux might forget... */
hardware_setup(&info);
diff -up mkelfImage-2.7/linux-i386/mkelf-linux-i386.c.ramdisk_base mkelfImage-2.7/linux-i386/mkelf-linux-i386.c
--- mkelfImage-2.7/linux-i386/mkelf-linux-i386.c.ramdisk_base 2006-03-17 09:08:22.000000000 -0500
+++ mkelfImage-2.7/linux-i386/mkelf-linux-i386.c 2008-05-21 10:47:42.000000000 -0400
@@ -352,6 +352,9 @@ int linux_i386_mkelf(int argc, char **ar
*/
params->initrd_start = params->initrd_size = 0;
if (ramdisk_size) {
+ while (ramdisk_base <= kernel_size)
+ ramdisk_base <<= 1;
+
phdr[index].p_paddr = ramdisk_base;
phdr[index].p_vaddr = ramdisk_base;
phdr[index].p_filesz = ramdisk_size;
- Previous message (by thread): rpms/kernel/F-8 linux-2.6-cifs-fix-unc-path-prefix.patch, NONE, 1.1 linux-2.6-compile-fix-gcc-43.patch, NONE, 1.1 linux-2.6-debug-vm-would-have-oomkilled.patch, NONE, 1.1 linux-2.6-defaults-pci_no_msi.patch, NONE, 1.1 linux-2.6-drm-fix-master-perm.patch, NONE, 1.1 linux-2.6-drm-git-mm.patch, NONE, 1.1 linux-2.6-drm-radeon-fix-oops.patch, NONE, 1.1 linux-2.6-drm-radeon-fix-oops2.patch, NONE, 1.1 linux-2.6-e1000-corrupt-eeprom-checksum.patch, 1.2, 1.3 linux-2.6-e1000-ich9.patch, 1.2, 1.3 linux-2.6-efika-not-chrp.patch, NONE, 1.1 linux-2.6-ext34-xattr-fix.patch, NONE, 1.1 linux-2.6-imac-transparent-bridge.patch, NONE, 1.1 linux-2.6-powerpc-zImage-32MiB.patch, NONE, 1.1 linux-2.6-ppc-rtc.patch, NONE, 1.1 linux-2.6-ppc-use-libgcc.patch, NONE, 1.1 linux-2.6-vio-modalias.patch, NONE, 1.1 linux-2.6-windfarm-pm121-fix.patch, NONE, 1.1 linux-2.6-windfarm-pm121.patch, NONE, 1.1 linux-2.6-x86-dont-map-vdso-when-disabled.patch, NONE, 1.1 linux-2.6-x86-dont-read-maxlvt-if-apic-unmapped.patch, NONE, 1.1 linux-2.6-x86-dont-use-disabled-vdso-for-signals.patch, NONE, 1.1 linux-2.6-x86-fix-asm-constraint-in-do_IRQ.patch, NONE, 1.1 linux-2.6-x86-pci-revert-remove-default-rom-allocation.patch, NONE, 1.1 linux-2.6-xfs-small-buffer-reads.patch, NONE, 1.1 nouveau-drm-update.patch, NONE, 1.1 config-generic, 1.65, 1.66 kernel.spec, 1.442, 1.443 linux-2.6-build-nonintconfig.patch, 1.12, 1.13 linux-2.6-crash-driver.patch, 1.9, 1.10 linux-2.6-debug-no-quiet.patch, 1.5, 1.6 linux-2.6-debug-sizeof-structs.patch, 1.5, 1.6 linux-2.6-debug-taint-vm.patch, 1.16, 1.17 linux-2.6-devmem.patch, 1.19, 1.20 linux-2.6-execshield.patch, 1.75, 1.76 linux-2.6-firewire-git-pending.patch, 1.11, 1.12 linux-2.6-firewire-git-update.patch, 1.7, 1.8 linux-2.6-input-kill-stupid-messages.patch, 1.4, 1.5 linux-2.6-modsign-core.patch, 1.7, 1.8 linux-2.6-modsign-include.patch, 1.8, 1.9 linux-2.6-modsign-mpilib.patch, 1.5, 1.6 linux-2.6-modsign-verify.patch, 1.2, 1.3 linux-2.6-selinux-mprotect-checks.patch, 1.5, 1.6 linux-2.6-silence-noise.patch, 1.12, 1.13 linux-2.6-squashfs.patch, 1.24, 1.25 linux-2.6-upstream-reverts.patch, 1.7, 1.8 nouveau-drm.patch, 1.7, 1.8 linux-2.6-dcdbas-autoload.patch, 1.1, NONE linux-2.6-debug-resource-overflow.patch, 1.3, NONE linux-2.6-defaults-nommconf.patch, 1.3, NONE linux-2.6-drm-radeon-update.patch, 1.4, NONE linux-2.6-e1000-bad-csum-allow.patch, 1.1, NONE linux-2.6-git-initial-r500-drm.patch, 1.2, NONE linux-2.6-hwmon-coretemp-add-penryn-cpu.patch, 1.1, NONE linux-2.6-i386-vdso-install-unstripped-copies-on-disk.patch, 1.3, NONE linux-2.6-input-apple-add-aluminum-keyboard.patch, 1.1, NONE linux-2.6-input-apple-add-macbook-3rd-gen.patch, 1.1, NONE linux-2.6-input-apple-kbd-change-keycodes.patch, 1.1, NONE linux-2.6-input-apple-remove-4th-gen-kbd-quirk.patch, 1.1, NONE linux-2.6-input-apple-rename-identifiers.patch, 1.1, NONE linux-2.6-input-appletouch-macbook3-trackpad.patch, 1.1, NONE linux-2.6-isapnp-fix-limits.patch, 1.1, NONE linux-2.6-isdn-hisax-fix-request_irq-oops.patch, 1.1, NONE linux-2.6-libata-it821x-improve-emulation-handling.patch, 1.1, NONE linux-2.6-libata-pata_ataiixp-clear-simplex-b4-probe.patch, 1.1, NONE linux-2.6-net-tun-fix-rtnl-locking.patch, 1.1, NONE linux-2.6-netfilter-really-fix-oops-in-nf_nat_move_storage.patch, 1.2, NONE linux-2.6-paranoid-iret-crash-fix.patch, 1.1, NONE linux-2.6-pasemi-for-2.6.25.patch, 1.1, NONE linux-2.6-pasemi-reserve-i2c.patch, 1.1, NONE linux-2.6-pci-remove-default-pci-rom-allocation.patch, 1.1, NONE linux-2.6-pci-revert-remove-transparent-bridge-resizing.patch, 1.1, NONE linux-2.6-pnp-disable-overlapping-resources.patch, 1.1, NONE linux-2.6-pnp-extend-resource-limits.patch, 1.1, NONE linux-2.6-powerpc-fix-missed-hardware-breakpoints-across-multiple-threads.patch, 1.1, NONE linux-2.6-powerpc-generic-suspend-001-pmu-no-lock-kernel.patch, 1.1, NONE linux-2.6-powerpc-generic-suspend-002-pmu-remove-dead-code.patch, 1.1, NONE linux-2.6-powerpc-generic-suspend-003-remove-adb-sleep-notifier.patch, 1.1, NONE linux-2.6-powerpc-generic-suspend-004-kill-pmu-sleep-notifier.patch, 1.1, NONE linux-2.6-powerpc-generic-suspend-005-proper-sleep-management.patch, 1.2, NONE linux-2.6-powerpc-spu-vicinity.patch, 1.1, NONE linux-2.6-ppc32-ucmpdi2.patch, 1.3, NONE linux-2.6-thinkpad-key-events.patch, 1.1, NONE linux-2.6-unexport-symbols.patch, 1.4, NONE linux-2.6-upstream-kcore-access.patch, 1.1, NONE linux-2.6-usb-serial-fix-recursive-lock.patch, 1.2, NONE linux-2.6-usb-serial-option-add-dell-modem-1.patch, 1.1, NONE linux-2.6-usb-serial-option-add-dell-modem-2.patch, 1.1, NONE linux-2.6-x86-asmlinkage_protect-sys_io_getevents.patch, 1.1, NONE linux-2.6-x86-clear-df-for-signals.patch, 1.2, NONE linux-2.6-x86_64-silence-up-apic-errors.patch, 1.2, NONE linux-2.6-xfs-features2-fixup-fix.patch, 1.1, NONE linux-2.6-xfs-features2-fixup.patch, 1.1, NONE linux-2.6-xfs-optimize-away-realtime-tests.patch, 1.2, NONE linux-2.6-xfs-setfattr-32bit-compat.patch, 1.1, NONE linux-2.6-xfs-xfs_mount-refactor.patch, 1.1, NONE
- Next message (by thread): rpms/bzr-gtk/devel bzr-gtk-more-better-seahorse-dbus-check.patch, NONE, 1.1 bzr-gtk.spec, 1.27, 1.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list