1
0
mirror of https://github.com/DoctorWkt/unix-jun72.git synced 2026-04-03 20:52:58 +00:00

- there was a missing branch in bread when copying data to userland.

I think I got this right, but it would be good if someone checked it
  over.
This commit is contained in:
tim.newsham
2008-05-03 01:34:09 +00:00
parent bcd32b5fbf
commit 39ee4e1894
2 changed files with 14 additions and 0 deletions

View File

@@ -194,6 +194,19 @@ e07-08
e08-*
- I used spaces to line up columns, not tabs.
e08-02
- the bread function is missing a branch when copying data from
kernel memory (r5) to user memory (r2). I added a branch:
1: / r5 points to beginning of data in I/O buffer, r2 points to beginning
/ of users data
movb (r5)+,(r2)+ / move data from the I/O buffer
dec r3 / to the user's area in core starting at u.base
bne 1b
^^^^^^^^^^^
tst u.count / done
beq 1f / yes, return
without this it only copies one byte to userland.
--------------------
e09-01
- I'm using tabs between opcode and operands now

View File

@@ -28,6 +28,7 @@
/ of users data
movb (r5)+,(r2)+ / move data from the I/O buffer
dec r3 / to the user's area in core starting at u.base
bne 1b
tst u.count / done
beq 1f / yes, return
tst -(r0) / no, point r0 to the argument again