stos: knot: Fix up knot reasons for consistency
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -112,7 +112,7 @@ HalRaiseIrql(IRQL Irql)
|
|||||||
|
|
||||||
CurrentIrql = HalGetIrql();
|
CurrentIrql = HalGetIrql();
|
||||||
if (Irql < CurrentIrql) {
|
if (Irql < CurrentIrql) {
|
||||||
KeKnot(IRQL_NOT_GTE, "got bad irql\n");
|
KeKnot(KNOT_IRQL_NOT_GTE, "got bad irql\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
SetIrql(Irql);
|
SetIrql(Irql);
|
||||||
@@ -126,7 +126,7 @@ HalLowerIrql(IRQL Irql)
|
|||||||
|
|
||||||
CurrentIrql = HalGetIrql();
|
CurrentIrql = HalGetIrql();
|
||||||
if (Irql > CurrentIrql) {
|
if (Irql > CurrentIrql) {
|
||||||
KeKnot(IRQL_NOT_LTE, "got bad irql\n");
|
KeKnot(KNOT_IRQL_NOT_LTE, "got bad irql\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
return CurrentIrql;
|
return CurrentIrql;
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
* @KNOT_BAD_BOOT_PROTO: Bad boot protocol
|
* @KNOT_BAD_BOOT_PROTO: Bad boot protocol
|
||||||
* @KNOT_OOM: Fatal out of memory
|
* @KNOT_OOM: Fatal out of memory
|
||||||
* @KNOT_EXCEPTION: Fatal exception
|
* @KNOT_EXCEPTION: Fatal exception
|
||||||
* @IRQL_NOT_LTE: IRQL not less than or equal
|
* @KNOT_IRQL_NOT_LTE: IRQL not less than or equal
|
||||||
* @IRQL_NOT_GTE: IRQL not greater than or equal
|
* @KNOT_IRQL_NOT_GTE: IRQL not greater than or equal
|
||||||
* @KNOT_BAD_CHECKSUM: Fatal bad checksum value
|
* @KNOT_BAD_CHECKSUM: Fatal bad checksum value
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
@@ -29,8 +29,8 @@ typedef enum {
|
|||||||
KNOT_BAD_BOOT_PROTO,
|
KNOT_BAD_BOOT_PROTO,
|
||||||
KNOT_OOM,
|
KNOT_OOM,
|
||||||
KNOT_EXCEPTION,
|
KNOT_EXCEPTION,
|
||||||
IRQL_NOT_LTE,
|
KNOT_IRQL_NOT_LTE,
|
||||||
IRQL_NOT_GTE,
|
KNOT_IRQL_NOT_GTE,
|
||||||
KNOT_BAD_CHECKSUM
|
KNOT_BAD_CHECKSUM
|
||||||
} KNOT_REASON;
|
} KNOT_REASON;
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -23,8 +23,8 @@ static const CHAR *ReasonTable[] = {
|
|||||||
[KNOT_BAD_BOOT_PROTO] = "bad boot protocol",
|
[KNOT_BAD_BOOT_PROTO] = "bad boot protocol",
|
||||||
[KNOT_OOM] = "out of memory",
|
[KNOT_OOM] = "out of memory",
|
||||||
[KNOT_EXCEPTION] = "fatal exception",
|
[KNOT_EXCEPTION] = "fatal exception",
|
||||||
[IRQL_NOT_LTE] = "irql not less than or equal",
|
[KNOT_IRQL_NOT_LTE] = "irql not less than or equal",
|
||||||
[IRQL_NOT_GTE] = "irql not greater than or equal",
|
[KNOT_IRQL_NOT_GTE] = "irql not greater than or equal",
|
||||||
[KNOT_BAD_CHECKSUM] = "bad checksum"
|
[KNOT_BAD_CHECKSUM] = "bad checksum"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user