diff options
| -rw-r--r-- | arch/powerpc/kernel/prom_init.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index bafac2e41ae1..59d5bd1c064d 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c | |||
| @@ -654,6 +654,9 @@ static void __init early_cmdline_parse(void) | |||
| 654 | #define OV5_CMO 0x00 | 654 | #define OV5_CMO 0x00 |
| 655 | #endif | 655 | #endif |
| 656 | 656 | ||
| 657 | /* Option Vector 6: IBM PAPR hints */ | ||
| 658 | #define OV6_LINUX 0x02 /* Linux is our OS */ | ||
| 659 | |||
| 657 | /* | 660 | /* |
| 658 | * The architecture vector has an array of PVR mask/value pairs, | 661 | * The architecture vector has an array of PVR mask/value pairs, |
| 659 | * followed by # option vectors - 1, followed by the option vectors. | 662 | * followed by # option vectors - 1, followed by the option vectors. |
| @@ -665,7 +668,7 @@ static unsigned char ibm_architecture_vec[] = { | |||
| 665 | W(0xffffffff), W(0x0f000003), /* all 2.06-compliant */ | 668 | W(0xffffffff), W(0x0f000003), /* all 2.06-compliant */ |
| 666 | W(0xffffffff), W(0x0f000002), /* all 2.05-compliant */ | 669 | W(0xffffffff), W(0x0f000002), /* all 2.05-compliant */ |
| 667 | W(0xfffffffe), W(0x0f000001), /* all 2.04-compliant and earlier */ | 670 | W(0xfffffffe), W(0x0f000001), /* all 2.04-compliant and earlier */ |
| 668 | 5 - 1, /* 5 option vectors */ | 671 | 6 - 1, /* 6 option vectors */ |
| 669 | 672 | ||
| 670 | /* option vector 1: processor architectures supported */ | 673 | /* option vector 1: processor architectures supported */ |
| 671 | 3 - 2, /* length */ | 674 | 3 - 2, /* length */ |
| @@ -697,12 +700,24 @@ static unsigned char ibm_architecture_vec[] = { | |||
| 697 | 0, /* don't halt */ | 700 | 0, /* don't halt */ |
| 698 | 701 | ||
| 699 | /* option vector 5: PAPR/OF options */ | 702 | /* option vector 5: PAPR/OF options */ |
| 700 | 5 - 2, /* length */ | 703 | 13 - 2, /* length */ |
| 701 | 0, /* don't ignore, don't halt */ | 704 | 0, /* don't ignore, don't halt */ |
| 702 | OV5_LPAR | OV5_SPLPAR | OV5_LARGE_PAGES | OV5_DRCONF_MEMORY | | 705 | OV5_LPAR | OV5_SPLPAR | OV5_LARGE_PAGES | OV5_DRCONF_MEMORY | |
| 703 | OV5_DONATE_DEDICATE_CPU | OV5_MSI, | 706 | OV5_DONATE_DEDICATE_CPU | OV5_MSI, |
| 704 | 0, | 707 | 0, |
| 705 | OV5_CMO, | 708 | OV5_CMO, |
| 709 | 0, | ||
| 710 | 0, | ||
| 711 | 0, | ||
| 712 | 0, | ||
| 713 | W(NR_CPUS), /* number of cores supported*/ | ||
| 714 | |||
| 715 | /* option vector 6: IBM PAPR hints */ | ||
| 716 | 4 - 2, /* length */ | ||
| 717 | 0, | ||
| 718 | 0, | ||
| 719 | OV6_LINUX, | ||
| 720 | |||
| 706 | }; | 721 | }; |
| 707 | 722 | ||
| 708 | /* Old method - ELF header with PT_NOTE sections */ | 723 | /* Old method - ELF header with PT_NOTE sections */ |
