Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181882
b: refs/heads/master
c: 28bb9ee
h: refs/heads/master
v: v3
  • Loading branch information
jschopp@austin.ibm.com authored and Benjamin Herrenschmidt committed Feb 3, 2010
1 parent 2976c6c commit 963d8bf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 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: 6c504d423147770d7bd73aab3228726379700786
refs/heads/master: 28bb9ee13aa0ee4c57dc3568f539cc84920b43aa
19 changes: 17 additions & 2 deletions trunk/arch/powerpc/kernel/prom_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,9 @@ static void __init early_cmdline_parse(void)
#define OV5_CMO 0x00
#endif

/* Option Vector 6: IBM PAPR hints */
#define OV6_LINUX 0x02 /* Linux is our OS */

/*
* The architecture vector has an array of PVR mask/value pairs,
* followed by # option vectors - 1, followed by the option vectors.
Expand All @@ -665,7 +668,7 @@ static unsigned char ibm_architecture_vec[] = {
W(0xffffffff), W(0x0f000003), /* all 2.06-compliant */
W(0xffffffff), W(0x0f000002), /* all 2.05-compliant */
W(0xfffffffe), W(0x0f000001), /* all 2.04-compliant and earlier */
5 - 1, /* 5 option vectors */
6 - 1, /* 6 option vectors */

/* option vector 1: processor architectures supported */
3 - 2, /* length */
Expand Down Expand Up @@ -697,12 +700,24 @@ static unsigned char ibm_architecture_vec[] = {
0, /* don't halt */

/* option vector 5: PAPR/OF options */
5 - 2, /* length */
13 - 2, /* length */
0, /* don't ignore, don't halt */
OV5_LPAR | OV5_SPLPAR | OV5_LARGE_PAGES | OV5_DRCONF_MEMORY |
OV5_DONATE_DEDICATE_CPU | OV5_MSI,
0,
OV5_CMO,
0,
0,
0,
0,
W(NR_CPUS), /* number of cores supported*/

/* option vector 6: IBM PAPR hints */
4 - 2, /* length */
0,
0,
OV6_LINUX,

};

/* Old method - ELF header with PT_NOTE sections */
Expand Down

0 comments on commit 963d8bf

Please sign in to comment.