Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145481
b: refs/heads/master
c: b8da7de
h: refs/heads/master
i:
  145479: 3be2615
v: v3
  • Loading branch information
Dave Airlie committed Jun 3, 2009
1 parent 588714c commit 708d3ed
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 730c586ad5228c339949b2eb4e72b80ae167abc4
refs/heads/master: b8da7de56ca0ad34726478a50d138a29a9ff76cb
1 change: 0 additions & 1 deletion trunk/arch/x86/lguest/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
obj-y := i386_head.o boot.o
CFLAGS_boot.o := $(call cc-option, -fno-stack-protector)
17 changes: 4 additions & 13 deletions trunk/arch/x86/lguest/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
#include <asm/mce.h>
#include <asm/io.h>
#include <asm/i387.h>
#include <asm/stackprotector.h>
#include <asm/reboot.h> /* for struct machine_ops */

/*G:010 Welcome to the Guest!
Expand Down Expand Up @@ -1089,21 +1088,13 @@ __init void lguest_init(void)
* lguest_init() where the rest of the fairly chaotic boot setup
* occurs. */

/* The stack protector is a weird thing where gcc places a canary
* value on the stack and then checks it on return. This file is
* compiled with -fno-stack-protector it, so we got this far without
* problems. The value of the canary is kept at offset 20 from the
* %gs register, so we need to set that up before calling C functions
* in other files. */
setup_stack_canary_segment(0);
/* We could just call load_stack_canary_segment(), but we might as
* call switch_to_new_gdt() which loads the whole table and sets up
* the per-cpu segment descriptor register %fs as well. */
switch_to_new_gdt(0);

/* As described in head_32.S, we map the first 128M of memory. */
max_pfn_mapped = (128*1024*1024) >> PAGE_SHIFT;

/* Load the %fs segment register (the per-cpu segment register) with
* the normal data segment to get through booting. */
asm volatile ("mov %0, %%fs" : : "r" (__KERNEL_DS) : "memory");

/* The Host<->Guest Switcher lives at the top of our address space, and
* the Host told us how big it is when we made LGUEST_INIT hypercall:
* it put the answer in lguest_data.reserve_mem */
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/char/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,6 @@ static ssize_t read_zero(struct file * file, char __user * buf,
written += chunk - unwritten;
if (unwritten)
break;
/* Consider changing this to just 'signal_pending()' with lots of testing */
if (fatal_signal_pending(current))
return written ? written : -EINTR;
buf += chunk;
count -= chunk;
cond_resched();
Expand Down
8 changes: 7 additions & 1 deletion trunk/drivers/gpu/drm/drm_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ int drm_irq_install(struct drm_device *dev)
{
int ret = 0;
unsigned long sh_flags = 0;
char *irqname;

if (!drm_core_check_feature(dev, DRIVER_HAVE_IRQ))
return -EINVAL;
Expand Down Expand Up @@ -227,8 +228,13 @@ int drm_irq_install(struct drm_device *dev)
if (drm_core_check_feature(dev, DRIVER_IRQ_SHARED))
sh_flags = IRQF_SHARED;

if (dev->devname)
irqname = dev->devname;
else
irqname = dev->driver->name;

ret = request_irq(drm_dev_to_irq(dev), dev->driver->irq_handler,
sh_flags, dev->devname, dev);
sh_flags, irqname, dev);

if (ret < 0) {
mutex_lock(&dev->struct_mutex);
Expand Down
12 changes: 2 additions & 10 deletions trunk/drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,12 +987,6 @@ static int i915_load_modeset_init(struct drm_device *dev)
int fb_bar = IS_I9XX(dev) ? 2 : 0;
int ret = 0;

dev->devname = kstrdup(DRIVER_NAME, GFP_KERNEL);
if (!dev->devname) {
ret = -ENOMEM;
goto out;
}

dev->mode_config.fb_base = drm_get_resource_start(dev, fb_bar) &
0xff000000;

Expand All @@ -1006,7 +1000,7 @@ static int i915_load_modeset_init(struct drm_device *dev)

ret = i915_probe_agp(dev, &agp_size, &prealloc_size);
if (ret)
goto kfree_devname;
goto out;

/* Basic memrange allocator for stolen space (aka vram) */
drm_mm_init(&dev_priv->vram, 0, prealloc_size);
Expand All @@ -1024,7 +1018,7 @@ static int i915_load_modeset_init(struct drm_device *dev)

ret = i915_gem_init_ringbuffer(dev);
if (ret)
goto kfree_devname;
goto out;

/* Allow hardware batchbuffers unless told otherwise.
*/
Expand Down Expand Up @@ -1056,8 +1050,6 @@ static int i915_load_modeset_init(struct drm_device *dev)

destroy_ringbuffer:
i915_gem_cleanup_ringbuffer(dev);
kfree_devname:
kfree(dev->devname);
out:
return ret;
}
Expand Down

0 comments on commit 708d3ed

Please sign in to comment.