# US 2025/0165655 A1 · Method for performing system task in unprivileged mode and associated electronic device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0165655 A1
- Document ID: US20250165655A1
- Status: Published application
- Kind: A1
- Application number: 18/510,681
- Filed: 2023-11-16
- Published: 2025-05-22
- Earliest claimed: 2023-11-16
- Assignees: Mediatek Inc.
- Applicants: Mediatek Inc.
- Inventors: Chia-Yu Ku; Tien-Fu Chang; Fu-Shing Ju
- Web page: https://patentgrep.com/patent/US20250165655A1

## CPC

- G06F 21/74: operating in dual or compartmented mode, i.e. at least one secure mode
- G06F 21/54: by adding security routines or objects to programs
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An electronic device includes a processor and a hardware component. The processor is arranged to utilize an instruction set architecture (ISA) to transmit a first request with a first verification key to a hardware component, for requesting the hardware component to execute a system task in an unprivileged mode, wherein the ISA corresponds to the hardware component, and the system task requests to access a target hardware address. The hardware component is arranged to determine whether to access the target hardware address according to the first verification key.

## Claims

### Claim 1

An electronic device, comprising:
a processor, arranged to utilize an instruction set architecture (ISA) to transmit a first request with a first verification key to a hardware component, for requesting the hardware component to execute a system task in an unprivileged mode, wherein the ISA corresponds to the hardware component, and the system task requests to access a target hardware address; and
the hardware component, arranged to determine whether to access the target hardware address according to the first verification key.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein the processor is initially in a privileged mode, and is further arranged to execute a plurality of user programs.

### Claim 3 (depends on 2)

The electronic device of claim 2, wherein in response to the processor starting to execute the plurality of user programs, the processor is switched from the privileged mode to the unprivileged mode, and after a last user program of the plurality of user programs is executed, the processor is switched from the unprivileged mode to the privileged mode.

### Claim 4 (depends on 1)

The electronic device of claim 1, wherein in response to the processor being initially in a privileged mode, the processor transmits a second request to the hardware component for requesting the hardware component to generate a key; and the hardware component is further arranged to write the key into the target hardware address as a second verification key, and return the key to the processor as the first verification key.

### Claim 5 (depends on 4)

The electronic device of claim 4, wherein in response to the system task being executed in the unprivileged mode, the hardware component is further arranged to read the second verification key from the target hardware address, and compare the first verification key with the second verification key to generate a comparison result.

### Claim 6 (depends on 5)

The electronic device of claim 5, wherein in response to the comparison result indicating that the first verification key matches the second verification key, the hardware component determines to access the target hardware address to generate an access result.

### Claim 7 (depends on 6)

The electronic device of claim 6, wherein the hardware component transmits the access result and a success response to the processor.

### Claim 8 (depends on 5)

The electronic device of claim 5, wherein in response to the comparison result indicating that the first verification key does not match the second verification key, the hardware component determines not to access the target hardware address.

### Claim 9 (depends on 8)

The electronic device of claim 8, wherein the hardware component transmits a failure response to the processor.

### Claim 10

A method for executing a system task in an unprivileged mode, comprising:
utilizing, by a processor, an instruction set architecture (ISA) to transmit a first request with a first verification key to a hardware component, for requesting the hardware component to execute the system task in the unprivileged mode, wherein the ISA corresponds to the hardware component, and the system task requests to access a target hardware address; and
determine, by the hardware component, whether to access the target hardware address according to the first verification key.

### Claim 11 (depends on 10)

The method of claim 10, wherein the processor is initially in a privileged mode, and the method further comprises:
executing, by the processor, a plurality of user programs.

### Claim 12 (depends on 11)

The method of claim 11, wherein the step of executing, by the processor, the plurality of user programs comprises:
in response to the processor starting to execute the plurality of user programs, switching the processor from the privileged mode to the unprivileged mode; and
after a last user program of the plurality of user programs is executed, switching the processor from the unprivileged mode to the privileged mode.

### Claim 13 (depends on 10)

The method of claim 10, further comprising:
in response to the processor being initially in a privileged mode, transmitting, by the processor, a second request to the hardware component for requesting the hardware component to generate a key;
writing, by the hardware component, the key into the target hardware address as a second verification key; and
returning, by the hardware component, the key to the processor as the first verification key.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
in response to the system task being executed in the unprivileged mode, reading, by the hardware component, the second verification key from the target hardware address; and
comparing, by the hardware component, the first verification key with the second verification key to generate a comparison result.

### Claim 15 (depends on 14)

The method of claim 14, wherein the step of comparing, by the hardware component, the first verification key with the second verification key to generate the comparison result comprises:
in response to the comparison result indicating that the first verification key matches the second verification key, determining, by the hardware component, to access the target hardware address to generate an access result.

### Claim 16 (depends on 15)

The method of claim 15, wherein the step of determining, by the hardware component, to access the target hardware address to generate the access result comprises:
transmitting, by the hardware component, the access result and a success response to the processor.

### Claim 17 (depends on 14)

The method of claim 14, wherein the step of comparing, by the hardware component, the first verification key with the second verification key to generate the comparison result comprises:
in response to the comparison result indicating that the first verification key does not match the second verification key, determining, by the hardware component, not to access the target hardware address.

### Claim 18 (depends on 17)

The method of claim 17, wherein the step of determining, by the hardware component, not to access the target hardware address comprises:
transmitting, by the hardware component, a failure response to the processor.
