Data processing method, computer system, and electronic device
The technology of this application relates to a data processing method, a computer system, and an electronic device. The computer system includes an operating system and firmware. The operating system includes a setup menu program, and the firmware includes a configuration program. The setup menu program is used to invoke the configuration program in response to a received configuration modification operation of a user. The configuration program is used to configure, in response to the invocation of the setup menu program, a corresponding function based on configuration modification information corresponding to the configuration modification operation. In this way, the user can modify function configuration of the system by performing an operation in the setup menu program in the operating system, to resolve a problem in the conventional technology that it is inconvenient for the user to enter a setup menu through the firmware.
1 . A computer system including an operating system and firmware, the operating system including a setup menu program, the firmware including a configuration program, and the system comprising:
processing circuitry including at least one processor, wherein the processing circuitry is configured to:
invoke, via the setup menu program and using a firmware invocation program, the configuration program in response to a received configuration modification operation of a user; and
configure, via the configuration program, and in response to invoking the setup menu program, a corresponding function based on configuration modification information corresponding to the configuration modification operation, wherein
a function of the configuration program is implemented by a scheduler and a plurality of function configuration programs,
the setup menu program is configured to invoke the scheduler in response to the received configuration modification operation of the user, and
the scheduler is configured to: in response to invoking the setup menu program, parse the configuration modification information, determine a target function configuration program, and invoke the target function configuration program.
2 . The system according to claim 1 , wherein
the processing circuitry further comprises a memory,
a data storage area of the operating system is disposed in the memory, and
the setup menu program is configured to store the configuration modification information in the data storage area of the operating system.
3 . The system according to claim 1 , wherein
the processing circuitry further comprises a memory,
a data storage area of the firmware is disposed in the memory, and
the configuration program is configured to store the configuration modification information in the data storage area of the firmware in response to invoking the setup menu program.
4 . The system according to claim 1 , wherein
the function configuration program configures, in response to invoking the scheduler, the corresponding function based on the configuration modification information.
5 . The system according to claim 1 , wherein
the setup menu program is configured to invoke the configuration program via a dedicated instruction, a mailbox, or an interrupt.
6 . The system according to claim 1 , wherein the setup menu program and the firmware invocation program are independent of each other.
7 . The system according to claim 1 , wherein the firmware invocation program belongs to the operating system (OS), and the scheduler belongs to the firmware.
8 . A computer system including an operating system and firmware, the operating system including a setup menu program and a program for invoking firmware, the firmware including a configuration program, and the system comprising:
processing circuitry including at least one processor, wherein the processing circuitry is configured to:
invoke, via the setup menu program, the program for invoking the firmware in response to a received configuration modification operation of a user;
invoke, via the program for invoking the firmware, the configuration program in response to invoking the setup menu program; and
configure, via the configuration program, and in response to invoking the program for invoking the firmware, a corresponding function based on configuration modification information corresponding to the configuration modification operation, wherein
a function of the configuration program is implemented by a scheduler and a plurality of function configuration programs,
the program for invoking the firmware is configured to invoke the scheduler in response to invoking the setup menu program, and
the scheduler is configured to: in response to invoking the program for invoking the firmware, parse the configuration modification information, determine a target function configuration program, and invoke the target function configuration program.
9 . The system according to claim 8 , wherein
the processing circuitry further comprises a memory,
a data storage area of the operating system is disposed in the memory, and
the setup menu program is configured to store the configuration modification information in the data storage area of the operating system.
10 . The system according to claim 8 , wherein
the processing circuitry further comprises a memory,
a data storage area of the firmware is disposed in the memory, and
the configuration program is configured to store the configuration modification information in the data storage area of the firmware in response to invoking the program for invoking the firmware.
11 . The system according to claim 8 , wherein
the function configuration program configures, in response to invoking the scheduler, the corresponding function based on the configuration modification information.
12 . The system according to claim 8 , wherein
the program for invoking the firmware is configured to invoke the configuration program via a dedicated instruction, a mailbox, or an interrupt.
13 . The system according to claim 8 , wherein the setup menu program and the firmware invocation program are independent of each other.
14 . The system according to claim 8 , wherein the firmware invocation program belongs to the operating system (OS), and the scheduler belongs to the firmware.
15 . A data processing method applied to a computer system, the computer system including an operating system and firmware, the operating system including a setup menu program, the firmware including a configuration program, and the method comprising:
invoking, by the setup menu program and using a firmware invocation program, the configuration program in response to a received configuration modification operation of a user; and
configuring, by the configuration program, and in response to invoking the setup menu program, a corresponding function based on configuration modification information corresponding to the configuration modification operation, wherein
a function of the configuration program is implemented by a scheduler and a plurality of function configuration programs,
invoking, by the setup menu program, the configuration program in response to the received configuration modification operation comprises;
invoking, by the setup menu program, the scheduler in response to the received configuration modification operation, and
configuring, by the configuration program, the corresponding function based on the configuration modification information comprises:
in response to invoking the setup menu program, parsing, by the scheduler, the configuration modification information, determining a target function configuration program, and invoking the target function configuration program.
16 . The method according to claim 15 , wherein
the computer system further comprises hardware including a memory,
a data storage area of the operating system is disposed in the memory, and
the method further comprises:
storing, by the setup menu program, the configuration modification information in the data storage area of the operating system.
17 . The method according to claim 15 , wherein
the computer system further comprises hardware including a memory,
a data storage area of the firmware is set in the memory, and
the method further comprises:
storing, by the configuration program, the configuration modification information in the data storage area of the firmware in response to invoking the setup menu program.
18 . The method according to claim 15 , wherein
the function configuration program configures, in response to invoking the scheduler, the corresponding function based on the configuration modification information.
19 . The method according to claim 15 , wherein invoking, by the setup menu program, the configuration program in response to the received configuration modification operation comprises:
invoking, by the setup menu program, and in response to the received configuration modification operation of the user, the configuration program via a dedicated instruction, a mailbox, or an interrupt.
20 . The method according to claim 15 , wherein the firmware invocation program belongs to the operating system (OS), and the scheduler belongs to the firmware.