* [RFC] mips/swarm: fixup screen_info struct
@ 2010-04-21 18:55 Sebastian Andrzej Siewior
2010-04-21 20:36 ` [PATCH v2] " Sebastian Andrzej Siewior
0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Andrzej Siewior @ 2010-04-21 18:55 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips
|arch/mips/sibyte/swarm/setup.c:153:
| warning: large integer implicitly truncated to unsigned type
The field was changed in d9b26352 aka ("x86, setup: Store the boot
cursor state").
This patch changes the values back they way they were before this extra
field got introduced. I have no idea who needs it anyway.
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
---
Using C99 initializer might be better
arch/mips/sibyte/swarm/setup.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/sibyte/swarm/setup.c b/arch/mips/sibyte/swarm/setup.c
index 5277aac..128b699 100644
--- a/arch/mips/sibyte/swarm/setup.c
+++ b/arch/mips/sibyte/swarm/setup.c
@@ -150,7 +150,7 @@ void __init plat_mem_setup(void)
52, /* orig_video_page */
3, /* orig_video_mode */
80, /* orig_video_cols */
- 4626, 3, 9, /* unused, ega_bx, unused */
+ 12, 12, 3, 9, /* flags, unused, ega_bx, unused */
25, /* orig_video_lines */
0x22, /* orig_video_isVGA */
16 /* orig_video_points */
--
1.6.6.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v2] mips/swarm: fixup screen_info struct
2010-04-21 18:55 [RFC] mips/swarm: fixup screen_info struct Sebastian Andrzej Siewior
@ 2010-04-21 20:36 ` Sebastian Andrzej Siewior
2010-04-22 23:00 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Andrzej Siewior @ 2010-04-21 20:36 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips
|arch/mips/sibyte/swarm/setup.c:153:
| warning: large integer implicitly truncated to unsigned type
The field was changed in d9b26352 aka ("x86, setup: Store the boot
cursor state").
This patch changes the values back they way they were before this extra
field got introduced.
While here, the other two boards are also converted to C99 initializer.
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
---
arch/mips/jazz/setup.c | 12 +++---------
arch/mips/loongson/common/setup.c | 14 +++++---------
arch/mips/sibyte/swarm/setup.c | 19 ++++++++++---------
3 files changed, 18 insertions(+), 27 deletions(-)
diff --git a/arch/mips/jazz/setup.c b/arch/mips/jazz/setup.c
index 7043f6b..c492563 100644
--- a/arch/mips/jazz/setup.c
+++ b/arch/mips/jazz/setup.c
@@ -76,15 +76,9 @@ void __init plat_mem_setup(void)
#ifdef CONFIG_VT
screen_info = (struct screen_info) {
- 0, 0, /* orig-x, orig-y */
- 0, /* unused */
- 0, /* orig_video_page */
- 0, /* orig_video_mode */
- 160, /* orig_video_cols */
- 0, 0, 0, /* unused, ega_bx, unused */
- 64, /* orig_video_lines */
- 0, /* orig_video_isVGA */
- 16 /* orig_video_points */
+ .orig_video_cols = 160,
+ .orig_video_lines = 64,
+ .orig_video_points = 16,
};
#endif
diff --git a/arch/mips/loongson/common/setup.c b/arch/mips/loongson/common/setup.c
index 4cd2aa9..c2e1410 100644
--- a/arch/mips/loongson/common/setup.c
+++ b/arch/mips/loongson/common/setup.c
@@ -41,15 +41,11 @@ void __init plat_mem_setup(void)
conswitchp = &vga_con;
screen_info = (struct screen_info) {
- 0, 25, /* orig-x, orig-y */
- 0, /* unused */
- 0, /* orig-video-page */
- 0, /* orig-video-mode */
- 80, /* orig-video-cols */
- 0, 0, 0, /* ega_ax, ega_bx, ega_cx */
- 25, /* orig-video-lines */
- VIDEO_TYPE_VGAC, /* orig-video-isVGA */
- 16 /* orig-video-points */
+ .orig_y = 25,
+ .orig_video_cols = 80,
+ .orig_video_lines = 25,
+ .orig_video_isVGA = VIDEO_TYPE_VGAC,
+ .orig_video_points = 16,
};
#elif defined(CONFIG_DUMMY_CONSOLE)
conswitchp = &dummy_con;
diff --git a/arch/mips/sibyte/swarm/setup.c b/arch/mips/sibyte/swarm/setup.c
index 5277aac..a3573f3 100644
--- a/arch/mips/sibyte/swarm/setup.c
+++ b/arch/mips/sibyte/swarm/setup.c
@@ -145,15 +145,16 @@ void __init plat_mem_setup(void)
#ifdef CONFIG_VT
screen_info = (struct screen_info) {
- 0, 0, /* orig-x, orig-y */
- 0, /* unused */
- 52, /* orig_video_page */
- 3, /* orig_video_mode */
- 80, /* orig_video_cols */
- 4626, 3, 9, /* unused, ega_bx, unused */
- 25, /* orig_video_lines */
- 0x22, /* orig_video_isVGA */
- 16 /* orig_video_points */
+ .orig_video_page = 52,
+ .orig_video_mode = 3,
+ .orig_video_cols = 80,
+ .flags = 12,
+ .unused2 = 12,
+ .orig_video_ega_bx = 3,
+ .unused3 = 9,
+ .orig_video_lines = 25,
+ .orig_video_isVGA = 0x22,
+ .orig_video_points = 16,
};
/* XXXKW for CFE, get lines/cols from environment */
#endif
--
1.6.6.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] mips/swarm: fixup screen_info struct
2010-04-21 20:36 ` [PATCH v2] " Sebastian Andrzej Siewior
@ 2010-04-22 23:00 ` Ralf Baechle
0 siblings, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2010-04-22 23:00 UTC (permalink / raw)
To: Sebastian Andrzej Siewior; +Cc: linux-mips
On Wed, Apr 21, 2010 at 10:36:47PM +0200, Sebastian Andrzej Siewior wrote:
Applied with minor cosmetic changes.
Thanks!
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-22 23:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-21 18:55 [RFC] mips/swarm: fixup screen_info struct Sebastian Andrzej Siewior
2010-04-21 20:36 ` [PATCH v2] " Sebastian Andrzej Siewior
2010-04-22 23:00 ` Ralf Baechle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.