summaryrefslogtreecommitdiff
path: root/src/northbridge
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@secunet.com>2012-11-22 10:48:18 +0100
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-11-24 20:06:24 +0100
commit503af721a1f2c831fb360d1c1b2af38e0866fc35 (patch)
tree9dc68c4b43e29ce22d66247f0c2bafcbce5a4fe7 /src/northbridge
parent3e77eb6d1e0a3ff9c0a32504a5221dc57b10506c (diff)
x86 realmode: Adapt to x86emu/YABEL style return codes
realmode int handlers must return the same codes as the YABEL int handlers now: 1 for "interrupt handled", 0 for "not handled" (ie. error). Change-Id: Idc01cf64e2c97150fc4643671a0bc4cca2ae6668 Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Reviewed-on: http://review.coreboot.org/1890 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/northbridge')
-rw-r--r--src/northbridge/via/cn400/vga.c8
-rw-r--r--src/northbridge/via/cn700/vga.c8
-rw-r--r--src/northbridge/via/cx700/vga.c14
-rw-r--r--src/northbridge/via/vt8623/vga.c8
-rw-r--r--src/northbridge/via/vx800/vga.c14
5 files changed, 26 insertions, 26 deletions
diff --git a/src/northbridge/via/cn400/vga.c b/src/northbridge/via/cn400/vga.c
index 8c75a4fa30..fa598aa8fa 100644
--- a/src/northbridge/via/cn400/vga.c
+++ b/src/northbridge/via/cn400/vga.c
@@ -39,7 +39,7 @@
static int via_cn400_int15_handler(struct eregs *regs)
{
- int res=-1;
+ int res=0;
printk(BIOS_DEBUG, "via_cn400_int15_handler\n");
switch(regs->eax & 0xffff) {
case 0x5f19:
@@ -48,7 +48,7 @@ static int via_cn400_int15_handler(struct eregs *regs)
regs->eax=0x5f;
regs->ebx=0x545; // MCLK = 133, 32M frame buffer, 256 M main memory
regs->ecx=0x060;
- res=0;
+ res=1;
break;
case 0x5f00:
regs->eax = 0x8600;
@@ -56,14 +56,14 @@ static int via_cn400_int15_handler(struct eregs *regs)
case 0x5f01:
regs->eax = 0x5f;
regs->ecx = (regs->ecx & 0xffffff00 ) | 2; // panel type = 2 = 1024 * 768
- res = 0;
+ res = 1;
break;
case 0x5f02:
regs->eax=0x5f;
regs->ebx= (regs->ebx & 0xffff0000) | 2;
regs->ecx= (regs->ecx & 0xffff0000) | 0x401; // PAL + crt only
regs->edx= (regs->edx & 0xffff0000) | 0; // TV Layout - default
- res=0;
+ res=1;
break;
case 0x5f0f:
regs->eax=0x860f;
diff --git a/src/northbridge/via/cn700/vga.c b/src/northbridge/via/cn700/vga.c
index d184644fd4..c23145976a 100644
--- a/src/northbridge/via/cn700/vga.c
+++ b/src/northbridge/via/cn700/vga.c
@@ -39,7 +39,7 @@
static int via_cn700_int15_handler(struct eregs *regs)
{
- int res=-1;
+ int res=0;
printk(BIOS_DEBUG, "via_cn700_int15_handler\n");
switch(regs->eax & 0xffff) {
case 0x5f19:
@@ -48,7 +48,7 @@ static int via_cn700_int15_handler(struct eregs *regs)
regs->eax=0x5f;
regs->ebx=0x545; // MCLK = 133, 32M frame buffer, 256 M main memory
regs->ecx=0x060;
- res=0;
+ res=1;
break;
case 0x5f00:
regs->eax = 0x8600;
@@ -56,14 +56,14 @@ static int via_cn700_int15_handler(struct eregs *regs)
case 0x5f01:
regs->eax = 0x5f;
regs->ecx = (regs->ecx & 0xffffff00 ) | 2; // panel type = 2 = 1024 * 768
- res = 0;
+ res = 1;
break;
case 0x5f02:
regs->eax=0x5f;
regs->ebx= (regs->ebx & 0xffff0000) | 2;
regs->ecx= (regs->ecx & 0xffff0000) | 0x401; // PAL + crt only
regs->edx= (regs->edx & 0xffff0000) | 0; // TV Layout - default
- res=0;
+ res=1;
break;
case 0x5f0f:
regs->eax=0x860f;
diff --git a/src/northbridge/via/cx700/vga.c b/src/northbridge/via/cx700/vga.c
index 4acad7e852..658535d6aa 100644
--- a/src/northbridge/via/cx700/vga.c
+++ b/src/northbridge/via/cx700/vga.c
@@ -46,7 +46,7 @@
static int via_cx700_int15_handler(struct eregs *regs)
{
- int res=-1;
+ int res=0;
u8 mem_speed;
#define MEMORY_SPEED_66MHZ (0 << 4)
@@ -70,14 +70,14 @@ static int via_cx700_int15_handler(struct eregs *regs)
switch(regs->eax & 0xffff) {
case 0x5f00: /* VGA POST Initialization Signal */
regs->eax = (regs->eax & 0xffff0000 ) | 0x5f;
- res = 0;
+ res = 1;
break;
case 0x5f01: /* Software Panel Type Configuration */
regs->eax = (regs->eax & 0xffff0000 ) | 0x5f;
// panel type = 2 = 1024 * 768
regs->ecx = (regs->ecx & 0xffffff00 ) | 2;
- res = 0;
+ res = 1;
break;
case 0x5f27: /* Boot Device Selection */
@@ -87,7 +87,7 @@ static int via_cx700_int15_handler(struct eregs *regs)
regs->ecx = 0x00000000; // 0 -> default
// TV Layout - default
regs->edx = (regs->edx & 0xffffff00) | 0;
- res=0;
+ res=1;
break;
case 0x5f0b: /* Get Expansion Setting */
@@ -95,12 +95,12 @@ static int via_cx700_int15_handler(struct eregs *regs)
regs->ecx = regs->ecx & 0xffffff00; // non-expansion
// regs->ecx = regs->ecx & 0xffffff00 | 1; // expansion
- res=0;
+ res=1;
break;
case 0x5f0f: /* VGA Post Completion */
regs->eax = (regs->eax & 0xffff0000 ) | 0x5f;
- res=0;
+ res=1;
break;
case 0x5f18:
@@ -117,7 +117,7 @@ static int via_cx700_int15_handler(struct eregs *regs)
regs->ebx |= memory_mapping[mem_speed];
- res=0;
+ res=1;
break;
default:
diff --git a/src/northbridge/via/vt8623/vga.c b/src/northbridge/via/vt8623/vga.c
index fea691ebc2..8e9bd6de34 100644
--- a/src/northbridge/via/vt8623/vga.c
+++ b/src/northbridge/via/vt8623/vga.c
@@ -36,7 +36,7 @@
static int via_vt8623_int15_handler(struct eregs *regs)
{
- int res=-1;
+ int res=0;
printk(BIOS_DEBUG, "via_vt8623_int15_handler\n");
switch(regs->eax & 0xffff) {
case 0x5f19:
@@ -45,7 +45,7 @@ static int via_vt8623_int15_handler(struct eregs *regs)
regs->eax=0x5f;
regs->ebx=0x545; // MCLK = 133, 32M frame buffer, 256 M main memory
regs->ecx=0x060;
- res=0;
+ res=1;
break;
case 0x5f00:
regs->eax = 0x8600;
@@ -53,14 +53,14 @@ static int via_vt8623_int15_handler(struct eregs *regs)
case 0x5f01:
regs->eax = 0x5f;
regs->ecx = (regs->ecx & 0xffffff00 ) | 2; // panel type = 2 = 1024 * 768
- res = 0;
+ res = 1;
break;
case 0x5f02:
regs->eax=0x5f;
regs->ebx= (regs->ebx & 0xffff0000) | 2;
regs->ecx= (regs->ecx & 0xffff0000) | 0x401; // PAL + crt only
regs->edx= (regs->edx & 0xffff0000) | 0; // TV Layout - default
- res=0;
+ res=1;
break;
case 0x5f0f:
regs->eax=0x860f;
diff --git a/src/northbridge/via/vx800/vga.c b/src/northbridge/via/vx800/vga.c
index d91ad9fea3..be522f884c 100644
--- a/src/northbridge/via/vx800/vga.c
+++ b/src/northbridge/via/vx800/vga.c
@@ -52,13 +52,13 @@
static int via_vx800_int15_handler(struct eregs *regs)
{
- int res=-1;
+ int res=0;
printk(BIOS_DEBUG, "via_vx800_int15_handler\n");
switch(regs->eax & 0xffff) {
case 0x5f19:
regs->eax=0x5f;
regs->ecx=0x03;
- res=0;
+ res=1;
break;
case 0x5f18:
{
@@ -95,28 +95,28 @@ static int via_vx800_int15_handler(struct eregs *regs)
i = i << 4;
regs->ebx = regs->ebx + ((u32) i);
regs->eax = 0x5f;
- res = 0;
+ res = 1;
break;
}
case 0x5f00:
regs->eax = 0x005f;
- res = 0;
+ res = 1;
break;
case 0x5f01:
regs->eax = 0x5f;
regs->ecx = (regs->ecx & 0xffffff00 ) | 2; // panel type = 2 = 1024 * 768
- res = 0;
+ res = 1;
break;
case 0x5f02:
regs->eax=0x5f;
regs->ebx= (regs->ebx & 0xffff0000) | 2;
regs->ecx= (regs->ecx & 0xffff0000) | 0x401; // PAL + crt only
regs->edx= (regs->edx & 0xffff0000) | 0; // TV Layout - default
- res=0;
+ res=1;
break;
case 0x5f0f:
regs->eax = 0x005f;
- res = 0;
+ res = 1;
break;
default:
printk(BIOS_DEBUG, "Unknown INT15 function %04x!\n",