diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 20:15:20 -0400 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 20:15:20 -0400 | 
| commit | 31453a9764f7e2a72a6e2c502ace586e2663a68c (patch) | |
| tree | 5d4db63de5b4b85d1ffdab4e95a75175a784a10a /arch/um/kernel | |
| parent | f9ba5375a8aae4aeea6be15df77e24707a429812 (diff) | |
| parent | 93ed0e2d07b25aff4db1d61bfbcd1e82074c0ad5 (diff) | |
Merge branch 'akpm-incoming-1'
* akpm-incoming-1: (176 commits)
  scripts/checkpatch.pl: add check for declaration of pci_device_id
  scripts/checkpatch.pl: add warnings for static char that could be static const char
  checkpatch: version 0.31
  checkpatch: statement/block context analyser should look at sanitised lines
  checkpatch: handle EXPORT_SYMBOL for DEVICE_ATTR and similar
  checkpatch: clean up structure definition macro handline
  checkpatch: update copyright dates
  checkpatch: Add additional attribute #defines
  checkpatch: check for incorrect permissions
  checkpatch: ensure kconfig help checks only apply when we are adding help
  checkpatch: simplify and consolidate "missing space after" checks
  checkpatch: add check for space after struct, union, and enum
  checkpatch: returning errno typically should be negative
  checkpatch: handle casts better fixing false categorisation of : as binary
  checkpatch: ensure we do not collapse bracketed sections into constants
  checkpatch: suggest cleanpatch and cleanfile when appropriate
  checkpatch: types may sit on a line on their own
  checkpatch: fix regressions in "fix handling of leading spaces"
  div64_u64(): improve precision on 32bit platforms
  lib/parser: cleanup match_number()
  ...
Diffstat (limited to 'arch/um/kernel')
| -rw-r--r-- | arch/um/kernel/dyn.lds.S | 14 | ||||
| -rw-r--r-- | arch/um/kernel/irq.c | 15 | ||||
| -rw-r--r-- | arch/um/kernel/uml.lds.S | 19 | 
3 files changed, 34 insertions, 14 deletions
| diff --git a/arch/um/kernel/dyn.lds.S b/arch/um/kernel/dyn.lds.S index 69268014dd8e..a3cab6d3ae02 100644 --- a/arch/um/kernel/dyn.lds.S +++ b/arch/um/kernel/dyn.lds.S | |||
| @@ -50,8 +50,18 @@ SECTIONS | |||
| 50 | .rela.got : { *(.rela.got) } | 50 | .rela.got : { *(.rela.got) } | 
| 51 | .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) } | 51 | .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) } | 
| 52 | .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) } | 52 | .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) } | 
| 53 | .rel.plt : { *(.rel.plt) } | 53 | .rel.plt : { | 
| 54 | .rela.plt : { *(.rela.plt) } | 54 | *(.rel.plt) | 
| 55 | PROVIDE_HIDDEN(__rel_iplt_start = .); | ||
| 56 | *(.rel.iplt) | ||
| 57 | PROVIDE_HIDDEN(__rel_iplt_end = .); | ||
| 58 | } | ||
| 59 | .rela.plt : { | ||
| 60 | *(.rela.plt) | ||
| 61 | PROVIDE_HIDDEN(__rela_iplt_start = .); | ||
| 62 | *(.rela.iplt) | ||
| 63 | PROVIDE_HIDDEN(__rela_iplt_end = .); | ||
| 64 | } | ||
| 55 | .init : { | 65 | .init : { | 
| 56 | KEEP (*(.init)) | 66 | KEEP (*(.init)) | 
| 57 | } =0x90909090 | 67 | } =0x90909090 | 
| diff --git a/arch/um/kernel/irq.c b/arch/um/kernel/irq.c index a746e3037a5b..3f0ac9e0c966 100644 --- a/arch/um/kernel/irq.c +++ b/arch/um/kernel/irq.c | |||
| @@ -334,7 +334,7 @@ unsigned int do_IRQ(int irq, struct uml_pt_regs *regs) | |||
| 334 | { | 334 | { | 
| 335 | struct pt_regs *old_regs = set_irq_regs((struct pt_regs *)regs); | 335 | struct pt_regs *old_regs = set_irq_regs((struct pt_regs *)regs); | 
| 336 | irq_enter(); | 336 | irq_enter(); | 
| 337 | __do_IRQ(irq); | 337 | generic_handle_irq(irq); | 
| 338 | irq_exit(); | 338 | irq_exit(); | 
| 339 | set_irq_regs(old_regs); | 339 | set_irq_regs(old_regs); | 
| 340 | return 1; | 340 | return 1; | 
| @@ -391,17 +391,10 @@ void __init init_IRQ(void) | |||
| 391 | { | 391 | { | 
| 392 | int i; | 392 | int i; | 
| 393 | 393 | ||
| 394 | irq_desc[TIMER_IRQ].status = IRQ_DISABLED; | 394 | set_irq_chip_and_handler(TIMER_IRQ, &SIGVTALRM_irq_type, handle_edge_irq); | 
| 395 | irq_desc[TIMER_IRQ].action = NULL; | 395 | |
| 396 | irq_desc[TIMER_IRQ].depth = 1; | ||
| 397 | irq_desc[TIMER_IRQ].chip = &SIGVTALRM_irq_type; | ||
| 398 | enable_irq(TIMER_IRQ); | ||
| 399 | for (i = 1; i < NR_IRQS; i++) { | 396 | for (i = 1; i < NR_IRQS; i++) { | 
| 400 | irq_desc[i].status = IRQ_DISABLED; | 397 | set_irq_chip_and_handler(i, &normal_irq_type, handle_edge_irq); | 
| 401 | irq_desc[i].action = NULL; | ||
| 402 | irq_desc[i].depth = 1; | ||
| 403 | irq_desc[i].chip = &normal_irq_type; | ||
| 404 | enable_irq(i); | ||
| 405 | } | 398 | } | 
| 406 | } | 399 | } | 
| 407 | 400 | ||
| diff --git a/arch/um/kernel/uml.lds.S b/arch/um/kernel/uml.lds.S index ec6378550671..fbd99402d4d2 100644 --- a/arch/um/kernel/uml.lds.S +++ b/arch/um/kernel/uml.lds.S | |||
| @@ -22,7 +22,7 @@ SECTIONS | |||
| 22 | _text = .; | 22 | _text = .; | 
| 23 | _stext = .; | 23 | _stext = .; | 
| 24 | __init_begin = .; | 24 | __init_begin = .; | 
| 25 | INIT_TEXT_SECTION(PAGE_SIZE) | 25 | INIT_TEXT_SECTION(0) | 
| 26 | . = ALIGN(PAGE_SIZE); | 26 | . = ALIGN(PAGE_SIZE); | 
| 27 | 27 | ||
| 28 | .text : | 28 | .text : | 
| @@ -43,6 +43,23 @@ SECTIONS | |||
| 43 | __syscall_stub_end = .; | 43 | __syscall_stub_end = .; | 
| 44 | } | 44 | } | 
| 45 | 45 | ||
| 46 | /* | ||
| 47 | * These are needed even in a static link, even if they wind up being empty. | ||
| 48 | * Newer glibc needs these __rel{,a}_iplt_{start,end} symbols. | ||
| 49 | */ | ||
| 50 | .rel.plt : { | ||
| 51 | *(.rel.plt) | ||
| 52 | PROVIDE_HIDDEN(__rel_iplt_start = .); | ||
| 53 | *(.rel.iplt) | ||
| 54 | PROVIDE_HIDDEN(__rel_iplt_end = .); | ||
| 55 | } | ||
| 56 | .rela.plt : { | ||
| 57 | *(.rela.plt) | ||
| 58 | PROVIDE_HIDDEN(__rela_iplt_start = .); | ||
| 59 | *(.rela.iplt) | ||
| 60 | PROVIDE_HIDDEN(__rela_iplt_end = .); | ||
| 61 | } | ||
| 62 | |||
| 46 | #include "asm/common.lds.S" | 63 | #include "asm/common.lds.S" | 
| 47 | 64 | ||
| 48 | init.data : { INIT_DATA } | 65 | init.data : { INIT_DATA } | 
