Skip to content

No privilege exception raise when execute clri in user mode #14

@IRISZZW

Description

@IRISZZW

Test codes:

# # source codes # usermode.S # # # build command: arc-elf32-gcc -mcpu=arcem -nostdlib usermode.S -g -Wl,-Ttext=0x80000000 -Wl,--entry=_start -o usermode.elf # # qemu command: qemu-system-arc -cpu arcem -M simhs -kernel usermode.elf -s -S # # mdb command: mdb -nooptions -nogoifmain -toggle=include_local_symbols=1 -nsim -arcv2em -OKN usermode.elf .global _start .type _start, @function _start: lr r0, [status32] or r0, r0, 128 sr r0, [erstatus] mov r0, usermode sr r0, [eret] rtie .global usermode .type usermode, @function usermode: lr r0, [status32] clri r0 lr r0, [status32] brk 

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions