update readme.md
This commit is contained in:
parent
6710792ef5
commit
5bfe8bf516
|
@ -14,14 +14,17 @@ First you need to connect your k210 board to your PC.
|
|||
And check the USB port:
|
||||
>\$ ls /dev/ | grep USB
|
||||
|
||||
In my situation it will be `ttyUSB0`
|
||||
In my situation it will be `ttyUSB1`
|
||||
|
||||
>\$ cd xv6-k210
|
||||
>\$ mkdir target
|
||||
>\$ make build
|
||||
|
||||
## Run
|
||||
>\$ make run-k210 k210-serialport=`Your-USB-port`(default by ttyUSB0)
|
||||
>\$ make run-k210 k210-serialport=`Your-USB-port`(default by ttyUSB1)
|
||||
|
||||
Ps: Most of the k210-port in Linux is ttyUSB0, if you use Windows or Mac OS, this doc
|
||||
may help you: [maixpy-doc](https://maixpy.sipeed.com/zh/get_started/env_install_driver.html#)
|
||||
|
||||
## What I have done
|
||||
+ Multicore boot
|
||||
|
|
|
@ -248,12 +248,13 @@ r_mcounteren()
|
|||
return x;
|
||||
}
|
||||
|
||||
// machine-mode cycle counter
|
||||
// supervisor-mode cycle counter
|
||||
static inline uint64
|
||||
r_time()
|
||||
{
|
||||
uint64 x;
|
||||
// asm volatile("csrr %0, time" : "=r" (x) );
|
||||
// this instruction will trap in SBI
|
||||
asm volatile("rdtime %0" : "=r" (x) );
|
||||
return x;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue