i8259.cc (5634:22553ec2f177) i8259.cc (5656:f548d22a2f71)
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 114 unchanged lines hidden (view full) ---

123 switch (initControlWord) {
124 case 0x0:
125 DPRINTF(I8259, "Received operation command word 1.\n");
126 DPRINTF(I8259, "Wrote IMR value %#x.\n", val);
127 IMR = val;
128 break;
129 case 0x1:
130 DPRINTF(I8259, "Received initialization command word 2.\n");
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 114 unchanged lines hidden (view full) ---

123 switch (initControlWord) {
124 case 0x0:
125 DPRINTF(I8259, "Received operation command word 1.\n");
126 DPRINTF(I8259, "Wrote IMR value %#x.\n", val);
127 IMR = val;
128 break;
129 case 0x1:
130 DPRINTF(I8259, "Received initialization command word 2.\n");
131 vectorOffset = val & ~mask(3);
131 DPRINTF(I8259, "Responsible for vectors %#x-%#x.\n",
132 DPRINTF(I8259, "Responsible for vectors %#x-%#x.\n",
132 val & ~mask(3), val | mask(3));
133 vectorOffset, vectorOffset | mask(3));
133 if (cascadeMode) {
134 initControlWord++;
135 } else {
136 cascadeBits = 0;
137 initControlWord = 0;
138 }
139 break;
140 case 0x2:

--- 70 unchanged lines hidden ---
134 if (cascadeMode) {
135 initControlWord++;
136 } else {
137 cascadeBits = 0;
138 initControlWord = 0;
139 }
140 break;
141 case 0x2:

--- 70 unchanged lines hidden ---